1import{A as kr,E as Rr,bG as Lr,bH as Br,ay as Or,aA as te,bI as Ir,aG as Fr,am as jr,F as Tt,b3 as si,bJ as Ur,bK as Nr,a0 as Ce,L as Ee,bc as _r,bb as Pn,bd as Wr,p as Kr,g as et,i as yt,f as vt,a as xt,e as Gr,u as Dt}from"./Lom89hzz.js";import"./DXDlaDfM.js";import{E as zr}from"./BYSMws2u.js";import{p as ce,i as Sn,s as Hr}from"./Bt5cOvL3.js";import{s as Xr}from"./-vGlUG_V.js";import{c as Yr}from"./BtRGeXpy.js";import{e as An}from"./DYfkqc0O.js";import{a as Vn}from"./CoPNdolm.js";import{x as $r}from"./56LQ7HWq.js";const qr=()=>performance.now(),nt={tick:e=>requestAnimationFrame(e),now:()=>qr(),tasks:new Set};function ii(){const e=nt.now();nt.tasks.forEach(t=>{t.c(e)||(nt.tasks.delete(t),t.f())}),nt.tasks.size!==0&&nt.tick(ii)}function Zr(e){let t;return nt.tasks.size===0&&nt.tick(ii),{promise:new Promise(n=>{nt.tasks.add(t={c:e,f:n})}),abort(){nt.tasks.delete(t)}}}function Xt(e,t){si(()=>{e.dispatchEvent(new CustomEvent(t))})}function Jr(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function Cn(e){const t={},n=e.split(";");for(const s of n){const[i,o]=s.split(":");if(!i||o===void 0)break;const r=Jr(i.trim());t[r]=o.trim()}return t}const Qr=e=>e;function En(e,t,n,s){var i=(e&Ur)!==0,o=(e&Nr)!==0,r=i&&o,a=(e&Ir)!==0,l=r?"both":i?"in":"out",c,u=t.inert,h=t.style.overflow,f,d;function g(){return si(()=>c??=n()(t,s?.()??{},{direction:l}))}var y={is_global:a,in(){if(t.inert=u,!i){d?.abort(),d?.reset?.();return}o||f?.abort(),f=Me(t,g(),d,1,()=>{Xt(t,"introstart")},()=>{Xt(t,"introend"),f?.abort(),f=c=void 0,t.style.overflow=h})},out(T){if(!o){T?.(),c=void 0;return}t.inert=!0,d=Me(t,g(),f,0,()=>{Xt(t,"outrostart")},()=>{Xt(t,"outroend"),T?.()})},stop:()=>{f?.abort(),d?.abort()}},m=kr;if((m.nodes.t??=[]).push(y),i&&$r){var v=a;if(!v){for(var w=m.parent;w&&(w.f&Rr)!==0;)for(;(w=w.parent)&&(w.f&Lr)===0;);v=!w||(w.f&Br)!==0}v&&Or(()=>{te(()=>y.in())})}}function Me(e,t,n,s,i,o){var r=s===1;if(Fr(t)){var a,l=!1;return jr(()=>{if(!l){var v=t({direction:r?"in":"out"});a=Me(e,v,n,s,i,o)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),o(),{abort:Tt,deactivate:Tt,reset:Tt,t:()=>s};const{delay:c=0,css:u,tick:h,easing:f=Qr}=t;var d=[];if(r&&n===void 0&&(h&&h(0,1),u)){var g=Cn(u(0,1));d.push(g,g)}var y=()=>1-s,m=e.animate(d,{duration:c,fill:"forwards"});return m.onfinish=()=>{m.cancel(),i();var v=n?.t()??1-s;n?.abort();var w=s-v,T=t.duration*Math.abs(w),S=[];if(T>0){var b=!1;if(u)for(var k=Math.ceil(T/16.666666666666668),O=0;O<=k;O+=1){var P=v+w*f(O/k),I=Cn(u(P,1-P));S.push(I),b||=I.overflow==="hidden"}b&&(e.style.overflow="hidden"),y=()=>{var x=m.currentTime;return v+w*f(x/T)},h&&Zr(()=>{if(m.playState!=="running")return!1;var x=y();return h(x,1-x),!0})}m=e.animate(S,{duration:T,fill:"forwards"}),m.onfinish=()=>{y=()=>s,h?.(s,1-s),o()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=Tt)},deactivate:()=>{o=Tt},reset:()=>{s===0&&h?.(1,0)},t:()=>y()}}function Ze(e,t){e.indexOf(t)===-1&&e.push(t)}function Je(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Z=(e,t,n)=>n>t?t:n<e?e:n;let Qe=()=>{};const lt={},ri=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function oi(e){return typeof e=="object"&&e!==null}const ai=e=>/^0[^.\s]+$/u.test(e);function li(e){let t;return()=>(t===void 0&&(t=e()),t)}const _=e=>e,to=(e,t)=>n=>t(e(n)),Wt=(...e)=>e.reduce(to),Ut=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class tn{constructor(){this.subscriptions=[]}add(t){return Ze(this.subscriptions,t),()=>Je(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const H=e=>e*1e3,G=e=>e/1e3;function ui(e,t){return t?e*(1e3/t):0}const ci=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eo=1e-7,no=12;function so(e,t,n,s,i){let o,r,a=0;do r=t+(n-t)/2,o=ci(r,s,i)-e,o>0?n=r:t=r;
vendor: 27,278 bytes, line 1
1while(Math.abs(o)>eo&&++a<no);return r}function Kt(e,t,n,s){if(e===t&&n===s)return _;const i=o=>so(o,0,1,e,n);return o=>o===0||o===1?o:ci(i(o),t,s)}const hi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fi=e=>t=>1-e(1-t),di=Kt(.33,1.53,.69,.99),en=fi(di),mi=hi(en),pi=e=>e>=1?1:(e*=2)<1?.5*en(e):.5*(2-Math.pow(2,-10*(e-1))),nn=e=>1-Math.sin(Math.acos(e)),gi=fi(nn),yi=hi(nn),io=Kt(.42,0,1,1),ro=Kt(0,0,.58,1),vi=Kt(.42,0,.58,1),oo=e=>Array.isArray(e)&&typeof e[0]!="number",xi=e=>Array.isArray(e)&&typeof e[0]=="number",ao={linear:_,easeIn:io,easeInOut:vi,easeOut:ro,circIn:nn,circInOut:yi,circOut:gi,backIn:en,backInOut:mi,backOut:di,anticipate:pi},lo=e=>typeof e=="string",Mn=e=>{if(xi(e)){Qe(e.length===4);const[t,n,s,i]=e;return Kt(t,n,s,i)}else if(lo(e))return ao[e];return e},Yt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uo(e,t){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const g=f&&i?n:s;return h&&r.add(u),g.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const co=40;function Ti(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Yt.reduce((T,S)=>(T[S]=uo(o),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:g}=r,y=()=>{const T=lt.useManualTiming,S=T?i.timestamp:performance.now();n=!1,T||(i.delta=s?1e3/60:Math.max(Math.min(S-i.timestamp,co),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),g.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},m=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:Yt.reduce((T,S)=>{const b=r[S];return T[S]=(k,O=!1,P=!1)=>(n||m(),b.schedule(k,O,P)),T},{}),cancel:T=>{for(let S=0;S<Yt.length;S++)r[Yt[S]].cancel(T)},state:i,steps:r}}const{schedule:A,cancel:st,state:U,steps:he}=Ti(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let Jt;function ho(){Jt=void 0}const N={now:()=>(Jt===void 0&&N.set(U.isProcessing||lt.useManualTiming?U.timestamp:performance.now()),Jt),set:e=>{Jt=e,queueMicrotask(ho)}},bi=e=>t=>typeof t=="string"&&t.startsWith(e),ue=bi("--"),fo=bi("var(--"),sn=e=>fo(e)?mo.test(e.split("/*")[0].trim()):!1,mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Vt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nt={...Vt,transform:e=>Z(0,1,e)},$t={...Vt,default:1},Bt=e=>Math.round(e*1e5)/1e5,rn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function po(e){return e==null}const go=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,on=(e,t)=>n=>!!(typeof n=="string"&&go.test(n)&&n.startsWith(e)||t&&!po(n)&&Object.prototype.hasOwnProperty.call(n,t)),wi=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(rn);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},yo=e=>Z(0,255,e),fe={...Vt,transform:e=>Math.round(yo(e))},ht={test:on("rgb","red"),parse:wi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+fe.transform(e)+", "+fe.transform(t)+", "+fe.transform(n)+", "+Bt(Nt.transform(s))+")"};function vo(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const De={test:on("#"),parse:vo,transform:ht.transform},Gt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ot=Gt("deg"),q=Gt("%"),p=Gt("px"),xo=Gt("vh"),To=Gt("vw"),kn={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},bt={test:on("hsl","hue"),parse:wi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+q.transform(Bt(t))+", "+q.transform(Bt(n))+", "+Bt(Nt.transform(s))+")"},L={test:e=>ht.test(e)||De.test(e)||bt.test(e),parse:e=>ht.test(e)?ht.parse(e):bt.test(e)?bt.parse(e):De.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ht.transform(e):bt.transform(e),getAnimatableNone:e=>{const t=L.parse(e);return t.alpha=0,L.transform(t)}},bo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wo(e){return isNaN(e)&&typeof e=="string"&&(e.match(rn)?.length||0)+(e.match(bo)?.length||0)>0}const Pi="number",Si="color",Po="var",So="var(",Rn="${}",Ao=/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 St(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Ao,l=>(L.test(l)?(s.color.push(o),i.push(Si),n.push(L.parse(l))):l.startsWith(So)?(s.var.push(o),i.push(Po),n.push(l)):(s.number.push(o),i.push(Pi),n.push(parseFloat(l))),++o,Rn)).split(Rn);return{values:n,split:a,indexes:s,types:i}}function Vo(e){return St(e).values}function Ai({split:e,types:t}){const n=e.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],s[o]!==void 0){const r=t[o];r===Pi?i+=Bt(s[o]):r===Si?i+=L.transform(s[o]):i+=s[o]}return i}}function Co(e){return Ai(St(e))}const Eo=e=>typeof e=="number"?0:L.test(e)?L.getAnimatableNone(e):e,Mo=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Eo(e);function Do(e){const t=St(e);return Ai(t)(t.values.map((s,i)=>Mo(s,t.split[i])))}const X={test:wo,parse:Vo,createTransformer:Co,getAnimatableNone:Do};function de(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ko({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,o=0,r=0;if(!t)i=o=r=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=de(l,a,e+1/3),o=de(l,a,e),r=de(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ee(e,t){return n=>n>0?t:e}const C=(e,t,n)=>e+(t-e)*n,me=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Ro=[De,ht,bt],Lo=e=>Ro.find(t=>t.test(e));function Ln(e){const t=Lo(e);if(!t)return!1;let n=t.parse(e);return t===bt&&(n=ko(n)),n}const Bn=(e,t)=>{const n=Ln(e),s=Ln(t);if(!n||!s)return ee(e,t);const i={...n};return o=>(i.red=me(n.red,s.red,o),i.green=me(n.green,s.green,o),i.blue=me(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),ht.transform(i))},ke=new Set(["none","hidden"]);function Bo(e,t){return ke.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Oo(e,t){return n=>C(e,t,n)}function an(e){return typeof e=="number"?Oo:typeof e=="string"?sn(e)?ee:L.test(e)?Bn:jo:Array.isArray(e)?Vi:typeof e=="object"?L.test(e)?Bn:Io:ee}function Vi(e,t){const n=[...e],s=n.length,i=e.map((o,r)=>an(o)(o,t[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Io(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=an(e[i])(e[i],t[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Fo(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],r=e.indexes[o][s[o]],a=e.values[r]??0;n[i]=a,s[o]++}return n}const jo=(e,t)=>{const n=X.createTransformer(t),s=St(e),i=St(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ke.has(e)&&!i.values.length||ke.has(t)&&!s.values.length?Bo(e,t):Wt(Vi(Fo(s,i),i.values),n):ee(e,t)};function Ci(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?C(e,t,n):an(e)(e,t)}const Uo=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>A.update(t,n),stop:()=>st(t),now:()=>U.isProcessing?U.timestamp:N.now()}},Ei=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)s+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ne=2e4;function ln(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ne;)t+=n,s=e.next(t);return t>=ne?1/0:t}function No(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(ln(s),ne);return{type:"keyframes",ease:o=>s.next(i*o).value/t,duration:G(i)}}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Re(e,t){return e*Math.sqrt(1-t*t)}const _o=12;function Wo(e,t,n){let s=n;for(let i=1;i<_o;i++)s=s-e(s)/t(s);return s}const pe=.001;function Ko({duration:e=M.duration,bounce:t=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,o,r=1-t;r=Z(M.minDamping,M.maxDamping,r),e=Z(M.minDuration,M.maxDuration,G(e)),r<1?(i=c=>{const u=c*r,h=u*e,f=u-n,d=Re(c,r),g=Math.exp(-h);return pe-f/d*g},o=c=>{const h=c*r*e,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*e,g=Math.exp(-h),y=Re(Math.pow(c,2),r);return(-i(c)+pe>0?-1:1)*((f-d)*g)/y}):(i=c=>{const u=Math.exp(-c*e),h=(c-n)*e+1;return-pe+u*h},o=c=>{const u=Math.exp(-c*e),h=(n-c)*(e*e);return u*h});const a=5/e,l=Wo(i,o,a);if(e=H(e),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:e};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:e}}}const Go=["duration","bounce"],zo=["stiffness","damping","mass"];function On(e,t){return t.some(n=>e[n]!==void 0)}function Ho(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!On(e,zo)&&On(e,Go))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Z(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:M.mass,stiffness:i,damping:o}}else{const n=Ko({...e,velocity:0});t={...t,...n,mass:M.mass},t.isResolvedFromDuration=!0}return t}function se(e=M.visualDuration,t=M.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;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:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Ho({...n,velocity:-G(n.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(l*u)),m=r-o,v=G(Math.sqrt(l/u)),w=Math.abs(m)<5;s||(s=w?M.restSpeed.granular:M.restSpeed.default),i||(i=w?M.restDelta.granular:M.restDelta.default);let T,S,b,k,O,P;if(y<1)b=Re(v,y),k=(g+y*v*m)/b,T=x=>{const B=Math.exp(-y*v*x);return r-B*(k*Math.sin(b*x)+m*Math.cos(b*x))},O=y*v*k+m*b,P=y*v*m-k*b,S=x=>Math.exp(-y*v*x)*(O*Math.sin(b*x)+P*Math.cos(b*x));else if(y===1){T=B=>r-Math.exp(-v*B)*(m+(g+v*m)*B);const x=g+v*m;S=B=>Math.exp(-v*B)*(v*x*B-g)}else{const x=v*Math.sqrt(y*y-1);T=Y=>{const rt=Math.exp(-y*v*Y),J=Math.min(x*Y,300);return r-rt*((g+y*v*m)*Math.sinh(J)+x*m*Math.cosh(J))/x};const B=(g+y*v*m)/x,W=y*v*B-m*x,ut=y*v*m-B*x;S=Y=>{const rt=Math.exp(-y*v*Y),J=Math.min(x*Y,300);return rt*(W*Math.sinh(J)+ut*Math.cosh(J))}}const I={calculatedDuration:d&&h||null,velocity:x=>H(S(x)),next:x=>{if(!d&&y<1){const W=Math.exp(-y*v*x),ut=Math.sin(b*x),Y=Math.cos(b*x),rt=r-W*(k*ut+m*Y),J=H(W*(O*ut+P*Y));return a.done=Math.abs(J)<=s&&Math.abs(r-rt)<=i,a.value=a.done?r:rt,a}const B=T(x);if(d)a.done=x>=h;else{const W=H(S(x));a.done=Math.abs(W)<=s&&Math.abs(r-B)<=i}return a.value=a.done?r:B,a},toString:()=>{const x=Math.min(ln(I),ne),B=Ei(W=>I.next(x*W).value,x,30);return x+"ms "+B},toTransition:()=>{}};return I}se.applyToOptions=e=>{const t=No(e,100,se);return e.ease=t.ease,e.duration=H(t.duration),e.type="keyframes",e};const Xo=5;function Mi(e,t,n){const s=Math.max(t-Xo,0);return ui(n-e(s),t-s)}function Le({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=e[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,g=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*t;const m=h+y,v=r===void 0?m:r(m);v!==m&&(y=v-h);const w=P=>-y*Math.exp(-P/s),T=P=>v+w(P),S=P=>{const I=w(P),x=T(P);f.done=Math.abs(I)<=c,f.value=f.done?v:x};let b,k;const O=P=>{d(f.value)&&(b=P,k=se({keyframes:[f.value,g(f.value)],velocity:Mi(T,P,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return O(0),{calculatedDuration:null,next:P=>{let I=!1;return!k&&b===void 0&&(I=!0,S(P),O(P)),b!==void 0&&P>=b?k.next(P-b):(!I&&S(P),f)}}}function Yo(e,t,n){const s=[],i=n||lt.mix||Ci,o=e.length-1;for(let r=0;r<o;r++){let a=i(e[r],e[r+1]);if(t){const l=Array.isArray(t)?t[r]||_:t;a=Wt(l,a)}s.push(a)}return s}function $o(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const o=e.length;if(Qe(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Yo(t,s,i),l=a.length,c=u=>{if(r&&u<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const f=Ut(e[h],e[h+1],u);return a[h](f)};return n?u=>c(Z(e[0],e[o-1],u)):c}function qo(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=Ut(0,t,s);e.push(C(n,1,i))}}function Zo(e){const t=[0];return qo(t,e.length-1),t}function Jo(e,t){return e.map(n=>n*t)}function Qo(e,t){return e.map(()=>t||vi).splice(0,e.length-1)}function Ot({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=oo(s)?s.map(Mn):Mn(s),o={done:!1,value:t[0]},r=Jo(n&&n.length===t.length?n:Zo(t),e),a=$o(r,t,{ease:Array.isArray(i)?i:Qo(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ta=e=>e!==null;function un(e,{repeat:t,repeatType:n="loop"},s,i=1){const o=e.filter(ta),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ea={decay:Le,inertia:Le,tween:Ot,keyframes:Ot,spring:se};function Di(e){typeof e.type=="string"&&(e.type=ea[e.type])}class cn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const na=e=>e/100;class ie extends cn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Di(t);const{type:n=Ot,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=t;let{keyframes:a}=t;const l=n||Ot;l!==Ot&&typeof a[0]!="number"&&(this.mixKeyframes=Wt(na,Ci(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=ln(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:g,onUpdate:y,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,S=s;if(h){const P=Math.min(this.currentTime,i)/a;let I=Math.floor(P),x=P%1;!x&&P>=1&&(x=1),x===1&&I--,I=Math.min(I,h+1),I%2&&(f==="reverse"?(x=1-x,d&&(x-=d/a)):f==="mirror"&&(S=r)),T=Z(0,1,x)*a}let b;w?(this.delayState.value=u[0],b=this.delayState):b=S.next(T),o&&!w&&(b.value=o(b.value));let{done:k}=b;!w&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return O&&g!==Le&&(b.value=un(u,this.options,m,this.speed)),y&&y(b.value),O&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return G(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+G(t)}get time(){return G(this.currentTime)}set time(t){t=H(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Mi(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=G(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Uo,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function sa(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ft=e=>e*180/Math.PI,Be=e=>{const t=ft(Math.atan2(e[1],e[0]));return Oe(t)},ia={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Be,rotateZ:Be,skewX:e=>ft(Math.atan(e[1])),skewY:e=>ft(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Oe=e=>(e=e%360,e<0&&(e+=360),e),In=Be,Fn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),jn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ra={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fn,scaleY:jn,scale:e=>(Fn(e)+jn(e))/2,rotateX:e=>Oe(ft(Math.atan2(e[6],e[5]))),rotateY:e=>Oe(ft(Math.atan2(-e[2],e[0]))),rotateZ:In,rotate:In,skewX:e=>ft(Math.atan(e[4])),skewY:e=>ft(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ie(e){return e.includes("scale")?1:0}function Fe(e,t){if(!e||e==="none")return Ie(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ra,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ia,i=a}if(!i)return Ie(t);const o=s[t],r=i[1].split(",").map(aa);return typeof o=="function"?o(r):r[o]}const oa=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fe(n,t)};function aa(e){return parseFloat(e.trim())}const Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set(Ct),Un=e=>e===Vt||e===p,la=new Set(["x","y","z"]),ua=Ct.filter(e=>!la.has(e));function ca(e){const t=[];return ua.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const at={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Fe(t,"x"),y:(e,{transform:t})=>Fe(t,"y")};at.translateX=at.x;at.translateY=at.y;const mt=new Set;let je=!1,Ue=!1,Ne=!1;function ki(){if(Ue){const e=Array.from(mt).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=ca(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ue=!1,je=!1,mt.forEach(e=>e.complete(Ne)),mt.clear()}function Ri(){mt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ue=!0)})}function ha(){Ne=!0,Ri(),ki(),Ne=!1}class hn{constructor(t,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),je||(je=!0,A.read(Ri),A.resolveKeyframes(ki))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const o=i?.get(),r=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=r),i&&o===void 0&&i.set(t[0])}sa(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),mt.delete(this)}cancel(){this.state==="scheduled"&&(mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fa=e=>e.startsWith("--");function Li(e,t,n){fa(t)?e.style.setProperty(t,n):e.style[t]=n}const da={};function Bi(e,t){const n=li(e);return()=>da[t]??n()}const ma=Bi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Oi=Bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rt=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Nn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rt([0,.65,.55,1]),circOut:Rt([.55,0,1,.45]),backIn:Rt([.31,.01,.66,-.59]),backOut:Rt([.33,1.53,.69,.99])};function Ii(e,t){if(e)return typeof e=="function"?Oi()?Ei(e,t):"ease-out":xi(e)?Rt(e):Array.isArray(e)?e.map(n=>Ii(n,t)||Nn.easeOut):Nn[e]}function pa(e,t,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const h=Ii(a,i);Array.isArray(h)&&(u.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 c&&(f.pseudoElement=c),e.animate(u,f)}function Fi(e){return typeof e=="function"&&"applyToOptions"in e}function ga({type:e,...t}){return Fi(e)&&Oi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ya extends cn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=t,Qe(typeof t.type!="string");const c=ga(t);this.animation=pa(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=un(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Li(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return G(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+G(t)}get time(){return G(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ma()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),_):i(this)}}const ji={anticipate:pi,backInOut:mi,circInOut:yi};function va(e){return e in ji}function xa(e){typeof e.ease=="string"&&va(e.ease)&&(e.ease=ji[e.ease])}const ge=10;class Ta extends ya{constructor(t){xa(t),Di(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ie({...r,autoplay:!1}),l=Math.max(ge,N.now()-this.startTime),c=Z(0,ge,l-ge),u=a.sample(l).value,{name:h}=this.options;o&&h&&Li(o,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const _n=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(X.test(e)||e==="0")&&!e.startsWith("url("));function ba(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function wa(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],r=_n(i,t),a=_n(o,t);return!r||!a?!1:ba(e)||(n==="spring"||Fi(n))&&s}function _e(e){e.duration=0,e.type="keyframes"}const Pa=new Set(["opacity","clipPath","filter","transform"]),Sa=/^(?:
vendor: 8,160 bytes, line 1
1oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Aa(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Sa.test(e[t]))return!0;return!1}const Va=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ca=li(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ea(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ca()&&n&&(Pa.has(n)||Va.has(n)&&Aa(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Ma=40;class Da extends cn{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();const f={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},d=u?.KeyframeResolver||hn;this.keyframeResolver=new d(a,(g,y,m)=>this.onKeyframesResolved(g,y,f,!m),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=N.now();let h=!0;wa(t,o,r,a)||(h=!1,(lt.instantAnimations||!l)&&u?.(un(t,s,n)),t[0]=t[t.length-1],_e(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ma?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},g=h&&!c&&Ea(d),y=d.motionValue?.owner?.current;let m;if(g)try{m=new Ta({...d,element:y})}catch{m=new ie(d)}else m=new ie(d);m.finished.then(()=>{this.notifyFinished()}).catch(_),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ha()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ka=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ra(e){const t=ka.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Ui(e,t,n=1){const[s,i]=Ra(e);if(!s)return;const o=window.getComputedStyle(t).getPropertyValue(s);if(o){const r=o.trim();return ri(r)?parseFloat(r):r}return sn(i)?Ui(i,t,n+1):i}function La(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function fn(e,t){const n=e?.[t]??e?.default??e;return n!==e?La(n,e):n}const Ni=new Set(["width","height","top","left","right","bottom",...Ct]),Wn=30,Ba=e=>!isNaN(parseFloat(e));class Oa{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=N.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ba(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new tn);const s=this.events[t].add(n);return t==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wn);return ui(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(e,t){return new Oa(e,t)}const j=e=>!!(e&&e.getVelocity),Ia={test:e=>e==="auto",parse:e=>e},_i=e=>t=>t.test(e),Wi=[Vt,p,q,ot,To,xo,Ia],Kn=e=>Wi.find(_i(e));function Fa(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ai(e):!0}const ja=new Set(["brightness","contrast","saturate","opacity"]);function Ua(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(rn)||[];if(!s)return e;const i=n.replace(s,"");let o=ja.has(t)?1:0;return s!==n&&(o*=100),t+"("+o+i+")"}const Na=/\b([a-z-]*)\(.*?\)/gu,We={...X,getAnimatableNone:e=>{const t=e.match(Na);return t?t.map(Ua).join(" "):e}},Ke={...X,getAnimatableNone:e=>{const t=X.parse(e);return X.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Gn={...Vt,transform:Math.round},_a={rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scale:$t,scaleX:$t,scaleY:$t,scaleZ:$t,skew:ot,skewX:ot,skewY:ot,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:Nt,originX:kn,originY:kn,originZ:p},dn={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,inset:p,insetBlock:p,insetBlockStart:p,insetBlockEnd:p,insetInline:p,insetInlineStart:p,insetInlineEnd:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,paddingBlock:p,paddingBlockStart:p,paddingBlockEnd:p,paddingInline:p,paddingInlineStart:p,paddingInlineEnd:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,marginBlock:p,marginBlockStart:p,marginBlockEnd:p,marginInline:p,marginInlineStart:p,marginInlineEnd:p,fontSize:p,backgroundPositionX:p,backgroundPositionY:p,..._a,zIndex:Gn,fillOpacity:Nt,strokeOpacity:Nt,numOctaves:Gn},Wa={...dn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:We,WebkitFilter:We,mask:Ke,WebkitMask:Ke},Ki=e=>Wa[e],Ka=new Set([We,Ke]);function Gi(e,t){let n=Ki(e);return Ka.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,699 bytes, line 1
1const Ga=new Set(["auto","none","0"]);function za(e,t,n){let s=0,i;for(;s<e.length&&!i;){const o=e[s];typeof o=="string"&&!Ga.has(o)&&St(o).values.length&&(i=e[s]),s++}if(i&&n)for(const o of t)e[o]=Gi(n,i)}class Ha extends hn{constructor(t,n,s,i,o){super(t,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),sn(h))){const f=Ui(h,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ni.has(s)||t.length!==2)return;const[i,o]=t,r=Kn(i),a=Kn(o),l=Dn(i),c=Dn(o);if(l!==c&&at[s]){this.needsMeasurement=!0;return}if(r!==a)if(Un(r)&&Un(a))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else at[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Fa(t[i]))&&s.push(i);s.length&&za(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=at[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=at[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function zi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Hi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Xa(e){return oi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Xi}=Ti(queueMicrotask,!1),Ya={y:!1};function $a(){return Ya.y}function Yi(e,t){const n=zi(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function qa(e){return!(e.pointerType==="touch"||$a())}function Za(e,t,n={}){const[s,i,o]=Yi(e,n);return s.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",g)},h=m=>{c&&(c(m),c=void 0),u()},f=m=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(m))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},g=m=>{if(m.pointerType!=="touch"){if(a){l=!0;return}h(m)}},y=m=>{if(!qa(m))return;l=!1;const v=t(r,m);typeof v=="function"&&(c=v,r.addEventListener("pointerleave",g,i))};r.addEventListener("pointerenter",y,i),r.addEventListener("pointerdown",d,i)}),o}const $i=(e,t)=>t?e===t?!0:$i(e,t.parentElement):!1,Ja=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Qa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tl(e){return Qa.has(e.tagName)||e.isContentEditable===!0}const Qt=new WeakSet;function zn(e){return t=>{t.key==="Enter"&&e(t)}}function ye(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const el=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=zn(()=>{if(Qt.has(n))return;ye(n,"down");const i=zn(()=>{ye(n,"up")}),o=()=>ye(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Hn(e){return Ja(e)&&!0}const Xn=new WeakSet;function nl(e,t,n={}){const[s,i,o]=Yi(e,n),r=a=>{const l=a.currentTarget;if(!Hn(a)||Xn.has(a))return;Qt.add(l),n.stopPropagation&&Xn.add(a);const c=t(l,a),u=(d,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Qt.has(l)&&Qt.delete(l),Hn(d)&&typeof c=="function"&&c(d,{success:g})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||$i(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Xa(a)&&(a.addEventListener("focus",c=>el(c,i)),!tl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function qi(e){return oi(e)&&"ownerSVGElement"in e}function sl(e){return qi(e)&&e.tagName==="svg"}const il=[...Wi,L,X],rl=e=>il.find(_i(e)),ol={some:0,all:1};function al(e,t,{root:n,margin:s,amount:i="some"}={}){const o=zi(e),r=new WeakMap,a=c=>{c.forEach(u=>{const h=r.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const f=t(u.target,u);typeof f=="function"?r.set(u.target,f):l.unobserve(u.target)}else typeof h=="function"&&(h(u),r.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:ol[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}const Yn=(e,t)=>Math.abs(e-t);function ll(e,t){const n=Yn(e.x,t.x),s=Yn(e.y,t.y);return Math.sqrt(n**2+s**2)}function ul(e,t){const n=N.now(),s=({timestamp:i})=>{const o=i-n;o>=t&&(st(s),e(o-t))};return A.setup(s,!0),()=>st(s)}const _t={};function cl(e){for(const t in e)_t[t]=e[t],ue(t)&&(_t[t].isCSSVariable=!0)}function hl(e,t){switch(e){case"post":Ee(t);break;case"pre":Ce(t);break}}function Zi(e,t,n,s={}){const{lazy:i=!1}=s;let o=!i,r=Array.isArray(e)?[]:void 0;hl(t,()=>{const a=Array.isArray(e)?e.map(c=>c()):e();if(!o){o=!0,r=a;return}const l=te(()=>n(a,r));return r=a,l})}function mn(e,t,n){Zi(e,"post",t,n)}function fl(e,t,n){Zi(e,"pre",t,n)}mn.pre=fl;class pt{#e;#t;#n;constructor(t,n){this.#e=t,this.#t=Symbol(t),this.#n=n}get key(){return this.#t}exists(){return _r(this.#t)}get(){const t=Pn(this.#t);if(t===void 0)throw new Error(`Context "${this.#e}" not found`);return t}getOr(t){const n=Pn(this.#t);return n===void 0?t??this.#n:n}set(t){return Wr(this.#t,t)}}const $n=e=>typeof e<"u";function dl(e){return Object.entries(e).filter(([,t])=>t!==void 0).map(([t,n])=>{const i=typeof n=="number"&&!["opacity","zIndex","fontWeight","lineHeight","order","flexGrow","flexShrink"].includes(t)?`${n}px`:n;return`${t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}:${i}`}).join(";")}function ml(e,t,n){return Object.defineProperties({},{...Object.getOwnPropertyDescriptors(e),[t]:{value:n,writable:!0,enumerable:!0,configurable:!0}})}function qn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}class it{state;constructor(t){this.state=t}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}class pl{features=[];constructor(t){const{features:n=[],lazyMotionContext:s}=t.options,i=n.concat(s.features());this.features=i.map(r=>new r(t));const o=this.features;mn.pre(()=>s.features(),r=>{r.forEach(a=>{if(!i.includes(a)){i.push(a);const l=new a(t);o.push(l),t.isMounted()&&(l.beforeMount(),l.mount())}})},{lazy:!0})}
1mount(){this.features.forEach(t=>t.mount())}beforeMount(){this.features.forEach(t=>t.beforeMount?.())}unmount(){this.features.forEach(t=>t.unmount())}update(){this.features.forEach(t=>t.update?.())}beforeUpdate(){this.features.forEach(t=>t.beforeUpdate())}beforeUnmount(){this.features.forEach(t=>t.beforeUnmount())}}function dt(e,t,n){if(Array.isArray(e))return e.reduce((s,i)=>{const o=dt(i,t,n);return o?{...s,...o}:s},{});if(typeof e=="object")return e;if(e&&t){const s=t[e];return typeof s=="function"?s(n):s}}function gl(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!yl(e,t):e!==t}function yl(e,t){const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Zn(e){return e?.startsWith("--")}const vl=e=>e;function xl(e){return typeof e=="number"}const Tl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],bl=new Set(Tl);function Ji(e){return bl.has(e)}const Jn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>`${e}deg`},wl={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>`${e}px`},rotate:Jn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:vl},skew:Jn},Pl=["translate","scale","rotate","skew"],Sl=["","X","Y","Z"],pn=new Map,re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Pl.forEach(e=>{Sl.forEach(t=>{re.push(e+t),pn.set(e+t,wl[e])})});const Al=new Set(re),Vl=e=>Al.has(e),Qn={x:"translateX",y:"translateY",z:"translateZ"};function Cl([e],[t]){return re.indexOf(e)-re.indexOf(t)}function El(e,[t,n]){return`${e} ${t}(${n})`}function Ml(e){return e.sort(Cl).reduce(El,"").trim()}const ts={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Dl={get:(e,t)=>{let n=Zn(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!=="0"){const s=pn.get(t);s&&(n=s.initialValue)}return n},set:(e,t,n)=>{Zn(t)?e.style.setProperty(t,n):e.style[t]=n}};function kl(e){const t={},n=[];for(let s in e){let i=e[s];i=j(i)?i.get():i,Vl(s)&&s in Qn&&(s=Qn[s]);let o=Array.isArray(i)?i[0]:i;const r=pn.get(s);r?(o=xl(i)?r.toDefaultUnit?.(i):i,n.push([s,o])):t[s]=o}return n.length&&(t.transform=Ml(n)),Object.keys(t).length===0?null:t}const Rl={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Ll(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Bl(e,t,n=1,s=0){e.pathLength=1,delete e["path-length"],e["stroke-dashoffset"]=p.transform(-s);const i=p.transform(t),o=p.transform(n);e["stroke-dasharray"]=`${i} ${o}`}function Ol(e){const t={},n={};for(const s in e){const i=Ll(s);if(i in Rl){const o=e[s];t[i]=j(o)?o.get():o}else n[s]=e[s]}return t["path-length"]!==void 0&&Bl(t,t["path-length"],t["path-spacing"],t["path-offset"]),{attrs:t,style:n}}const Il={type:"spring",stiffness:500,damping:25,restSpeed:10},Fl=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jl={type:"keyframes",duration:.8},Ul={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nl=(e,{keyframes:t})=>t.length>2?jl:Et.has(e)?e.startsWith("scale")?Fl(t[1]):Il:Ul,gn=new WeakMap,es=new pt("AnimatePresenceContext");function _l(e){return typeof e=="string"||e===!1||Array.isArray(e)}const Qi=new WeakMap;let Wl=0;const ve=new Set;class Kl{id;type;element=null;parent;options;isSafeToRemove=!1;children=new Set;activeStates={initial:!0,animate:!0};currentProcess=null;baseTarget;target;finalTransition;featureManager;visualElement;constructor(t,n){this.id=`motion-state-${Wl++}`,this.options=t,this.parent=n,n?.children?.add(this);
1const i=(t.initial===void 0&&t.variants?this.context.initial:t.initial)===!1?["initial","animate"]:["initial"];this.initTarget(i),this.featureManager=new pl(this),this.type=Ji(this.options.as)?"svg":"html"}_context=null;get context(){if(!this._context){const t={get:(n,s)=>_l(this.options[s])?this.options[s]:this.parent?.context[s]};this._context=new Proxy({},t)}return this._context}initTarget(t){const n=this.options.custom??this.options.animatePresenceContext?.custom;this.baseTarget=t.reduce((s,i)=>({...s,...dt(this.options[i]||this.context[i],this.options.variants,n)}),{}),this.target={}}updateOptions(t){this.options=t,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},{isPresent:!gn.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(t,n,s=!1){this.element=t,this.updateOptions(n),this.featureManager.mount(),!s&&this.options.animate&&this.startAnimation?.(),this.options.layoutId&&(ve.add(this.options.layoutId),A.render(()=>{ve.clear()}))}clearAnimation(){this.currentProcess&&st(this.currentProcess),this.currentProcess=null,this.visualElement?.variantChildren?.forEach(t=>{t.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=A.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(t=!1){const n=this.options.layoutId&&!ve.has(this.options.layoutId);(()=>{const i=()=>{t&&Array.from(this.children).reverse().forEach(this.unmountChild),this.parent?.children?.delete(this),Qi.delete(this.element),this.featureManager.unmount(),this.visualElement?.unmount(),this.clearAnimation()};n?Promise.resolve().then(i):i()})()}unmountChild(t){t.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(t){this.updateOptions(t),this.featureManager.update(),this.startAnimation()}setActive(t,n,s=!0){!this.element||this.activeStates[t]===n||(this.activeStates[t]=n,this.visualElement.variantChildren?.forEach(i=>{i.state.setActive(t,n,!1)}),s&&this.animateUpdates({isExit:t==="exit"&&this.activeStates.exit}))}animateUpdates=_;isMounted(){return!!this.element}willUpdate(t){(this.options.layout||this.options.layoutId)&&this.visualElement.projection?.willUpdate()}}const Ge=new WeakMap;function ns(e,t,n){return new CustomEvent(e,{detail:{target:t,isExit:n}})}function ss(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function tr(e,t,n,s){if(typeof t=="function"){const[i,o]=ss(s);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=ss(s);t=t(n!==void 0?n:e.custom,i,o)}return t}function yn(e,t,n){const s=e.getProps();return tr(s,t,n!==void 0?n:s.custom,e)}const Gl=e=>Array.isArray(e);function zl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function Hl(e){return Gl(e)?e[e.length-1]||0:e}function Xl(e,t){const n=yn(e,t);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Hl(o[r]);zl(e,r,a)}}function Yl(e){return!!(j(e)&&e.add)}function $l(e,t){const n=e.getValue("willChange");if(Yl(n))return n.add(t);if(!n&<.WillChange){const s=new lt.WillChange("auto");e.addValue("willChange",s),s.add(t)}}const vn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ql="framerAppearId",Zl="data-"+vn(ql);function er(e){return e.props[Zl]}const Jl=e=>e!==null;function Ql(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Jl),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}function tu({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const xn=(e,t,n,s={},i,o)=>r=>{const a=fn(s,e)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-H(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};tu(a)||Object.assign(u,Nl(e,u)),u.duration&&(u.duration=H(u.duration)),u.repeatDelay&&(u.repeatDelay=H(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(_e(u),u.delay===0&&(h=!0)),(lt.instantAnimations||lt.skipAnimations)&&(h=!0,_e(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&t.get()!==void 0){const f=Ql(u.keyframes,a);if(f!==void 0){A.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ie(u):new Da(u)};function eu({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}
vendor: 14,091 bytes, line 1
1function nr(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:r,...a}=t;s&&(o=s);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||c&&eu(c,u))continue;const d={delay:n,...fn(o||{},u)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===g&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=er(e);if(v){const w=window.MotionHandoffAnimation(v,u,A);w!==null&&(d.startTime=w,y=!0)}}$l(e,u),h.start(xn(u,h,f,e.shouldReduceMotion&&Ni.has(u)?{type:!1}:d,e,y));const m=h.animation;m&&l.push(m)}return r&&Promise.all(l).then(()=>{A.update(()=>{r&&Xl(e,r)})}),l}function nu(e,t,n,s=0,i=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),r=e.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function ze(e,t,n={}){const s=yn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(nr(e,s,n)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return su(e,t,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function su(e,t,n=0,s=0,i=0,o=1,r){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ze(l,t,{...r,delay:n+(typeof s=="function"?0:s)+nu(e.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function iu(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(o=>ze(e,o,n));s=Promise.all(i)}else if(typeof t=="string")s=ze(e,t,n);else{const i=typeof t=="function"?yn(e,t,n.custom):t;s=Promise.all(nr(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function ru({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function ou(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function xe(e){return e===void 0||e===1}function He({scale:e,scaleX:t,scaleY:n}){return!xe(e)||!xe(t)||!xe(n)}function ct(e){return He(e)||sr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sr(e){return is(e.x)||is(e.y)}function is(e){return e&&e!=="0%"}function oe(e,t,n){const s=e-n,i=t*s;return n+i}function rs(e,t,n,s,i){return i!==void 0&&(e=oe(e,i,s)),oe(e,n,s)+t}function Xe(e,t=0,n=1,s,i){e.min=rs(e.min,t,n,s,i),e.max=rs(e.max,t,n,s,i)}function ir(e,{x:t,y:n}){Xe(e.x,t.translate,t.scale,t.originPoint),Xe(e.y,n.translate,n.scale,n.originPoint)}const os=.999999999999,as=1.0000000000001;function au(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.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&&wt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,ir(e,r)),s&&ct(o.latestValues)&&wt(e,o.latestValues))}t.x<as&&t.x>os&&(t.x=1),t.y<as&&t.y>os&&(t.y=1)}function qt(e,t){e.min=e.min+t,e.max=e.max+t}function ls(e,t,n,s,i=.5){const o=C(e.min,e.max,i);Xe(e,t,n,o,s)}function wt(e,t){ls(e.x,t.x,t.scaleX,t.scale,t.originX),ls(e.y,t.y,t.scaleY,t.scale,t.originY)}function lu(e,t){return ru(ou(e.getBoundingClientRect(),t))}const 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"]},Ye={};for(const e in us)Ye[e]={isEnabled:t=>us[e].some(n=>!!t[n])};const cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pt=()=>({x:cs(),y:cs()}),hs=()=>({min:0,max:0}),R=()=>({x:hs(),y:hs()}),uu=typeof window<"u",ae={current:null},rr={current:!1};function cu(){if(rr.current=!0,!!uu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ae.current=e.matches;e.addEventListener("change",t),t()}else ae.current=!1}function hu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fu(e){return typeof e=="string"||Array.isArray(e)}const du=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...du];function or(e){return hu(e.animate)||mu.some(t=>fu(e[t]))}function pu(e){return!!(or(e)||e.variants)}function gu(e,t,n){for(const s in t){const i=t[s],o=n[s];if(j(i))e.addValue(s,i);else if(j(o))e.addValue(s,At(i,{owner:e}));else if(o!==i)if(e.hasValue(s)){const r=e.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(s);e.addValue(s,At(r!==void 0?r:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const fs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yu{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,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=hn,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=N.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,A.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=or(n),this.isVariantNode=pu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&j(d)&&d.set(l[f])}}mount(t){this.current=t,Ge.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),rr.current||cu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ae.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Et.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&A.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ye){const n=Ye[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];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):R()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<fs.length;s++){const i=fs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=t[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=gu(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=At(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(ri(s)||ai(s))?s=parseFloat(s):!rl(s)&&X.test(n)&&(s=Gi(t,n)),this.setBaseTarget(t,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=tr(this.props,n,this.presenceContext?.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!j(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Xi.render(this.render)}}class ar extends yu{constructor(){super(...arguments),this.KeyframeResolver=Ha}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const vu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xu=Ct.length;function Tu(e,t,n){let s="",i=!0;for(let o=0;o<xu;o++){const r=Ct[o],a=e[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Hi(a,dn[r]);if(!l){i=!1;const u=vu[r]||r;s+=`${u}(${c}) `}n&&(t[r]=c)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function lr(e,t,n){const{style:s,vars:i,transformOrigin:o}=e;let r=!1,a=!1;for(const l in t){const c=t[l];if(Et.has(l)){r=!0;continue}else if(ue(l)){i[l]=c;continue}else{const u=Hi(c,dn[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(t.transform||(r||n?s.transform=Tu(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function ur(e,{style:t,vars:n},s,i){const o=e.style;let r;for(r in t)o[r]=t[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function bu(e,{layout:t,layoutId:n}){return Et.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_t[e]||e==="opacity")}function cr(e,t,n){const{style:s}=e,i={};for(const o in s)(j(s[o])||t.style&&j(t.style[o])||bu(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}function wu(e){return window.getComputedStyle(e)}class Pu extends ar{constructor(){super(...arguments),this.type="html",this.renderInstance=ur}readValueFromInstance(t,n){if(Et.has(n))return this.projection?.isProjecting?Ie(n):oa(t,n);{const s=wu(t),i=(ue(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lu(t,n)}build(t,n,s){lr(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return cr(t,n,s)}}const Su={offset:"stroke-dashoffset",array:"stroke-dasharray"},Au={offset:"strokeDashoffset",array:"strokeDasharray"};function Vu(e,t,n=1,s=0,i=!0){e.pathLength=1;const o=i?Su:Au;e[o.offset]=p.transform(-s);const r=p.transform(t),a=p.transform(n);e[o.array]=`${r} ${a}`}function Cu(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a}
1,l,c,u){if(lr(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;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=u?.transformBox??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Vu(h,i,o,r,!1)}const hr=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"]),Eu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Mu(e,t,n,s){ur(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(hr.has(i)?i:vn(i),t.attrs[i])}function Du(e,t,n){const s=cr(e,t,n);for(const i in e)if(j(e[i])||j(t[i])){const o=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=e[i]}return s}class ku extends ar{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Et.has(n)){const s=Ki(n);return s&&s.default||0}return n=hr.has(n)?n:vn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Du(t,n,s)}build(t,n,s){Cu(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Mu(t,n,s,i)}mount(t){this.isSVGTag=Eu(t.tagName),super.mount(t)}}function Ru(e,t){return Ji(e)?new ku(t):new Pu(t)}function Lu(e,t,n,s=0,i=1){const o=Array.from(e).sort((u,h)=>u.sortNodePosition(h)),r=o.indexOf(t),a=e.size,l=(a-1)*s,c=typeof n=="function";return r===o.length-1&&(t.parent.enteringChildren=void 0),c?n(r,a):i===1?r*s:l-r*s}const Bu=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class Ou extends it{unmountControls;constructor(t){super(t),this.state.visualElement=Ru(this.state.options.as,{presenceContext:null,parent:this.state.parent?.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),this.state.visualElement.parent?.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:t}=this.state.options;qn(t)&&(this.unmountControls=t.subscribe(this.state))}animateUpdates=({controlActiveState:t,directAnimate:n,directTransition:s,controlDelay:i=0,isExit:o}={})=>{const{reducedMotion:r}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=r==="always"||r==="user"&&!!ae.current;const a=this.state.target;this.state.target={...this.state.baseTarget};let l={};l=this.resolveStateAnimation({controlActiveState:t,directAnimate:n,directTransition:s}),this.state.finalTransition=l;const c=this.createAnimationFactories(a,l,i),{getChildAnimations:u}=this.setupChildAnimations(l,this.state.activeStates);return this.executeAnimations({factories:c,getChildAnimations:u,transition:l,controlActiveState:t,isExit:o})};executeAnimations({factories:t,getChildAnimations:n,transition:s,controlActiveState:i,isExit:o=!1}){const r=()=>Promise.all(t.map(h=>h()).filter(Boolean)),a={...this.state.target},l=this.state.element,c=h=>{l.dispatchEvent(ns("motionstart",a)),this.state.options.onAnimationStart?.(a),h.then(()=>{l.dispatchEvent(ns("motioncomplete",a,o)),this.state.options.onAnimationComplete?.(a)}).catch(_)},u=()=>{const h=s?.when?(s.when==="beforeChildren"?r():n()).then(()=>s.when==="beforeChildren"?n():r()):Promise.all([r(),n()]);return c(h),h};return i?u:u()}setupChildAnimations(t,n){const s=this.state.visualElement;if(!s.variantChildren?.size||!n)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:i=0,staggerDirection:o=1,delayChildren:r=0}=t||{},a=s.variantChildren.size,l=(a-1)*i,c=typeof r=="function",u=c?f=>r(f,a):o===1?(f=0)=>f*i:(f=0)=>l-f*i,h=Array.from(s.variantChildren).map((f,d)=>f.state.animateUpdates({controlActiveState:n,controlDelay:(c?0:r)+u(d)}));return{getChildAnimations:()=>Promise.all(h.map(f=>f()))}}createAnimationFactories(t,n,s){const i=[],o={};for(const r in this.state.target)gl(t[r],this.state.target[r])&&(this.state.baseTarget[r]??=Dl.get(this.state.element,r),o[r]=this.state.target[r]==="none"&&$n(ts[r])?ts[r]:this.state.target[r]);return Object.keys(o).length&&i.push(()=>iu(this.state.visualElement,{...o,transition:n},{delay:s})),i}resolveStateAnimation({controlActiveState:t,directAnimate:n,directTransition:s}){let i=this.state.options.transition,o={};const{variants:r,custom:a,transition:l,animatePresenceContext:c}=this.state.options,u=c?.custom??a;return this.state.activeStates={...this.state.activeStates,...t},Bu.forEach(h=>{if(!this.state.activeStates[h]||qn(this.state.options[h]))return;const f=this.state.options[h];let d=$n(f)?dt(f,r,u):void 0;if(this.state.visualElement.isVariantNode){const g=dt(this.state.context[h],r,u);d=g?Object.assign(g||{},d):o}d&&(h!=="initial"&&(i=d.transition||this.state.options.transition||{}),o=Object.assign(o,d))}),n&&(o=dt(n,r,u),i=o.transition||s||l),Object.entries(o).forEac
1h(([h,f])=>{h!=="transition"&&(this.state.target[h]=f)}),i}mount(){const{element:t}=this.state;Qi.set(t,this.state),Ge.get(t)||(this.state.visualElement.mount(t),Ge.set(t,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const n=this.state.visualElement,s=n.parent;if(n.enteringChildren=void 0,this.state.parent?.isMounted()&&!n.isControllingVariants&&s?.enteringChildren?.has(n)){const i=this.state.parent.options,o=i.custom??i.animatePresenceContext?.custom,r=i.animate?dt(i.animate,i.variants,o):void 0,a=this.state.parent.finalTransition||r?.transition||{},{delayChildren:l,staggerChildren:c=0,staggerDirection:u=1}=a,h=typeof l=="function",f=s.variantChildren?.size?s.variantChildren:s.enteringChildren?.size?s.enteringChildren:s.children,d=(h?0:l||0)+Lu(f,n,l,c,u);this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:d})()}}update(){const{animate:t}=this.state.options,{animate:n}=this.state.visualElement.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.unmountControls?.()}}function fr(e){return{point:{x:e.pageX,y:e.pageY}}}function ds(e,t,n){const s=e.options;s.whilePress&&e.setActive("whilePress",n==="Start");const i=`onPress${n==="End"?"":n}`,o=s[i];o&&A.postRender(()=>o(t,fr(t)))}class Iu extends it{isActive(){const{whilePress:t,onPress:n,onPressCancel:s,onPressStart:i}=this.state.options;return!!(t||n||s||i)}constructor(t){super(t)}mount(){this.register()}update(){const{whilePress:t,onPress:n,onPressCancel:s,onPressStart:i}=this.state.options;t||n||s||i||this.register()}register(){const t=this.state.element;!t||!this.isActive()||(this.unmount(),this.unmount=nl(t,(n,s)=>(ds(this.state,s,"Start"),(i,{success:o})=>ds(this.state,i,o?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function ms(e,t,n){const s=e.options;s.whileHover&&e.setActive("whileHover",n==="Start");const i=`onHover${n}`,o=s[i];o&&A.postRender(()=>o(t,fr(t)))}class Fu extends it{isActive(){const{whileHover:t,onHoverStart:n,onHoverEnd:s}=this.state.options;return!!(t||n||s)}constructor(t){super(t)}mount(){this.register()}update(){const{whileHover:t,onHoverStart:n,onHoverEnd:s}=this.state.visualElement.prevProps;t||n||s||this.register()}register(){const t=this.state.element;!t||!this.isActive()||(this.unmount(),this.unmount=Za(t,(n,s)=>(ms(this.state,s,"Start"),i=>{ms(this.state,i,"End")})))}}function ps(e,t,n){const s=e.options;s.whileInView&&e.setActive("whileInView",n==="Enter");const i=`onViewport${n}`,o=s[i];o&&A.postRender(()=>o(t))}class ju extends it{isActive(){const{whileInView:t,onViewportEnter:n,onViewportLeave:s}=this.state.options;return!!(t||n||s)}constructor(t){super(t)}startObserver(){const t=this.state.element;if(!t||!this.isActive())return;this.unmount();const{once:n,...s}=this.state.options.inViewOptions||{};this.unmount=al(t,(i,o)=>{if(ps(this.state,o,"Enter"),!n)return r=>{ps(this.state,o,"Leave")}},s)}mount(){this.startObserver()}update(){const{props:t,prevProps:n}=this.state.visualElement;["amount","margin","root"].some(Uu(t,n))&&this.startObserver()}}function Uu({inViewOptions:e={}},{inViewOptions:t={}}={}){return n=>e[n]!==t[n]}function dr(e){return e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1}function It(e,t,n,s){return le(e,t,Nu(n),s)}function Tn(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function Nu(e){return t=>dr(t)&&e(t,Tn(t))}function le(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}class _u extends it{isActive=!1;onFocus(){let t=!1;try{t=this.state.element.matches(":focus-visible")}catch{t=!0}t&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wt(le(this.state.element,"focus",()=>this.onFocus()),le(this.state.element,"blur",()=>this.onBlur()))}}function Wu(e,t,n){const s=j(e)?e:At(e);return s.start(xn("",s,t,n)),s.animation}const Ku=(e,t)=>e.depth-t.depth;class Gu{constructor(){this.children=[],this.isDirty=!1}add(t){Ze(this.children,t),this.isDirty=!0}remove(t){Je(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ku),this.isDirty=!1,this.children.forEac
vendor: 3,823 bytes, line 1
1h(t)}}function Te(e){return j(e)?e.get():e}const mr=["TopLeft","TopRight","BottomLeft","BottomRight"],zu=mr.length,gs=e=>typeof e=="string"?parseFloat(e):e,ys=e=>typeof e=="number"||p.test(e);function Hu(e,t,n,s,i,o){i?(e.opacity=C(0,n.opacity??1,Xu(s)),e.opacityExit=C(t.opacity??1,0,Yu(s))):o&&(e.opacity=C(t.opacity??1,n.opacity??1,s));for(let r=0;r<zu;r++){const a=`border${mr[r]}Radius`;let l=vs(t,a),c=vs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ys(l)===ys(c)?(e[a]=Math.max(C(gs(l),gs(c),s),0),(q.test(c)||q.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=C(t.rotate||0,n.rotate||0,s))}function vs(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xu=pr(0,.5,gi),Yu=pr(.5,.95,_);function pr(e,t,n){return s=>s<e?0:s>t?1:n(Ut(e,t,s))}function xs(e,t){e.min=t.min,e.max=t.max}function K(e,t){xs(e.x,t.x),xs(e.y,t.y)}function Ts(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const gr=1e-4,$u=1-gr,qu=1+gr,yr=.01,Zu=0-yr,Ju=0+yr;function z(e){return e.max-e.min}function Qu(e,t,n){return Math.abs(e-t)<=n}function bs(e,t,n,s=.5){e.origin=s,e.originPoint=C(t.min,t.max,e.origin),e.scale=z(n)/z(t),e.translate=C(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$u&&e.scale<=qu||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zu&&e.translate<=Ju||isNaN(e.translate))&&(e.translate=0)}function Ft(e,t,n,s){bs(e.x,t.x,n.x,s?s.originX:void 0),bs(e.y,t.y,n.y,s?s.originY:void 0)}function ws(e,t,n){e.min=n.min+t.min,e.max=e.min+z(t)}function tc(e,t,n){ws(e.x,t.x,n.x),ws(e.y,t.y,n.y)}function Ps(e,t,n){e.min=t.min-n.min,e.max=e.min+z(t)}function jt(e,t,n){Ps(e.x,t.x,n.x),Ps(e.y,t.y,n.y)}function Ss(e,t,n,s,i){return e-=t,e=oe(e,1/n,s),i!==void 0&&(e=oe(e,1/i,s)),e}function ec(e,t=0,n=1,s=.5,i,o=e,r=e){if(q.test(t)&&(t=parseFloat(t),t=C(r.min,r.max,t/100)-r.min),typeof t!="number")return;let a=C(o.min,o.max,s);e===o&&(a-=t),e.min=Ss(e.min,t,n,a,i),e.max=Ss(e.max,t,n,a,i)}function As(e,t,[n,s,i],o,r){ec(e,t[n],t[s],t[i],t.scale,o,r)}const nc=["x","scaleX","originX"],sc=["y","scaleY","originY"];function Vs(e,t,n,s){As(e.x,t,nc,n?n.x:void 0,s?s.x:void 0),As(e.y,t,sc,n?n.y:void 0,s?s.y:void 0)}function Cs(e){return e.translate===0&&e.scale===1}function vr(e){return Cs(e.x)&&Cs(e.y)}function Es(e,t){return e.min===t.min&&e.max===t.max}function ic(e,t){return Es(e.x,t.x)&&Es(e.y,t.y)}function Ms(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xr(e,t){return Ms(e.x,t.x)&&Ms(e.y,t.y)}function Ds(e){return z(e.x)/z(e.y)}function ks(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rc{constructor(){this.members=[]}add(t){Ze(this.members,t),t.scheduleRender()}remove(t){if(Je(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===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(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oc(e,t,n){let s="";
vendor: 4,727 bytes, line 1
1const i=e.x.translate/t.x,o=e.y.translate/t.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:g}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}function Rs(e){return[e("x"),e("y")]}const be={hasAnimatedSinceResize:!0},we=["","X","Y","Z"],ac=1e3;let lc=0;function Pe(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Tr(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=er(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",A,!(i||o))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Tr(s)}function br({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=t?.()){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.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.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 Gu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new tn),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=qi(r)&&!sl(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;A.read(()=>{h=window.innerWidth}),e(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=ul(f,250),be.hasAnimatedSinceResize&&(be.hasAnimatedSinceResize=!1,this.nodes.forEach(Os)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||bc,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!xr(this.targetLayout,d),w=!h&&f;if(this.options.layoutRoot||this.resumeFrom||w||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...fn(g,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,w)}else h||Os(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(),st(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.forEac
vendor: 16,829 bytes, line 1
1h(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&&Tr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ls);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mc),this.nodes.forEach(uc),this.nodes.forEach(cc)):this.nodes.forEach(Bs),this.clearAllSnapshots();const a=N.now();U.delta=Z(0,1e3/60,a-U.timestamp),U.timestamp=a,U.isProcessing=!0,he.update.process(U),he.preRender.process(U),he.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dc),this.sharedNodes.forEach(vc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!z(this.snapshot.measuredBox.x)&&!z(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.layoutCorrected=R(),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&&!vr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||ct(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),wc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return R();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pc))){const{scroll:c}=this.root;c&&(qt(a.x,c.offset.x),qt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=R();if(K(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&K(a,r),qt(a.x,u.offset.x),qt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=R();K(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&wt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&wt(l,u.latestValues)}return ct(this.latestValues)&&wt(l,this.latestValues),l}removeTransform(r){const a=R();K(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ct(c.latestValues))continue;He(c.latestValues)&&c.updateSnapshot();const u=R(),h=c.measurePageBox();K(u,h),Vs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Vs(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!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=U.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),jt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),ir(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),jt(this.relativeTargetOrigin,this.target,f.target),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||He(this.parent.latestValues)||sr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===U.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;au(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=R());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ts(this.prevProjectionDelta.x,this.projectionDelta.x),Ts(this.prevProjectionDelta.y,this.projectionDelta.y)),Ft(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ks(this.projectionDelta.x,this.prevProjectionDelta.x)||!ks(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pt(),this.projectionDelta=Pt(),this.projectionDeltaWithTransform=Pt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=d!==g,m=this.getStack(),v=!m||m.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Tc));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const b=S/1e3;Is(h.x,r.x,b),Is(h.y,r.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xc(this.relativeTarget,this.relativeTargetOrigin,f,b),T&&ic(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=R()),K(T,this.relativeTarget)),y&&(this.animationValues=u,Hu(u,c,this.latestValues,b,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=At(0)),this.currentAnimation=Wu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ac),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&wr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||R();const h=z(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=z(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}K(a,l),wt(a,u),Ft(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new rc),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.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 c={};l.z&&Pe("z",r,c,this.animationValues);for(let u=0;u<we.length;u++)Pe(`rotate${we[u]}`,r,c,this.animationValues),Pe(`skew${we[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);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=Te(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Te(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=oc(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in _t){if(u[g]===void 0)continue;const{correct:y,applyTo:m,isCSSVariable:v}=_t[g],w=h==="none"?u[g]:y(u[g],c);if(m){const T=m.length;for(let S=0;S<T;S++)r[m[S]]=w}else v?this.options.visualElement.renderState.vars[g]=w:r[g]=w}this.options.layoutId&&(r.pointerEvents=c===this?Te(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ls),this.root.sharedNodes.clear()}}}function uc(e){e.updateLayout()}function cc(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Rs(u=>{const h=o?t.measuredBox[u]:t.layoutBox[u],f=z(h);h.min=n[u].min,h.max=h.min+f}):wr(i,t.layoutBox,n)&&Rs(u=>{const h=o?t.measuredBox[u]:t.layoutBox[u],f=z(n[u]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const r=Pt();Ft(r,n,t.layoutBox);const a=Pt();o?Ft(a,e.applyTransform(s,!0),t.measuredBox):Ft(a,n,t.layoutBox);const l=!vr(r);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=R();jt(d,t.layoutBox,h.layoutBox);const g=R();jt(g,n,f.layoutBox),xr(d,g)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=d,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hc(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function fc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dc(e){e.clearSnapshot()}function Ls(e){e.clearMeasurements()}function Bs(e){e.isLayoutDirty=!1}function mc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Os(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pc(e){e.resolveTargetDelta()}function gc(e){e.calcProjection()}
1function yc(e){e.resetSkewAndRotation()}function vc(e){e.removeLeadSnapshot()}function Is(e,t,n){e.translate=C(t.translate,0,n),e.scale=C(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fs(e,t,n,s){e.min=C(t.min,n.min,s),e.max=C(t.max,n.max,s)}function xc(e,t,n,s){Fs(e.x,t.x,n.x,s),Fs(e.y,t.y,n.y,s)}function Tc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const bc={duration:.45,ease:[.4,0,.1,1]},js=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Us=js("applewebkit/")&&!js("chrome/")?Math.round:_;function Ns(e){e.min=Us(e.min),e.max=Us(e.max)}function wc(e){Ns(e.x),Ns(e.y)}function wr(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qu(Ds(t),Ds(n),.2)}function Pc(e){return e!==e.root&&e.scroll?.wasRoot}function Sc(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Ac=br({attachResizeListener:(e,t)=>Sc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Se={current:void 0},Vc=br({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Se.current){const e=new Ac({});e.mount(window),e.setOptions({layoutScroll:!0}),Se.current=e}return Se.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});function Pr(e){if(e)return e.options.allowProjection!==!1?e.projection:Pr(e.parent)}function _s(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(p.test(e))e=parseFloat(e);else return e;const n=_s(e,t.target.x),s=_s(e,t.target.y);return`${n}% ${s}%`}},Cc={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=X.parse(e);if(i.length>5)return s;const o=X.createTransformer(e),r=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+r]/=a,i[1+r]/=l;const c=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},Sr={borderRadius:{...kt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomLeftRadius:kt,borderBottomRightRadius:kt,boxShadow:Cc};function Lt(e){return typeof e=="object"&&e!==null&&"nodeType"in e}class Ec extends it{constructor(t){super(t),cl(Sr)}initProjection(){const t=this.state.options;this.state.visualElement.projection=new Vc(this.state.visualElement.latestValues,t["data-framer-portal-id"]?void 0:Pr(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const t=this.state.options;this.state.visualElement.projection.setOptions({layout:t.layout,layoutId:t.layoutId,alwaysMeasureLayout:!!t.drag||t.dragConstraints&&Lt(t.dragConstraints),visualElement:this.state.visualElement,animationType:typeof t.layout=="string"?t.layout:"both",layoutRoot:t.layoutRoot,layoutScroll:t.layoutScroll,crossfade:t.crossfade,onExitComplete:()=>{if(!this.state.visualElement.projection?.isPresent){const n=gn.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){this.state.visualElement.projection?.mount(this.state.element)}}function Ar(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ws=Ar("dragHorizontal"),Ks=Ar("dragVertical");function Mc(e){let t=!1;if(e==="y")t=Ks();else if(e==="x")t=Ws();else{const n=Ws(),s=Ks();n&&s?t=()=>{n(),s()}:(n&&n(),s&&s())}return t}function $e(e){return e.max-e.min}function Dc(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?C(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?C(n,e,s.max):Math.min(e,n)),e}const qe=.35;function kc(e,{top:t,left:n,bottom:s,right:i}){return{x:Gs(e.x,n,i),y:Gs(e.y,t,s)}}function Gs(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Rc(e=qe){return e===!1?e=0:e===!0&&(e=qe),{x:zs(e,"left","right"),y:zs(e,"top","bottom")}}function zs(e,t,n){return{min:Hs(e,t),max:Hs(e,n)}}function Hs(e,t){return typeof e=="number"?e:e[t]||0}function Lc(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Bc(e,t){return{x:Xs(e.x,t.x),y:Xs(e.y,t.y)}}function Xs(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function Oc(e,t){let n=.5;const s=$e(e),i=$e(t);return i>s?n=Ut(t.min,t.max-s,e.min):s>i&&(n=Ut(e.min,e.max-i,t.min)),Z(0,1,n)}class Vr{history;startEvent=null;lastMoveEvent=null;lastMoveEventInfo=null;transformPagePoint;handlers={};removeListeners;dragSnapToOrigin;contextWindow=window;constructor(t,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(!dr(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=Tn(t),a=Ae(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=U;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Ve(a,this.history)),this.removeListeners=Wt(It(this.contextWindow,"pointermove",this.handlePointerMove),It(this.contextWindow,"pointerup",this.handlePointerUp),It(this.contextWindow,"pointercancel",this.handlePointerUp))}updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const t=Ve(this.lastMoveEventInfo,this.history),n=this.startEvent!==null,s=ll(t.offset,{x:0,y:0})>=3;if(!n&&!s)return;const{point:i}=t,{timestamp:o}=U;this.history.push({...i,timestamp:o});const{onStart:r,onMove:a}=this.handlers;n||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)};handlePointerMove=(t,n)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ae(n,this.transformPagePoint),A.update(this.updatePoint,!0)};handlePointerUp=(t,n)=>{this.end();const{onEnd:s,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const r=Ve(t.type==="pointercancel"?this.lastMoveEventInfo:Ae(n,this.transformPagePoint),this.history);this.startEvent&&s&&s(t,r),i&&i(t,r)};updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),st(this.updatePoint)}}function Ae(e,t){return t?{point:t(e.point)}:e}function Ys(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ve({point:e},t){return{point:e,delta:Ys(e,Cr(t)),offset:Ys(e,Ic(t)),velocity:Fc(t,.1)}}function Ic(e){return e[0]}function Cr(e){return e[e.length-1]}function Fc(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=Cr(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>H(t)));)n--;if(!s)return{x:0,y:0};const o=G(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}const $s=()=>({min:0,max:0});function jc(){return{x:$s(),y:$s()}}function $(e){return[e("x"),e("y")]}function Er({current:e}){return e?e.ownerDocument.defaultView:null}function Uc(e){return!!(j(e)&&e.add)}function qs(e,t){const n=e.getValue("willChange");if(Uc(n))return n.add(t)}function Mr({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Nc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function _c({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Zs(e,t){e.min=e.min+t,e.max=e.max+t}function Wc(e,t){return Mr(Nc(e.getBoundingClientRect(),t))}function Kc(e,t,n){const s=Wc(e,n),{scroll:i}=t;return i&&(Zs(s.x,i.offset.x),Zs(s.y,i.offset.y)),s}function Js(e){return!gn.has(e.current)}const Gc=new WeakMap;class zc{visualElement;
1panSession;openGlobalLock=null;isDragging=!1;currentDirection=null;originPoint={x:0,y:0};constraints=!1;hasMutatedConstraints=!1;elastic=jc();constructor(t){this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(!Js(this.visualElement))return;const s=c=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Tn(c,"page").point)},i=(c,u)=>{const{drag:h,dragPropagation:f,onDragStart:d}=this.getProps();if(h&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Mc(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(y=>{let m=this.getAxisMotionValue(y).get()||0;if(q.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[y];w&&(m=$e(w)*(parseFloat(m)/100))}}this.originPoint[y]=m}),d&&A.postRender(()=>d(c,u)),qs(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},o=(c,u)=>{const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:d,onDrag:g}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=u;if(f&&this.currentDirection===null){this.currentDirection=Hc(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),g&&g(c,u)},r=(c,u)=>this.stop(c,u),a=()=>$(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Vr(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:r,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Er(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!Zt(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let r=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(r=Dc(r,this.constraints[t],this.elastic[t])),o.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Lt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=kc(s.layoutBox,t):this.constraints=!1,this.elastic=Rc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&$(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lt(t))return!1;const s=t,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Kc(s,i.root,this.visualElement.getTransformPagePoint());let r=Bc(i.layout.layoutBox,o);if(n){const a=n(_c(r));this.hasMutatedConstraints=!!a,a&&(r=Mr(a))}return r}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=$(u=>{if(!Zt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,g={type:"inertia",velocity:s?t[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return qs(this.visualElement,t),s.start(xn(t,s,0,n,this.visualElement,!1))}stopAnimation(){Js(this.visualElement)&&$(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps();return s[n]||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){$(n=>{const{drag:s}=this.getProps();if(!Zt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(t[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Oc({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(),$(r=>{if(!Zt(r,t,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(C(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Gc.set(this.visualElement,this);const t=this.visualElement.current,n=It(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Lt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(s);const r=le(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&($(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=qe,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Zt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hc(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Xc extends it{controls;removeGroupControls=_;removeListeners=_;constructor(t){super(t),this.controls=new zc(t.visualElement)}mount(){const{dragControls:t}=this.state.options;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qs={};function Yc(e){for(const t in e)Qs[t]=e[t],ue(t)&&(Qs[t].isCSSVariable=!0)}class $c extends it{constructor(t){super(t),Yc(Sr)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&this.state.visualElement.projection?.root?.didUpdate()}mount(){const t=this.state.options,n=this.state.options.layoutGroup;if(t.layout||t.layoutId){const s=this.state.visualElement.projection;s&&(s.promote(),n?.group?.add(s))}this.didUpdate()}beforeUnmount(){const t=this.state.visualElement.projection;t&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(t.isPresent=!1,t.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const t=this.state.options.layoutGroup,n=this.state.visualElement.projection;n&&(t?.group&&(this.state.options.layout||this.state.options.layoutId)&&t.group.remove(n),this.didUpdate())}}function ti(e){return(t,n)=>{e&&A.postRender(()=>e(t,n))}}class qc extends it{session;removePointerDownListener=_;onPointerDown(t){this.session=new Vr(t,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Er(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:ti((t,n)=>{const{onPanSessionStart:s}=this.state.options;s&&s(t,n)}),onStart:ti((t,n)=>{const{onPanStart:s}=this.state.options;s&&s(t,n)}),onMove:(t,n)=>{const{onPan:s}=this.state.options;s&&s(t,n)},onEnd:(t,n)=>{const{onPanEnd:s}=this.state.options;delete this.session,s&&A.postRender(()=>s(t,n))}}}mount(){this.removePointerDownListener=It(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zc=[Ou,Iu,Fu,ju,_u,Ec,qc,Xc,$c],ei=new pt("MotionState"),Jc=new pt("LayoutGroup"),Qc=new pt("LazyMotionContext"),th={reducedMotion:"never",transition:void 0,nonce:void 0},eh=new pt("MotionConfig");function nh(){return eh.getOr(()=>th)}const sh=new pt("PresenceManagerContext",{}),ih=new Set(["animate","exit","variants","initial","style","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","forwardMotionProps","as","ref"]);function rh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ih.has(e)}const oh=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function ah(e,t){Kr(t,!0);let n=ce(t,"features",19,()=>[]),s=ce(t,"ref",15);ce(t,"forwardMotionProps",3,!1);const i=ei.getOr(null),o=Jc.getOr({}),r=nh(),a=es.getOr({}),l=sh.getOr({}
1),c=Qc.getOr({features:()=>[],strict:!1}),u=fh.getOr(null);function h(){return o.id&&t.props.layoutId?`${o.id}-${t.props.layoutId}`:t.props.layoutId||void 0}const f=Dt(()=>({...t.props,features:n(),lazyMotionContext:c,layoutId:h(),transition:t.props.transition??r().transition,layoutGroup:o,motionConfig:r(),inViewOptions:t.props.inViewOptions??r().inViewOptions,animatePresenceContext:a,initial:a.initial===!1?a.initial:t.props.initial===!0?void 0:t.props.initial})),d=new Kl(et(f),i);ei.set(d),u?.register(d);const g=Dt(()=>{const V=d.type==="svg",F={};for(const E of Reflect.ownKeys(t.props))if(typeof E=="string"){if(rh(E))continue;const D=t.props[E];F[E]=j(D)?D.get():D}else F[E]=t.props[E];let Q=V?{}:d.visualElement?.latestValues||d.baseTarget;if(t.props.whileInView&&t.props.inViewOptions?.useClipPathWorkaround&&!d.activeStates.whileInView){const E={};for(const D in Q){if(D==="clipPath"){const gt=Q[D];if(typeof gt=="string"&>.includes("100%"))continue}E[D]=Q[D]}Q=E}let tt={...t.props.style,...Q};if(l.isWaitBlocked?.()===!0&&!d.activeStates.exit&&(tt.display="none"),V){const{attrs:E,style:D}=Ol({...d.isMounted()?d.target:d.baseTarget,...tt});(D.transform||E.transformOrigin)&&(D.transformOrigin=E.transformOrigin??"50% 50%",delete E.transformOrigin),D.transform&&(D.transformBox=D.transformBox??"fill-box",delete E.transformBox),Object.assign(F,E),tt=D}t.props.drag&&t.props.dragListener!==!1&&Object.assign(tt,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.props.drag===!0?"none":`pan-${t.props.drag==="x"?"y":"x"}`});const Ht=kl(tt);return Ht&&(F.style=dl(Ht)),F}),y=Dt(()=>{const V=t.props.custom??a.custom;return dt(t.props.exit,t.props.variants,V)});Ce(()=>(d.beforeMount(),()=>{u?.unregister(d),d.beforeUnmount()})),Ee(()=>{if(!t.props.layoutId||t.props.exit||!T)return;const V=l.subscribeToExitStart?.(F=>{d.element&&F.contains(d.element)||(d.unmount(),d.element&&(d.element.style.visibility="hidden"))});return()=>V?.()}),mn(()=>et(f),V=>{d.update(V)},{lazy:!0});function m(V){s(V);const F=te(()=>l.isWaitBlocked?.()===!0);return d.mount(V,te(()=>et(f)),F),F&&d.setActive("animate",!1,!1),()=>{d.unmount()}}let v=!1,w=l.isWaitBlocked?.()===!0;Ce(()=>{const V=l.isWaitBlocked?.()===!0;w&&!V&&(d.setActive("animate",!0,!1),d.startAnimation()),w=V});const T=es.exists();Ee(()=>{if(!(!t.props.exit||!T))return l.trackPosition?.(d),()=>{l.untrackPosition?.(d)}});const S=a.transition,b=()=>!!t.props.exit&&T;function k(V){return b()?S(V,{definition:et(y),state:d,allowIntro:v,setAllowIntro:F=>v=F}):null}const O="__motion_exiting__",P=()=>b()&&l.onIntroStart?.(d.element),I=()=>{b()&&(d.element[O]=!0,l.onOutroStart?.(d.element))},x=()=>{b()&&(delete d.element[O],l.onOutroEnd?.(d.element))},B=zr(),W=Dt(()=>({...et(g),[B]:m,onintrostart:P,onoutrostart:I,onoutroend:x}));var ut=yt(),Y=vt(ut);{var rt=V=>{var F=yt(),Q=vt(F);{var tt=E=>{var D=yt(),gt=vt(D);An(gt,()=>t.as,!1,(Mt,bn)=>{Vn(Mt,()=>({...et(W)})),En(7,Mt,()=>k)}),xt(E,D)},zt=Dt(()=>oh.has(t.as)),Ht=E=>{var D=yt(),gt=vt(D);An(gt,()=>t.as,!1,(Mt,bn)=>{Vn(Mt,()=>({...et(W),xmlns:d.type==="svg"?"http://www.w3.org/2000/svg":void 0})),En(7,Mt,()=>k);var wn=yt(),Dr=vt(wn);Xr(Dr,()=>t.props.children??Tt),xt(bn,wn)},()=>d.type==="svg"?"http://www.w3.org/2000/svg":void 0),xt(E,D)};Sn(Q,E=>{et(zt)?E(tt):E(Ht,-1)})}xt(V,F)},J=V=>{var F=yt(),Q=vt(F);Yr(Q,()=>t.as,(tt,zt)=>{zt(tt,Hr(()=>et(W)))}),xt(V,F)};Sn(Y,V=>{typeof t.as=="string"?V(rt):V(J,-1)})}xt(e,ut),Gr()}const lh=new Map,uh=new Map;function ni(e,t={}){const n=typeof e=="string";n||e.name;const s=t.features?.length>0?lh:uh;if(n&&s?.has(e))return s.get(e);const i=(o,r)=>{const a=()=>r.as||e||"div";return ah(o,{features:t.features,get forwardMotionProps(){return r.forwardMotionProps||t.forwardMotionProps},get as(){return a()},get props(){return ml(r,"as",a())},get ref(){return r.ref},set ref(l){r.ref=l}})};return n&&s?.set(e,i),i}function ch(e=[]){return new Proxy({},{get(t,n){return n==="create"?(s,i)=>ni(s,{...i,features:e}):ni(n,{features:e})}})}const hh=ch(Zc),fh=new pt("LayoutMotionScope");hh.create("div");export{hh as m,En as t};
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.