PageSourceSearch

https://www.axelerant.com/assets/motion-features-CIoGj4mP.js

js axelerant.com collected 2026-09-24 17:11:07 UTC 37,116 bytes, 2 lines download raw bytes

vendor: 6,273 bytes, line 1
1import{b1 as te,b2 as Pt,b3 as je,b4 as We,b5 as Ue,b6 as kt,b7 as Ve,a1 as _e,b8 as ue,b9 as Ce,ba as K,bb as It,bc as H,bd as L,be as U,bf as Ft,bg as E,bh as Ot,bi as _,bj as qe,bk as be,bl as Rt,bm as Et,bn as Kt,bo as Lt,bp as Bt,bq as ze,br as Gt,bs as Nt,$ as ve,U as Ht,Y as jt,bt as Wt,N as $e,bu as Ut,bv as _t,bw as Me,bx as X,by as De,bz as qt,bA as zt,bB as $t,bC as Xt,bD as Yt,Q as Xe,bE as Ye,T as Ze,bF as Je,r as Zt}from"./index-B8uccCc7.js";import{m as ne,g as Te,o as Jt,h as Pe,i as Qt,j as en,b as tn,s as nn,k as Qe,f as sn,c as rn,d as on,e as an}from"./is-svg-component-BBmPJna0.js";const cn=(t,e)=>n=>e(t(n)),ie=(...t)=>t.reduce(cn),et=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},tt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ln=1e-7,un=12;function fn(t,e,n,i,s){let r,o,a=0;do o=e+(n-e)/2,r=tt(o,i,s)-t,r>0?n=o:e=o;while(Math.abs(r)>ln&&++a<un);return o}function $(t,e,n,i){if(t===e&&n===i)return te;const s=r=>fn(r,0,1,t,n);return r=>r===0||r===1?r:tt(s(r),e,i)}const nt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,it=t=>e=>1-t(1-e),st=$(.33,1.53,.69,.99),xe=it(st),rt=nt(xe),ot=t=>t>=1?1:(t*=2)<1?.5*xe(t):.5*(2-Math.pow(2,-10*(t-1))),Ae=t=>1-Math.sin(Math.acos(t)),dn=it(Ae),at=nt(Ae),hn=$(.42,0,1,1),mn=$(0,0,.58,1),ct=$(.42,0,.58,1),pn=t=>Array.isArray(t)&&typeof t[0]!="number",gn={linear:te,easeIn:hn,easeInOut:ct,easeOut:mn,circIn:Ae,circInOut:at,circOut:dn,backIn:xe,backInOut:rt,backOut:st,anticipate:ot},yn=t=>typeof t=="string",ke=t=>{if(Pt(t)){je(t.length===4);const[e,n,i,s]=t;return $(e,n,i,s)}else if(yn(t))return gn[t];return t};function se(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 bn({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,r=0,o=0;if(!e)s=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;s=se(u,a,t+1/3),r=se(u,a,t),o=se(u,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Z(t,e){return n=>n>0?e:t}const re=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},vn=[kt,We,Ue],Tn=t=>vn.find(e=>e.test(t));function Ie(t){const e=Tn(t);if(!e)return!1;let n=e.parse(t);return e===Ue&&(n=bn(n)),n}const Fe=(t,e)=>{const n=Ie(t),i=Ie(e);if(!n||!i)return Z(t,e);const s={...n};return r=>(s.red=re(n.red,i.red,r),s.green=re(n.green,i.green,r),s.blue=re(n.blue,i.blue,r),s.alpha=ne(n.alpha,i.alpha,r),We.transform(s))},fe=new Set(["none","hidden"]);function xn(t,e){return fe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function An(t,e){return n=>ne(t,e,n)}function we(t){return typeof t=="number"?An:typeof t=="string"?Te(t)?Z:Ve.test(t)?Fe:Vn:Array.isArray(t)?lt:typeof t=="object"?Ve.test(t)?Fe:wn:Z}function lt(t,e){const n=[...t],i=n.length,s=t.map((r,o)=>we(r)(r,e[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function wn(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=we(t[s])(t[s],e[s]));return s=>{for(const r in i)n[r]=i[r](s);return n}}function Sn(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const r=e.types[s],o=t.indexes[r][i[r]],a=t.values[o]??0;n[s]=a,i[r]++}return n}const Vn=(t,e)=>{const n=_e.createTransformer(e),i=ue(t),s=ue(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?fe.has(t)&&!s.values.length||fe.has(e)&&!i.values.length?xn(t,e):ie(lt(Sn(i,s),s.values),n):Z(t,e)};function ut(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ne(t,e,n):we(t)(t,e)}const Cn=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>H.update(e,n),stop:()=>It(e),now:()=>Ce.isProcessing?Ce.timestamp:K.now()}},J=2e4;function Se(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<J;)e+=n,i=t.next(e);return e>=J?1/0:e}function Mn(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Se(i),J);return{type:"keyframes",ease:r=>i.next(s*r).value/e,duration:L(s)}}const S={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 de(t,e){return t*Math.sqrt(1-e*e)}const Dn=12;function Pn(t,e,n){let i=n;for(let s=1;s<Dn;s++)i=i-t(i)/e(i);return i}const oe=.001;function kn({duration:t=S.duration,bounce:e=S.bounce,velocity:n=S.velocity,mass:i=S.mass}){let s,r,o=1-e;o=U(S.minDamping,S.maxDamping,o),t=U(S.minDuration,S.maxDuration,L(t)),o<1?(s=l=>{const c=l*o,f=c*t,d=c-n,m=de(l,o),b=Math.exp(-f);return oe-d/m*b},r=l=>{const f=l*o*t,d=f*n+n,m=Math.pow(o,2)*Math.pow(l,2)*t,b=Math.exp(-f),y=de(Math.pow(l,2),o);return(-s(l)+oe>0?-1:1)*((d-m)*b)/y}):(s=l=>{const c=Math.exp(-l*t),f=(l-n)*t+1;return-oe+c*f},r=l=>{const c=Math.exp(-l*t),f=(n-l)*(t*t);return c*f});const a=5/t,u=Pn(s,r,a);if(t=E(t),isNaN(u))return{stiffness:S.stiffness,damping:S.damping,duration:t};{const l=Math.pow(u,2)*i;return{stiffness:l,damping:o*2*Math.sqrt(i*l),duration:t}}}const In=["duration","bounce"],Fn=["stiffness","damping","mass"];function Oe(t,e){return e.some(n=>t[n]!==void 0)}function On(t){let e={velocity:S.velocity,stiffness:S.stiffness,damping:S.damping,mass:S.mass,isResolvedFromDuration:!1,...t};if(!Oe(t,Fn)&&Oe(t,In))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*U(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:S.mass,stiffness:s,damping:r}}else{const n=kn({...t,velocity:0});e={...e,...n,mass:S.mass},e.isResolvedFromDuration=!0}return e}function Q(t=S.visualDuration,e=S.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:m}=On({...n,velocity:-L(n.velocity||0)}),b=d||0,y=l/(2*Math.sqrt(u*c)),h=o-r,p=L(Math.sqrt(u/c)),x=Math.abs(h)<5;i||(i=x?S.restSpeed.granular:S.restSpeed.default),s||(s=x?S.restDelta.granular:S.restDelta.default);let A,w,v,C,P,T;if(y<1)v=de(p,y),C=(b+y*p*h)/v,A=g=>{const V=Math.exp(-y*p*g);return o-V*(C*Math.sin(v*g)+h*Math.cos(v*g))},P=y*p*C+h*v,T=y*p*h-C*v,w=g=>Math.exp(-y*p*g)*(P*Math.sin(v*g)+T*Math.cos(v*g));else if(y===1){A=V=>
1o-Math.exp(-p*V)*(h+(b+p*h)*V);const g=b+p*h;w=V=>Math.exp(-p*V)*(p*g*V-b)}else{const g=p*Math.sqrt(y*y-1);A=F=>{const R=Math.exp(-y*p*F),O=Math.min(g*F,300);return o-R*((b+y*p*h)*Math.sinh(O)+g*h*Math.cosh(O))/g};const V=(b+y*p*h)/g,k=y*p*V-h*g,B=y*p*h-V*g;w=F=>{const R=Math.exp(-y*p*F),O=Math.min(g*F,300);return R*(k*Math.sinh(O)+B*Math.cosh(O))}}const M={calculatedDuration:m&&f||null,velocity:g=>E(w(g)),next:g=>{if(!m&&y<1){const k=Math.exp(-y*p*g),B=Math.sin(v*g),F=Math.cos(v*g),R=o-k*(C*B+h*F),O=E(k*(P*B+T*F));return a.done=Math.abs(O)<=i&&Math.abs(o-R)<=s,a.value=a.done?o:R,a}const V=A(g);if(m)a.done=g>=f;else{const k=E(w(g));a.done=Math.abs(k)<=i&&Math.abs(o-V)<=s}return a.value=a.done?o:V,a},toString:()=>{const g=Math.min(Se(M),J),V=Ft(k=>M.next(g*k).value,g,30);return g+"ms "+V},toTransition:()=>{}};return M}Q.applyToOptions=t=>{const e=Mn(t,100,Q);return t.ease=e.ease,t.duration=E(e.duration),t.type="keyframes",t};const Rn=5;function ft(t,e,n){const i=Math.max(e-Rn,0);return Ot(n-t(i),e-i)}function he({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=t[0],d={done:!1,value:f},m=T=>a!==void 0&&T<a||u!==void 0&&T>u,b=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let y=n*e;const h=f+y,p=o===void 0?h:o(h);p!==h&&(y=p-f);const x=T=>-y*Math.exp(-T/i),A=T=>p+x(T),w=T=>{const M=x(T),g=A(T);d.done=Math.abs(M)<=l,d.value=d.done?p:g};let v,C;const P=T=>{m(d.value)&&(v=T,C=Q({keyframes:[d.value,b(d.value)],velocity:ft(A,T,d.value),damping:s,stiffness:r,restDelta:l,restSpeed:c}))};return P(0),{calculatedDuration:null,next:T=>{let M=!1;return!C&&v===void 0&&(M=!0,w(T),P(T)),v!==void 0&&T>=v?C.next(T-v):(!M&&w(T),d)}}}function En(t,e,n){const i=[],s=n||_.mix||ut,r=t.length-1;for(let o=0;o<r;o++){let a=s(t[o],t[o+1]);if(e){const u=Array.isArray(e)?e[o]||te:e;a=ie(u,a)}i.push(a)}return i}function Kn(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;if(je(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=En(e,i,s),u=a.length,l=c=>{if(o&&c<t[0])return e[0];let f=0;if(u>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const d=et(t[f],t[f+1],c);return a[f](d)};return n?c=>l(U(t[0],t[r-1],c)):l}function Ln(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=et(0,e,i);t.push(ne(n,1,s))}}function Bn(t){const e=[0];return Ln(e,t.length-1),e}function Gn(t,e){return t.map(n=>n*e)}function Nn(t,e){return t.map(()=>e||ct).splice(0,t.length-1)}function z({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=pn(i)?i.map(ke):ke(i),r={done:!1,value:e[0]},o=Gn(n&&n.length===e.length?n:Bn(e),t),a=Kn(o,e,{ease:Array.isArray(s)?s:Nn(e,s)});return{calculatedDuration:t,next:u=>(r.value=a(u),r.done=u>=t,r)}}const Hn={decay:he,inertia:he,tween:z,keyframes:z,spring:Q};function dt(t){typeof t.type=="string"&&(t.type=Hn[t.type])}const jn=t=>t/100;class ee extends qe{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!==K.now()&&this.tick(K.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;dt(e);const{type:n=z,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const u=n||z;u!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ie(jn,ut(a[0],a[1])),a=[0,100]);const l=u({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Se(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}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:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return i.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:m,type:b,onUpdate:y,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?p<0:p>s;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let A=this.currentTime,w=i;if(f){const T=Math.min(this.currentTime,s)/a;let M=Math.floor(T),g=T%1;!g&&T>=1&&(g=1),g===1&&M--,M=Math.min(M,f+1),M%2&&(d==="reverse"?(g=1-g,m&&(g-=m/a)):d==="mirror"&&(w=o)),A=U(0,1,g)*a}let v;x?(this.delayState.value=c[0],v=this.delayState):v=w.next(A),r&&!x&&(v.value=r(v.value));let{done:C}=v;!x&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&b!==he&&(v.value=be(c,this.options,h,this.speed)),y&&y(v.value),P&&this.finish(),v}then(e,n){return this.finished.then(e,n)}get duration(){return L(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(this.currentTime)}set time(e){e=E(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?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 ft(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(K.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=L(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Cn,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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(K.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)}}const ht={anticipate:ot,backInOut:rt,circInOut:at};function Wn(t){return t in ht}function Un(t){typeof t.ease=="string"&&Wn(t.ease)&&(t.ease=ht[t.ease])}const ae=10;class _n extends Rt{constructor(e){Un(e),dt(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ee({...o,autoplay:!1}),u=Math.max(ae,K.now()-this.startTime),l=U(0,ae,u-ae),c=a.sample(u).value,{name:f}=this.options;r&&f&&Et(r,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Re=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_e.test(t)||t==="0")&&!t.startsWith("url("));function qn(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 zn(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Re(s,e),a=Re(r,e);return!o||!a?!1:qn(t)||(n==="spring"||Kt(n))&&i}function me(t){t.duration=0,t.type="keyframes"}
1const $n=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Xn(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&$n.test(t[e]))return!0;return!1}const Yn=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Zn=Bt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jn(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Zn()&&n&&(Lt.has(n)||Yn.has(n)&&Xn(a))&&(n!=="transform"||!c)&&!l&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}const Qn=40;class ei extends qe{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();const d={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},m=c?.KeyframeResolver||ze;this.keyframeResolver=new m(a,(b,y,h)=>this.onKeyframesResolved(b,y,d,!h),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=i;this.resolvedAt=K.now();let f=!0;zn(e,r,o,a)||(f=!1,(_.instantAnimations||!u)&&c?.(be(e,i,n)),e[0]=e[e.length-1],me(i),i.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Qn?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},b=f&&!l&&Jn(m),y=m.motionValue?.owner?.current;let h;if(b)try{h=new _n({...m,element:y})}catch{h=new ee(m)}else h=new ee(m);h.finished.then(()=>{this.notifyFinished()}).catch(te),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Gt()),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 mt(t,e,n,i=0,s=1){const r=Array.from(t).sort((l,c)=>l.sortNodePosition(c)).indexOf(e),o=t.size,a=(o-1)*i;return typeof n=="function"?n(r,o):s===1?r*i:a-r*i}const ti=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ni(t){const e=ti.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function pt(t,e,n=1){const[i,s]=ni(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const o=r.trim();return Nt(o)?parseFloat(o):o}return Te(s)?pt(s,e,n+1):s}const ii={type:"spring",stiffness:500,damping:25,restSpeed:10},si=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ri={type:"keyframes",duration:.8},oi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ai=(t,{keyframes:e})=>e.length>2?ri:ve.has(t)?t.startsWith("scale")?si(e[1]):ii:oi;function gt(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function yt(t,e){const n=t?.[e]??t?.default??t;return n!==t?gt(n,t):n}const ci=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function li(t){for(const e in t)if(!ci.has(e))return!0;return!1}const ui=(t,e,n,i={},s,r)=>o=>{const a=yt(i,t)||{},u=a.delay||i.delay||0;let{elapsed:l=0}=i;l=l-E(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};li(a)||Object.assign(c,ai(t,c)),c.duration&&(c.duration=E(c.duration)),c.repeatDelay&&(c.repeatDelay=E(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(me(c),c.delay===0&&(f=!0)),(_.instantAnimations||_.skipAnimations||s?.shouldSkipAnimations)&&(f=!0,me(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const d=be(c.keyframes,a);if(d!==void 0){H.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new ee(c):new ei(c)};function j(t,e,n){const i=t.getProps();return Ht(i,e,n!==void 0?n:i.custom,t)}const bt=new Set(["width","height","top","left","right","bottom",...jt]),pe=t=>Array.isArray(t);function fi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Wt(n))}function di(t){return pe(t)?t[t.length-1]||0:t}function hi(t,e){const n=j(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=di(r[o]);fi(t,o,a)}}function mi(t){return!!($e(t)&&t.add)}function pi(t,e){const n=t.getValue("willChange");if(mi(n))return n.add(e);if(!n&&_.WillChange){const i=new _.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function gi(t){return t.props[Jt]}function yi({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function vt(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r,transitionEnd:o,...a}=e;const u=t.getDefaultTransition();r=r?gt(r,u):u;const l=r?.reduceMotion;i&&(r=i);const c=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const m=t.getValue(d,t.latestValues[d]??null),b=a[d];if(b===void 0||f&&yi(f,d))continue;const y={delay:n,...yt(r||{},d)},h=m.get();if(h!==void 0&&!m.isAnimating()&&!Array.isArray(b)&&b===h&&!y.velocity){H.update(()=>m.set(b));continue}let p=!1;if(window.MotionHandoffAnimation){const w=gi(t);if(w){const v=window.MotionHandoffAnimation(w,d,H);v!==null&&(y.startTime=v,p=!0)}}pi(t,d);const x=l??t.shouldReduceMotion;m.start(ui(d,m,b,x&&bt.has(d)?{type:!1}:y,t,p));const A=m.animation;A&&c.push(A)}if(o){const d=()=>H.update(()=>{o&&hi(t,o)});c.length?Promise.all(c).then(d):d()}return c}function ge(t,e,n={}){const i=j(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const r=i?()=>Promise.all(vt(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=s;return bi(t,e,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function bi(t,e,n=0,i=0,s=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(ge(u,e,{...o,delay:n+(typeof i=="function"?0:i)+mt(t.variantChildren,u,i,s,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function vi(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(r=>ge(t,r,n));i=Promise.all(s)}else if(typeof e=="string")i=ge(t,e,n);else{const s=typeof e=="function"?j(t,e,n.custom):e;i=Promise.all(vt(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Ti(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ut(t):!0}const xi=new Set(["auto","none","0"]);function Ai(t,e,n){let i=0,s;for(;i<t.length&&!s;){const r=t[i];typeof r=="string"&&!xi.has(r)&&ue(r).values.length&&(s=t[i]),i++}if(s&&n)for(const r of e)t[r]=_t(n,s)}class wi extends ze{constructor(e,n,i,s,r){super(e,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let f=e[c];if(typeof f=="string"&&(f=f.trim(),Te(f))){const d=pt(f,n.current);d!==void 0&&(e[c]=d),c===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!bt.has(i)||e.length!==2)return;const[s,r]=e,o=Me(s),a=Me(r),u=Pe(s),l=Pe(r);if(u!==l&&X[i]){this.needsMeasurement=!0;return}if(o!==a)if(De(o)&&De(a))for(let c=0;c<e.length;c++){const f=e[c];typeof f=="string"&&(e[c]=parseFloat(f))}else X[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||Ti(e[s]))&&i.push(s);i.length&&Ai(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=X[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Si(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const Vi={y:!1};function Ci(){return Vi.y}function Tt(t,e){const n=Si(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Mi(t){return!(t.pointerType==="touch"||Ci())}function Di(t,e,n={}){const[i,s,r]=Tt(t,n);return i.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",b)},f=h=>{l&&(l(h),l=void 0),c()},d=h=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),u&&(u=!1,f(h))},m=()=>{a=!0,window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",d,s)},b=h=>{if(h.pointerType!=="touch"){if(a){u=!0;return}f(h)}},y=h=>{if(!Mi(h))return;u=!1;const p=e(o,h);typeof p=="function"&&(l=p,o.addEventListener("pointerleave",b,s))};o.addEventListener("pointerenter",y,s),o.addEventListener("pointerdown",m,s)}),r}const xt=(t,e)=>e?t===e?!0:xt(t,e.parentElement):!1,Pi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ki=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ii(t){return ki.has(t.tagName)||t.isContentEditable===!0}const Y=new WeakSet;function Ee(t){return e=>{e.key==="Enter"&&t(e)}}function ce(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Fi=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Ee(()=>{if(Y.has(n))return;ce(n,"down");const s=Ee(()=>{ce(n,"up")}),r=()=>ce(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Ke(t){return Pi(t)&&!0}const Le=new WeakSet;function Oi(t,e,n={}){const[i,s,r]=Tt(t,n),o=a=>{const u=a.currentTarget;if(!Ke(a)||Le.has(a))return;Y.add(u),n.stopPropagation&&Le.add(a);const l=e(u,a),c=(m,b)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Y.has(u)&&Y.delete(u),Ke(m)&&typeof l=="function"&&l(m,{success:b})},f=m=>{c(m,u===window||u===document||n.useGlobalTarget||xt(u,m.target))},d=m=>{c(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",d,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Qt(a)&&(a.addEventListener("focus",l=>Fi(l,s)),!Ii(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}class At extends qt{constructor(){super(...arguments),this.KeyframeResolver=wi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$e(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class q{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ri({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Ei(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ki(t,e){return Ri(Ei(t.getBoundingClientRect(),e))}function wt(t,{style:e,vars:n},i,s){const r=t.style;let o;for(o in e)r[o]=e[o];s?.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function Li(t){return window.getComputedStyle(t)}class Bi extends At{constructor(){super(...arguments),this.type="html",this.renderInstance=wt}readValueFromInstance(e,n){if(ve.has(n))return this.projection?.isProjecting?zt(n):$t(e,n);{const i=Li(e),s=(en(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ki(e,n)}build(e,n,i){tn(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return nn(e,n,i)}}const St=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gi(t,e,n,i){wt(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(St.has(s)?s:Qe(s),e.attrs[s])}class Ni extends At{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ve.has(n)){const i=Yt(n);return i&&i.default||0}return n=St.has(n)?n:Qe(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return sn(e,n,i)}build(e,n,i){rn(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){Gi(e,n,i,s)}mount(e){this.isSVGTag=on(e.tagName),super.mount(e)}}const Hi=Ye.length;function Vt(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Vt(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Hi;n++){const i=Ye[n],s=t.props[i];(Xe(s)||s===!1)&&(e[i]=s)}return e}function Ct(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const ji=[...Je].reverse(),Wi=Je.length;function Ui(t){return e=>Promise.all(e.map(({animation:n,options:i})=>vi(t,n,i)))}function _i(t){let e=Ui(t),n=Be(),i=!0,s=!1;const r=l=>(c,f)=>{const d=j(t,f,l==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:b,...y}=d;c={...c,...y,...b}}return c};function o(l){e=l(t)}function a(l){const{props:c}=t,f=Vt(t.parent)||{},d=[],m=new Set;let b={},y=1/0;for(let p=0;p<Wi;p++){const x=ji[p],A=n[x],w=c[x]!==void 0?c[x]:f[x],v=Xe(w),C=x===l?A.isActive:null;C===!1&&(y=p);let P=w===f[x]&&w!==c[x]&&v;if(P&&(i||s)&&t.manuallyAnimateOnMount&&(P=!1),A.protectedKeys={...b},!A.isActive&&C===null||!w&&!A.prevProp||Ze(w)||typeof w=="boolean")continue;if(x==="exit"&&A.isActive&&C!==!0){A.prevResolvedValues&&(b={...b,...A.prevResolvedValues});continue}const T=qi(A.prevProp,w);let M=T||x===l&&A.isActive&&!P&&v||p>y&&v,g=!1;const V=Array.isArray(w)?w:[w];let k=V.reduce(r(x),{});C===!1&&(k={});const{prevResolvedValues:B={}}=A,F={...B,...k},R=D=>{M=!0,m.has(D)&&(g=!0,m.delete(D)),A.needsAnimating[D]=!0;
1const I=t.getValue(D);I&&(I.liveStyle=!1)};for(const D in F){const I=k[D],G=B[D];if(b.hasOwnProperty(D))continue;let W=!1;pe(I)&&pe(G)?W=!Ct(I,G):W=I!==G,W?I!=null?R(D):m.add(D):I!==void 0&&m.has(D)?R(D):A.protectedKeys[D]=!0}A.prevProp=w,A.prevResolvedValues=k,A.isActive&&(b={...b,...k}),(i||s)&&t.blockInitialAnimation&&(M=!1);const O=P&&T;M&&(!O||g)&&d.push(...V.map(D=>{const I={type:x};if(typeof D=="string"&&(i||s)&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:G}=t,W=j(G,D);if(G.enteringChildren&&W){const{delayChildren:Dt}=W.transition||{};I.delay=mt(G.enteringChildren,t,Dt)}}return{animation:D,options:I}}))}if(m.size){const p={};if(typeof c.initial!="boolean"){const x=j(t,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(p.transition=x.transition)}m.forEach(x=>{const A=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),p[x]=A??null}),d.push({animation:p})}let h=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(h=!1),i=!1,s=!1,h?e(d):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Be(),s=!0}}}function qi(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ct(e,t):!1}function N(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Be(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}function Ge(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const zi=(t,e)=>e.isSVG??an(t)?new Ni(e):new Bi(e,{allowProjection:t!==Zt.Fragment});class $i extends q{constructor(e){super(e),e.animationState||(e.animationState=_i(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ze(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 Xi=0;class Yi extends q{constructor(){super(...arguments),this.id=Xi++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"){const a=j(this.node,r,o);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.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 Zi={animation:{Feature:$i},exit:{Feature:Yi}};function Mt(t){return{point:{x:t.pageX,y:t.pageY}}}function Ne(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&H.postRender(()=>r(e,Mt(e)))}class Ji extends q{mount(){const{current:e}=this.node;e&&(this.unmount=Di(e,(n,i)=>(Ne(this.node,i,"Start"),s=>Ne(this.node,s,"End"))))}unmount(){}}class Qi extends q{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=ie(Ge(this.node.current,"focus",()=>this.onFocus()),Ge(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function He(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&H.postRender(()=>r(e,Mt(e)))}class es extends q{mount(){const{current:e}=this.node;if(!e)return;
1const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=Oi(e,(s,r)=>(He(this.node,r,"Start"),(o,{success:a})=>He(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const ye=new WeakMap,le=new WeakMap,ts=t=>{const e=ye.get(t.target);e&&e(t)},ns=t=>{t.forEach(ts)};function is({root:t,...e}){const n=t||document;le.has(n)||le.set(n,{});const i=le.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ns,{root:t,...e})),i[s]}function ss(t,e,n){const i=is(e);return ye.set(t,n),i.observe(t),()=>{ye.delete(t),i.unobserve(t)}}const rs={some:0,all:1};class os extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:rs[s]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};this.stopObserver=ss(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(as(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function as({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const cs={inView:{Feature:os},tap:{Feature:es},focus:{Feature:Qi},hover:{Feature:Ji}},ds={renderer:zi,...Zi,...cs};export{ds as default};
2//# sourceMappingURL=motion-features-CIoGj4mP.js.map

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.