vendor: 2,676 bytes, line 1
1import{j as Q}from"./vendor-ui-B5n1iLIf.js";import{r as x}from"./vendor-react-kxsG8lVO.js";const cn=x.createContext({});function wt(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const hn=typeof window<"u",de=hn?x.useLayoutEffect:x.useEffect,me=x.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function pe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z=(t,e,n)=>n>e?e:n<t?t:n;let Tt=()=>{};const tt={},wi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Si(t){return typeof t=="object"&&t!==null}const Ai=t=>/^0[^.\s]+$/u.test(t);function dn(t){let e;return()=>(e===void 0&&(e=t()),e)}const U=t=>t,fo=(t,e)=>n=>e(t(n)),$t=(...t)=>t.reduce(fo),ct=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class mn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>pe(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _=t=>t*1e3,$=t=>t/1e3;function pn(t,e){return e?t*(1e3/e):0}const mo=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},bi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,po=1e-7,go=12;function yo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=bi(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>po&&++a<go);return r}function Ht(t,e,n,s){if(t===e&&n===s)return U;const i=o=>yo(o,0,1,t,n);return o=>o===0||o===1?o:bi(i(o),e,s)}const Vi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ci=t=>e=>1-t(1-e),Mi=Ht(.33,1.53,.69,.99),gn=Ci(Mi),Di=Vi(gn),Ei=t=>(t*=2)<1?.5*gn(t):.5*(2-Math.pow(2,-10*(t-1))),yn=t=>1-Math.sin(Math.acos(t)),Ri=Ci(yn),Li=Vi(yn),vo=Ht(.42,0,1,1),xo=Ht(0,0,.58,1),ki=Ht(.42,0,.58,1),Ii=t=>Array.isArray(t)&&typeof t[0]!="number";function Fi(t,e){return Ii(t)?t[mo(0,t.length,e)]:t}const Bi=t=>Array.isArray(t)&&typeof t[0]=="number",qn={linear:U,easeIn:vo,easeInOut:ki,easeOut:xo,circIn:yn,circInOut:Li,circOut:Ri,backIn:gn,backInOut:Di,backOut:Mi,anticipate:Ei},To=t=>typeof t=="string",Zn=t=>{if(Bi(t)){Tt(t.length===4);const[e,n,s,i]=t;return Ht(e,n,s,i)}else if(To(t))return Tt(qn[t]!==void 0),qn[t];return t},qt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Jn={value:null,addProjectionMetrics:null};function Po(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(h){r.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,f=!1,d=!1)=>{const g=d&&i?n:s;return f&&r.add(h),g.has(h)||g.add(h),h},cancel:h=>{s.delete(h),r.delete(h)},process:h=>{if(a=h,i){o=!0;return}
vendor: 24,990 bytes, line 1
1i=!0,[n,s]=[s,n],n.forEach(u),e&&Jn.value&&Jn.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const wo=40;function Oi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=qt.reduce((v,S)=>(v[S]=Po(o,e?S:void 0),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,g=()=>{const v=tt.useManualTiming?i.timestamp:performance.now();n=!1,tt.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,wo),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},T=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:qt.reduce((v,S)=>{const P=r[S];return v[S]=(b,V=!1,w=!1)=>(n||T(),P.schedule(b,V,w)),v},{}),cancel:v=>{for(let S=0;S<qt.length;S++)r[qt[S]].cancel(v)},state:i,steps:r}}const{schedule:M,cancel:X,state:O,steps:Ae}=Oi(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0);let ee;function So(){ee=void 0}const W={now:()=>(ee===void 0&&W.set(O.isProcessing||tt.useManualTiming?O.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(So)}},ji=t=>e=>typeof e=="string"&&e.startsWith(t),Ni=ji("--"),Ao=ji("var(--"),vn=t=>Ao(t)?bo.test(t.split("/*")[0].trim()):!1,bo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ot={...St,transform:t=>Z(0,1,t)},Zt={...St,default:1},Lt=t=>Math.round(t*1e5)/1e5,xn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vo(t){return t==null}const Co=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tn=(t,e)=>n=>!!(typeof n=="string"&&Co.test(n)&&n.startsWith(t)||e&&!Vo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Wi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(xn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Mo=t=>Z(0,255,t),be={...St,transform:t=>Math.round(Mo(t))},ot={test:Tn("rgb","red"),parse:Wi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+be.transform(t)+", "+be.transform(e)+", "+be.transform(n)+", "+Lt(Ot.transform(s))+")"};function Do(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 We={test:Tn("#"),parse:Do,transform:ot.transform},zt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),et=zt("deg"),q=zt("%"),A=zt("px"),Eo=zt("vh"),Ro=zt("vw"),Qn={...q,parse:t=>q.parse(t)/100,transform:t=>q.transform(t*100)},dt={test:Tn("hsl","hue"),parse:Wi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+q.transform(Lt(e))+", "+q.transform(Lt(n))+", "+Lt(Ot.transform(s))+")"},I={test:t=>ot.test(t)||We.test(t)||dt.test(t),parse:t=>ot.test(t)?ot.parse(t):dt.test(t)?dt.parse(t):We.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ot.transform(t):dt.transform(t),getAnimatableNone:t=>{const e=I.parse(t);return e.alpha=0,I.transform(e)}},Lo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ko(t){return isNaN(t)&&typeof t=="string"&&(t.match(xn)?.length||0)+(t.match(Lo)?.length||0)>0}const Ui="number",Ki="color",Io="var",Fo="var(",ts="${}",Bo=/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 jt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Bo,l=>(I.test(l)?(s.color.push(o),i.push(Ki),n.push(I.parse(l))):l.startsWith(Fo)?(s.var.push(o),i.push(Io),n.push(l)):(s.number.push(o),i.push(Ui),n.push(parseFloat(l))),++o,ts)).split(ts);return{values:n,split:a,indexes:s,types:i}}function $i(t){return jt(t).values}function Hi(t){const{split:e,types:n}=jt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ui?o+=Lt(i[r]):a===Ki?o+=I.transform(i[r]):o+=i[r]}return o}}const Oo=t=>typeof t=="number"?0:I.test(t)?I.getAnimatableNone(t):t;function jo(t){const e=$i(t);return Hi(t)(e.map(Oo))}const nt={test:ko,parse:$i,createTransformer:Hi,getAnimatableNone:jo};function Ve(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 No({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Ve(l,a,t+1/3),o=Ve(l,a,t),r=Ve(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function le(t,e){return n=>n>0?e:t}const E=(t,e,n)=>t+(e-t)*n,Ce=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Wo=[We,ot,dt],Uo=t=>Wo.find(e=>e.test(t));function es(t){const e=Uo(t);if(!e)return!1;let n=e.parse(t);return e===dt&&(n=No(n)),n}const ns=(t,e)=>{const n=es(t),s=es(e);if(!n||!s)return le(t,e);const i={...n};return o=>(i.red=Ce(n.red,s.red,o),i.green=Ce(n.green,s.green,o),i.blue=Ce(n.blue,s.blue,o),i.alpha=E(n.alpha,s.alpha,o),ot.transform(i))},Ue=new Set(["none","hidden"]);function Ko(t,e){return Ue.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function $o(t,e){return n=>E(t,e,n)}function Pn(t){return typeof t=="number"?$o:typeof t=="string"?vn(t)?le:I.test(t)?ns:Go:Array.isArray(t)?zi:typeof t=="object"?I.test(t)?ns:Ho:le}function zi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Pn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Ho(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Pn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function zo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Go=(t,e)=>{const n=nt.createTransformer(e),s=jt(t),i=jt(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?Ue.has(t)&&!i.values.length||Ue.has(e)&&!s.values.length?Ko(t,e):$t(zi(zo(s,i),i.values),n):le(t,e)};function Gi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?E(t,e,n):Pn(t)(t,e)}const _o=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>M.update(e,n),stop:()=>X(e),now:()=>O.isProcessing?O.timestamp:W.now()}},_i=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ue=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ue;)e+=n,s=t.next(e);return e>=ue?1/0:e}function Xi(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),ue);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:$(i)}}const Xo=5;function Yi(t,e,n){const s=Math.max(e-Xo,0);return pn(n-t(s),e-s)}const L={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},Me=.001;function Yo({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,o,r=1-e;r=Z(L.minDamping,L.maxDamping,r),t=Z(L.minDuration,L.maxDuration,$(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ke(u,r),m=Math.exp(-h);return Me-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),g=Ke(Math.pow(u,2),r);return(-i(u)+Me>0?-1:1)*((f-d)*m)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-Me+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Zo(i,o,a);if(t=_(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const qo=12;function Zo(t,e,n){let s=n;for(let i=1;i<qo;i++)s=s-t(s)/e(s);return s}function Ke(t,e){return t*Math.sqrt(1-e*e)}const Jo=["duration","bounce"],Qo=["stiffness","damping","mass"];function ss(t,e){return e.some(n=>t[n]!==void 0)}function ta(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!ss(t,Qo)&&ss(t,Jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Z(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:o}}else{const n=Yo(t);e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function Nt(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=ta({...n,velocity:-$(n.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(l*c)),T=r-o,p=$(Math.sqrt(l/c)),y=Math.abs(T)<5;s||(s=y?L.restSpeed.granular:L.restSpeed.default),i||(i=y?L.restDelta.granular:L.restDelta.default);let v;if(g<1){const P=Ke(p,g);v=b=>{const V=Math.exp(-g*p*b);return r-V*((m+g*p*T)/P*Math.sin(P*b)+T*Math.cos(P*b))}}else if(g===1)v=P=>r-Math.exp(-p*P)*(T+(m+p*T)*P);else{const P=p*Math.sqrt(g*g-1);v=b=>{const V=Math.exp(-g*p*b),w=Math.min(P*b,300);return r-V*((m+g*p*T)*Math.sinh(w)+P*T*Math.cosh(w))/P}}const S={calculatedDuration:d&&h||null,next:P=>{const b=v(P);if(d)a.done=P>=h;else{let V=P===0?m:0;g<1&&(V=P===0?_(m):Yi(v,P,b));const w=Math.abs(V)<=s,C=Math.abs(r-b)<=i;a.done=w&&C}return a.value=a.done?r:b,a},toString:()=>{const P=Math.min(wn(S),ue),b=_i(V=>S.next(P*V).value,P,30);return P+"ms "+b},toTransition:()=>{}};return S}Nt.applyToOptions=t=>{const e=Xi(t,100,Nt);return t.ease=e.ease,t.duration=_(e.duration),t.type="keyframes",t};function $e({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=w=>a!==void 0&&w<a||l!==void 0&&w>l,m=w=>a===void 0?l:l===void 0||Math.abs(a-w)<Math.abs(l-w)?a:l;let g=n*e;const T=h+g,p=r===void 0?T:r(T);p!==T&&(g=p-h);const y=w=>-g*Math.exp(-w/s),v=w=>p+y(w),S=w=>{const C=y(w),F=v(w);f.done=Math.abs(C)<=u,f.value=f.done?p:F};let P,b;const V=w=>{d(f.value)&&(P=w,b=Nt({keyframes:[f.value,m(f.value)],velocity:Yi(v,w,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:w=>{let C=!1;return!b&&P===void 0&&(C=!0,S(w),V(w)),P!==void 0&&w>=P?b.next(w-P):(!C&&S(w),f)}}}function ea(t,e,n){const s=[],i=n||tt.mix||Gi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||U:e;a=$t(l,a)}s.push(a)}return s}function Sn(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Tt(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ea(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=ct(t[h],t[h+1],c);return a[h](f)};return n?c=>u(Z(t[0],t[o-1],c)):u}function qi(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ct(0,e,s);t.push(E(n,1,i))}}function An(t){const e=[0];return qi(e,t.length-1),e}function na(t,e){return t.map(n=>n*e)}function sa(t,e){return t.map(()=>e||ki).splice(0,t.length-1)}function kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ii(s)?s.map(Zn):Zn(s),o={done:!1,value:e[0]},r=na(n&&n.length===e.length?n:An(e),t),a=Sn(r,e,{ease:Array.isArray(i)?i:sa(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const ia=t=>t!==null;function bn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(ia),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ra={decay:$e,inertia:$e,tween:kt,keyframes:kt,spring:Nt};function Zi(t){typeof t.type=="string"&&(t.type=ra[t.type])}class Vn{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 oa=t=>t/100;class Cn extends Vn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==W.now()&&this.tick(W.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;Zi(e);const{type:n=kt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||kt;l!==kt&&typeof a[0]!="number"&&(this.mixKeyframes=$t(oa,Gi(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=wn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:g,finalKeyframe:T}=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 p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=s;if(h){const w=Math.min(this.currentTime,i)/a;let C=Math.floor(w),F=w%1;!F&&w>=1&&(F=1),F===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(f==="reverse"?(F=1-F,d&&(F-=d/a)):f==="mirror"&&(S=r)),v=Z(0,1,F)*a}const P=y?{done:!1,value:c[0]}:S.next(v);o&&(P.value=o(P.value));let{done:b}=P;!y&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return V&&m!==$e&&(P.value=bn(c,this.options,T,this.speed)),g&&g(P.value),V&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=_(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(W.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=_o,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(W.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 aa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const at=t=>t*180/Math.PI,He=t=>{const e=at(Math.atan2(t[1],t[0]));return ze(e)},la={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:He,rotateZ:He,skewX:t=>at(Math.atan(t[1])),skewY:t=>at(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ze=t=>(t=t%360,t<0&&(t+=360),t),is=He,rs=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),os=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ua={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:rs,scaleY:os,scale:t=>(rs(t)+os(t))/2,rotateX:t=>ze(at(Math.atan2(t[6],t[5]))),rotateY:t=>ze(at(Math.atan2(-t[2],t[0]))),rotateZ:is,rotate:is,skewX:t=>at(Math.atan(t[4])),skewY:t=>at(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ge(t){return t.includes("scale")?1:0}function _e(t,e){if(!t||t==="none")return Ge(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ua,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=la,i=a}if(!i)return Ge(e);const o=s[e],r=i[1].split(",").map(ha);return typeof o=="function"?o(r):r[o]}const ca=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return _e(n,e)};function ha(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(At),as=t=>t===St||t===A,fa=new Set(["x","y","z"]),da=At.filter(t=>!fa.has(t));function ma(t){const e=[];return da.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const lt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-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})=>_e(e,"x"),y:(t,{transform:e})=>_e(e,"y")};lt.translateX=lt.x;lt.translateY=lt.y;const ut=new Set;let Xe=!1,Ye=!1,qe=!1;function Ji(){if(Ye){const t=Array.from(ut).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ma(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ye=!1,Xe=!1,ut.forEach(t=>t.complete(qe)),ut.clear()}function Qi(){ut.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ye=!0)})}function pa(){qe=!0,Qi(),Ji(),qe=!1}class Mn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ut.add(this),Xe||(Xe=!0,M.read(Qi),M.resolveKeyframes(Ji))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}aa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ut.delete(this)}cancel(){this.state==="scheduled"&&(ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ga=t=>t.startsWith("--");function ya(t,e,n){ga(e)?t.style.setProperty(e,n):t.style[e]=n}const tr=dn(()=>window.ScrollTimeline!==void 0),va={};function xa(t,e){const n=dn(t);return()=>va[e]??n()}const er=xa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ls={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rt([0,.65,.55,1]),circOut:Rt([.55,0,1,.45]),backIn:Rt([.31,.01,.66,-.59]),backOut:Rt([.33,1.53,.69,.99])};function nr(t,e){if(t)return typeof t=="function"?er()?_i(t,e):"ease-out":Bi(t)?Rt(t):Array.isArray(t)?t.map(n=>nr(n,e)||ls.easeOut):ls[t]}function Ta(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=nr(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function Dn(t){return typeof t=="function"&&"applyToOptions"in t}function Pa({type:t,...e}){return Dn(t)&&er()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class wa extends Vn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Tt(typeof e.type!="string");const u=Pa(e);this.animation=Ta(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=bn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):ya(n,s,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=_(e)}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 Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tr()?(this.animation.timeline=e,U):n(this)}}const sr={anticipate:Ei,backInOut:Di,circInOut:Li};function Sa(t){return t in sr}function Aa(t){typeof t.ease=="string"&&Sa(t.ease)&&(t.ease=sr[t.ease])}const us=10;class ba extends wa{constructor(e){Aa(e),Zi(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Cn({...r,autoplay:!1}),l=_(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-us).value,a.sample(l).value,us),a.stop()}}const cs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(nt.test(t)||t==="0")&&!t.startsWith("url("));function Va(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 Ca(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=cs(i,e),a=cs(o,e);return!r||!a?!1:Va(t)||(n==="spring"||Dn(n))&&s}function Ze(t){t.duration=0,t.type="keyframes"}const Ma=new Set(["opacity","clipPath","filter","transform"]),Da=dn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ea(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return Da()&&n&&Ma.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Ra=40;class La extends Vn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=W.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=c?.KeyframeResolver||Mn;this.keyframeResolver=new d(a,(m,g,T)=>this.onKeyframesResolved(m,g,f,!T),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=W.now(),Ca(e,o,r,a)||((tt.instantAnimations||!l)&&c?.(bn(e,s,n)),e[0]=e[e.length-1],Ze(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ra?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&Ea(f)?new ba({...f,element:f.motionValue.owner.current}):new Cn(f);d.finished.then(()=>this.notifyFinished()).catch(U),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),pa()),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()}}class ka{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return hs(this.animations,"duration")}get iterationDuration(){return hs(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function hs(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class Ia extends ka{then(e,n){return this.finished.finally(e).then(()=>{})}}const Fa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ba(t){const e=Fa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ir(t,e,n=1){const[s,i]=Ba(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return wi(r)?parseFloat(r):r}return vn(i)?ir(i,e,n+1):i}function En(t,e){return t?.[e]??t?.default??t}const rr=new Set(["width","height","top","left","right","bottom",...At]),Oa={test:t=>t==="auto",parse:t=>t},or=t=>e=>e.test(t),ar=[St,A,q,et,Ro,Eo,Oa],fs=t=>ar.find(or(t));function ja(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ai(t):!0}const Na=new Set(["brightness","contrast","saturate","opacity"]);function Wa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(xn)||[];
vendor: 2,949 bytes, line 1
1if(!s)return t;const i=n.replace(s,"");let o=Na.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ua=/\b([a-z-]*)\(.*?\)/gu,Je={...nt,getAnimatableNone:t=>{const e=t.match(Ua);return e?e.map(Wa).join(" "):t}},ds={...St,transform:Math.round},Ka={rotate:et,rotateX:et,rotateY:et,rotateZ:et,scale:Zt,scaleX:Zt,scaleY:Zt,scaleZ:Zt,skew:et,skewX:et,skewY:et,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Ot,originX:Qn,originY:Qn,originZ:A},Rn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...Ka,zIndex:ds,fillOpacity:Ot,strokeOpacity:Ot,numOctaves:ds},$a={...Rn,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Je,WebkitFilter:Je},lr=t=>$a[t];function ur(t,e){let n=lr(t);return n!==Je&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ha=new Set(["auto","none","0"]);function za(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ha.has(o)&&jt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=ur(n,i)}class Ga extends Mn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),vn(u))){const c=ir(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!rr.has(s)||e.length!==2)return;const[i,o]=e,r=fs(i),a=fs(o);if(r!==a)if(as(r)&&as(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else lt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ja(e[i]))&&s.push(i);s.length&&za(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=lt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=lt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,789 bytes, line 1
1h(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function ge(t,e,n){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)}const cr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ln(t){return Si(t)&&"offsetHeight"in t}const ms=30,_a=t=>!isNaN(parseFloat(t)),It={current:void 0};class Xa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=W.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_a(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 mn);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 It.current&&It.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ms)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ms);return pn(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 G(t,e){return new Xa(t,e)}const{schedule:kn,cancel:Ih}=Oi(queueMicrotask,!1),z={x:!1,y:!1};function hr(){return z.x||z.y}function Ya(t){return t==="x"||t==="y"?z[t]?null:(z[t]=!0,()=>{z[t]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}function fr(t,e){const n=ge(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function ps(t){return!(t.pointerType==="touch"||hr())}function qa(t,e,n={}){const[s,i,o]=fr(t,n),r=a=>{if(!ps(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{ps(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const dr=(t,e)=>e?t===e?!0:dr(t,e.parentElement):!1,In=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Za=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ja(t){return Za.has(t.tagName)||t.tabIndex!==-1}const ne=new WeakSet;function gs(t){return e=>{e.key==="Enter"&&t(e)}}function De(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Qa=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=gs(()=>{if(ne.has(n))return;De(n,"down");const i=gs(()=>{De(n,"up")}),o=()=>De(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ys(t){return In(t)&&!hr()}function tl(t,e,n={}){const[s,i,o]=fr(t,n),r=a=>{const l=a.currentTarget;if(!ys(a))return;ne.add(l);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ne.has(l)&&ne.delete(l),ys(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||dr(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};
1return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Ln(a)&&(a.addEventListener("focus",u=>Qa(u,i)),!Ja(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ye(t){return Si(t)&&"ownerSVGElement"in t}const se=new WeakMap;let ie;const mr=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:ye(s)&&"getBBox"in s?s.getBBox()[e]:s[n],el=mr("inline","width","offsetWidth"),nl=mr("block","height","offsetHeight");function sl({target:t,borderBoxSize:e}){se.get(t)?.forEach(n=>{n(t,{get width(){return el(t,e)},get height(){return nl(t,e)}})})}function il(t){t.forEach(sl)}function rl(){typeof ResizeObserver>"u"||(ie=new ResizeObserver(il))}function ol(t,e){ie||rl();const n=ge(t);return n.forEach(s=>{let i=se.get(s);i||(i=new Set,se.set(s,i)),i.add(e),ie?.observe(s)}),()=>{n.forEach(s=>{const i=se.get(s);i?.delete(e),i?.size||ie?.unobserve(s)})}}const re=new Set;let mt;function al(){mt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};re.forEach(e=>e(t))},window.addEventListener("resize",mt)}function ll(t){return re.add(t),mt||al(),()=>{re.delete(t),!re.size&&typeof mt=="function"&&(window.removeEventListener("resize",mt),mt=void 0)}}function ul(t,e){return typeof t=="function"?ll(t):ol(t,e)}function pr(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return M.preUpdate(s,!0),()=>X(s)}function gr(t){return ye(t)&&t.tagName==="svg"}function cl(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=Sn(i,o,r);return e?a(s):a}const j=t=>!!(t&&t.getVelocity),hl=[...ar,I,nt],fl=t=>hl.find(or(t)),ve=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function vs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function dl(...t){return e=>{let n=!1;const s=t.map(i=>{const o=vs(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():vs(t[i],null)}}}}function ml(...t){return x.useCallback(dl(...t),t)}class pl extends x.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Ln(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function gl({children:t,isPresent:e,anchorX:n,root:s}){const i=x.useId(),o=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=x.useContext(ve),l=ml(o,t?.ref);return x.useInsertionEffect(()=>{const{width:u,height:c,top:h,left:f,right:d}=r.current;if(e||!o.current||!u||!c)return;const m=n==="left"?`left: ${f}`:`right: ${d}`;o.current.dataset.motionPopId=i;const g=document.createElement("style");a&&(g.nonce=a);const T=s??document.head;return T.appendChild(g),g.sheet&&g.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${u}px !important; 5 height: ${c}px !important; 6 ${m}px !important; 7 top: ${h}px !important; 8 } 9 `),()=>{T.contains(g)&&T.removeChild(g)}},[e]),Q.jsx(pl,{isPresent:e,childRef:o,sizeRef:r,children:x.cloneElement(t,{ref:l})})}const yl=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:l})=>{const u=wt(vl),c=x.useId();let h=!0,f=x.useMemo(()=>(h=!1,{id:c,initial:e,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const m of u.values())if(!m)return;s&&s()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,s]);return o&&h&&(f={...f}),x.useMemo(()=>{u.forEach((d,m)=>u.set(m,!1))},[n]),x.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),r==="popLayout"&&(t=Q.jsx(gl,{isPresent:n,anchorX:a,root:l,children:t})),Q.jsx(me.Provider,{value:f,children:t})};function vl(){return new Map}function yr(t=!0){const e=x.useContext(me);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=x.useId();x.useEffect(()=>{if(t)return i(o)},[t]);const r=x.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Jt=t=>t.key||"";function xs(t){const e=[];
vendor: 10,789 bytes, line 9
9return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const Fh=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[u,c]=yr(r),h=x.useMemo(()=>xs(t),[t]),f=r&&!u?[]:h.map(Jt),d=x.useRef(!0),m=x.useRef(h),g=wt(()=>new Map),[T,p]=x.useState(h),[y,v]=x.useState(h);de(()=>{d.current=!1,m.current=h;for(let b=0;b<y.length;b++){const V=Jt(y[b]);f.includes(V)?g.delete(V):g.get(V)!==!0&&g.set(V,!1)}},[y,f.length,f.join("-")]);const S=[];if(h!==T){let b=[...h];for(let V=0;V<y.length;V++){const w=y[V],C=Jt(w);f.includes(C)||(b.splice(V,0,w),S.push(w))}return o==="wait"&&S.length&&(b=S),v(xs(b)),p(h),null}const{forceRender:P}=x.useContext(cn);return Q.jsx(Q.Fragment,{children:y.map(b=>{const V=Jt(b),w=r&&!u?!1:h===y||f.includes(V),C=()=>{if(g.has(V))g.set(V,!0);else return;let F=!0;g.forEach(B=>{B||(F=!1)}),F&&(P?.(),v(m.current),r&&c?.(),s&&s())};return Q.jsx(yl,{isPresent:w,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:w?void 0:C,anchorX:a,children:b},V)})})},vr=x.createContext({strict:!1}),Ts={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"]},Pt={};for(const t in Ts)Pt[t]={isEnabled:e=>Ts[t].some(n=>!!e[n])};function xl(t){for(const e in t)Pt[e]={...Pt[e],...t[e]}}const Tl=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","ignoreStrict","viewport"]);function ce(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Tl.has(t)}let xr=t=>!ce(t);function Pl(t){typeof t=="function"&&(xr=e=>e.startsWith("on")?!ce(e):t(e))}try{Pl(require("@emotion/is-prop-valid").default)}catch{}function wl(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(xr(i)||n===!0&&ce(i)||!e&&!ce(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const xe=x.createContext({});function Te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Wt(t){return typeof t=="string"||Array.isArray(t)}const Fn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bn=["initial",...Fn];function Pe(t){return Te(t.animate)||Bn.some(e=>Wt(t[e]))}function Tr(t){return!!(Pe(t)||t.variants)}function Sl(t,e){if(Pe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Wt(n)?n:void 0,animate:Wt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Al(t){const{initial:e,animate:n}=Sl(t,x.useContext(xe));return x.useMemo(()=>({initial:e,animate:n}),[Ps(e),Ps(n)])}function Ps(t){return Array.isArray(t)?t.join(" "):t}function ws(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Dt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=ws(t,e.target.x),s=ws(t,e.target.y);return`${n}% ${s}%`}},bl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=nt.parse(t);if(i.length>5)return s;const o=nt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=E(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},Qe={borderRadius:{...Dt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomLeftRadius:Dt,borderBottomRightRadius:Dt,boxShadow:bl};function Pr(t,{layout:e,layoutId:n}){return bt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Qe[t]||t==="opacity")}const Vl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cl=At.length;function Ml(t,e,n){let s="",i=!0;for(let o=0;o<Cl;o++){const r=At[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=cr(a,Rn[r]);if(!l){i=!1;const c=Vl[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function On(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(bt.has(l)){r=!0;continue}else if(Ni(l)){i[l]=u;continue}else{const c=cr(u,Rn[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Ml(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const jn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wr(t,e,n){for(const s in e)!j(e[s])&&!Pr(s,n)&&(t[s]=e[s])}function Dl({transformTemplate:t},e){return x.useMemo(()=>{const n=jn();return On(n,e,t),Object.assign({},n.vars,n.style)},[e])}function El(t,e){const n=t.style||{},s={};return wr(s,n,t),Object.assign(s,Dl(t,e)),s}function Rl(t,e){const n={},s=El(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 Ll={offset:"stroke-dashoffset",array:"stroke-dasharray"},kl={offset:"strokeDashoffset",array:"strokeDasharray"};function Il(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Ll:kl;t[o.offset]=A.transform(-s);const r=A.transform(e),a=A.transform(n);t[o.array]=`${r} ${a}`}function Sr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(On(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Il(h,i,o,r,!1)}const Ar=()=>({...jn(),attrs:{}}),br=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Fl(t,e,n,s){const i=x.useMemo(()=>{const o=Ar();return Sr(o,e,br(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};wr(o,t.style,t),i.style={...o,...i.style}}return i}const Bl=["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 Nn(t){return typeof t!="string"||t.includes("-")?!1:!!(Bl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ol(t,e,n,{latestValues:s},i,o=!1){const a=(Nn(t)?Fl:Rl)(e,s,i,t),l=wl(e,typeof t=="string",o),u=t!==x.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=x.useMemo(()=>j(c)?c.get():c,[c]);return x.createElement(t,{...u,children:h})}function Ss(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Wn(t,e,n,s){if(typeof e=="function"){const[i,o]=Ss(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Ss(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function oe(t){return j(t)?t.get():t}function jl({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Nl(n,s,i,t),renderState:e()}}function Nl(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=oe(o[f]);let{initial:r,animate:a}=t;const l=Pe(t),u=Tr(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!Te(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=Wn(t,f[d]);if(m){const{transitionEnd:g,transition:T,...p}=m;for(const y in p){let v=p[y];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(i[y]=v)}for(const y in g)i[y]=g[y]}}}return i}const Vr=t=>(e,n)=>{const s=x.useContext(xe),i=x.useContext(me),o=()=>jl(t,e,s,i);return n?o():wt(o)};function Un(t,e,n){const{style:s}=t,i={};for(const o in s)(j(s[o])||e.style&&j(e.style[o])||Pr(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const Wl=Vr({scrapeMotionValuesFromProps:Un,createRenderState:jn});function Cr(t,e,n){const s=Un(t,e,n);for(const i in t)if(j(t[i])||j(e[i])){const o=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const Ul=Vr({scrapeMotionValuesFromProps:Cr,createRenderState:Ar}),Kl=Symbol.for("motionComponentSymbol");function pt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function $l(t,e,n){return x.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):pt(n)&&(n.current=s))},[e])}const Kn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hl="framerAppearId",Mr="data-"+Kn(Hl),Dr=x.createContext({});function zl(t,e,n,s,i){const{visualElement:o}=x.useContext(xe),r=x.useContext(vr),a=x.useContext(me),l=x.useContext(ve).reducedMotion,u=x.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=x.useContext(Dr);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Gl(u.current,n,i,h);const f=x.useRef(!1);x.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const d=n[Mr],m=x.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return de(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),x.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),m.current=!1),c.enteringChildren=void 0)}),c}function Gl(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Er(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&pt(a),visualElement:t,animationType:typeof o=="str
9ing"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function Er(t){if(t)return t.options.allowProjection!==!1?t.projection:Er(t.parent)}function Ee(t,{forwardMotionProps:e=!1}={},n,s){n&&xl(n);const i=Nn(t)?Ul:Wl;function o(a,l){let u;const c={...x.useContext(ve),...a,layoutId:_l(a)},{isStatic:h}=c,f=Al(a),d=i(a,h);if(!h&&hn){Xl();const m=Yl(c);u=m.MeasureLayout,f.visualElement=zl(t,d,c,s,m.ProjectionNode)}return Q.jsxs(xe.Provider,{value:f,children:[u&&f.visualElement?Q.jsx(u,{visualElement:f.visualElement,...c}):null,Ol(t,a,$l(d,f.visualElement,l),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=x.forwardRef(o);return r[Kl]=t,r}function _l({layoutId:t}){const e=x.useContext(cn).id;return e&&t!==void 0?e+"-"+t:t}function Xl(t,e){x.useContext(vr).strict}function Yl(t){const{drag:e,layout:n}=Pt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ql(t,e){if(typeof Proxy>"u")return Ee;const n=new Map,s=(o,r)=>Ee(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Ee(r,void 0,t,e)),n.get(r))})}function Rr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Zl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Jl(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 Re(t){return t===void 0||t===1}function tn({scale:t,scaleX:e,scaleY:n}){return!Re(t)||!Re(e)||!Re(n)}function rt(t){return tn(t)||Lr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Lr(t){return As(t.x)||As(t.y)}function As(t){return t&&t!=="0%"}function he(t,e,n){const s=t-n,i=e*s;return n+i}function bs(t,e,n,s,i){return i!==void 0&&(t=he(t,i,s)),he(t,n,s)+e}function en(t,e=0,n=1,s,i){t.min=bs(t.min,e,n,s,i),t.max=bs(t.max,e,n,s,i)}function kr(t,{x:e,y:n}){en(t.x,e.translate,e.scale,e.originPoint),en(t.y,n.translate,n.scale,n.originPoint)}const Vs=.999999999999,Cs=1.0000000000001;function Ql(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,kr(t,r)),s&&rt(o.latestValues)&&yt(t,o.latestValues))}e.x<Cs&&e.x>Vs&&(e.x=1),e.y<Cs&&e.y>Vs&&(e.y=1)}function gt(t,e){t.min=t.min+e,t.max=t.max+e}function Ms(t,e,n,s,i=.5){const o=E(t.min,t.max,i);en(t,e,n,o,s)}function yt(t,e){Ms(t.x,e.x,e.scaleX,e.scale,e.originX),Ms(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ir(t,e){return Rr(Jl(t.getBoundingClientRect(),e))}function tu(t,e,n){const s=Ir(t,n),{scroll:i}=e;return i&&(gt(s.x,i.offset.x),gt(s.y,i.offset.y)),s}const Ds=()=>({translate:0,scale:1,origin:0,originPoint:0}),vt=()=>({x:Ds(),y:Ds()}),Es=()=>({min:0,max:0}),k=()=>({x:Es(),y:Es()}),nn={current:null},Fr={current:!1};function eu(){if(Fr.current=!0,!!hn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nn.current=t.matches;t.addEventListener("change",e),e()}else nn.current=!1}const Ut=new WeakMap;function nu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(j(i))t.addValue(s,i);else if(j(o))t.addValue(s,G(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,G(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Rs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Br{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 f=W.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,M.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;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.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Pe(n),this.isVariantNode=Tr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&j(d)&&d.set(l[f])}}mount(e){this.current=e,Ut.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 29,311 bytes, line 9
9h((n,s)=>this.bindToMotionValue(s,n)),Fr.current||eu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nn.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),X(this.notifyUpdate),X(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){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=bt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&M.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Pt){const n=Pt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}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<Rs.length;s++){const i=Rs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=nu(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=G(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"&&(wi(s)||Ai(s))?s=parseFloat(s):!fl(s)&&nt.test(n)&&(s=ur(e,n)),this.setBaseTarget(e,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Wn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!j(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 mn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){kn.render(this.render)}}class Or extends Br{constructor(){super(...arguments),this.KeyframeResolver=Ga}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[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;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function jr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function su(t){return window.getComputedStyle(t)}class Nr extends Or{constructor(){super(...arguments),this.type="html",this.renderInstance=jr}readValueFromInstance(e,n){if(bt.has(n))return this.projection?.isProjecting?Ge(n):ca(e,n);{const s=su(e),i=(Ni(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ir(e,n)}build(e,n,s){On(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Un(e,n,s)}}const Wr=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"]);function iu(t,e,n,s){jr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Wr.has(i)?i:Kn(i),e.attrs[i])}class Ur extends Or{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(bt.has(n)){const s=lr(n);return s&&s.default||0}return n=Wr.has(n)?n:Kn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Cr(e,n,s)}build(e,n,s){Sr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){iu(e,n,s,i)}mount(e){this.isSVGTag=br(e.tagName),super.mount(e)}}const ru=(t,e)=>Nn(t)?new Ur(e):new Nr(e,{allowProjection:t!==x.Fragment});function xt(t,e,n){const s=t.getProps();return Wn(s,e,n!==void 0?n:s.custom,t)}const sn=t=>Array.isArray(t);function ou(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,G(n))}function au(t){return sn(t)?t[t.length-1]||0:t}function lu(t,e){const n=xt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=au(o[r]);ou(t,r,a)}}function uu(t){return!!(j(t)&&t.add)}function rn(t,e){const n=t.getValue("willChange");if(uu(n))return n.add(e);if(!n&&tt.WillChange){const s=new tt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Kr(t){return t.props[Mr]}const cu=t=>t!==null;function hu(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(cu),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const fu={type:"spring",stiffness:500,damping:25,restSpeed:10},du=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),mu={type:"keyframes",duration:.8},pu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gu=(t,{keyframes:e})=>e.length>2?mu:bt.has(t)?t.startsWith("scale")?du(e[1]):fu:pu;function yu({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const $n=(t,e,n,s={},i,o)=>r=>{const a=En(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-_(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};yu(a)||Object.assign(c,gu(t,c)),c.duration&&(c.duration=_(c.duration)),c.repeatDelay&&(c.repeatDelay=_(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ze(c),c.delay===0&&(h=!0)),(tt.instantAnimations||tt.skipAnimations)&&(h=!0,Ze(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=hu(c.keyframes,a);if(f!==void 0){M.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new Cn(c):new La(c)};function vu({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Hn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&vu(u,c))continue;const d={delay:n,...En(o||{},c)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const p=Kr(t);if(p){const y=window.MotionHandoffAnimation(p,c,M);y!==null&&(d.startTime=y,g=!0)}}rn(t,c),h.start($n(c,h,f,t.shouldReduceMotion&&rr.has(c)?{type:!1}:d,t,g));const T=h.animation;T&&l.push(T)}return r&&Promise.all(l).then(()=>{M.update(()=>{r&&lu(t,r)})}),l}function $r(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function on(t,e,n={}){const s=xt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Hn(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:h}=i;return xu(t,e,l,u,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function xu(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(on(l,e,{...r,delay:n+(typeof s=="function"?0:s)+$r(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Tu(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>on(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=on(t,e,n);else{const i=typeof e=="function"?xt(t,e,n.custom):e;s=Promise.all(Hn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Hr(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 Pu=Bn.length;function zr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?zr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Pu;n++){const s=Bn[n],i=t.props[s];(Wt(i)||i===!1)&&(e[s]=i)}return e}const wu=[...Fn].reverse(),Su=Fn.length;function Au(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Tu(t,n,s)))}function bu(t){let e=Au(t),n=Ls(),s=!0;const i=l=>(u,c)=>{const h=xt(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=zr(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let T=0;T<Su;T++){const p=wu[T],y=n[p],v=u[p]!==void 0?u[p]:c[p],S=Wt(v),P=p===l?y.isActive:null;P===!1&&(m=T);let b=v===c[p]&&v!==u[p]&&S;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...d},!y.isActive&&P===null||!v&&!y.prevProp||Te(v)||typeof v=="boolean")continue;const V=Vu(y.prevProp,v);let w=V||p===l&&y.isActive&&!b&&S||T>m&&S,C=!1;const F=Array.isArray(v)?v:[v];let B=F.reduce(i(p),{});P===!1&&(B={});const{prevResolvedValues:ht={}}=y,ft={...ht,...B},we=D=>{w=!0,f.has(D)&&(C=!0,f.delete(D)),y.needsAnimating[D]=!0;const R=t.getValue(D);R&&(R.liveStyle=!1)};for(const D in ft){const R=B[D],Y=ht[D];if(d.hasOwnProperty(D))continue;let J=!1;sn(R)&&sn(Y)?J=!Hr(R,Y):J=R!==Y,J?R!=null?we(D):f.add(D):R!==void 0&&f.has(D)?we(D):y.protectedKeys[D]=!0}y.prevProp=v,y.prevResolvedValues=B,y.isActive&&(d={...d,...B}),s&&t.blockInitialAnimation&&(w=!1);const Se=b&&V;w&&(!Se||C)&&h.push(...F.map(D=>{const R={type:p};if(typeof D=="string"&&s&&!Se&&t.manuallyAnimateOnMount&&t.parent){const{parent:Y}=t,J=xt(Y,D);if(Y.enteringChildren&&J){const{delayChildren:_t}=J.transition||{};R.delay=$r(Y.enteringChildren,t,_t)}}return{animation:D,options:R}}))}if(f.size){const T={};if(typeof u.initial!="boolean"){const p=xt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(T.transition=p.transition)}f.forEach(p=>{const y=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),T[p]=y??null}),h.push({animation:T})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),n[l].isActive=u;const c=r(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ls()}}}function Vu(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Hr(e,t):!1}function it(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ls(){return{animate:it(!0),whileInView:it(),whileHover:it(),whileTap:it(),whileDrag:it(),whileFocus:it(),exit:it()}}class st{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Cu extends st{constructor(e){super(e),e.animationState||(e.animationState=bu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Te(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 Mu=0;class Du extends st{constructor(){super(...arguments),this.id=Mu++}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;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Eu={animation:{Feature:Cu},exit:{Feature:Du}};function Kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Gt(t){return{point:{x:t.pageX,y:t.pageY}}}const Ru=t=>e=>In(e)&&t(e,Gt(e));function Ft(t,e,n,s){return Kt(t,e,Ru(n),s)}const Gr=1e-4,Lu=1-Gr,ku=1+Gr,_r=.01,Iu=0-_r,Fu=0+_r;function N(t){return t.max-t.min}function Bu(t,e,n){return Math.abs(t-e)<=n}function ks(t,e,n,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=E(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Lu&&t.scale<=ku||isNaN(t.scale))&&(t.scale=1),(t.translate>=Iu&&t.translate<=Fu||isNaN(t.translate))&&(t.translate=0)}function Bt(t,e,n,s){ks(t.x,e.x,n.x,s?s.originX:void 0),ks(t.y,e.y,n.y,s?s.originY:void 0)}function Is(t,e,n){t.min=n.min+e.min,t.max=t.min+N(e)}function Ou(t,e,n){Is(t.x,e.x,n.x),Is(t.y,e.y,n.y)}function Fs(t,e,n){t.min=e.min-n.min,t.max=t.min+N(e)}function fe(t,e,n){Fs(t.x,e.x,n.x),Fs(t.y,e.y,n.y)}function K(t){return[t("x"),t("y")]}const Xr=({current:t})=>t?t.ownerDocument.defaultView:null,Bs=(t,e)=>Math.abs(t-e);function ju(t,e){const n=Bs(t.x,e.x),s=Bs(t.y,e.y);return Math.sqrt(n**2+s**2)}class Yr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ke(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=ju(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:g}=f,{timestamp:T}=O;this.history.push({...g,timestamp:T});const{onStart:p,onMove:y}=this.handlers;d||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Le(d,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ke(f.type==="pointercancel"?this.lastMoveEventInfo:Le(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,p),g&&g(f,p)},!In(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=Gt(e),l=Le(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=O;this.history=[{...u,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,ke(l,this.history)),this.removeListeners=$t(Ft(this.contextWindow,"pointermove",this.handlePointerMove),Ft(this.contextWindow,"pointerup",this.handlePointerUp),Ft(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),X(this.updatePoint)}}function Le(t,e){return e?{point:e(t.point)}:t}function Os(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ke({point:t},e){return{point:t,delta:Os(t,qr(e)),offset:Os(t,Nu(e)),velocity:Wu(e,.1)}}function Nu(t){return t[0]}function qr(t){return t[t.length-1]}function Wu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=qr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>_(e)));)n--;if(!s)return{x:0,y:0};const o=$(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function 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 js(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 Ku(t,{top:e,left:n,bottom:s,right:i}){return{x:js(t.x,n,i),y:js(t.y,e,s)}}function Ns(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 $u(t,e){return{x:Ns(t.x,e.x),y:Ns(t.y,e.y)}}function Hu(t,e){let n=.5;const s=N(t),i=N(e);return i>s?n=ct(e.min,e.max-s,t.min):s>i&&(n=ct(t.min,t.max-i,e.min)),Z(0,1,n)}function zu(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 an=.35;function Gu(t=an){return t===!1?t=0:t===!0&&(t=an),{x:Ws(t,"left","right"),y:Ws(t,"top","bottom")}}function Ws(t,e,n){return{min:Us(t,e),max:Us(t,n)}}function Us(t,e){return typeof t=="number"?t:t[e]||0}const _u=new WeakMap;class Xu{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=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gt(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:g}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ya(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(p=>{let y=this.getAxisMotionValue(p).get()||0;if(q.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[p];S&&(y=N(S)*(parseFloat(y)/100))}}this.originPoint[p]=y}),g&&M.postRender(()=>g(h,f)),rn(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:T}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(m&&this.currentDirection===null){this.currentDirection=Yu(p),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),T&&T(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>K(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Yr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Xr(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&M.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Qt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Uu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&pt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Ku(s.layoutBox,e):this.constraints=!1,this.elastic=Gu(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&K(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=zu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=tu(s,i.root,this.visualElement.getTransformPagePoint());let r=$u(i.layout.layoutBox,o);if(n){const a=n(Zl(r));this.hasMutatedConstraints=!!a,a&&(r=Rr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=K(c=>{if(!Qt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return rn(this.visualElement,e),s.start($n(e,s,0,n,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){K(n=>{const{drag:s}=this.getProps();if(!Qt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-E(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!pt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};K(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Hu({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),K(r=>{if(!Qt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(E(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;_u.set(this.visualElement,this);const e=this.visualElement.current,n=Ft(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();pt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(s);const r=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(K(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=an,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Qt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Yu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class qu extends st{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new Xu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ks=t=>(e,n)=>{t&&M.postRender(()=>t(e,n))};class Zu extends st{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new Yr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ks(e),onStart:Ks(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&M.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Ft(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ae={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Ie=!1;class Ju extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ie&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ae.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Ie=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||M.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),kn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ie=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Zr(t){const[e,n]=yr(),s=x.useContext(cn);return Q.jsx(Ju,{...t,layoutGroup:s,switchLayoutGroup:x.useContext(Dr),isPresent:e,safeToRemove:n})}function Jr(t,e,n){const s=j(t)?t:G(t);return s.start($n("",s,e,n)),s.animation}const Qu=(t,e)=>t.depth-e.depth;class tc{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){pe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qu),this.isDirty=!1,this.children.forEac
vendor: 3,980 bytes, line 9
9h(e)}}function ec(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(X(s),t(o-e))};return M.setup(s,!0),()=>X(s)}const Qr=["TopLeft","TopRight","BottomLeft","BottomRight"],nc=Qr.length,$s=t=>typeof t=="string"?parseFloat(t):t,Hs=t=>typeof t=="number"||A.test(t);function sc(t,e,n,s,i,o){i?(t.opacity=E(0,n.opacity??1,ic(s)),t.opacityExit=E(e.opacity??1,0,rc(s))):o&&(t.opacity=E(e.opacity??1,n.opacity??1,s));for(let r=0;r<nc;r++){const a=`border${Qr[r]}Radius`;let l=zs(e,a),u=zs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Hs(l)===Hs(u)?(t[a]=Math.max(E($s(l),$s(u),s),0),(q.test(u)||q.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=E(e.rotate||0,n.rotate||0,s))}function zs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ic=to(0,.5,Ri),rc=to(.5,.95,U);function to(t,e,n){return s=>s<t?0:s>e?1:n(ct(t,e,s))}function Gs(t,e){t.min=e.min,t.max=e.max}function H(t,e){Gs(t.x,e.x),Gs(t.y,e.y)}function _s(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Xs(t,e,n,s,i){return t-=e,t=he(t,1/n,s),i!==void 0&&(t=he(t,1/i,s)),t}function oc(t,e=0,n=1,s=.5,i,o=t,r=t){if(q.test(e)&&(e=parseFloat(e),e=E(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=E(o.min,o.max,s);t===o&&(a-=e),t.min=Xs(t.min,e,n,a,i),t.max=Xs(t.max,e,n,a,i)}function Ys(t,e,[n,s,i],o,r){oc(t,e[n],e[s],e[i],e.scale,o,r)}const ac=["x","scaleX","originX"],lc=["y","scaleY","originY"];function qs(t,e,n,s){Ys(t.x,e,ac,n?n.x:void 0,s?s.x:void 0),Ys(t.y,e,lc,n?n.y:void 0,s?s.y:void 0)}function Zs(t){return t.translate===0&&t.scale===1}function eo(t){return Zs(t.x)&&Zs(t.y)}function Js(t,e){return t.min===e.min&&t.max===e.max}function uc(t,e){return Js(t.x,e.x)&&Js(t.y,e.y)}function Qs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function no(t,e){return Qs(t.x,e.x)&&Qs(t.y,e.y)}function ti(t){return N(t.x)/N(t.y)}function ei(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class cc{constructor(){this.members=[]}add(e){fn(this.members,e),e.scheduleRender()}remove(e){if(pe(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){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Fe=["","X","Y","Z"],fc=1e3;let dc=0;function Be(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function so(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Kr(e);
vendor: 20,131 bytes, line 9
9if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&so(s)}function io({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=dc++,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(gc),this.nodes.forEach(Tc),this.nodes.forEach(Pc),this.nodes.forEach(yc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new tc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new mn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ye(r)&&!gr(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;M.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=ec(f,250),ae.hasAnimatedSinceResize&&(ae.hasAnimatedSinceResize=!1,this.nodes.forEach(ii)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Vc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:T}=u.getProps(),p=!this.targetLayout||!no(this.targetLayout,d),y=!h&&f;if(this.options.layoutRoot||this.resumeFrom||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...En(m,"layout"),onPlay:g,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,y)}else h||ii(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),X(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(wc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&so(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ni);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(si);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xc),this.nodes.forEach(mc),this.nodes.forEach(pc)):this.nodes.forEach(si),this.clearAllSnapshots();const a=W.now();O.delta=Z(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,Ae.update.process(O),Ae.preRender.process(O),Ae.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vc),this.sharedNodes.forEach(Sc)}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&&!N(this.snapshot.measuredBox.x)&&!N(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!eo(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||rt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Cc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Mc))){const{scroll:u}=this.root;u&&(gt(a.x,u.offset.x),gt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=k();if(H(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:h}=u;u!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&H(a,r),gt(a.x,c.offset.x),gt(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const l=k();H(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&yt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),rt(c.latestValues)&&yt(l,c.latestValues)}return rt(this.latestValues)&&yt(l,this.latestValues),l}removeTransform(r){const a=k();H(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!rt(u.latestValues))continue;tn(u.latestValues)&&u.updateSnapshot();const c=k(),h=u.measurePageBox();H(c,h),qs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return rt(this.latestValues)&&qs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ou(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):H(this.target,this.layout.layoutBox),kr(this.target,this.targetDelta)):H(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||tn(this.parent.latestValues)||Lr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),fe(this.relativeTargetOrigin,a,l),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===O.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Ql(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_s(this.prevProjectionDelta.x,this.projectionDelta.x),_s(this.prevProjectionDelta.y,this.projectionDelta.y)),Bt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ei(this.projectionDelta.x,this.prevProjectionDelta.x)||!ei(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vt(),this.projectionDelta=vt(),this.projectionDeltaWithTransform=vt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=vt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,T=this.getStack(),p=!T||T.members.length<=1,y=!!(g&&!p&&this.options.crossfade===!0&&!this.path.some(bc));this.animationProgress=0;let v;this.mixTargetDelta=S=>{const P=S/1e3;ri(h.x,r.x,P),ri(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fe(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ac(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&uc(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),H(v,this.relativeTarget)),g&&(this.animationValues=c,sc(c,u,this.latestValues,P,y,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(X(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{ae.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=G(0)),this.currentAnimation=Jr(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&ro(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const h=N(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=N(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}H(a,l),yt(a,c),Bt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new cc),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Be("z",r,u,this.animationValues);for(let c=0;c<Fe.length;c++)Be(`rotate${Fe[c]}`,r,u,this.animationValues),Be(`skew${Fe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=oe(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=oe(a?.pointerEvents)||""),this.hasProjected&&!rt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=hc(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Qe){if(c[m]===void 0)continue;const{correct:g,applyTo:T,isCSSVariable:p}=Qe[m],y=h==="none"?c[m]:g(c[m],u);if(T){const v=T.length;for(let S=0;S<v;S++)r[T[S]]=y}else p?this.options.visualElement.renderState.vars[m]=y:r[m]=y}this.options.layoutId&&(r.pointerEvents=u===this?oe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ni),this.root.sharedNodes.clear()}}}function mc(t){t.updateLayout()}function pc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?K(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=N(h);h.min=n[c].min,h.max=h.min+f}):ro(i,e.layoutBox,n)&&K(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=N(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const r=vt();Bt(r,n,e.layoutBox);const a=vt();o?Bt(a,t.applyTransform(s,!0),e.measuredBox):Bt(a,n,e.layoutBox);const l=!eo(r);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const d=k();fe(d,e.layoutBox,h.layoutBox);const m=k();fe(m,n,f.layoutBox),no(d,m)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function gc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vc(t){t.clearSnapshot()}function ni(t){t.clearMeasurements()}function si(t){t.isLayoutDirty=!1}function xc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ii(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Tc(t){t.resolveTargetDelta()}function Pc(t){t.calcProjection()}function wc(t){t.resetSkewAndRotation()}function Sc(t){t.removeLeadSnapshot()}function ri(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 oi(t,e,n,s){t.min=E(e.min,n.min,s),t.max=E(e.max,n.max,s)}function Ac(t,e,n,s){oi(t.x,e.x,n.x,s),oi(t.y,e.y,n.y,s)}function bc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vc={duration:.45,ease:[.4,0,.1,1]},ai=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),li=ai("applewebkit/")&&!ai("chrome/")?Math.round:U;function ui(t){t.min=li(t.min),t.max=li(t.max)}function Cc(t){ui(t.x),ui(t.y)}function ro(t,e,n){return t==="position"||t==="preserve-aspect"&&!Bu(ti(e),ti(n),.2)}function Mc(t){return t!==t.root&&t.scroll?.wasRoot}const Dc=io({attachResizeListener:(t,e)=>Kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oe={current:void 0},oo=io({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Oe.current){const t=new Dc({});t.mount(window),t.setOptions({layoutScroll:!0}),Oe.current=t}return Oe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ec={pan:{Feature:Zu},drag:{Feature:qu,ProjectionNode:oo,MeasureLayout:Zr}};function ci(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&M.postRender(()=>o(e,Gt(e)))}class Rc extends st{mount(){const{current:e}=this.node;e&&(this.unmount=qa(e,(n,s)=>(ci(this.node,s,"Start"),i=>ci(this.node,i,"End"))))}unmount(){}}class Lc extends st{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=$t(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&M.postRender(()=>o(e,Gt(e)))}class kc extends st{mount(){const{current:e}=this.node;e&&(this.unmount=tl(e,(n,s)=>(hi(this.node,s,"Start"),(i,{success:o})=>hi(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ln=new WeakMap,je=new WeakMap,Ic=t=>{const e=ln.get(t.target);e&&e(t)},Fc=t=>{t.forEach(Ic)};function Bc({root:t,...e}){const n=t||document;je.has(n)||je.set(n,{});const s=je.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Fc,{root:t,...e})),s[i]}function Oc(t,e,n){const s=Bc(e);return ln.set(t,n),s.observe(t),()=>{ln.delete(t),s.unobserve(t)}}const jc={some:0,all:1};class Nc extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:jc[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Oc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Wc(e,n))&&this.startObserver()}unmount(){}}function Wc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uc={inView:{Feature:Nc},tap:{Feature:kc},focus:{Feature:Lc},hover:{Feature:Rc}},Kc={layout:{ProjectionNode:oo,MeasureLayout:Zr}},$c={...Eu,...Uc,...Ec,...Kc},Oh=ql($c,ru),Hc=50,fi=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),zc=()=>({time:0,x:fi(),y:fi()}),Gc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function di(t,e,n,s){const i=n[e],{length:o,position:r}=Gc[e],a=i.current,l=n.time;i.current=t[`scroll${r}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ct(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>Hc?0:pn(i.current-a,u)}function _c(t,e,n){di(t,"x",e,n),di(t,"y",e,n),e.time=n}function Xc(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(Ln(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const un={start:0,center:.5,end:1};function mi(t,e,n=0){let s=0;if(t in un&&(t=un[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const Yc=[0,0];function qc(t,e,n,s){let i=Array.isArray(t)?t:Yc,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,un[t]?t:"0"]),o=mi(i[0],n,s),r=mi(i[1],e),o-r}const Zc={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Jc={x:0,y:0};function Qc(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function th(t,e,n){const{offset:s=Zc.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Xc(i,t):Jc,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Qc(i),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=s.length;for(let f=0;f<h;f++){const d=qc(s[f],u[r],l[r],a[o]);
9!c&&d!==e[o].interpolatorOffsets[f]&&(c=!0),e[o].offset[f]=d}c&&(e[o].interpolate=Sn(e[o].offset,An(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=Z(0,1,e[o].interpolate(e[o].current))}function eh(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function nh(t,e,n,s={}){return{measure:i=>{eh(t,s.target,n),_c(t,n,i),(s.offset||s.target)&&th(t,n,s)},notify:()=>e(n)}}const Et=new WeakMap,pi=new WeakMap,Ne=new WeakMap,gi=t=>t===document.scrollingElement?window:t;function ao(t,{container:e=document.scrollingElement,...n}={}){if(!e)return U;let s=Ne.get(e);s||(s=new Set,Ne.set(e,s));const i=zc(),o=nh(e,t,i,n);if(s.add(o),!Et.has(e)){const a=()=>{for(const h of s)h.measure(O.timestamp);M.preUpdate(l)},l=()=>{for(const h of s)h.notify()},u=()=>M.read(a);Et.set(e,u);const c=gi(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&pi.set(e,ul(e,u)),c.addEventListener("scroll",u,{passive:!0}),u()}const r=Et.get(e);return M.read(r,!1,!0),()=>{X(r);const a=Ne.get(e);if(!a||(a.delete(o),a.size))return;const l=Et.get(e);Et.delete(e),l&&(gi(e).removeEventListener("scroll",l),pi.get(e)?.(),window.removeEventListener("resize",l))}}const yi=new Map;function sh(t){const e={value:0},n=ao(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function lo({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const i=yi.get(e)??new Map;yi.set(e,i);const o=n.target??"self",r=i.get(o)??{},a=s+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&tr()?new ScrollTimeline({source:e,axis:s}):sh({container:e,...n})),r[a]}function ih(t,e){const n=lo(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:s=>(s.pause(),pr(i=>{s.time=s.iterationDuration*i},n))})}function rh(t){return t.length===2}function oh(t,e){return rh(t)?ao(n=>{t(n[e.axis].progress,n)},e):pr(t,lo(e))}function ah(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return U;const i={axis:e,container:n,...s};return typeof t=="function"?oh(t,i):ih(t,i)}const lh=()=>({scrollX:G(0),scrollY:G(0),scrollXProgress:G(0),scrollYProgress:G(0)}),te=t=>t?!t.current:!1;function jh({container:t,target:e,...n}={}){const s=wt(lh),i=x.useRef(null),o=x.useRef(!1),r=x.useCallback(()=>(i.current=ah((a,{x:l,y:u})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(u.current),s.scrollYProgress.set(u.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{i.current?.()}),[t,e,JSON.stringify(n.offset)]);return de(()=>{if(o.current=!1,te(t)||te(e)){o.current=!0;return}else return r()},[r]),x.useEffect(()=>{if(o.current)return Tt(!te(t)),Tt(!te(e)),r()},[r]),s}function uh(t){const e=wt(()=>G(t)),{isStatic:n}=x.useContext(ve);if(n){const[,s]=x.useState(t);x.useEffect(()=>e.on("change",s),[])}return e}function uo(t,e){const n=uh(e()),s=()=>n.set(e());return s(),de(()=>{const i=()=>M.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),X(s)}}),n}function ch(t){It.current=[],t();const e=uo(It.current,t);return It.current=void 0,e}function Nh(t,e,n,s){if(typeof t=="function")return ch(t);const i=typeof e=="function"?e:cl(e,n,s);return Array.isArray(t)?vi(t,i):vi([t],([o])=>i(o))}function vi(t,e){const n=wt(()=>[]);return uo(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function zn(t){return typeof t=="object"&&!Array.isArray(t)}function co(t,e,n,s){return typeof t=="string"&&zn(e)?ge(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function hh(t,e,n){return t*(e+1)}function xi(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function fh(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(pe(t,i),s--)}}function dh(t,e,n,s,i,o){fh(t,i,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:E(i,o,s[r]),easing:Fi(n,r)})}function mh(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function ph(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const gh="easeInOut";function yh(t,{defaultTransition:e={},...n}={},s,i){const o=e.duration||.3,r=new Map,a=new Map,l={},u=new Map;let c=0,h=0,f=0;for(let d=0;d<t.length;d++){const m=t[d];if(typeof m=="string"){u.set(m,h);continue}else if(!Array.isArray(m)){u.set(m.name,xi(h,m.at,c,u));continue}let[g,T,p={}]=m;p.at!==void 0&&(h=xi(h,p.at,c,u));let y=0;const v=(S,P,b,V=0,w=0)=>{const C=vh(S),{delay:F=0,times:B=An(C),type:ht="keyframes",repeat:ft,repeatType:we,repeatDelay:Se=0,...Gn}=P;let{ease:D=e.ease||"easeOut",duration:R}=P;const Y=typeof F=="function"?F(V,w):F,J=C.length,_t=Dn(ht)?ht:i?.[ht||"keyframes"];if(J<=2&&_t){let Vt=100;if(J===2&&Ph(C)){const Ct=C[1]-C[0];Vt=Math.abs(Ct)}const Xt={...Gn};R!==void 0&&(Xt.duration=_(R));const Yt=Xi(Xt,Vt,_t);D=Yt.ease,R=Yt.duration}R??(R=o);const _n=h+Y;B.length===1&&B[0]===0&&(B[1]=1);const Xn=B.length-C.length;if(Xn>0&&qi(B,Xn),C.length===1&&C.unshift(null),ft){R=hh(R,ft);const Vt=[...C],Xt=[...B];D=Array.isArray(D)?[...D]:[D];const Yt=[...D];for(let Ct=0;Ct<ft;Ct++){C.push(...Vt);for(let Mt=0;Mt<Vt.length;Mt++)B.push(Xt[Mt]+(Ct+1)),D.push(Mt===0?"linear":Fi(Yt,Mt-1))}mh(B,ft)}const Yn=_n+R;dh(b,C,D,B,_n,Yn),y=Math.max(Y+R,y),f=Math.max(Yn,f)};if(j(g)){const S=Ti(g,a);v(T,p,Pi("default",S))}else{const S=co(g,T,s,l),P=S.length;for(let b=0;b<P;b++){T=T,p=p;const V=S[b],w=Ti(V,a);for(const C in T)v(T[C],xh(p,C),Pi(C,w),b,P)}}c=h,h+=y}return a.forEach((d,m)=>{for(const g in d){const T=d[g];T.sort(ph);const p=[],y=[],v=[];for(let P=0;P<T.length;P++){const{at:b,value:V,easing:w}=T[P];p.push(V),y.push(ct(0,f,b)),v.push(w||"easeOut")}y[0]!==0&&(y.unshift(0),p.unshift(p[0]),v.unshift(gh)),y[y.length-1]!==1&&(y.push(1),p.push(null)),r.has(m)||r.set(m,{keyframes:{},transition:{}});const S=r.get(m);S.keyframes[g]=p,S.transition[g]={...e,duration:f,ease:v,times:y,...n}}}),r}function Ti(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Pi(t,e){return e[t]||(e[t]=[]),e[t]}function vh(t){return Array.isArray(t)?t:[t]}function xh(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Th=t=>typeof t=="number",Ph=t=>t.every(Th);function wh(t,e){return t in e}class Sh extends Br{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(wh(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return k()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Ah(t){const e={presenceContext:null,props:{}
9,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ye(t)&&!gr(t)?new Ur(e):new Nr(e);n.mount(t),Ut.set(t,n)}function bh(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Sh(e);n.mount(t),Ut.set(t,n)}function Vh(t,e){return j(t)||typeof t=="number"||typeof t=="string"&&!zn(e)}function ho(t,e,n,s){const i=[];if(Vh(t,e))i.push(Jr(t,zn(e)&&e.default||e,n&&(n.default||n)));else{const o=co(t,e,s),r=o.length;for(let a=0;a<r;a++){const l=o[a],u=l instanceof Element?Ah:bh;Ut.has(l)||u(l);const c=Ut.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,r)),i.push(...Hn(c,{...e,transition:h},{}))}}return i}function Ch(t,e,n){const s=[];return yh(t,e,n,{spring:Nt}).forEach(({keyframes:o,transition:r},a)=>{s.push(...ho(a,o,r))}),s}function Mh(t){return Array.isArray(t)&&t.some(Array.isArray)}function Dh(t){function e(n,s,i){let o=[],r;if(Mh(n))o=Ch(n,s,t);else{const{onComplete:l,...u}=i||{};typeof l=="function"&&(r=l),o=ho(n,s,u,t)}const a=new Ia(o);return r&&a.finished.then(r),a}return e}const Wh=Dh(),Eh={some:0,all:1};function Rh(t,e,{root:n,margin:s,amount:i="some"}={}){const o=ge(t),r=new WeakMap,a=u=>{u.forEach(c=>{const h=r.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){const f=e(c.target,c);typeof f=="function"?r.set(c.target,f):l.unobserve(c.target)}else typeof h=="function"&&(h(c),r.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Eh[i]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function Uh(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=x.useState(o);return x.useEffect(()=>{if(!t.current||i&&r)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:s};return Rh(t.current,l,u)},[e,t,n,i,s]),r}export{Fh as A,Nh as a,Uh as b,Wh as c,Oh as m,jh as u};
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.