1import{s as rn,p as lt,v as ut,a as ne,r as on,m as an,d as ct,e as ln,b as se,f as K,g as ht,n as ie,h as X,j as un,k as f,l as Ge,o as de,q as k,t as ee,u as Se,w as E,x as cn,y as ft,z as hn,A as fn,B as dn,C as pn,i as mn,c as pe,D as gn,E as yn,F as dt}from"./interpolate-DxsRGowJ.js";class vn{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(rn()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pt extends vn{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const O=t=>t*1e3,I=t=>t/1e3,re=2e4;function we(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<re;)e+=n,s=t.next(e);return e>=re?1/0:e}const mt=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=t(lt(0,i-1,r))+", ";return`linear(${s.substring(0,s.length-2)})`},Tn=5;function gt(t,e,n){const s=Math.max(e-Tn,0);return ut(n-t(s),e-s)}const A={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},fe=.001;function Vn({duration:t=A.duration,bounce:e=A.bounce,velocity:n=A.velocity,mass:s=A.mass}){let i,r,o=1-e;o=ne(A.minDamping,A.maxDamping,o),t=ne(A.minDuration,A.maxDuration,I(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,y=me(c,o),g=Math.exp(-h);return fe-d/y*g},r=c=>{const h=c*o*t,d=h*n+n,y=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-h),v=me(Math.pow(c,2),o);return(-i(c)+fe>0?-1:1)*((d-y)*g)/v}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-fe+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Sn(i,r,a);if(t=O(t),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const bn=12;function Sn(t,e,n){let s=n;for(let i=1;i<bn;i++)s=s-t(s)/e(s);return s}function me(t,e){return t*Math.sqrt(1-e*e)}const wn=["duration","bounce"],An=["stiffness","damping","mass"];function Ue(t,e){return e.some(n=>t[n]!==void 0)}function Mn(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!Ue(t,An)&&Ue(t,wn))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ne(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:A.mass,stiffness:i,damping:r}}else{const n=Vn(t);e={...e,...n,mass:A.mass},e.isResolvedFromDuration=!0}return e}function Ae(t=A.visualDuration,e=A.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:y}=Mn({...n,velocity:-I(n.velocity||0)}),g=d||0,v=c/(2*Math.sqrt(l*u)),T=o-r,V=I(Math.sqrt(l/u)),w=Math.abs(T)<5;s||(s=w?A.restSpeed.granular:A.restSpeed.default),i||(i=w?A.restDelta.granular:A.restDelta.default);let P;if(v<1){const p=me(V,v);P=b=>{const M=Math.exp(-v*V*b);return o-M*((g+v*V*T)/p*Math.sin(p*b)+T*Math.cos(p*b))}}else if(v===1)P=p=>o-Math.exp(-V*p)*(T+(g+V*T)*p);else{const p=V*Math.sqrt(v*v-1);P=b=>{const M=Math.exp(-v*V*b),m=Math.min(p*b,300);return o-M*((g+v*V*T)*Math.sinh(m)+p*T*Math.cosh(m))/p}}
1const x={calculatedDuration:y&&h||null,next:p=>{const b=P(p);if(y)a.done=p>=h;else{let M=0;v<1&&(M=p===0?O(g):gt(P,p,b));const m=Math.abs(M)<=s,S=Math.abs(o-b)<=i;a.done=m&&S}return a.value=a.done?o:b,a},toString:()=>{const p=Math.min(we(x),re),b=mt(M=>x.next(p*M).value,p,30);return p+"ms "+b}};return x}function xn(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(we(s),re);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:I(i)}}function ue(t){return typeof t=="function"}const Pn=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},yt=t=>Array.isArray(t)&&typeof t[0]!="number";function vt(t,e){return yt(t)?t[Pn(0,t.length,e)]:t}const C=t=>!!(t&&t.getVelocity);function Me(t){return typeof t=="object"&&!Array.isArray(t)}function Tt(t,e,n,s){return typeof t=="string"&&Me(e)?on(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Cn(t,e,n){return t*(e+1)}function je(t,e,n,s){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(i=s.get(e))!==null&&i!==void 0?i:t}function Dn(t,e){t.indexOf(e)===-1&&t.push(e)}function Vt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Fn(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(Vt(t,i),s--)}}function En(t,e,n,s,i,r){Fn(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:an(i,r,s[o]),easing:vt(n,o)})}function Rn(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function On(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const In="easeInOut";function Kn(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,h=0,d=0;for(let y=0;y<t.length;y++){const g=t[y];if(typeof g=="string"){c.set(g,h);continue}else if(!Array.isArray(g)){c.set(g.name,je(h,g.at,u,c));continue}let[v,T,V={}]=g;V.at!==void 0&&(h=je(h,V.at,u,c));let w=0;const P=(x,p,b,M=0,m=0)=>{const S=Bn(x),{delay:D=0,times:R=ct(S),type:he="keyframes",repeat:Z,repeatType:Ii,repeatDelay:Ki=0,...sn}=p;let{ease:B=e.ease||"easeOut",duration:F}=p;const Ke=typeof D=="function"?D(M,m):D,Be=S.length,ke=ue(he)?he:i==null?void 0:i[he];if(Be<=2&&ke){let W=100;if(Be===2&&Ln(S)){const z=S[1]-S[0];W=Math.abs(z)}const Q={...sn};F!==void 0&&(Q.duration=O(F));const J=xn(Q,W,ke);B=J.ease,F=J.duration}F??(F=r);const Ne=h+Ke;R.length===1&&R[0]===0&&(R[1]=1);const Le=R.length-S.length;if(Le>0&&ln(R,Le),S.length===1&&S.unshift(null),Z){F=Cn(F,Z);const W=[...S],Q=[...R];B=Array.isArray(B)?[...B]:[B];const J=[...B];for(let z=0;z<Z;z++){S.push(...W);for(let $=0;$<W.length;$++)R.push(Q[$]+(z+1)),B.push($===0?"linear":vt(J,$-1))}Rn(R,Z)}const _e=Ne+F;En(b,S,B,R,Ne,_e),w=Math.max(Ke+F,w),d=Math.max(_e,d)};if(C(v)){const x=We(v,a);P(T,V,ze("default",x))}else{const x=Tt(v,T,s,l),p=x.length;for(let b=0;b<p;b++){T=T,V=V;const M=x[b],m=We(M,a);for(const S in T)P(T[S],kn(V,S),ze(S,m),b,p)}}u=h,h+=w}return a.forEach((y,g)=>{for(const v in y){const T=y[v];T.sort(On);const V=[],w=[],P=[];for(let p=0;p<T.length;p++){const{at:b,value:M,easing:m}=T[p];V.push(M),w.push(lt(0,d,b)),P.push(m||"easeOut")}w[0]!==0&&(w.unshift(0),V.unshift(V[0]),P.unshift(In)),w[w.length-1]!==1&&(w.push(1),V.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const x=o.get(g);x.keyframes[v]=V,x.transition[v]={...e,duration:d,ease:P,times:w,...n}}}),o}function We(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function ze(t,e){return e[t]||(e[t]=[]),e[t]}function Bn(t){return Array.isArray(t)?t:[t]}function kn(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Nn=t=>typeof t=="number",Ln=t=>t.every(Nn),_=new WeakMap;function bt(t,e){return t?t[e]||t.default||t:void 0}const U=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(U),St=new Set(["width","height","top","left","right","bottom",...U]),_n=t=>Array.isArray(t),Gn=t=>_n(t)?t[t.length-1]||0:t,Un={useManualTiming:!1};let te;function jn(){te=void 0}const N={now:()=>(te===void 0&&N.set(se.isProcessing||Un.useManualTiming?se.timestamp:performance.now()),te),set:t=>{te=t,queueMicrotask(jn)}};class wt{constructor(){this.subscriptions=[]}add(e){return Dn(this.subscriptions,e),()=>Vt(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 $e=30,Wn=t=>!isNaN(parseFloat(t));class zn{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=N.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Wn(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 wt);const s=this.events[e].add(n);return e==="change"?()=>{s(),K.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$e)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$e);return ut(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function q(t,e){return new zn(t,e)}function Ye(t){const e=[{},{}];
1return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function At(t,e,n,s){if(typeof e=="function"){const[i,r]=Ye(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]=Ye(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function $n(t,e,n){const s=t.getProps();return At(s,e,s.custom,t)}function Yn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,q(n))}function qn(t,e){const n=$n(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Gn(r[o]);Yn(t,o,a)}}function Xn(t){return!!(C(t)&&t.add)}function Hn(t,e){const n=t.getValue("willChange");if(Xn(n))return n.add(e)}const xe=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zn="framerAppearId",Qn="data-"+xe(Zn);function Jn(t){return t.props[Qn]}function qe(t,e){t.timeline=e,t.onfinish=null}const Pe=t=>Array.isArray(t)&&typeof t[0]=="number",es={linearEasing:void 0};function ts(t,e){const n=ht(t);return()=>{var s;return(s=es[e])!==null&&s!==void 0?s:n()}}const oe=ts(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Mt(t){return!!(typeof t=="function"&&oe()||!t||typeof t=="string"&&(t in ge||oe())||Pe(t)||Array.isArray(t)&&t.every(Mt))}const Y=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ge={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Y([0,.65,.55,1]),circOut:Y([.55,0,1,.45]),backIn:Y([.31,.01,.66,-.59]),backOut:Y([.33,1.53,.69,.99])};function xt(t,e){if(t)return typeof t=="function"&&oe()?mt(t,e):Pe(t)?Y(t):Array.isArray(t)?t.map(n=>xt(n,e)||ge.easeOut):ge[t]}const Pt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ns=1e-7,ss=12;function is(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Pt(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>ns&&++a<ss);return o}function H(t,e,n,s){if(t===e&&n===s)return ie;const i=r=>is(r,0,1,t,n);return r=>r===0||r===1?r:Pt(i(r),e,s)}const Ct=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Dt=t=>e=>1-t(1-e),Ft=H(.33,1.53,.69,.99),Ce=Dt(Ft),Et=Ct(Ce),Rt=t=>(t*=2)<1?.5*Ce(t):.5*(2-Math.pow(2,-10*(t-1))),De=t=>1-Math.sin(Math.acos(t)),rs=Dt(De),Ot=Ct(De),It=t=>/^0[^.\s]+$/u.test(t);function os(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||It(t):!0}const as=new Set(["brightness","contrast","saturate","opacity"]);function ls(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(un)||[];if(!s)return t;const i=n.replace(s,"");let r=as.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const us=/\b([a-z-]*)\(.*?\)/gu,ye={...X,getAnimatableNone:t=>{const e=t.match(us);return e?e.map(ls).join(" "):t}},cs={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},hs={rotate:k,rotateX:k,rotateY:k,rotateZ:k,scale:ee,scaleX:ee,scaleY:ee,scaleZ:ee,skew:k,skewX:k,skewY:k,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:de,originX:Ge,originY:Ge,originZ:f},Xe={...Se,transform:Math.round},Fe={...cs,...hs,zIndex:Xe,size:f,fillOpacity:de,strokeOpacity:de,numOctaves:Xe},fs={...Fe,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:ye,WebkitFilter:ye},Ee=t=>fs[t];function Kt(t,e){let n=Ee(t);return n!==ye&&(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ds=new Set(["auto","none","0"]);function ps(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!ds.has(r)&&cn(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Kt(n,i)}const He=t=>t===Se||t===f,Ze=(t,e)=>parseFloat(t.split(", ")[e]),Qe=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Ze(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?Ze(r[1],t):0}},ms=new Set(["x","y","z"]),gs=U.filter(t=>!ms.has(t));function ys(t){const e=[];return gs.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const G={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Qe(4,13),y:Qe(5,14)};G.translateX=G.x;G.translateY=G.y;const L=new Set;let ve=!1,Te=!1;function Bt(){if(Te){const t=Array.from(L).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ys(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])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}
1Te=!1,ve=!1,L.forEach(t=>t.complete()),L.clear()}function kt(){L.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Te=!0)})}function vs(){kt(),Bt()}class Re{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(L.add(this),ve||(ve=!0,K.read(kt),K.resolveKeyframes(Bt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),L.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,L.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Nt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ts=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vs(t){const e=Ts.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Lt(t,e,n=1){const[s,i]=Vs(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Nt(o)?parseFloat(o):o}
1return ft(i)?Lt(i,e,n+1):i}const _t=t=>e=>e.test(t),bs={test:t=>t==="auto",parse:t=>t},Gt=[Se,f,hn,k,fn,dn,bs],Je=t=>Gt.find(_t(t));class Ut extends Re{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 l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),ft(c))){const u=Lt(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!St.has(s)||e.length!==2)return;const[i,r]=e,o=Je(i),a=Je(r);if(o!==a)if(He(o)&&He(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)os(e[i])&&s.push(i);s.length&&ps(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=G[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=G[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
1h(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const et=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function Ss(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 ws(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=et(i,e),a=et(r,e);return!o||!a?!1:Ss(t)||(n==="spring"||ue(n))&&s}const As=t=>t!==null;function ce(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(As),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const Ms=40;class jt{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=N.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ms?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&vs(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=N.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!ws(e,s,i,r))if(o)this.options.duration=0;else{l&&l(ce(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function tt({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},y=m=>a!==void 0&&m<a||l!==void 0&&m>l,g=m=>a===void 0?l:l===void 0||Math.abs(a-m)<Math.abs(l-m)?a:l;let v=n*e;const T=h+v,V=o===void 0?T:o(T);V!==T&&(v=V-h);const w=m=>-v*Math.exp(-m/s),P=m=>V+w(m),x=m=>{const S=w(m),D=P(m);d.done=Math.abs(S)<=c,d.value=d.done?V:D};let p,b;const M=m=>{y(d.value)&&(p=m,b=Ae({keyframes:[d.value,g(d.value)],velocity:gt(P,m,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return M(0),{calculatedDuration:null,next:m=>{let S=!1;return!b&&p===void 0&&(S=!0,x(m),M(m)),p!==void 0&&m>=p?b.next(m-p):(!S&&x(m),d)}}}const xs=H(.42,0,1,1),Ps=H(0,0,.58,1),Wt=H(.42,0,.58,1),Cs={linear:ie,easeIn:xs,easeInOut:Wt,easeOut:Ps,circIn:De,circInOut:Ot,circOut:rs,backIn:Ce,backInOut:Et,backOut:Ft,anticipate:Rt},nt=t=>{if(Pe(t)){pn(t.length===4);const[e,n,s,i]=t;return H(e,n,s,i)}else if(typeof t=="string")return Cs[t];return t};function Ds(t,e){return t.map(n=>n*e)}function Fs(t,e){return t.map(()=>e||Wt).splice(0,t.length-1)}function ae({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=yt(s)?s.map(nt):nt(s),r={done:!1,value:e[0]},o=Ds(n&&n.length===e.length?n:ct(e),t),a=mn(o,e,{ease:Array.isArray(i)?i:Fs(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Es=t=>{const e=({timestamp:n})=>t(n);return{start:()=>K.update(e,!0),stop:()=>pe(e),now:()=>se.isProcessing?se.timestamp:N.now()}},Rs={decay:tt,inertia:tt,tween:ae,keyframes:ae,spring:Ae},Os=t=>t/100;class Oe extends jt{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Re,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=ue(n)?n:Rs[n]||ae;let l,c;a!==ae&&typeof e[0]!="number"&&(l=gn(Os,yn(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});r==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=we(u));const{calculatedDuration:h}=u,d=h+i,y=d*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:y}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:m}=this.options;return{done:!0,value:m[m.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;
1if(this.startTime===null)return r.next(0);const{delay:d,repeat:y,repeatType:g,repeatDelay:v,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const V=this.currentTime-d*(this.speed>=0?1:-1),w=this.speed>=0?V<0:V>u;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let P=this.currentTime,x=r;if(y){const m=Math.min(this.currentTime,u)/h;let S=Math.floor(m),D=m%1;!D&&m>=1&&(D=1),D===1&&S--,S=Math.min(S,y+1),!!(S%2)&&(g==="reverse"?(D=1-D,v&&(D-=v/h)):g==="mirror"&&(x=o)),P=ne(0,1,D)*h}const p=w?{done:!1,value:l[0]}:x.next(P);a&&(p.value=a(p.value));let{done:b}=p;!w&&c!==null&&(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return M&&i!==void 0&&(p.value=ce(l,this.options,i)),T&&T(p.value),M&&this.finish(),p}get duration(){const{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=O(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Es,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Is=new Set(["opacity","clipPath","filter","transform"]);function Ks(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=xt(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Bs=ht(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),le=10,ks=2e4;function Ns(t){return ue(t.type)||t.type==="spring"||!Mt(t.ease)}function Ls(t,e){const n=new Oe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<ks;)s=n.sample(r),i.push(s.value),r+=le;return{times:void 0,keyframes:i,duration:r-le,ease:"linear"}}const zt={anticipate:Rt,backInOut:Et,circInOut:Ot};function _s(t){return t in zt}class st extends jt{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new Ut(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&oe()&&_s(r)&&(r=zt[r]),Ns(this.options)){const{onComplete:h,onUpdate:d,motionValue:y,element:g,...v}=this.options,T=Ls(e,v);e=T.keyframes,e.length===1&&(e[1]=e[0]),s=T.duration,i=T.times,r=T.ease,o="keyframes"}const u=Ks(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(qe(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;a.set(ce(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedProm
1ise()},{animation:u,duration:s,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return I(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return I(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=O(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ie;const{animation:s}=n;qe(s,e)}return ie}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:h,element:d,...y}=this.options,g=new Oe({...y,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),v=O(this.time);c.setWithVelocity(g.sample(v-le).value,g.sample(v).value,le)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Bs()&&s&&Is.has(s)&&!l&&!c&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Gs={type:"spring",stiffness:500,damping:25,restSpeed:10},Us=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),js={type:"keyframes",duration:.8},Ws={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zs=(t,{keyframes:e})=>e.length>2?js:j.has(t)?t.startsWith("scale")?Us(e[1]):Gs:Ws;function $s({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const $t=(t,e,n,s={},i,r)=>o=>{const a=bt(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-O(l);let 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};$s(a)||(u={...u,...zs(t,u)}),u.duration&&(u.duration=O(u.duration)),u.repeatDelay&&(u.repeatDelay=O(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const d=ce(u.keyframes,a);if(d!==void 0)return K.update(()=>{u.onUpdate(d),u.onComplete()}),new pt([])}return!r&&st.supports(u)?new st(u):new Oe(u)};function Ys({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qs(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const d=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),y=l[h];if(y===void 0||u&&Ys(u,h))continue;const g={delay:n,...bt(o||{},h)};let v=!1;if(window.MotionHandoffAnimation){const V=Jn(t);if(V){const w=window.MotionHandoffAnimation(V,h,K);w!==null&&(g.startTime=w,v=!0)}}Hn(t,h),d.start($t(h,d,y,t.shouldReduceMotion&&St.has(h)?{type:!1}:g,t,v));const T=d.animation;T&&c.push(T)}return a&&Promise.all(c).then(()=>{K.update(()=>{a&&qn(t,a)})}),c}function Xs(t){return t instanceof SVGElement&&t.tagName!=="svg"}const it=()=>({min:0,max:0}),Ie=()=>({x:it(),y:it()}),rt={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"]},Ve={};for(const t in rt)Ve[t]={isEnabled:e=>rt[t].some(n=>!!e[n])};const Hs=typeof window<"u",be={current:null},Yt={current:!1};function Zs(){if(Yt.current=!0,!!Hs)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>be.current=t.matches;t.addListener(e),e()}else be.current=!1}const Qs=[...Gt,E,X],Js=t=>Qs.find(_t(t));function ei(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ti(t){return typeof t=="string"||Array.isArray(t)}const ni=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],si=["initial",...ni];function qt(t){return ei(t.animate)||si.some(e=>ti(t[e]))}function ii(t){return!!(qt(t)||t.variants)}function ri(t,e,n){for(const s in e){const i=e[s],r=n[s];if(C(i))t.addValue(s,i);else if(C(r))t.addValue(s,q(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,q(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ot=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Xt{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Re,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=N.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,K.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=qt(n),this.isVariantNode=ii(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in d){const g=d[y];l[y]!==void 0&&C(g)&&g.set(l[y],!1)}}mount(e){this.current=e,_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((n,s)=>this.bindToMotionValue(s,n)),Yt.current||Zs(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:be.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_.delete(this.current),this.projection&&this.projection.unmount(),pe(this.notifyUpdate),pe(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=j.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ve){const n=Ve[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):Ie()}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<ot.length;s++){const i=ot[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=ri(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=q(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Nt(i)||It(i))?i=parseFloat(i):!Js(i)&&X.test(n)&&(i=Kt(e,n)),this.setBaseTarget(e,C(i)?i.get():i)),C(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=At(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!C(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new wt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ht extends Xt{constructor(){super(...arguments),this.KeyframeResolver=Ut}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;C(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Zt=(t,e)=>e&&typeof t=="number"?e.transform(t):t,oi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ai=U.length;function li(t,e,n){let s="",i=!0;for(let r=0;r<ai;r++){const o=U[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Zt(a,Fe[o]);if(!l){i=!1;const u=oi[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Qt(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];
1if(j.has(l)){o=!0;continue}else if(dt(l)){i[l]=c;continue}else{const u=Zt(c,Fe[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=li(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}`}}const ui={offset:"stroke-dashoffset",array:"stroke-dasharray"},ci={offset:"strokeDashoffset",array:"strokeDasharray"};function hi(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?ui:ci;t[r.offset]=f.transform(-s);const o=f.transform(e),a=f.transform(n);t[r.array]=`${o} ${a}`}function at(t,e,n){return typeof t=="string"?t:f.transform(e+n*t)}function fi(t,e,n){const s=at(e,t.x,t.width),i=at(n,t.y,t.height);return`${s} ${i}`}function di(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,h){if(Qt(t,c,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:y,dimensions:g}=t;d.transform&&(g&&(y.transform=d.transform),delete d.transform),g&&(i!==void 0||r!==void 0||y.transform)&&(y.transformOrigin=fi(g,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),o!==void 0&&hi(d,o,a,l,!1)}const Jt=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"]),pi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function en(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}function mi(t,e,n,s){en(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Jt.has(i)?i:xe(i),e.attrs[i])}const gi={};function yi(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!gi[t]||t==="opacity")}function tn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(C(i[o])||e.style&&C(e.style[o])||yi(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function vi(t,e,n){const s=tn(t,e,n);for(const i in t)if(C(t[i])||C(e[i])){const r=U.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Ti extends Ht{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ie}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(j.has(n)){const s=Ee(n);return s&&s.default||0}return n=Jt.has(n)?n:xe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return vi(e,n,s)}build(e,n,s){di(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){mi(e,n,s,i)}mount(e){this.isSVGTag=pi(e.tagName),super.mount(e)}}function Vi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function bi(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 Si(t,e){return Vi(bi(t.getBoundingClientRect(),e))}function wi(t){return window.getComputedStyle(t)}class Ai extends Ht{constructor(){super(...arguments),this.type="html",this.renderInstance=en}readValueFromInstance(e,n){if(j.has(n)){const s=Ee(n);return s&&s.default||0}else{const s=wi(e),i=(dt(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s){Qt(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return tn(e,n,s)}}function Mi(t,e){return t in e}class xi extends Xt{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Mi(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return Ie()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Pi(t){const e={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Xs(t)?new Ti(e):new Ai(e);n.mount(t),_.set(t,n)}function Ci(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new xi(e);n.mount(t),_.set(t,n)}function Di(t,e,n){const s=C(t)?t:q(t);return s.start($t("",s,e,n)),s.animation}function Fi(t,e){return C(t)||typeof t=="number"||typeof t=="string"&&!Me(e)}function nn(t,e,n,s){const i=[];if(Fi(t,e))i.push(Di(t,Me(e)&&e.default||e,n&&(n.default||n)));else{const r=Tt(t,e,s),o=r.length;for(let a=0;a<o;a++){const l=r[a],c=l instanceof Element?Pi:Ci;_.has(l)||c(l);const u=_.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),i.push(...qs(u,{...e,transition:h},{}))}}return i}function Ei(t,e,n){const s=[];return Kn(t,e,n,{spring:Ae}).forEach(({keyframes:r,transition:o},a)=>{s.push(...nn(a,r,o))}),s}function Ri(t){return Array.isArray(t)&&t.some(Array.isArray)}function Oi(t){function e(n,s,i){let r=[];return Ri(n)?r=Ei(n,s,t):r=nn(n,s,i,t),new pt(r)}return e}const ki=Oi();export{ki as a,nt as e};
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.