PageSourceSearch

https://anpg.co.ao/assets/motion-vendor-DMc3mo8t.js

js anpg.co.ao collected 2026-10-02 16:44:00 UTC 130,802 bytes, 10 lines download raw bytes

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