PageSourceSearch

https://jwby.co/assets/sky-background-Cqli627C.js

js jwby.co collected 2026-10-04 05:39:39 UTC 152,686 bytes, 1 lines download raw bytes

vendor: 29,523 bytes, line 1
1import{x as Cr,k,y as Vr,z as Mr,j as gt,L as Er}from"./index-B2eUpl9c.js";function Dr(t){const e=Cr(),n=k.useRef(void 0);return Vr(e.stores.location,s=>{const i=s;if(e.options.defaultStructuralSharing){const r=Mr(n.current,i);return n.current=r,r}return i})}const Pi=k.createContext({});function Rr(t){const e=k.useRef(null);return e.current===null&&(e.current=t()),e.current}const Lr=typeof window<"u",Ir=Lr?k.useLayoutEffect:k.useEffect,Pn=k.createContext(null);function An(t,e){t.indexOf(e)===-1&&t.push(e)}function ve(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ct=(t,e,n)=>n>e?e:n<t?t:n;let kn=()=>{};const bt={},Ai=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ki=t=>typeof t=="object"&&t!==null,Ci=t=>/^0[^.\s]+$/u.test(t);function Vi(t){let e;return()=>(e===void 0&&(e=t()),e)}const et=t=>t,qt=(...t)=>t.reduce((e,n)=>s=>n(e(s))),$t=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class Cn{constructor(){this.subscriptions=[]}add(e){return An(this.subscriptions,e),()=>ve(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Q=t=>t*1e3,tt=t=>t/1e3,Mi=(t,e)=>e?t*(1e3/e):0,Ei=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Br=1e-7,Fr=12;function jr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Ei(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Br&&++a<Fr);return o}function Zt(t,e,n,s){if(t===e&&n===s)return et;const i=r=>jr(r,0,1,t,n);return r=>r===0||r===1?r:Ei(i(r),e,s)}const Di=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ri=t=>e=>1-t(1-e),Li=Zt(.33,1.53,.69,.99),Vn=Ri(Li),Ii=Di(Vn),Bi=t=>t>=1?1:(t*=2)<1?.5*Vn(t):.5*(2-Math.pow(2,-10*(t-1))),Mn=t=>1-Math.sin(Math.acos(t)),Fi=Ri(Mn),ji=Di(Mn),Or=Zt(.42,0,1,1),Nr=Zt(0,0,.58,1),Oi=Zt(.42,0,.58,1),zr=t=>Array.isArray(t)&&typeof t[0]!="number",Ni=t=>Array.isArray(t)&&typeof t[0]=="number",Wr={linear:et,easeIn:Or,easeInOut:Oi,easeOut:Nr,circIn:Mn,circInOut:ji,circOut:Fi,backIn:Vn,backInOut:Ii,backOut:Li,anticipate:Bi},Ur=t=>typeof t=="string",ns=t=>{if(Ni(t)){kn(t.length===4);const[e,n,s,i]=t;return Zt(e,n,s,i)}else if(Ur(t))return Wr[t];return t},oe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Gr(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const m=d&&i?n:s;return h&&o.add(u),m.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const Kr=40;function zi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=oe.reduce((v,P)=>(v[P]=Gr(r),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:m}=o,g=()=>{const v=bt.useManualTiming,P=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(P-i.timestamp,Kr),1)),i.timestamp=P,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),f.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},p=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:oe.reduce((v,P)=>{const C=o[P];return v[P]=(D,B=!1,y=!1)=>(n||p(),C.schedule(D,B,y)),v},{}),cancel:v=>{for(let P=0;P<oe.length;P++)o[oe[P]].cancel(v)},state:i,steps:o}}const{schedule:R,cancel:vt,state:K,steps:Be}=zi(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0);let he;function Hr(){he=void 0}const q={now:()=>(he===void 0&&q.set(K.isProcessing||bt.useManualTiming?K.timestamp:performance.now()),he),set:t=>{he=t,queueMicrotask(Hr)}},Wi=t=>e=>typeof e=="string"&&e.startsWith(t),Ui=Wi("--"),$r=Wi("var(--"),En=t=>$r(t)?_r.test(t.split("/*")[0].trim()):!1,_r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ss(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ft={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},_t={...Ft,transform:t=>ct(0,1,t)},re={...Ft,default:1},Ut=t=>Math.round(t*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yr(t){return t==null}const Xr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rn=(t,e)=>n=>!!(typeof n=="string"&&Xr.test(n)&&n.startsWith(t)||e&&!Yr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Gi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Dn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},qr=t=>ct(0,255,t),Fe={...Ft,transform:t=>Math.round(qr(t))},At={test:Rn("rgb","red"),parse:Gi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Fe.transform(t)+", "+Fe.transform(e)+", "+Fe.transform(n)+", "+Ut(_t.transform(s))+")"};function Zr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Je={test:Rn("#"),parse:Zr,transform:At.transform},Jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),pt=Jt("deg"),lt=Jt("%"),T=Jt("px"),Jr=Jt("vh"),Qr=Jt("vw"),is={...lt,parse:t=>lt.parse(t)/100,transform:t=>lt.transform(t*100)},Dt={test:Rn("hsl","hue"),parse:Gi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+lt.transform(Ut(e))+", "+lt.transform(Ut(n))+", "+Ut(_t.transform(s))+")"},N={test:t=>At.test(t)||Je.test(t)||Dt.test(t),parse:t=>At.test(t)?At.parse(t):Dt.test(t)?Dt.parse(t):Je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?At.transform(t):Dt.transform(t),getAnimatableNone:t=>{const e=N.parse(t);return e.alpha=0,N.transform(e)}},ta=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ea(t){return isNaN(t)&&typeof t=="string"&&(t.match(Dn)?.length||0)+(t.match(ta)?.length||0)>0}const Ki="number",Hi="color",na="var",sa="var(",os="${}",ia=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function It(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ia,l=>(N.test(l)?(s.color.push(r),i.push(Hi),n.push(N.parse(l))):l.startsWith(sa)?(s.var.push(r),i.push(na),n.push(l)):(s.number.push(r),i.push(Ki),n.push(parseFloat(l))),++r,os)).split(os);return{values:n,split:a,indexes:s,types:i}}function oa(t){return It(t).values}function $i({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===Ki?i+=Ut(s[r]):o===Hi?i+=N.transform(s[r]):i+=s[r]}return i}}function ra(t){return $i(It(t))}const aa=t=>typeof t=="number"?0:N.test(t)?N.getAnimatableNone(t):t,la=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:aa(t);function ca(t){const e=It(t);return $i(e)(e.values.map((s,i)=>la(s,e.split[i])))}const it={test:ea,parse:oa,createTransformer:ra,getAnimatableNone:ca};function je(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ua({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=je(l,a,t+1/3),r=je(l,a,t),o=je(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function xe(t,e){return n=>n>0?e:t}const L=(t,e,n)=>t+(e-t)*n,Oe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ha=[Je,At,Dt],da=t=>ha.find(e=>e.test(t));function rs(t){const e=da(t);if(!e)return!1;let n=e.parse(t);return e===Dt&&(n=ua(n)),n}const as=(t,e)=>{const n=rs(t),s=rs(e);if(!n||!s)return xe(t,e);const i={...n};return r=>(i.red=Oe(n.red,s.red,r),i.green=Oe(n.green,s.green,r),i.blue=Oe(n.blue,s.blue,r),i.alpha=L(n.alpha,s.alpha,r),At.transform(i))},Qe=new Set(["none","hidden"]);function fa(t,e){return Qe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ma(t,e){return n=>L(t,e,n)}function Ln(t){return typeof t=="number"?ma:typeof t=="string"?En(t)?xe:N.test(t)?as:ya:Array.isArray(t)?_i:typeof t=="object"?N.test(t)?as:pa:xe}function _i(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ln(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function pa(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Ln(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function ga(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const ya=(t,e)=>{const n=it.createTransformer(e),s=It(t),i=It(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Qe.has(t)&&!i.values.length||Qe.has(e)&&!s.values.length?fa(t,e):qt(_i(ga(s,i),i.values),n):xe(t,e)};function Yi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?L(t,e,n):Ln(t)(t,e)}const ba=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>R.update(e,n),stop:()=>vt(e),now:()=>K.isProcessing?K.timestamp:q.now()}},Xi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},we=2e4;function In(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<we;)e+=n,s=t.next(e);return e>=we?1/0:e}function va(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(In(s),we);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:tt(i)}}const j={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 tn(t,e){return t*Math.sqrt(1-e*e)}const xa=12;function wa(t,e,n){let s=n;for(let i=1;i<xa;i++)s=s-t(s)/e(s);return s}const Ne=.001;function Ta({duration:t=j.duration,bounce:e=j.bounce,velocity:n=j.velocity,mass:s=j.mass}){let i,r,o=1-e;o=ct(j.minDamping,j.maxDamping,o),t=ct(j.minDuration,j.maxDuration,tt(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,f=tn(c,o),m=Math.exp(-h);return Ne-d/f*m},r=c=>{const h=c*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-h),g=tn(Math.pow(c,2),o);return(-i(c)+Ne>0?-1:1)*((d-f)*m)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ne+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=wa(i,r,a);if(t=Q(t),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Sa=["duration","bounce"],Pa=["stiffness","damping","mass"];function ls(t,e){return e.some(n=>t[n]!==void 0)}function Aa(t){let e={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...t};if(!ls(t,Pa)&&ls(t,Sa))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ct(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:j.mass,stiffness:i,damping:r}}else{const n=Ta({...t,velocity:0});e={...e,...n,mass:j.mass},e.isResolvedFromDuration=!0}return e}function Te(t=j.visualDuration,e=j.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=Aa({...n,velocity:-tt(n.velocity||0)}),m=d||0,g=c/(2*Math.sqrt(l*u)),p=o-r,b=tt(Math.sqrt(l/u)),x=Math.abs(p)<5;s||(s=x?j.restSpeed.granular:j.restSpeed.default),i||(i=x?j.restDelta.granular:j.restDelta.default);let v,P,C,D,B,y;if(g<1)C=tn(b,g),D=(m+g*b*p)/C,v=V=>{const I=Math.exp(-g*b*V);return o-I*(D*Math.sin(C*V)+p*Math.cos(C*V))},B=g*b*D+p*C,y=g*b*p-D*C,P=V=>Math.exp(-g*b*V)*(B*Math.sin(C*V)+y*Math.cos(C*V));else if(g===1){v=I=>o-Math.exp(-b*I)*(p+(m+b*p)*I);const V=m+b*p;P=I=>Math.exp(-b*I)*(b*V*I-m)}else{const V=b*Math.sqrt(g*g-1);v=J=>{const $=Math.exp(-g*b*J),F=Math.min(V*J,300);return o-$*((m+g*b*p)*Math.sinh(F)+V*p*Math.cosh(F))/V};const I=(m+g*b*p)/V,z=g*b*I-p*V,ot=g*b*p-I*V;P=J=>{const $=Math.exp(-g*b*J),F=Math.min(V*J,300);return $*(z*Math.sinh(F)+ot*Math.cosh(F))}}const E={calculatedDuration:f&&h||null,velocity:V=>Q(P(V)),next:V=>{if(!f&&g<1){const z=Math.exp(-g*b*V),ot=Math.sin(C*V),J=Math.cos(C*V),$=o-z*(D*ot+p*J),F=Q(z*(B*ot+y*J));return a.done=Math.abs(F)<=s&&Math.abs(o-$)<=i,a.value=a.done?o:$,a}const I=v(V);if(f)a.done=V>=h;else{const z=Q(P(V));a.done=Math.abs(z)<=s&&Math.abs(o-I)<=i}return a.value=a.done?o:I,a},toString:()=>{const V=Math.min(In(E),we),I=Xi(z=>E.next(V*z).value,V,30);return V+"ms "+I},toTransition:()=>{}};return E}Te.applyToOptions=t=>{const e=va(t,100,Te);return t.ease=e.ease,t.duration=Q(e.duration),t.type="keyframes",t};const ka=5;function qi(t,e,n){const s=Math.max(e-ka,0);return Mi(n-t(s),e-s)}function en({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=y=>a!==void 0&&y<a||l!==void 0&&y>l,m=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const p=h+g,b=o===void 0?p:o(p);b!==p&&(g=b-h);const x=y=>-g*Math.exp(-y/s),v=y=>b+x(y),P=y=>{const E=x(y),V=v(y);d.done=Math.abs(E)<=c,d.value=d.done?b:V};let C,D;const B=y=>{f(d.value)&&(C=y,D=Te({keyframes:[d.value,m(d.value)],velocity:qi(v,y,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return B(0),{calculatedDuration:null,next:y=>{let E=!1;return!D&&C===void 0&&(E=!0,P(y),B(y)),C!==void 0&&y>=C?D.next(y-C):(!E&&P(y),d)}}}function Ca(t,e,n){const s=[],i=n||bt.mix||Yi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||et:e;a=qt(l,a)}s.push(a)}return s}function Va(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(kn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ca(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=$t(t[h],t[h+1],u);return a[h](d)};return n?u=>c(ct(t[0],t[r-1],u)):c}function Ma(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=$t(0,e,s);t.push(L(n,1,i))}}function Ea(t){const e=[0];return Ma(e,t.length-1),e}function Da(t,e){return t.map(n=>n*e)}function Ra(t,e){return t.map(()=>e||Oi).splice(0,t.length-1)}function Gt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=zr(s)?s.map(ns):ns(s),r={done:!1,value:e[0]},o=Da(n&&n.length===e.length?n:Ea(e),t),a=Va(o,e,{ease:Array.isArray(i)?i:Ra(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const La=t=>t!==null;function Me(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(La),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Ia={decay:en,inertia:en,tween:Gt,keyframes:Gt,spring:Te};function Zi(t){typeof t.type=="string"&&(t.type=Ia[t.type])}class Bn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Ba=t=>t/100;class Se extends Bn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Zi(e);const{type:n=Gt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Gt;l!==Gt&&typeof a[0]!="number"&&(this.mixKeyframes=qt(Ba,Yi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=In(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,P=s;if(h){const y=Math.min(this.currentTime,i)/a;let E=Math.floor(y),V=y%1;!V&&y>=1&&(V=1),V===1&&E--,E=Math.min(E,h+1),E%2&&(d==="reverse"?(V=1-V,f&&(V-=f/a)):d==="mirror"&&(P=o)),v=ct(0,1,V)*a}let C;x?(this.delayState.value=u[0],C=this.delayState):C=P.next(v),r&&!x&&(C.value=r(C.value));let{done:D}=C;!x&&l!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return B&&m!==en&&(C.value=Me(u,this.options,p,this.speed)),g&&g(C.value),B&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return tt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tt(e)}get time(){return tt(this.currentTime)}set time(e){e=Q(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return qi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=tt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=ba,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Fa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const kt=t=>t*180/Math.PI,nn=t=>{const e=kt(Math.atan2(t[1],t[0]));return sn(e)},ja={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:nn,rotateZ:nn,skewX:t=>kt(Math.atan(t[1])),skewY:t=>kt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},sn=t=>(t=t%360,t<0&&(t+=360),t),cs=nn,us=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),hs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Oa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:us,scaleY:hs,scale:t=>(us(t)+hs(t))/2,rotateX:t=>sn(kt(Math.atan2(t[6],t[5]))),rotateY:t=>sn(kt(Math.atan2(-t[2],t[0]))),rotateZ:cs,rotate:cs,skewX:t=>kt(Math.atan(t[4])),skewY:t=>kt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function on(t){return t.includes("scale")?1:0}function rn(t,e){if(!t||t==="none")return on(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Oa,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ja,i=a}if(!i)return on(e);const r=s[e],o=i[1].split(",").map(za);return typeof r=="function"?r(o):o[r]}const Na=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return rn(n,e)};function za(t){return parseFloat(t.trim())}const jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ot=new Set(jt),ds=t=>t===Ft||t===T,Wa=new Set(["x","y","z"]),Ua=jt.filter(t=>!Wa.has(t));function Ga(t){const e=[];return Ua.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const yt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>rn(e,"x"),y:(t,{transform:e})=>rn(e,"y")};yt.translateX=yt.x;yt.translateY=yt.y;const Ct=new Set;let an=!1,ln=!1,cn=!1;function Ji(){if(ln){const t=Array.from(Ct).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Ga(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ln=!1,an=!1,Ct.forEach(t=>t.complete(cn)),Ct.clear()}function Qi(){Ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ln=!0)})}function Ka(){cn=!0,Qi(),Ji(),cn=!1}class Fn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ct.add(this),an||(an=!0,R.read(Qi),R.resolveKeyframes(Ji))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Fa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ct.delete(this)}cancel(){this.state==="scheduled"&&(Ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ha=t=>t.startsWith("--");function to(t,e,n){Ha(e)?t.style.setProperty(e,n):t.style[e]=n}const $a={};function eo(t,e){const n=Vi(t);return()=>$a[e]??n()}const _a=eo(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),no=eo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,fs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function so(t,e){if(t)return typeof t=="function"?no()?Xi(t,e):"ease-out":Ni(t)?Wt(t):Array.isArray(t)?t.map(n=>so(n,e)||fs.easeOut):fs[t]}function Ya(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=so(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function io(t){return typeof t=="function"&&"applyToOptions"in t}function Xa({type:t,...e}){return io(t)&&no()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class oo extends Bn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,kn(typeof e.type!="string");const c=Xa(e);this.animation=Ya(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=Me(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),to(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:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return tt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tt(e)}get time(){return tt(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Q(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&_a()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),et):i(this)}}const ro={anticipate:Bi,backInOut:Ii,circInOut:ji};function qa(t){return t in ro}function Za(t){typeof t.ease=="string"&&qa(t.ease)&&(t.ease=ro[t.ease])}const ze=10;class Ja extends oo{constructor(e){Za(e),Zi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Se({...o,autoplay:!1}),l=Math.max(ze,q.now()-this.startTime),c=ct(0,ze,l-ze),u=a.sample(l).value,{name:h}=this.options;r&&h&&to(r,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const ms=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(it.test(t)||t==="0")&&!t.startsWith("url("));function Qa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function tl(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=ms(i,e),a=ms(r,e);return!o||!a?!1:Qa(t)||(n==="spring"||io(n))&&s}function un(t){t.duration=0,t.type="keyframes"}const ao=new Set(["opacity","clipPath","filter","transform"]),el=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function nl(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&el.test(t[e]))return!0;return!1}const sl=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),il=Vi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ol(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return il()&&n&&(ao.has(n)||sl.has(n)&&nl(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const rl=40;class al extends Bn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="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=q.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},f=u?.KeyframeResolver||Fn;this.keyframeResolver=new f(a,(m,g,p)=>this.onKeyframesResolved(m,g,d,!p),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=q.now();let h=!0;tl(e,r,o,a)||(h=!1,(bt.instantAnimations||!l)&&u?.(Me(e,s,n)),e[0]=e[e.length-1],un(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>rl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=h&&!c&&ol(f),g=f.motionValue?.owner?.current;let p;if(m)try{p=new Ja({...f,element:g})}catch{p=new Se(f)}else p=new Se(f);p.finished.then(()=>{this.notifyFinished()}).catch(et),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ka()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function lo(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ll=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cl(t){const e=ll.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function co(t,e,n=1){const[s,i]=cl(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ai(o)?parseFloat(o):o}return En(i)?co(i,e,n+1):i}const ul={type:"spring",stiffness:500,damping:25,restSpeed:10},hl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dl={type:"keyframes",duration:.8},fl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ml=(t,{keyframes:e})=>e.length>2?dl:Ot.has(t)?t.startsWith("scale")?hl(e[1]):ul:fl;function uo(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function jn(t,e){const n=t?.[e]??t?.default??t;return n!==t?uo(n,t):n}const pl=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function gl(t){for(const e in t)if(!pl.has(e))return!0;return!1}const On=(t,e,n,s={},i,r)=>o=>{const a=jn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-Q(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};gl(a)||Object.assign(u,ml(t,u)),u.duration&&(u.duration=Q(u.duration)),u.repeatDelay&&(u.repeatDelay=Q(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(un(u),u.delay===0&&(h=!0)),(bt.instantAnimations||bt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,un(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=Me(u.keyframes,a);if(d!==void 0){R.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Se(u):new al(u)};function ps(t){const e=[{},{}];
vendor: 83,317 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Nn(t,e,n,s){if(typeof e=="function"){const[i,r]=ps(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=ps(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Vt(t,e,n){const s=t.getProps();return Nn(s,e,n!==void 0?n:s.custom,t)}const ho=new Set(["width","height","top","left","right","bottom",...jt]),gs=30,yl=t=>!isNaN(parseFloat(t));class bl{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=q.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=yl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),R.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>gs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gs);return Mi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bt(t,e){return new bl(t,e)}const hn=t=>Array.isArray(t);function vl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Bt(n))}function xl(t){return hn(t)?t[t.length-1]||0:t}function wl(t,e){const n=Vt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=xl(r[o]);vl(t,o,a)}}const H=t=>!!(t&&t.getVelocity);function Tl(t){return!!(H(t)&&t.add)}function dn(t,e){const n=t.getValue("willChange");if(Tl(n))return n.add(e);if(!n&&bt.WillChange){const s=new bt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function zn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Sl="framerAppearId",fo="data-"+zn(Sl);function mo(t){return t.props[fo]}function Pl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function po(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?uo(r,l):l;const c=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);const h=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const m=t.getValue(f,t.latestValues[f]??null),g=a[f];if(g===void 0||d&&Pl(d,f))continue;const p={delay:n,...jn(r||{},f)};u&&(p.skipAnimations=!0);const b=m.get();if(b!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===b&&!p.velocity){R.update(()=>m.set(g));continue}let x=!1;if(window.MotionHandoffAnimation){const C=mo(t);if(C){const D=window.MotionHandoffAnimation(C,f,R);D!==null&&(p.startTime=D,x=!0)}}dn(t,f);const v=c??t.shouldReduceMotion;m.start(On(f,m,g,v&&ho.has(f)?{type:!1}:p,t,x));const P=m.animation;P&&h.push(P)}if(o){const f=()=>R.update(()=>{o&&wl(t,o)});h.length?Promise.all(h).then(f):f()}return h}function fn(t,e,n={}){const s=Vt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(po(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Al(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Al(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(fn(l,e,{...o,delay:n+(typeof s=="function"?0:s)+lo(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function kl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>fn(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=fn(t,e,n);else{const i=typeof e=="function"?Vt(t,e,n.custom):e;s=Promise.all(po(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Cl={test:t=>t==="auto",parse:t=>t},go=t=>e=>e.test(t),yo=[Ft,T,lt,pt,Qr,Jr,Cl],ys=t=>yo.find(go(t));function Vl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ci(t):!0}const Ml=new Set(["brightness","contrast","saturate","opacity"]);function El(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Dn)||[];if(!s)return t;const i=n.replace(s,"");let r=Ml.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Dl=/\b([a-z-]*)\(.*?\)/gu,mn={...it,getAnimatableNone:t=>{const e=t.match(Dl);return e?e.map(El).join(" "):t}},pn={...it,getAnimatableNone:t=>{const e=it.parse(t);return it.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},bs={...Ft,transform:Math.round},Rl={rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:re,scaleX:re,scaleY:re,scaleZ:re,skew:pt,skewX:pt,skewY:pt,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:_t,originX:is,originY:is,originZ:T},Wn={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,...Rl,zIndex:bs,fillOpacity:_t,strokeOpacity:_t,numOctaves:bs},Ll={...Wn,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:mn,WebkitFilter:mn,mask:pn,WebkitMask:pn},bo=t=>Ll[t],Il=new Set([mn,pn]);function vo(t,e){let n=bo(t);return Il.has(n)||(n=it),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Bl=new Set(["auto","none","0"]);function Fl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Bl.has(r)&&It(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=vo(n,i)}class jl extends Fn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),En(h))){const d=co(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ho.has(s)||e.length!==2)return;const[i,r]=e,o=ys(i),a=ys(r),l=ss(i),c=ss(r);if(l!==c&&yt[s]){this.needsMeasurement=!0;return}if(o!==a)if(ds(o)&&ds(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else yt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Vl(e[i]))&&s.push(i);s.length&&Fl(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=yt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function xo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const wo=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ol(t){return ki(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Un}=zi(queueMicrotask,!1),st={x:!1,y:!1};function To(){return st.x||st.y}function Nl(t){return t==="x"||t==="y"?st[t]?null:(st[t]=!0,()=>{st[t]=!1}):st.x||st.y?null:(st.x=st.y=!0,()=>{st.x=st.y=!1})}function So(t,e){const n=xo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function zl(t){return!(t.pointerType==="touch"||To())}function Wl(t,e,n={}){const[s,i,r]=So(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",m)},h=p=>{c&&(c(p),c=void 0),u()},d=p=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,h(p))},f=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},m=p=>{if(p.pointerType!=="touch"){if(a){l=!0;return}h(p)}},g=p=>{if(!zl(p))return;l=!1;const b=e(o,p);typeof b=="function"&&(c=b,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",f,i)}),r}const Po=(t,e)=>e?t===e?!0:Po(t,e.parentElement):!1,Gn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ul=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Gl(t){return Ul.has(t.tagName)||t.isContentEditable===!0}const Kl=new Set(["INPUT","SELECT","TEXTAREA"]);function Hl(t){return Kl.has(t.tagName)||t.isContentEditable===!0}const de=new WeakSet;function vs(t){return e=>{e.key==="Enter"&&t(e)}}function We(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const $l=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=vs(()=>{if(de.has(n))return;We(n,"down");const i=vs(()=>{We(n,"up")}),r=()=>We(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function xs(t){return Gn(t)&&!To()}const ws=new WeakSet;function _l(t,e,n={}){const[s,i,r]=So(t,n),o=a=>{const l=a.currentTarget;if(!xs(a)||ws.has(a))return;de.add(l),n.stopPropagation&&ws.add(a);const c=e(l,a),u=(f,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),de.has(l)&&de.delete(l),xs(f)&&typeof c=="function"&&c(f,{success:m})},h=f=>{u(f,l===window||l===document||n.useGlobalTarget||Po(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ol(a)&&(a.addEventListener("focus",c=>$l(c,i)),!Gl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Kn(t){return ki(t)&&"ownerSVGElement"in t}const fe=new WeakMap;let me;const Ao=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Kn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Yl=Ao("inline","width","offsetWidth"),Xl=Ao("block","height","offsetHeight");function ql({target:t,borderBoxSize:e}){fe.get(t)?.forEach(n=>{n(t,{get width(){return Yl(t,e)},get height(){return Xl(t,e)}})})}function Zl(t){t.forEach(ql)}function Jl(){typeof ResizeObserver>"u"||(me=new ResizeObserver(Zl))}function Ql(t,e){me||Jl();const n=xo(t);return n.forEach(s=>{let i=fe.get(s);i||(i=new Set,fe.set(s,i)),i.add(e),me?.observe(s)}),()=>{n.forEach(s=>{const i=fe.get(s);i?.delete(e),i?.size||me?.unobserve(s)})}}const pe=new Set;let Rt;function tc(){Rt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};pe.forEach(e=>e(t))},window.addEventListener("resize",Rt)}function ec(t){return pe.add(t),Rt||tc(),()=>{pe.delete(t),!pe.size&&typeof Rt=="function"&&(window.removeEventListener("resize",Rt),Rt=void 0)}}function Ts(t,e){return typeof t=="function"?ec(t):Ql(t,e)}function nc(t){return Kn(t)&&t.tagName==="svg"}const sc=[...yo,N,it],ic=t=>sc.find(go(t)),Ss=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lt=()=>({x:Ss(),y:Ss()}),Ps=()=>({min:0,max:0}),U=()=>({x:Ps(),y:Ps()}),oc=new WeakMap;function Ee(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Yt(t){return typeof t=="string"||Array.isArray(t)}const Hn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$n=["initial",...Hn];function De(t){return Ee(t.animate)||$n.some(e=>Yt(t[e]))}function ko(t){return!!(De(t)||t.variants)}function rc(t,e,n){for(const s in e){const i=e[s],r=n[s];if(H(i))t.addValue(s,i);else if(H(r))t.addValue(s,Bt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Bt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const gn={current:null},Co={current:!1},ac=typeof window<"u";function lc(){if(Co.current=!0,!!ac)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gn.current=t.matches;t.addEventListener("change",e),e()}else gn.current=!1}const As=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pe={};function Vo(t){Pe=t}function cc(){return Pe}class uc{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Fn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=q.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,R.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=De(n),this.isVariantNode=ko(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const m=d[f];c[f]!==void 0&&H(m)&&m.set(c[f])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,oc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Co.current||lc(),this.shouldReduceMotion=gn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),vt(this.notifyUpdate),vt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&ao.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new oo({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:Q(u)}),d=o(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const s=Ot.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&R.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Pe){const n=Pe[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<As.length;s++){const i=As[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=rc(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Bt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Ai(s)||Ci(s))?s=parseFloat(s):!ic(s)&&it.test(n)&&(s=vo(e,n)),this.setBaseTarget(e,H(s)?s.get():s)),H(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Nn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!H(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Un.render(this.render)}}class Mo extends uc{constructor(){super(...arguments),this.KeyframeResolver=jl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;H(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class xt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Eo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function hc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function dc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ue(t){return t===void 0||t===1}function yn({scale:t,scaleX:e,scaleY:n}){return!Ue(t)||!Ue(e)||!Ue(n)}function Pt(t){return yn(t)||Do(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Do(t){return ks(t.x)||ks(t.y)}function ks(t){return t&&t!=="0%"}function Ae(t,e,n){const s=t-n,i=e*s;return n+i}function Cs(t,e,n,s,i){return i!==void 0&&(t=Ae(t,i,s)),Ae(t,n,s)+e}function bn(t,e=0,n=1,s,i){t.min=Cs(t.min,e,n,s,i),t.max=Cs(t.max,e,n,s,i)}function Ro(t,{x:e,y:n}){bn(t.x,e.translate,e.scale,e.originPoint),bn(t.y,n.translate,n.scale,n.originPoint)}const Vs=.999999999999,Ms=1.0000000000001;function fc(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(at(t.x,-r.scroll.offset.x),at(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ro(t,o)),s&&Pt(r.latestValues)&&ge(t,r.latestValues,r.layout?.layoutBox))}e.x<Ms&&e.x>Vs&&(e.x=1),e.y<Ms&&e.y>Vs&&(e.y=1)}function at(t,e){t.min+=e,t.max+=e}function Es(t,e,n,s,i=.5){const r=L(t.min,t.max,i);bn(t,e,n,r,s)}function Ds(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ge(t,e,n){const s=n??t;Es(t.x,Ds(e.x,s.x),e.scaleX,e.scale,e.originX),Es(t.y,Ds(e.y,s.y),e.scaleY,e.scale,e.originY)}function Lo(t,e){return Eo(dc(t.getBoundingClientRect(),e))}function mc(t,e,n){const s=Lo(t,n),{scroll:i}=e;return i&&(at(s.x,i.offset.x),at(s.y,i.offset.y)),s}const pc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gc=jt.length;function yc(t,e,n){let s="",i=!0;for(let r=0;r<gc;r++){const o=jt[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=wo(a,Wn[o]);if(!l){i=!1;const u=pc[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function _n(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Ot.has(l)){o=!0;continue}else if(Ui(l)){i[l]=c;continue}else{const u=wo(c,Wn[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=yc(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function Io(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Rs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Nt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Rs(t,e.target.x),s=Rs(t,e.target.y);return`${n}% ${s}%`}},bc={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=it.parse(t);if(i.length>5)return s;const r=it.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=L(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},vn={borderRadius:{...Nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nt,borderTopRightRadius:Nt,borderBottomLeftRadius:Nt,borderBottomRightRadius:Nt,boxShadow:bc};function Bo(t,{layout:e,layoutId:n}){return Ot.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!vn[t]||t==="opacity")}function Yn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(H(s[o])||i&&H(i[o])||Bo(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function vc(t){return window.getComputedStyle(t)}class xc extends Mo{constructor(){super(...arguments),this.type="html",this.renderInstance=Io}readValueFromInstance(e,n){if(Ot.has(n))return this.projection?.isProjecting?on(n):Na(e,n);{const s=vc(e),i=(Ui(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Lo(e,n)}build(e,n,s){_n(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Yn(e,n,s)}}const wc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tc={offset:"strokeDashoffset",array:"strokeDasharray"};function Sc(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?wc:Tc;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Pc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(_n(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const f of Pc)h[f]!==void 0&&(d[f]=h[f],delete h[f]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Sc(h,i,r,o,!1)}const jo=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"]),Oo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ac(t,e,n,s){Io(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(jo.has(i)?i:zn(i),e.attrs[i])}function No(t,e,n){const s=Yn(t,e,n);for(const i in t)if(H(t[i])||H(e[i])){const r=jt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class kc extends Mo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ot.has(n)){const s=bo(n);return s&&s.default||0}return n=jo.has(n)?n:zn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return No(e,n,s)}build(e,n,s){Fo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Ac(e,n,s,i)}mount(e){this.isSVGTag=Oo(e.tagName),super.mount(e)}}const Cc=$n.length;function zo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?zo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Cc;n++){const s=$n[n],i=t.props[s];(Yt(i)||i===!1)&&(e[s]=i)}return e}function Wo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Vc=[...Hn].reverse(),Mc=Hn.length;function Ec(t){return e=>Promise.all(e.map(({animation:n,options:s})=>kl(t,n,s)))}function Dc(t){let e=Ec(t),n=Ls(),s=!0,i=!1;const r=c=>(u,h)=>{const d=Vt(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:m,...g}=d;u={...u,...g,...m}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,h=zo(t.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let b=0;b<Mc;b++){const x=Vc[b],v=n[x],P=u[x]!==void 0?u[x]:h[x],C=Yt(P),D=x===c?v.isActive:null;D===!1&&(g=b);let B=P===h[x]&&P!==u[x]&&C;if(B&&(s||i)&&t.manuallyAnimateOnMount&&(B=!1),v.protectedKeys={...m},!v.isActive&&D===null||!P&&!v.prevProp||Ee(P)||typeof P=="boolean")continue;if(x==="exit"&&v.isActive&&D!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const y=Rc(v.prevProp,P);let E=y||x===c&&v.isActive&&!B&&C||b>g&&C,V=!1;const I=Array.isArray(P)?P:[P];let z=I.reduce(r(x),{});D===!1&&(z={});const{prevResolvedValues:ot={}}=v,J={...ot,...z},$=O=>{E=!0,f.has(O)&&(V=!0,f.delete(O)),v.needsAnimating[O]=!0;const _=t.getValue(O);_&&(_.liveStyle=!1)};for(const O in J){const _=z[O],A=ot[O];if(m.hasOwnProperty(O))continue;let ut=!1;hn(_)&&hn(A)?ut=!Wo(_,A)||y:ut=_!==A,ut?_!=null?$(O):f.add(O):_!==void 0&&f.has(O)?$(O):v.protectedKeys[O]=!0}v.prevProp=P,v.prevResolvedValues=z,v.isActive&&(m={...m,...z}),(s||i)&&t.blockInitialAnimation&&(E=!1);const F=B&&y;E&&(!F||V)&&d.push(...I.map(O=>{const _={type:x};if(typeof O=="string"&&(s||i)&&!F&&t.manuallyAnimateOnMount&&t.parent){const{parent:A}=t,ut=Vt(A,O);if(A.enteringChildren&&ut){const{delayChildren:te}=ut.transition||{};_.delay=lo(A.enteringChildren,t,te)}}return{animation:O,options:_}}))}if(f.size){const b={};if(typeof u.initial!="boolean"){const x=Vt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(b.transition=x.transition)}f.forEach(x=>{const v=t.getBaseTarget(x),P=t.getValue(x);P&&(P.liveStyle=!0),b[x]=v??null}),d.push({animation:b})}let p=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,i=!1,p?e(d):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(c,u)),n[c].isActive=u;const h=a(c);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ls(),i=!0}}}function Rc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Wo(e,t):!1}function Tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ls(){return{animate:Tt(!0),whileInView:Tt(),whileHover:Tt(),whileTap:Tt(),whileDrag:Tt(),whileFocus:Tt(),exit:Tt()}}function xn(t,e){t.min=e.min,t.max=e.max}function nt(t,e){xn(t.x,e.x),xn(t.y,e.y)}function Is(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Uo=1e-4,Lc=1-Uo,Ic=1+Uo,Go=.01,Bc=0-Go,Fc=0+Go;function Z(t){return t.max-t.min}function jc(t,e,n){return Math.abs(t-e)<=n}function Bs(t,e,n,s=.5){t.origin=s,t.originPoint=L(e.min,e.max,t.origin),t.scale=Z(n)/Z(e),t.translate=L(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Lc&&t.scale<=Ic||isNaN(t.scale))&&(t.scale=1),(t.translate>=Bc&&t.translate<=Fc||isNaN(t.translate))&&(t.translate=0)}function Kt(t,e,n,s){Bs(t.x,e.x,n.x,s?s.originX:void 0),Bs(t.y,e.y,n.y,s?s.originY:void 0)}function Fs(t,e,n,s=0){const i=s?L(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+Z(e)}function Oc(t,e,n,s){Fs(t.x,e.x,n.x,s?.x),Fs(t.y,e.y,n.y,s?.y)}function js(t,e,n,s=0){const i=s?L(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+Z(e)}function ke(t,e,n,s){js(t.x,e.x,n.x,s?.x),js(t.y,e.y,n.y,s?.y)}function Os(t,e,n,s,i){return t-=e,t=Ae(t,1/n,s),i!==void 0&&(t=Ae(t,1/i,s)),t}function Nc(t,e=0,n=1,s=.5,i,r=t,o=t){if(lt.test(e)&&(e=parseFloat(e),e=L(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=L(r.min,r.max,s);t===r&&(a-=e),t.min=Os(t.min,e,n,a,i),t.max=Os(t.max,e,n,a,i)}function Ns(t,e,[n,s,i],r,o){Nc(t,e[n],e[s],e[i],e.scale,r,o)}const zc=["x","scaleX","originX"],Wc=["y","scaleY","originY"];function zs(t,e,n,s){Ns(t.x,e,zc,n?n.x:void 0,s?s.x:void 0),Ns(t.y,e,Wc,n?n.y:void 0,s?s.y:void 0)}function Ws(t){return t.translate===0&&t.scale===1}function Ko(t){return Ws(t.x)&&Ws(t.y)}function Us(t,e){return t.min===e.min&&t.max===e.max}function Uc(t,e){return Us(t.x,e.x)&&Us(t.y,e.y)}function Gs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ho(t,e){return Gs(t.x,e.x)&&Gs(t.y,e.y)}function Ks(t){return Z(t.x)/Z(t.y)}function Hs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function rt(t){return[t("x"),t("y")]}function Gc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),f&&(s+=`skewX(${f}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const $o=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Kc=$o.length,$s=t=>typeof t=="string"?parseFloat(t):t,_s=t=>typeof t=="number"||T.test(t);function Hc(t,e,n,s,i,r){i?(t.opacity=L(0,n.opacity??1,$c(s)),t.opacityExit=L(e.opacity??1,0,_c(s))):r&&(t.opacity=L(e.opacity??1,n.opacity??1,s));for(let o=0;o<Kc;o++){const a=$o[o];let l=Ys(e,a),c=Ys(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||_s(l)===_s(c)?(t[a]=Math.max(L($s(l),$s(c),s),0),(lt.test(c)||lt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=L(e.rotate||0,n.rotate||0,s))}function Ys(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const $c=_o(0,.5,Fi),_c=_o(.5,.95,et);function _o(t,e,n){return s=>s<t?0:s>e?1:n($t(t,e,s))}function Yc(t,e,n){const s=H(t)?t:Bt(t);return s.start(On("",s,e,n)),s.animation}function Xt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Xc=(t,e)=>t.depth-e.depth;class qc{constructor(){this.children=[],this.isDirty=!1}add(e){An(this.children,e),this.isDirty=!0}remove(e){ve(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Xc),this.isDirty=!1,this.children.forEach(e)}}function Zc(t,e){const n=q.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(vt(s),t(r-e))};return R.setup(s,!0),()=>vt(s)}function ye(t){return H(t)?t.get():t}class Jc{constructor(){this.members=[]}add(e){An(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ve(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ve(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const be={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ge=["","X","Y","Z"],Qc=1e3;let tu=0;function Ke(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Yo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",R,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Yo(s)}function Xo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=tu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(su),this.nodes.forEach(cu),this.nodes.forEach(uu),this.nodes.forEach(iu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new qc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Cn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Kn(o)&&!nc(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;R.read(()=>{h=window.innerWidth}),t(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=Zc(d,250),be.hasAnimatedSinceResize&&(be.hasAnimatedSinceResize=!1,this.nodes.forEach(Zs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||pu,{onLayoutAnimationStart:g,onLayoutAnimationComplete:p}=c.getProps(),b=!this.targetLayout||!Ho(this.targetLayout,f),x=!h&&d;if(this.options.layoutRoot||this.resumeFrom||x||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...jn(m,"layout"),onPlay:g,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,x)}else h||Zs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(ru),this.nodes.forEach(Xs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(au),this.nodes.forEach(lu),this.nodes.forEach(eu),this.nodes.forEach(nu)):this.nodes.forEach(qs),this.clearAllSnapshots();const a=q.now();K.delta=ct(0,1e3/60,a-K.timestamp),K.timestamp=a,K.isProcessing=!0,Be.update.process(K),Be.preRender.process(K),Be.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Un.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(du)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=U()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ko(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Pt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),gu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return U();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(yu))){const{scroll:c}=this.root;c&&(at(a.x,c.offset.x),at(a.y,c.offset.y))}return a}removeElementScroll(o){const a=U();if(nt(a,o),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&&nt(a,o),at(a.x,u.offset.x),at(a.y,u.offset.y))}return a}applyTransform(o,a=!1,l){const c=l||U();nt(c,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(at(c.x,-h.scroll.offset.x),at(c.y,-h.scroll.offset.y)),Pt(h.latestValues)&&ge(c,h.latestValues,h.layout?.layoutBox)}return Pt(this.latestValues)&&ge(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(o){const a=U();nt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!Pt(c.latestValues))continue;let u;c.instance&&(yn(c.latestValues)&&c.updateSnapshot(),u=U(),nt(u,c.measurePageBox())),zs(a,c.latestValues,c.snapshot?.layoutBox,u)}return Pt(this.latestValues)&&zs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||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))return;this.resolvedRelativeTargetAt=K.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Oc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nt(this.target,this.layout.layoutBox),Ro(this.target,this.targetDelta)):nt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||yn(this.parent.latestValues)||Do(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),ke(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),nt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.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;nt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;fc(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=U());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Is(this.prevProjectionDelta.x,this.projectionDelta.x),Is(this.prevProjectionDelta.y,this.projectionDelta.y)),Kt(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!Hs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lt(),this.projectionDelta=Lt(),this.projectionDeltaWithTransform=Lt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Lt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=U(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=f!==m,p=this.getStack(),b=!p||p.members.length<=1,x=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(mu));this.animationProgress=0;let v;this.mixTargetDelta=P=>{const C=P/1e3;Js(h.x,o.x,C),Js(h.y,o.y,C),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ke(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),fu(this.relativeTarget,this.relativeTargetOrigin,d,C),v&&Uc(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=U()),nt(v,this.relativeTarget)),g&&(this.animationValues=u,Hc(u,c,this.latestValues,C,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Yc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&qo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||U();const h=Z(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=Z(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}nt(a,l),ge(a,u),Kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Jc),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ke("z",o,c,this.animationValues);for(let u=0;u<Ge.length;u++)Ke(`rotate${Ge[u]}`,o,c,this.animationValues),Ke(`skew${Ge[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=ye(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=ye(a?.pointerEvents)||""),this.hasProjected&&!Pt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Gc(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:d,y:f}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in vn){if(u[m]===void 0)continue;const{correct:g,applyTo:p,isCSSVariable:b}=vn[m],x=h==="none"?u[m]:g(u[m],c);if(p){const v=p.length;for(let P=0;P<v;P++)o[p[P]]=x}else b?this.options.visualElement.renderState.vars[m]=x:o[m]=x}this.options.layoutId&&(o.pointerEvents=c===this?ye(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Xs),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function nu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")rt(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],d=Z(h);h.min=n[u].min,h.max=h.min+d});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";xn(r?e.measuredBox[u]:e.layoutBox[u],n[u])}else qo(i,e.layoutBox,n)&&rt(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],d=Z(n[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const o=Lt();Kt(o,n,e.layoutBox);const a=Lt();r?Kt(a,t.applyTransform(s,!0),e.measuredBox):Kt(a,n,e.layoutBox);const l=!Ko(o);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const f=t.options.layoutAnchor||void 0,m=U();ke(m,e.layoutBox,h.layoutBox,f);const g=U();ke(g,n,d.layoutBox,f),Ho(m,g)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function su(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ou(t){t.clearSnapshot()}function Xs(t){t.clearMeasurements()}function ru(t){t.isLayoutDirty=!0,t.updateLayout()}function qs(t){t.isLayoutDirty=!1}function au(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function lu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Zs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function cu(t){t.resolveTargetDelta()}function uu(t){t.calcProjection()}function hu(t){t.resetSkewAndRotation()}function du(t){t.removeLeadSnapshot()}function Js(t,e,n){t.translate=L(e.translate,0,n),t.scale=L(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qs(t,e,n,s){t.min=L(e.min,n.min,s),t.max=L(e.max,n.max,s)}function fu(t,e,n,s){Qs(t.x,e.x,n.x,s),Qs(t.y,e.y,n.y,s)}function mu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pu={duration:.45,ease:[.4,0,.1,1]},ti=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ei=ti("applewebkit/")&&!ti("chrome/")?Math.round:et;function ni(t){t.min=ei(t.min),t.max=ei(t.max)}function gu(t){ni(t.x),ni(t.y)}function qo(t,e,n){return t==="position"||t==="preserve-aspect"&&!jc(Ks(e),Ks(n),.2)}function yu(t){return t!==t.root&&t.scroll?.wasRoot}const bu=Xo({attachResizeListener:(t,e)=>Xt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),He={current:void 0},Zo=Xo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!He.current){const t=new bu({});t.mount(window),t.setOptions({layoutScroll:!0}),He.current=t}return He.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Jo=k.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function vu(t=!0){const e=k.useContext(Pn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=k.useId();k.useEffect(()=>{if(t)return i(r)},[t]);const o=k.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const Qo=k.createContext({strict:!1}),si={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ii=!1;function xu(){if(ii)return;const t={};for(const e in si)t[e]={isEnabled:n=>si[e].some(s=>!!n[s])};Vo(t),ii=!0}function tr(){return xu(),cc()}function wu(t){const e=tr();for(const n in t)e[n]={...e[n],...t[n]};Vo(e)}const Tu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ce(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Tu.has(t)}let er=t=>!Ce(t);function Su(t){typeof t=="function"&&(er=e=>e.startsWith("on")?!Ce(e):t(e))}try{Su(require("@emotion/is-prop-valid").default)}catch{}function Pu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||H(t[i])||(er(i)||n===!0&&Ce(i)||!e&&!Ce(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Re=k.createContext({});function Au(t,e){if(De(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Yt(n)?n:void 0,animate:Yt(s)?s:void 0}}return t.inherit!==!1?e:{}}function ku(t){const{initial:e,animate:n}=Au(t,k.useContext(Re));return k.useMemo(()=>({initial:e,animate:n}),[oi(e),oi(n)])}function oi(t){return Array.isArray(t)?t.join(" "):t}const Xn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nr(t,e,n){for(const s in e)!H(e[s])&&!Bo(s,n)&&(t[s]=e[s])}function Cu({transformTemplate:t},e){return k.useMemo(()=>{const n=Xn();return _n(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Vu(t,e){const n=t.style||{},s={};return nr(s,n,t),Object.assign(s,Cu(t,e)),s}function Mu(t,e){const n={},s=Vu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const sr=()=>({...Xn(),attrs:{}});function Eu(t,e,n,s){const i=k.useMemo(()=>{const r=sr();return Fo(r,e,Oo(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};nr(r,t.style,t),i.style={...r,...i.style}}return i}const Du=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qn(t){return typeof t!="string"||t.includes("-")?!1:!!(Du.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ru(t,e,n,{latestValues:s},i,r=!1,o){const l=(o??qn(t)?Eu:Mu)(e,s,i,t),c=Pu(e,typeof t=="string",r),u=t!==k.Fragment?{...c,...l,ref:n}:{},{children:h}=e,d=k.useMemo(()=>H(h)?h.get():h,[h]);return k.createElement(t,{...u,children:d})}function Lu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Iu(n,s,i,t),renderState:e()}}function Iu(t,e,n,s){const i={},r=s(t,{});for(const d in r)i[d]=ye(r[d]);let{initial:o,animate:a}=t;const l=De(t),c=ko(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!Ee(h)){const d=Array.isArray(h)?h:[h];for(let f=0;f<d.length;f++){const m=Nn(t,d[f]);if(m){const{transitionEnd:g,transition:p,...b}=m;for(const x in b){let v=b[x];if(Array.isArray(v)){const P=u?v.length-1:0;v=v[P]}v!==null&&(i[x]=v)}for(const x in g)i[x]=g[x]}}}return i}const ir=t=>(e,n)=>{const s=k.useContext(Re),i=k.useContext(Pn),r=()=>Lu(t,e,s,i);return n?r():Rr(r)},Bu=ir({scrapeMotionValuesFromProps:Yn,createRenderState:Xn}),Fu=ir({scrapeMotionValuesFromProps:No,createRenderState:sr}),ju=Symbol.for("motionComponentSymbol");function Ou(t,e,n){const s=k.useRef(n);k.useInsertionEffect(()=>{s.current=n});const i=k.useRef(null);return k.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const or=k.createContext({});function Et(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Nu(t,e,n,s,i,r){const{visualElement:o}=k.useContext(Re),a=k.useContext(Qo),l=k.useContext(Pn),c=k.useContext(Jo),u=c.reducedMotion,h=c.skipAnimations,d=k.useRef(null),f=k.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:r}),f.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const m=d.current,g=k.useContext(or);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&zu(d.current,n,i,g);const p=k.useRef(!1);k.useInsertionEffect(()=>{m&&p.current&&m.update(n,l)});const b=n[fo],x=k.useRef(!!b&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Ir(()=>{f.current=!0,m&&(p.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),x.current=!1),m.enteringChildren=void 0)}),m}function zu(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:rr(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Et(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function rr(t){if(t)return t.options.allowProjection!==!1?t.projection:rr(t.parent)}function $e(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&wu(s);const r=n?n==="svg":qn(t),o=r?Fu:Bu;function a(c,u){let h;const d={...k.useContext(Jo),...c,layoutId:Wu(c)},{isStatic:f}=d,m=ku(c),g=o(c,f);if(!f&&typeof window<"u"){Uu();const p=Gu(d);h=p.MeasureLayout,m.visualElement=Nu(t,g,d,i,p.ProjectionNode,r)}return gt.jsxs(Re.Provider,{value:m,children:[h&&m.visualElement?gt.jsx(h,{visualElement:m.visualElement,...d}):null,Ru(t,c,Ou(g,m.visualElement,u),g,f,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=k.forwardRef(a);return l[ju]=t,l}function Wu({layoutId:t}){const e=k.useContext(Pi).id;return e&&t!==void 0?e+"-"+t:t}function Uu(t,e){k.useContext(Qo).strict}function Gu(t){const e=tr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Ku(t,e){if(typeof Proxy>"u")return $e;const n=new Map,s=(r,o)=>$e(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,$e(o,void 0,t,e)),n.get(o))})}const Hu=(t,e)=>e.isSVG??qn(t)?new kc(e):new xc(e,{allowProjection:t!==k.Fragment});class $u extends xt{constructor(e){super(e),e.animationState||(e.animationState=Dc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ee(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let _u=0;class Yu extends xt{constructor(){super(...arguments),this.id=_u++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=Vt(this.node,r,o);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Xu={animation:{Feature:$u},exit:{Feature:Yu}};function Qt(t){return{point:{x:t.pageX,y:t.pageY}}}const qu=t=>e=>Gn(e)&&t(e,Qt(e));function Ht(t,e,n,s){return Xt(t,e,qu(n),s)}const ar=({current:t})=>t?t.ownerDocument.defaultView:null,ri=(t,e)=>Math.abs(t-e);function Zu(t,e){const n=ri(t.x,e.x),s=ri(t.y,e.y);return Math.sqrt(n**2+s**2)}const ai=new Set(["auto","scroll"]);class lr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ae(this.lastRawMoveEventInfo,this.transformPagePoint));const f=_e(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Zu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:p}=f,{timestamp:b}=K;this.history.push({...p,timestamp:b});const{onStart:x,onMove:v}=this.handlers;m||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=ae(m,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:p,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_e(f.type==="pointercancel"?this.lastMoveEventInfo:ae(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,x),p&&p(f,x)},!Gn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=Qt(e),c=ae(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=K;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,_e(c,this.history)),this.removeListeners=qt(Ht(this.contextWindow,"pointermove",this.handlePointerMove),Ht(this.contextWindow,"pointerup",this.handlePointerUp),Ht(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(ai.has(s.overflowX)||ai.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),R.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vt(this.updatePoint)}}function ae(t,e){return e?{point:e(t.point)}:t}function li(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _e({point:t},e){return{point:t,delta:li(t,cr(e)),offset:li(t,Ju(e)),velocity:Qu(e,.1)}}function Ju(t){return t[0]}function cr(t){return t[t.length-1]}function Qu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=cr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>Q(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>Q(e)*2&&(s=t[1]);const r=tt(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function th(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?L(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?L(n,t,s.max):Math.min(t,n)),t}function ci(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function eh(t,{top:e,left:n,bottom:s,right:i}){return{x:ci(t.x,n,i),y:ci(t.y,e,s)}}function ui(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function nh(t,e){return{x:ui(t.x,e.x),y:ui(t.y,e.y)}}function sh(t,e){let n=.5;const s=Z(t),i=Z(e);return i>s?n=$t(e.min,e.max-s,t.min):s>i&&(n=$t(t.min,t.max-i,e.min)),ct(0,1,n)}function ih(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const wn=.35;function oh(t=wn){return t===!1?t=0:t===!0&&(t=wn),{x:hi(t,"left","right"),y:hi(t,"top","bottom")}}function hi(t,e,n){return{min:di(t,e),max:di(t,n)}}function di(t,e){return typeof t=="number"?t:t[e]||0}const rh=new WeakMap;class ah{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Qt(h).point),this.stopAnimation()},o=(h,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Nl(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rt(b=>{let x=this.getAxisMotionValue(b).get()||0;if(lt.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const P=v.layout.layoutBox[b];P&&(x=Z(P)*(parseFloat(x)/100))}}this.originPoint[b]=x}),g&&R.update(()=>g(h,d),!1,!0),dn(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=d;if(m&&this.currentDirection===null){this.currentDirection=ch(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),p&&R.update(()=>p(h,d),!1,!0)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new lr(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:ar(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!le(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=th(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Et(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=eh(s.layoutBox,e):this.constraints=!1,this.elastic=oh(n),i!==this.constraints&&!Et(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&rt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ih(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Et(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=mc(s,i.root,this.visualElement.getTransformPagePoint());let o=nh(i.layout.layoutBox,r);if(n){const a=n(hc(o));this.hasMutatedConstraints=!!a,a&&(o=Eo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=rt(u=>{if(!le(u,n,this.currentDirection))return;let h=l&&l[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return dn(this.visualElement,e),s.start(On(e,s,0,n,this.visualElement,!1))}stopAnimation(){rt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rt(n=>{const{drag:s}=this.getProps();if(!le(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-L(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Et(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=sh({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),rt(o=>{if(!le(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(L(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;rh.set(this.visualElement,this);const e=this.visualElement.current,n=Ht(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=c.target,f=d!==e&&Hl(d);u&&h&&!f&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();Et(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=lh(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),R.read(i);const a=Xt(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(rt(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=c[h].translate,d.set(d.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=wn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function fi(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function lh(t,e,n){const s=Ts(t,fi(n)),i=Ts(e,fi(n));return()=>{s(),i()}}function le(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ch(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class uh extends xt{constructor(e){super(e),this.removeGroupControls=et,this.removeListeners=et,this.controls=new ah(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ye=t=>
1(e,n)=>{t&&R.update(()=>t(e,n),!1,!0)};class hh extends xt{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(e){this.session=new lr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ar(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ye(e),onStart:Ye(n),onMove:Ye(s),onEnd:(r,o)=>{delete this.session,i&&R.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Ht(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xe=!1;class dh extends k.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Xe&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Xe=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||R.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Un.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Xe=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ur(t){const[e,n]=vu(),s=k.useContext(Pi);return gt.jsx(dh,{...t,layoutGroup:s,switchLayoutGroup:k.useContext(or),isPresent:e,safeToRemove:n})}const fh={pan:{Feature:hh},drag:{Feature:uh,ProjectionNode:Zo,MeasureLayout:ur}};function mi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&R.postRender(()=>r(e,Qt(e)))}class mh extends xt{mount(){const{current:e}=this.node;e&&(this.unmount=Wl(e,(n,s)=>(mi(this.node,s,"Start"),i=>mi(this.node,i,"End"))))}unmount(){}}class ph extends xt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qt(Xt(this.node.current,"focus",()=>this.onFocus()),Xt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&R.postRender(()=>r(e,Qt(e)))}class gh extends xt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=_l(e,(i,r)=>(pi(this.node,r,"Start"),(o,{success:a})=>pi(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Tn=new WeakMap,qe=new WeakMap,yh=t=>{const e=Tn.get(t.target);e&&e(t)},bh=t=>{t.forEach(yh)};function vh({root:t,...e}){const n=t||document;qe.has(n)||qe.set(n,{});const s=qe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(bh,{root:t,...e})),s[i]}function xh(t,e,n){const s=vh(e);return Tn.set(t,n),s.observe(t),()=>{Tn.delete(t),s.unobserve(t)}}const wh={some:0,all:1};class Th extends xt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:wh[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};this.stopObserver=xh(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Sh(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Sh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ph={inView:{Feature:Th},tap:{Feature:gh},focus:{Feature:ph},hover:{Feature:mh}},Ah={layout:{ProjectionNode:Zo,MeasureLayout:ur}},kh={...Xu,...Ph,...fh,...Ah},Ch=Ku(kh,Hu);function hr(t){var e,n,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=hr(t[e]))&&(s&&(s+=" "),s+=n)}else for(n in t)t[n]&&(s&&(s+=" "),s+=n);return s}function Vh(){for(var t,e,n=0,s="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=hr(t))&&(s&&(s+=" "),s+=e);return s}const Mh=(t,e)=>{const n=new Array(t.length+e.length);for(let s=0;s<t.length;s++)n[s]=t[s];for(let s=0;s<e.length;s++)n[t.length+s]=e[s];return n},Eh=(t,e)=>({classGroupId:t,validator:e}),dr=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ve="-",gi=[],Dh="arbitrary..",Rh=t=>{const e=Ih(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:o=>
vendor: 4,591 bytes, line 1
1{if(o.startsWith("[")&&o.endsWith("]"))return Lh(o);const a=o.split(Ve),l=a[0]===""&&a.length>1?1:0;return fr(a,l,e)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=s[o],c=n[o];return l?c?Mh(c,l):l:c||gi}return n[o]||gi}}},fr=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],r=n.nextPart.get(i);if(r){const c=fr(t,e+1,r);if(c)return c}const o=n.validators;if(o===null)return;const a=e===0?t.join(Ve):t.slice(e).join(Ve),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},Lh=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),s=e.slice(0,n);return s?Dh+s:void 0})(),Ih=t=>{const{theme:e,classGroups:n}=t;return Bh(n,e)},Bh=(t,e)=>{const n=dr();for(const s in t){const i=t[s];Zn(i,n,s,e)}return n},Zn=(t,e,n,s)=>{const i=t.length;for(let r=0;r<i;r++){const o=t[r];Fh(o,e,n,s)}},Fh=(t,e,n,s)=>{if(typeof t=="string"){jh(t,e,n);return}if(typeof t=="function"){Oh(t,e,n,s);return}Nh(t,e,n,s)},jh=(t,e,n)=>{const s=t===""?e:mr(e,t);s.classGroupId=n},Oh=(t,e,n,s)=>{if(zh(t)){Zn(t(s),e,n,s);return}e.validators===null&&(e.validators=[]),e.validators.push(Eh(n,t))},Nh=(t,e,n,s)=>{const i=Object.entries(t),r=i.length;for(let o=0;o<r;o++){const[a,l]=i[o];Zn(l,mr(e,a),n,s)}},mr=(t,e)=>{let n=t;const s=e.split(Ve),i=s.length;for(let r=0;r<i;r++){const o=s[r];let a=n.nextPart.get(o);a||(a=dr(),n.nextPart.set(o,a)),n=a}return n},zh=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Wh=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),s=Object.create(null);const i=(r,o)=>{n[r]=o,e++,e>t&&(e=0,s=n,n=Object.create(null))};return{get(r){let o=n[r];if(o!==void 0)return o;if((o=s[r])!==void 0)return i(r,o),o},set(r,o){r in n?n[r]=o:i(r,o)}}},Sn="!",yi=":",Uh=[],bi=(t,e,n,s,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:s,isExternal:i}),Gh=t=>{const{prefix:e,experimentalParseClassName:n}=t;let s=i=>{const r=[];let o=0,a=0,l=0,c;const u=i.length;for(let g=0;g<u;g++){const p=i[g];if(o===0&&a===0){if(p===yi){r.push(i.slice(l,g)),l=g+1;continue}if(p==="/"){c=g;continue}}p==="["?o++:p==="]"?o--:p==="("?a++:p===")"&&a--}const h=r.length===0?i:i.slice(l);let d=h,f=!1;h.endsWith(Sn)?(d=h.slice(0,-1),f=!0):h.startsWith(Sn)&&(d=h.slice(1),f=!0);const m=c&&c>l?c-l:void 0;return bi(r,f,d,m)};if(e){const i=e+yi,r=s;s=o=>o.startsWith(i)?r(o.slice(i.length)):bi(Uh,!1,o,void 0,!0)}if(n){const i=s;s=r=>n({className:r,parseClassName:i})}return s},Kh=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,s)=>{e.set(n,1e6+s)}),n=>{const s=[];let i=[];for(let r=0;r<n.length;r++){const o=n[r],a=o[0]==="[",l=e.has(o);a||l?(i.length>0&&(i.sort(),s.push(...i),i=[]),s.push(o)):i.push(o)}return i.length>0&&(i.sort(),s.push(...i)),s}},Hh=t=>({cache:Wh(t.cacheSize),parseClassName:Gh(t),sortModifiers:Kh(t),...Rh(t)}),$h=/\s+/,_h=(t,e)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:r}=e,o=[],a=t.trim().split($h);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:h,modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}=n(u);if(h){l=u+(l.length>0?" "+l:l);continue}let p=!!g,b=s(p?m.substring(0,g):m);if(!b){if(!p){l=u+(l.length>0?" "+l:l);continue}if(b=s(m),!b){l=u+(l.length>0?" "+l:l);continue}p=!1}const x=d.length===0?"":d.length===1?d[0]:r(d).join(":"),v=f?x+Sn:x,P=v+b;if(o.indexOf(P)>-1)continue;o.push(P);const C=i(b,p);for(let D=0;D<C.length;++D){const B=C[D];o.push(v+B)}l=u+(l.length>0?" "+l:l)}return l},Yh=(...t)=>{let e=0,n,s,i="";for(;e<t.length;)(n=t[e++])&&(s=pr(n))&&(i&&(i+=" "),i+=s);return i},pr=t=>{if(typeof t=="string")return t;let e,n="";for(let s=0;s<t.length;s++)t[s]&&(e=pr(t[s]))&&(n&&(n+=" "),n+=e);return n},Xh=(t,...e)=>{let n,s,i,r;const o=l=>{const c=e.reduce((u,h)=>h(u),t());return n=Hh(c),s=n.cache.get,i=n.cache.set,r=a,a(l)},a=l=>{const c=s(l);if(c)return c;const u=_h(l,n);return i(l,u),u};return r=o,(...l)=>r(Yh(...l))},qh=[],W=t=>{const e=n=>n[t]||qh;return e.isThemeGetter=!0,e},gr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zh=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ed=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=t=>Zh.test(t),M=t=>!!t&&!Number.isNaN(Number(t)),mt=t=>
vendor: 4,196 bytes, line 1
1!!t&&Number.isInteger(Number(t)),Ze=t=>t.endsWith("%")&&M(t.slice(0,-1)),ht=t=>Jh.test(t),br=()=>!0,sd=t=>Qh.test(t)&&!td.test(t),Jn=()=>!1,id=t=>ed.test(t),od=t=>nd.test(t),rd=t=>!w(t)&&!S(t),ad=t=>wt(t,wr,Jn),w=t=>gr.test(t),St=t=>wt(t,Tr,sd),vi=t=>wt(t,pd,M),ld=t=>wt(t,Pr,br),cd=t=>wt(t,Sr,Jn),xi=t=>wt(t,vr,Jn),ud=t=>wt(t,xr,od),ce=t=>wt(t,Ar,id),S=t=>yr.test(t),zt=t=>Mt(t,Tr),hd=t=>Mt(t,Sr),wi=t=>Mt(t,vr),dd=t=>Mt(t,wr),fd=t=>Mt(t,xr),ue=t=>Mt(t,Ar,!0),md=t=>Mt(t,Pr,!0),wt=(t,e,n)=>{const s=gr.exec(t);return s?s[1]?e(s[1]):n(s[2]):!1},Mt=(t,e,n=!1)=>{const s=yr.exec(t);return s?s[1]?e(s[1]):n:!1},vr=t=>t==="position"||t==="percentage",xr=t=>t==="image"||t==="url",wr=t=>t==="length"||t==="size"||t==="bg-size",Tr=t=>t==="length",pd=t=>t==="number",Sr=t=>t==="family-name",Pr=t=>t==="number"||t==="weight",Ar=t=>t==="shadow",gd=()=>{const t=W("color"),e=W("font"),n=W("text"),s=W("font-weight"),i=W("tracking"),r=W("leading"),o=W("breakpoint"),a=W("container"),l=W("spacing"),c=W("radius"),u=W("shadow"),h=W("inset-shadow"),d=W("text-shadow"),f=W("drop-shadow"),m=W("blur"),g=W("perspective"),p=W("aspect"),b=W("ease"),x=W("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...P(),S,w],D=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],y=()=>[S,w,l],E=()=>[ft,"full","auto",...y()],V=()=>[mt,"none","subgrid",S,w],I=()=>["auto",{span:["full",mt,S,w]},mt,S,w],z=()=>[mt,"auto",S,w],ot=()=>["auto","min","max","fr",S,w],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...y()],dt=()=>[ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[ft,"screen","full","dvw","lvw","svw","min","max","fit",...y()],_=()=>[ft,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],A=()=>[t,S,w],ut=()=>[...P(),wi,xi,{position:[S,w]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Qn=()=>["auto","cover","contain",dd,ad,{size:[S,w]}],Le=()=>[Ze,zt,St],Y=()=>["","none","full",c,S,w],X=()=>["",M,zt,St],ee=()=>["solid","dashed","dotted","double"],ts=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[M,Ze,wi,xi],es=()=>["","none",m,S,w],ne=()=>["none",M,S,w],se=()=>["none",M,S,w],Ie=()=>[M,S,w],ie=()=>[ft,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ht],breakpoint:[ht],color:[br],container:[ht],"drop-shadow":[ht],ease:["in","out","in-out"],font:[rd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ht],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ht],shadow:[ht],spacing:["px",M],text:[ht],"text-shadow":[ht],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ft,w,S,p]}],container:["container"],columns:[{columns:[M,w,S,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:D()}
vendor: 5,167 bytes, line 1
1],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[mt,"auto",S,w]}],basis:[{basis:[ft,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,ft,"auto","initial","none",w]}],grow:[{grow:["",M,S,w]}],shrink:[{shrink:["",M,S,w]}],order:[{order:[mt,"first","last","none",S,w]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ot()}],"auto-rows":[{"auto-rows":ot()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:dt()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[a,"screen",...dt()]}],"min-w":[{"min-w":[a,"screen","none",...dt()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...dt()]}],h:[{h:["screen","lh",...dt()]}],"min-h":[{"min-h":["screen","lh","none",...dt()]}],"max-h":[{"max-h":["screen","lh",...dt()]}],"font-size":[{text:["base",n,zt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,md,ld]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ze,w]}],"font-family":[{font:[hd,cd,e]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,S,w]}],"line-clamp":[{"line-clamp":[M,"none",S,vi]}],leading:[{leading:[r,...y()]}],"list-image":[{"list-image":["none",S,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",S,St]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[M,"auto",S,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ut()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:Qn()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mt,S,w],radial:["",S,w],conic:[mt,S,w]},fd,ud]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Le()}
vendor: 7,278 bytes, line 1
1],"gradient-via-pos":[{via:Le()}],"gradient-to-pos":[{to:Le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,S,w]}],"outline-w":[{outline:["",M,zt,St]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,ue,ce]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",h,ue,ce]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[M,St]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",d,ue,ce]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[M,S,w]}],"mix-blend":[{"mix-blend":[...ts(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ts()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[S,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ut()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:Qn()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,w]}],filter:[{filter:["","none",S,w]}],blur:[{blur:es()}],brightness:[{brightness:[M,S,w]}],contrast:[{contrast:[M,S,w]}],"drop-shadow":[{"drop-shadow":["","none",f,ue,ce]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",M,S,w]}],"hue-rotate":[{"hue-rotate":[M,S,w]}],invert:[{invert:["",M,S,w]}],saturate:[{saturate:[M,S,w]}],sepia:[{sepia:["",M,S,w]}],"backdrop-filter":[{"backdrop-filter":["","none",S,w]}],"backdrop-blur":[{"backdrop-blur":es()}],"backdrop-brightness":[{"backdrop-brightness":[M,S,w]}],"backdrop-contrast":[{"backdrop-contrast":[M,S,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,S,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,S,w]}],"backdrop-invert":[{"backdrop-invert":["",M,S,w]}],"backdrop-opacity":[{"backdrop-opacity":[M,S,w]}],"backdrop-saturate":[{"backdrop-saturate":[M,S,w]}],"backdrop-sepia":[{"backdrop-sepia":["",M,S,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",S,w]}],ease:[{ease:["linear","initial",b,S,w]}],delay:[{delay:[M,S,w]}],animate:[{animate:["none",x,S,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,S,w]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[S,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,w]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[M,zt,St,vi]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yd=Xh(gd);function bd(...t){return yd(Vh(t))}const vd=[{key:"j",char:"J",to:"/about",label:"Jonathan",colorVar:"var(--brand-j)"},{key:"w",char:"W",to:"/writing",label:"Writing",colorVar:"var(--brand-w)"},{key:"b",char:"B",to:"/building",label:"Building",colorVar:"var(--brand-b)"},{key:"y",char:"Y",to:"/y",label:"Y — Advising",colorVar:"var(--brand-y)"}];function Dd({size:t="hero",active:e=null}){const s=Dr().pathname==="/",i=t==="hero",[r,o]=k.useState(i&&s);return k.useEffect(()=>{if(!i||!s)return;const a=setTimeout(()=>
1o(!1),1500);return()=>clearTimeout(a)},[i,s]),gt.jsx("div",{className:bd("flex items-center justify-center font-display font-extrabold tracking-tight select-none",i?"text-[clamp(6rem,22vw,18rem)] leading-none":"text-[clamp(2.25rem,6vw,3.5rem)] leading-none"),role:"navigation","aria-label":"JWBY sections",children:vd.map((a,l)=>{const c=e===a.key,u=e!==null&&!c;let h;(c||r&&i&&s)&&(h=a.colorVar);const d=gt.jsx(Er,{to:a.to,"aria-label":a.label,className:"inline-block transition-transform duration-200 hover:scale-[1.04] cursor-pointer",style:{color:h,transition:"color 700ms ease, transform 200ms ease",opacity:u?.3:1},onMouseEnter:f=>{c||(f.currentTarget.style.color=a.colorVar)},onMouseLeave:f=>{c||(f.currentTarget.style.color=h??"")},children:a.char});return i&&s?gt.jsx(Ch.span,{initial:{opacity:0,y:28},animate:{opacity:1,y:0},transition:{delay:l*.18,duration:.55,ease:"easeOut"},className:"inline-block",children:d},a.key):gt.jsx("span",{className:"inline-block",children:d},a.key)})})}const kr=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim();const xd=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const wd=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,s)=>s?s.toUpperCase():n.toLowerCase());const Ti=t=>{const e=wd(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Td={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Sd=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const Pd=k.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:r,iconNode:o,...a},l)=>k.createElement("svg",{ref:l,...Td,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:kr("lucide",i),...!r&&!Sd(a)&&{"aria-hidden":"true"},...a},[...o.map(([c,u])=>k.createElement(c,u)),...Array.isArray(r)?r:[r]]));const Ad=(t,e)=>{const n=k.forwardRef(({className:s,...i},r)=>k.createElement(Pd,{ref:r,iconNode:e,className:kr(`lucide-${xd(Ti(t))}`,`lucide-${t}`,s),...i}));return n.displayName=Ti(t),n};const kd=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rd=Ad("x",kd);function Cd(t){return t>=5&&t<7?"dawn":t>=7&&t<17?"day":t>=17&&t<19?"sunset":t>=19&&t<20?"dusk":"night"}function Si(){const t=new Date,e=parseInt(new Intl.DateTimeFormat("en-US",{timeZone:"Pacific/Honolulu",hour:"numeric",hour12:!1}).format(t),10)%24,n=new Intl.DateTimeFormat("en-US",{timeZone:"Pacific/Honolulu",hour:"numeric",minute:"2-digit",hour12:!0}).format(t).toLowerCase().replace(/\s/g,"");return{phase:Cd(e),time:n,hour:e}}function Ld(){const[t,e]=k.useState(()=>Si());return k.useEffect(()=>{const n=setInterval(()=>e(Si()),3e4);return()=>clearInterval(n)},[]),t}const Vd={night:"🌙",dawn:"🌅",day:"☀️",sunset:"🌇",dusk:"✨"};function Id(t){return Vd[t]}function Bd({phase:t}){return gt.jsx("div",{className:"sky-bg","data-phase":t,"aria-hidden":"true"})}export{Bd as S,Dd as W,Rd as X,bd as a,Vh as b,Ad as c,Ch as m,Id as p,Ld as u};

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