PageSourceSearch

https://e-learning-prototype.netlify.app/assets/features-d4210c53.js

js e-learning-prototype.netlify.app collected 2026-10-03 10:40:26 UTC 75,473 bytes, 1 lines download raw bytes

1import{p as ot,f as C,n as F,r as dn,c as pn,i as mn,d as vs,a as gn,v as Ps,w as xs,b as mt,e as z,g as B,t as yt,h as Q,j as Ts,k as Vs,l as k,m as tt,o as yn,q as vt,s as gt,u as Ss,x as bs,y as As,z as rt,A as Ds,B as vn,C as Kt,D as Pn,E as xn,F as M,G as zt,H as ut,I as ft,P as Cs,R as Tn,J as ws,L as Ms,S as Ls,K as Vn,M as Sn,N as bn,O as Bt,Q as Ft,T as me,U as Ht,V as Rs,W as An,X as Bs,Y as Fs,Z as Dn,_ as Cn,$ as js,a0 as Es,a1 as ks,a2 as Is,a3 as Os,a4 as Us,a5 as Ns,a6 as Gs,a7 as Ks,a8 as zs}from"./index-51c884ce.js";function N(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const wn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Mt(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Hs=t=>e=>wn(e)&&t(e,Mt(e));function G(t,e,n,s){return N(t,e,Hs(n),s)}function Mn(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ge=Mn("dragHorizontal"),ye=Mn("dragVertical");function Ln(t){let e=!1;if(t==="y")e=ye();else if(t==="x")e=ge();else{const n=ge(),s=ye();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Rn(){const t=Ln(!0);return t?(t(),!1):!0}class q{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ve(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),o=(c,i)=>{if(c.type==="touch"||Rn())return;const r=t.getProps();t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",e),r[s]&&C.update(()=>r[s](c,i))};return G(t.current,n,o,{passive:!t.getProps()[s]})}class $s extends q{mount(){this.unmount=ot(ve(this.node,!0),ve(this.node,!1))}unmount(){}}class Ws 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=ot(N(this.node.current,"focus",()=>this.onFocus()),N(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Bn=(t,e)=>e?t===e?!0:Bn(t,e.parentElement):!1;function jt(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Mt(n))}class _s extends q{constructor(){super(...arguments),this.removeStartListeners=F,this.removeEndListeners=F,this.removeAccessibleListeners=F,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const s=this.node.getProps(),c=G(window,"pointerup",(r,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();C.update(()=>{Bn(this.node.current,r.target)?l&&l(r,a):u&&u(r,a)})},{passive:!(s.onTap||s.onPointerUp)}),i=G(window,"pointercancel",(r,a)=>this.cancelPress(r,a),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=ot(c,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=c=>{if(c.key!=="Enter"||this.isPressing)return;const i=r=>{r.key!=="Enter"||!this.checkPressEnd()||jt("up",(a,l)=>{const{onTap:u}=this.node.getProps();u&&C.update(()=>u(a,l))})};this.removeEndListeners(),this.removeEndListeners=N(this.node.current,"keyup",i),jt("down",(r,a)=>{this.startPress(r,a)})},n=N(this.node.current,"keydown",e),s=()=>{this.isPressing&&jt("cancel",(c,i)=>this.cancelPress(c,i))},o=N(this.node.current,"blur",s);this.removeAccessibleListeners=ot(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&C.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rn()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&C.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=G(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=N(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ot(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $t=new WeakMap,Et=new WeakMap,qs=t=>{const e=$t.get(t.target);e&&e(t)}
1,Xs=t=>{t.forEach(qs)};function Ys({root:t,...e}){const n=t||document;Et.has(n)||Et.set(n,{});const s=Et.get(n),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(Xs,{root:t,...e})),s[o]}function Zs(t,e,n){const s=Ys(e);return $t.set(t,n),s.observe(t),()=>{$t.delete(t),s.unobserve(t)}}const Js={some:0,all:1};class Qs extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:c}=e,i={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:Js[o]},r=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,c&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=l?u:h;f&&f(a)};return Zs(this.node.current,i,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ti(e,n))&&this.startObserver()}unmount(){}}function ti({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ei={inView:{Feature:Qs},tap:{Feature:_s},focus:{Feature:Ws},hover:{Feature:$s}};function Fn(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}function ni(t){const e={};return t.values.forEach((n,s)=>e[s]=n.get()),e}function si(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function Lt(t,e,n){const s=t.getProps();return dn(s,e,n!==void 0?n:s.custom,ni(t),si(t))}const ii="framerAppearId",oi="data-"+pn(ii),_=t=>t*1e3,K=t=>t/1e3,ri={current:!1},jn=t=>Array.isArray(t)&&typeof t[0]=="number";function En(t){return!!(!t||typeof t=="string"&&kn[t]||jn(t)||Array.isArray(t)&&t.every(En))}const ht=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ht([0,.65,.55,1]),circOut:ht([.55,0,1,.45]),backIn:ht([.31,.01,.66,-.59]),backOut:ht([.33,1.53,.69,.99])};function In(t){if(t)return jn(t)?ht(t):Array.isArray(t)?t.map(In):kn[t]}function ai(t,e,n,{delay:s=0,duration:o,repeat:c=0,repeatType:i="loop",ease:r,times:a}={}){const l={[e]:n};a&&(l.offset=a);const u=In(r);return Array.isArray(u)&&(l.easing=u),t.animate(l,{delay:s,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:c+1,direction:i==="reverse"?"alternate":"normal"})}const Pe={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},kt={},On={};for(const t in Pe)On[t]=()=>(kt[t]===void 0&&(kt[t]=Pe[t]()),kt[t]);function li(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const Un=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ci=1e-7,ui=12;function hi(t,e,n,s,o){let c,i,r=0;do i=e+(n-e)/2,c=Un(i,s,o)-t,c>0?n=i:e=i;while(Math.abs(c)>ci&&++r<ui);return i}function Pt(t,e,n,s){if(t===e&&n===s)return F;const o=c=>hi(c,0,1,t,n);return c=>c===0||c===1?c:Un(o(c),e,s)}const fi=Pt(.42,0,1,1),di=Pt(0,0,.58,1),Nn=Pt(.42,0,.58,1),pi=t=>Array.isArray(t)&&typeof t[0]!="number",Gn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Kn=t=>e=>1-t(1-e),zn=t=>1-Math.sin(Math.acos(t)),se=Kn(zn),mi=Gn(se),Hn=Pt(.33,1.53,.69,.99),ie=Kn(Hn),gi=Gn(ie),yi=t=>(t*=2)<1?.5*ie(t):.5*(2-Math.pow(2,-10*(t-1))),vi={linear:F,easeIn:fi,easeInOut:Nn,easeOut:di,circIn:zn,circInOut:mi,circOut:se,backIn:ie,backInOut:gi,backOut:Hn,anticipate:yi},xe=t=>{if(Array.isArray(t)){mn(t.length===4);const[e,n,s,o]=t;return Pt(e,n,s,o)}else if(typeof t=="string")return vi[t];return t};function Pi(t,e){return t.map(n=>n*e)}function xi(t,e){return t.map(()=>e||Nn).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const o=pi(s)?s.map(xe):xe(s),c={done:!1,value:e[0]},i=Pi(n&&n.length===e.length?n:vs(e),t),r=gn(i,e,{ease:Array.isArray(o)?o:xi(e,o)});return{calculatedDuration:t,next:a=>(c.value=r(a),c.done=a>=t,c)}}const Ti=5;function $n(t,e,n){const s=Math.max(e-Ti,0);return Ps(n-t(s),e-s)}const It=.001,Vi=.01,Te=10,Si=.05,bi=1;function Ai({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let o,c;xs(t<=_(Te));let i=1-e;i=mt(Si,bi,i),t=mt(Vi,Te,K(t)),i<1?(o=l=>{const u=l*i,h=u*t,f=u-n,d=Wt(l,i),p=Math.exp(-h);return It-f/d*p},c=l=>{const h=l*i*t,f=h*n+n,d=Math.pow(i,2)*Math.pow(l,2)*t,p=Math.exp(-h),m=Wt(Math.pow(l,2),i);return(-o(l)+It>0?-1:1)*((f-d)*p)/m}):(o=l=>{const u=Math.exp(-l*t),h=(l-n)*t+1;return-It+u*h},c=l=>{const u=Math.exp(-l*t),h=(n-l)*(t*t);return u*h});const r=5/t,a=Ci(o,c,r);if(t=_(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(a,2)*s;return{stiffness:l,damping:i*2*Math.sqrt(s*l),duration:t}}}const Di=12;function Ci(t,e,n){let s=n;for(let o=1;o<Di;o++)s=s-t(s)/e(s);return s}function Wt(t,e){return t*Math.sqrt(1-e*e)}const wi=["duration","bounce"],Mi=["stiffness","damping","mass"];function Ve(t,e){return e.some(n=>t[n]!==void 0)}function Li(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Ve(t,Mi)&&Ve(t,wi)){const n=Ai(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function Wn({keyframes:t,restDelta:e,restSpeed:n,...s}){const o=t[0],c=t[t.length-1],i={done:!1,value:o},{stiffness:r,damping:a,mass:l,velocity:u,duration:h,isResolvedFromDuration:f}=Li(s),d=u?-K(u):0,p=a/(2*Math.sqrt(r*l)),m=c-o,x=K(Math.sqrt(r/l)),v=Math.abs(m)<5;n||(n=v?.01:2),e||(e=v?.005:.5);let y;if(p<1){const g=Wt(x,p);
1y=P=>{const V=Math.exp(-p*x*P);return c-V*((d+p*x*m)/g*Math.sin(g*P)+m*Math.cos(g*P))}}else if(p===1)y=g=>c-Math.exp(-x*g)*(m+(d+x*m)*g);else{const g=x*Math.sqrt(p*p-1);y=P=>{const V=Math.exp(-p*x*P),R=Math.min(g*P,300);return c-V*((d+p*x*m)*Math.sinh(R)+g*m*Math.cosh(R))/g}}return{calculatedDuration:f&&h||null,next:g=>{const P=y(g);if(f)i.done=g>=h;else{let V=d;g!==0&&(p<1?V=$n(y,g,P):V=0);const R=Math.abs(V)<=n,S=Math.abs(c-P)<=e;i.done=R&&S}return i.value=i.done?c:P,i}}}function Se({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:i,min:r,max:a,restDelta:l=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=T=>r!==void 0&&T<r||a!==void 0&&T>a,p=T=>r===void 0?a:a===void 0||Math.abs(r-T)<Math.abs(a-T)?r:a;let m=n*e;const x=h+m,v=i===void 0?x:i(x);v!==x&&(m=v-h);const y=T=>-m*Math.exp(-T/s),g=T=>v+y(T),P=T=>{const A=y(T),O=g(T);f.done=Math.abs(A)<=l,f.value=f.done?v:O};let V,R;const S=T=>{d(f.value)&&(V=T,R=Wn({keyframes:[f.value,p(f.value)],velocity:$n(g,T,f.value),damping:o,stiffness:c,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:T=>{let A=!1;return!R&&V===void 0&&(A=!0,P(T),S(T)),V!==void 0&&T>V?R.next(T-V):(!A&&P(T),f)}}}const Ri=t=>{const e=({timestamp:n})=>t(n);return{start:()=>C.update(e,!0),stop:()=>z(e),now:()=>B.isProcessing?B.timestamp:performance.now()}},be=2e4;function Ae(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<be;)e+=n,s=t.next(e);return e>=be?1/0:e}const Bi={decay:Se,inertia:Se,tween:At,keyframes:At,spring:Wn};function Dt({autoplay:t=!0,delay:e=0,driver:n=Ri,keyframes:s,type:o="keyframes",repeat:c=0,repeatDelay:i=0,repeatType:r="loop",onPlay:a,onStop:l,onComplete:u,onUpdate:h,...f}){let d=1,p=!1,m,x;const v=()=>{m&&m(),x=new Promise(b=>{m=b})};v();let y;const g=Bi[o]||At;let P;g!==At&&typeof s[0]!="number"&&(P=gn([0,100],s,{clamp:!1}),s=[0,100]);const V=g({...f,keyframes:s});let R;r==="mirror"&&(R=g({...f,keyframes:[...s].reverse(),velocity:-(f.velocity||0)}));let S="idle",T=null,A=null,O=null;V.calculatedDuration===null&&c&&(V.calculatedDuration=Ae(V));const{calculatedDuration:U}=V;let H=1/0,et=1/0;U!==null&&(H=U+i,et=H*(c+1)-i);let L=0;const w=b=>{if(A===null)return;d>0&&(A=Math.min(A,b)),T!==null?L=T:L=(b-A)*d;const xt=L-e,ce=xt<0;L=Math.max(xt,0),S==="finished"&&T===null&&(L=et);let ue=L,he=V;if(c){const Rt=L/H;let Tt=Math.floor(Rt),X=Rt%1;!X&&Rt>=1&&(X=1),X===1&&Tt--,Tt=Math.min(Tt,c+1);const de=!!(Tt%2);de&&(r==="reverse"?(X=1-X,i&&(X-=i/H)):r==="mirror"&&(he=R));let pe=mt(0,1,X);L>et&&(pe=r==="reverse"&&de?1:0),ue=pe*H}const at=ce?{done:!1,value:s[0]}:he.next(ue);P&&(at.value=P(at.value));let{done:fe}=at;!ce&&U!==null&&(fe=L>=et);const ys=T===null&&(S==="finished"||S==="running"&&fe||d<0&&L<=0);return h&&h(at.value),ys&&gs(),at},$=()=>{y&&y.stop(),y=void 0},nt=()=>{S="idle",$(),v(),A=O=null},gs=()=>{S="finished",u&&u(),$(),v()},ae=()=>{if(p)return;y||(y=n(w));const b=y.now();a&&a(),T!==null?A=b-T:(!A||S==="finished")&&(A=b),O=A,T=null,S="running",y.start()};t&&ae();const le={then(b,xt){return x.then(b,xt)},get time(){return K(L)},set time(b){b=_(b),L=b,T!==null||!y||d===0?T=b:A=y.now()-b/d},get duration(){const b=V.calculatedDuration===null?Ae(V):V.calculatedDuration;return K(b)},get speed(){return d},set speed(b){b===d||!y||(d=b,le.time=K(L))},get state(){return S},play:ae,pause:()=>{S="paused",T=L},stop:()=>{p=!0,S!=="idle"&&(S="idle",l&&l(),nt())},cancel:()=>{O!==null&&w(O),nt()},complete:()=>{S="finished"},sample:b=>(A=0,w(b))};return le}const Fi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Vt=10,ji=2e4,Ei=(t,e)=>e.type==="spring"||t==="backgroundColor"||!En(e.ease);function ki(t,e,{onUpdate:n,onComplete:s,...o}){if(!(On.waapi()&&Fi.has(e)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let i=!1,r,a;const l=()=>{a=new Promise(v=>{r=v})};l();let{keyframes:u,duration:h=300,ease:f,times:d}=o;if(Ei(e,o)){const v=Dt({...o,repeat:0,delay:0});let y={done:!1,value:u[0]};const g=[];let P=0;for(;!y.done&&P<ji;)y=v.sample(P),g.push(y.value),P+=Vt;d=void 0,u=g,h=P-Vt,f="linear"}const p=ai(t.owner.current,e,u,{...o,duration:h,ease:f,times:d}),m=()=>p.cancel(),x=()=>{C.update(m),r(),l()};return p.onfinish=()=>{t.set(li(u,o)),s&&s(),x()},{then(v,y){return a.then(v,y)},get time(){return K(p.currentTime||0)},set time(v){p.currentTime=_(v)},get speed(){return p.playbackRate},set speed(v){p.playbackRate=v},get duration(){return K(h)},play:()=>{i||(p.play(),z(m))},pause:()=>p.pause(),stop:()=>
1{if(i=!0,p.playState==="idle")return;const{currentTime:v}=p;if(v){const y=Dt({...o,autoplay:!1});t.setWithVelocity(y.sample(v-Vt).value,y.sample(v).value,Vt)}x()},complete:()=>p.finish(),cancel:x}}function Ii({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const o=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:F,pause:F,stop:F,then:c=>(c(),Promise.resolve()),cancel:F,complete:F});return e?Dt({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}const Oi={type:"spring",stiffness:500,damping:25,restSpeed:10},Ui=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ni={type:"keyframes",duration:.8},Gi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ki=(t,{keyframes:e})=>e.length>2?Ni:yt.has(t)?t.startsWith("scale")?Ui(e[1]):Oi:Gi,_t=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Q.test(e)||e==="0")&&!e.startsWith("url(")),zi=new Set(["brightness","contrast","saturate","opacity"]);function Hi(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ts)||[];if(!s)return t;const o=n.replace(s,"");let c=zi.has(e)?1:0;return s!==n&&(c*=100),e+"("+c+o+")"}const $i=/([a-z-]*)\(.*?\)/g,qt={...Q,getAnimatableNone:t=>{const e=t.match($i);return e?e.map(Hi).join(" "):t}},Wi={...Vs,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:qt,WebkitFilter:qt},oe=t=>Wi[t];function _n(t,e){let n=oe(t);return n!==qt&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const qn=t=>/^0[^.\s]+$/.test(t);function _i(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||qn(t)}function qi(t,e,n,s){const o=_t(e,n);let c;Array.isArray(n)?c=[...n]:c=[null,n];const i=s.from!==void 0?s.from:t.get();let r;const a=[];for(let l=0;l<c.length;l++)c[l]===null&&(c[l]=l===0?i:c[l-1]),_i(c[l])&&a.push(l),typeof c[l]=="string"&&c[l]!=="none"&&c[l]!=="0"&&(r=c[l]);if(o&&a.length&&r)for(let l=0;l<a.length;l++){const u=a[l];c[u]=_n(e,r)}return c}function Xi({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:i,repeatDelay:r,from:a,elapsed:l,...u}){return!!Object.keys(u).length}function Xn(t,e){return t[e]||t.default||t}const re=(t,e,n,s={})=>o=>{const c=Xn(s,t)||{},i=c.delay||s.delay||0;let{elapsed:r=0}=s;r=r-_(i);const a=qi(e,t,n,c),l=a[0],u=a[a.length-1],h=_t(t,l),f=_t(t,u);let d={keyframes:a,velocity:e.getVelocity(),ease:"easeOut",...c,delay:-r,onUpdate:p=>{e.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()}};if(Xi(c)||(d={...d,...Ki(t,d)}),d.duration&&(d.duration=_(d.duration)),d.repeatDelay&&(d.repeatDelay=_(d.repeatDelay)),!h||!f||ri.current||c.type===!1)return Ii(d);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=ki(e,t,d);if(p)return p}return Dt(d)};function Ct(t){return!!(tt(t)&&t.add)}const Yi=t=>/^\-?\d*\.?\d+$/.test(t),Yn=t=>e=>e.test(t),Zi={test:t=>t==="auto",parse:t=>t},Zn=[yn,vt,gt,Ss,bs,As,Zi],lt=t=>Zn.find(Yn(t)),Ji=[...Zn,k,Q],Qi=t=>Ji.find(Yn(t));function to(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,rt(n))}function eo(t,e){const n=Lt(t,e);let{transitionEnd:s={},transition:o={},...c}=n?t.makeTargetAnimatable(n,!1):{};c={...c,...s};for(const i in c){const r=Ds(c[i]);to(t,i,r)}}function no(t,e,n){var s,o;const c=Object.keys(e).filter(r=>!t.hasValue(r)),i=c.length;if(i)for(let r=0;r<i;r++){const a=c[r],l=e[a];let u=null;Array.isArray(l)&&(u=l[0]),u===null&&(u=(o=(s=n[a])!==null&&s!==void 0?s:t.readValue(a))!==null&&o!==void 0?o:e[a]),u!=null&&(typeof u=="string"&&(Yi(u)||qn(u))?u=parseFloat(u):!Qi(u)&&Q.test(l)&&(u=_n(a,l)),t.addValue(a,rt(u,{owner:t})),n[a]===void 0&&(n[a]=u),u!==null&&t.setBaseTarget(a,u))}}function so(t,e){return e?(e[t]||e.default||e).from:void 0}function io(t,e,n){const s={};for(const o in t){const c=so(o,e);if(c!==void 0)s[o]=c;else{const i=n.getValue(o);i&&(s[o]=i.get())}}return s}function oo({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}
1function Jn(t,e,{delay:n=0,transitionOverride:s,type:o}={}){let{transition:c=t.getDefaultTransition(),transitionEnd:i,...r}=t.makeTargetAnimatable(e);const a=t.getValue("willChange");s&&(c=s);const l=[],u=o&&t.animationState&&t.animationState.getState()[o];for(const h in r){const f=t.getValue(h),d=r[h];if(!f||d===void 0||u&&oo(u,h))continue;const p={delay:n,elapsed:0,...c};if(window.HandoffAppearAnimations&&!f.hasAnimated){const x=t.getProps()[oi];x&&(p.elapsed=window.HandoffAppearAnimations(x,h,f,C))}f.start(re(h,f,d,t.shouldReduceMotion&&yt.has(h)?{type:!1}:p));const m=f.animation;Ct(a)&&(a.add(h),m.then(()=>a.remove(h))),l.push(m)}return i&&Promise.all(l).then(()=>{i&&eo(t,i)}),l}function Xt(t,e,n={}){const s=Lt(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const c=s?()=>Promise.all(Jn(t,s,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(a=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:h}=o;return ro(t,e,l+a,u,h,n)}:()=>Promise.resolve(),{when:r}=o;if(r){const[a,l]=r==="beforeChildren"?[c,i]:[i,c];return a().then(()=>l())}else return Promise.all([c(),i(n.delay)])}function ro(t,e,n=0,s=0,o=1,c){const i=[],r=(t.variantChildren.size-1)*s,a=o===1?(l=0)=>l*s:(l=0)=>r-l*s;return Array.from(t.variantChildren).sort(ao).forEach((l,u)=>{l.notify("AnimationStart",e),i.push(Xt(l,e,{...c,delay:n+a(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(i)}function ao(t,e){return t.sortNodePosition(e)}function lo(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const o=e.map(c=>Xt(t,c,n));s=Promise.all(o)}else if(typeof e=="string")s=Xt(t,e,n);else{const o=typeof e=="function"?Lt(t,e,n.custom):e;s=Promise.all(Jn(t,o,n))}return s.then(()=>t.notify("AnimationComplete",e))}const co=[...Pn].reverse(),uo=Pn.length;function ho(t){return e=>Promise.all(e.map(({animation:n,options:s})=>lo(t,n,s)))}function fo(t){let e=ho(t);const n=mo();let s=!0;const o=(a,l)=>{const u=Lt(t,l);if(u){const{transition:h,transitionEnd:f,...d}=u;a={...a,...d,...f}}return a};function c(a){e=a(t)}function i(a,l){const u=t.getProps(),h=t.getVariantContext(!0)||{},f=[],d=new Set;let p={},m=1/0;for(let v=0;v<uo;v++){const y=co[v],g=n[y],P=u[y]!==void 0?u[y]:h[y],V=xn(P),R=y===l?g.isActive:null;R===!1&&(m=v);let S=P===h[y]&&P!==u[y]&&V;if(S&&s&&t.manuallyAnimateOnMount&&(S=!1),g.protectedKeys={...p},!g.isActive&&R===null||!P&&!g.prevProp||vn(P)||typeof P=="boolean")continue;const T=po(g.prevProp,P);let A=T||y===l&&g.isActive&&!S&&V||v>m&&V;const O=Array.isArray(P)?P:[P];let U=O.reduce(o,{});R===!1&&(U={});const{prevResolvedValues:H={}}=g,et={...H,...U},L=w=>{A=!0,d.delete(w),g.needsAnimating[w]=!0};for(const w in et){const $=U[w],nt=H[w];p.hasOwnProperty(w)||($!==nt?Kt($)&&Kt(nt)?!Fn($,nt)||T?L(w):g.protectedKeys[w]=!0:$!==void 0?L(w):d.add(w):$!==void 0&&d.has(w)?L(w):g.protectedKeys[w]=!0)}g.prevProp=P,g.prevResolvedValues=U,g.isActive&&(p={...p,...U}),s&&t.blockInitialAnimation&&(A=!1),A&&!S&&f.push(...O.map(w=>({animation:w,options:{type:y,...a}})))}if(d.size){const v={};d.forEach(y=>{const g=t.getBaseTarget(y);g!==void 0&&(v[y]=g)}),f.push({animation:v})}let x=!!f.length;return s&&u.initial===!1&&!t.manuallyAnimateOnMount&&(x=!1),s=!1,x?e(f):Promise.resolve()}function r(a,l,u){var h;if(n[a].isActive===l)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),n[a].isActive=l;const f=i(u,a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:i,setActive:r,setAnimateFunction:c,getState:()=>n}}function po(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Fn(e,t):!1}function Y(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mo(){return{animate:Y(!0),whileInView:Y(),whileHover:Y(),whileTap:Y(),whileDrag:Y(),whileFocus:Y(),exit:Y()}}class go extends q{constructor(e){super(e),e.animationState||(e.animationState=fo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),vn(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let yo=0;class vo extends q{constructor(){super(...arguments),this.id=yo++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const c=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&c.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};
vendor: 5,015 bytes, line 1
1e&&(this.unmount=e(this.id))}unmount(){}}const Po={animation:{Feature:go},exit:{Feature:vo}},De=(t,e)=>Math.abs(t-e);function xo(t,e){const n=De(t.x,e.x),s=De(t.y,e.y);return Math.sqrt(n**2+s**2)}class Qn{constructor(e,n,{transformPagePoint:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ut(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,h=xo(l.offset,{x:0,y:0})>=3;if(!u&&!h)return;const{point:f}=l,{timestamp:d}=B;this.history.push({...f,timestamp:d});const{onStart:p,onMove:m}=this.handlers;u||(p&&p(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Ot(u,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:f}=this.handlers,d=Ut(l.type==="pointercancel"?this.lastMoveEventInfo:Ot(u,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,d),f&&f(l,d)},!wn(e))return;this.handlers=n,this.transformPagePoint=s;const o=Mt(e),c=Ot(o,this.transformPagePoint),{point:i}=c,{timestamp:r}=B;this.history=[{...i,timestamp:r}];const{onSessionStart:a}=n;a&&a(e,Ut(c,this.history)),this.removeListeners=ot(G(window,"pointermove",this.handlePointerMove),G(window,"pointerup",this.handlePointerUp),G(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),z(this.updatePoint)}}function Ot(t,e){return e?{point:e(t.point)}:t}function Ce(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ut({point:t},e){return{point:t,delta:Ce(t,ts(e)),offset:Ce(t,To(e)),velocity:Vo(e,.1)}}function To(t){return t[0]}function ts(t){return t[t.length-1]}function Vo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const o=ts(t);for(;n>=0&&(s=t[n],!(o.timestamp-s.timestamp>_(e)));)n--;if(!s)return{x:0,y:0};const c=K(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const i={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function j(t){return t.max-t.min}function Yt(t,e=0,n=.01){return Math.abs(t-e)<=n}function we(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=j(n)/j(e),(Yt(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(Yt(t.translate)||isNaN(t.translate))&&(t.translate=0)}function dt(t,e,n,s){we(t.x,e.x,n.x,s?s.originX:void 0),we(t.y,e.y,n.y,s?s.originY:void 0)}function Me(t,e,n){t.min=n.min+e.min,t.max=t.min+j(e)}function So(t,e,n){Me(t.x,e.x,n.x),Me(t.y,e.y,n.y)}function Le(t,e,n){t.min=e.min-n.min,t.max=t.min+j(e)}function pt(t,e,n){Le(t.x,e.x,n.x),Le(t.y,e.y,n.y)}function bo(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function Re(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 Ao(t,{top:e,left:n,bottom:s,right:o}){return{x:Re(t.x,n,o),y:Re(t.y,e,s)}}function Be(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 Do(t,e){return{x:Be(t.x,e.x),y:Be(t.y,e.y)}}function Co(t,e){let n=.5;const s=j(t),o=j(e);return o>s?n=zt(e.min,e.max-s,t.min):s>o&&(n=zt(t.min,t.max-o,e.min)),mt(0,1,n)}function wo(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 Zt=.35;function Mo(t=Zt){return t===!1?t=0:t===!0&&(t=Zt),{x:Fe(t,"left","right"),y:Fe(t,"top","bottom")}}function Fe(t,e,n){return{min:je(t,e),max:je(t,n)}}function je(t,e){return typeof t=="number"?t:t[e]||0}const Ee=()=>({translate:0,scale:1,origin:0,originPoint:0}),st=()=>({x:Ee(),y:Ee()}),ke=()=>({min:0,max:0}),D=()=>({x:ke(),y:ke()});function I(t){return[t("x"),t("y")]}function es({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Lo({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Ro(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 Nt(t){return t===void 0||t===1}function Jt({scale:t,scaleX:e,scaleY:n}){return!Nt(t)||!Nt(e)||!Nt(n)}function Z(t){return Jt(t)||ns(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ns(t){return Ie(t.x)||Ie(t.y)}function Ie(t){return t&&t!=="0%"}function wt(t,e,n){const s=t-n,o=e*s;return n+o}function Oe(t,e,n,s,o){return o!==void 0&&(t=wt(t,o,s)),wt(t,n,s)+e}function Qt(t,e=0,n=1,s,o){t.min=Oe(t.min,e,n,s,o),t.max=Oe(t.max,e,n,s,o)}function ss(t,{x:e,y:n}){Qt(t.x,e.translate,e.scale,e.originPoint),Qt(t.y,n.translate,n.scale,n.originPoint)}function Bo(t,e,n,s=!1){const o=n.length;if(!o)return;e.x=e.y=1;let c,i;for(let r=0;r<o;r++){c=n[r],i=c.projectionDelta;const a=c.instance;a&&a.style&&a.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&it
vendor: 6,471 bytes, line 1
1(t,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,ss(t,i)),s&&Z(c.latestValues)&&it(t,c.latestValues))}e.x=Ue(e.x),e.y=Ue(e.y)}function Ue(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function W(t,e){t.min=t.min+e,t.max=t.max+e}function Ne(t,e,[n,s,o]){const c=e[o]!==void 0?e[o]:.5,i=M(t.min,t.max,c);Qt(t,e[n],e[s],i,e.scale)}const Fo=["x","scaleX","originX"],jo=["y","scaleY","originY"];function it(t,e){Ne(t.x,e,Fo),Ne(t.y,e,jo)}function is(t,e){return es(Ro(t.getBoundingClientRect(),e))}function Eo(t,e,n){const s=is(t,n),{scroll:o}=e;return o&&(W(s.x,o.offset.x),W(s.y,o.offset.y)),s}const ko=new WeakMap;class Io{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=a=>{this.stopAnimation(),n&&this.snapToCursor(Mt(a,"page").point)},c=(a,l)=>{const{drag:u,dragPropagation:h,onDragStart:f}=this.getProps();if(u&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ln(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(p=>{let m=this.getAxisMotionValue(p).get()||0;if(gt.test(m)){const{projection:x}=this.visualElement;if(x&&x.layout){const v=x.layout.layoutBox[p];v&&(m=j(v)*(parseFloat(m)/100))}}this.originPoint[p]=m}),f&&C.update(()=>f(a,l),!1,!0);const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},i=(a,l)=>{const{dragPropagation:u,dragDirectionLock:h,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:p}=l;if(h&&this.currentDirection===null){this.currentDirection=Oo(p),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",l.point,p),this.updateAxis("y",l.point,p),this.visualElement.render(),d&&d(a,l)},r=(a,l)=>this.stop(a,l);this.panSession=new Qn(e,{onSessionStart:o,onStart:c,onMove:i,onSessionEnd:r},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&C.update(()=>c(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:o}=this.getProps();if(!s||!St(e,o,this.currentDirection))return;const c=this.getAxisMotionValue(e);let i=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(i=bo(i,this.constraints[e],this.elastic[e])),c.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),{layout:s}=this.visualElement.projection||{},o=this.constraints;e&&ut(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Ao(s.layoutBox,e):this.constraints=!1,this.elastic=Mo(n),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&I(c=>{this.getAxisMotionValue(c)&&(this.constraints[c]=wo(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ut(e))return!1;const s=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=Eo(s,o.root,this.visualElement.getTransformPagePoint());let i=Do(o.layout.layoutBox,c);if(n){const r=n(Lo(i));this.hasMutatedConstraints=!!r,r&&(i=es(r))}return i}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:i,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=I(u=>{if(!St(u,n,this.currentDirection))return;let h=a&&a[u]||{};i&&(h={min:0,max:0});const f=o?200:1e6,d=o?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...c,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(r)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(re(e,s,0,n))}stopAnimation(){I(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){I(n=>{const{drag:s}=this.getProps();if(!St(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:r}=o.layout.layoutBox[n];c.set(e[n]-M(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ut(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};I(i=>{const r=this.getAxisMotionValue(i);if(r){const a=r.get();o[i]=Co({min:a,max:a},this.constraints[i])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),I(i=>{if(!St(i,e,null))return;const r=this.getAxisMotionValue(i),{min:a,max:l}=this.constraints[i];r.set(M(a,l,o[i]))})}addListeners(){if(!this.visualElement.current)return;ko.set(this.visualElement,this);const e=this.visualElement.current,n=G(e,"pointerdown",a=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(a)}),s=()=>{const{dragConstraints:a}=this.getProps();ut(a)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),s();const i=N(window,"resize",()=>this.scalePositionWithinConstraints()),r=o.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(I(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=a[u].translate,h.set(h.get()+a[u].translate))}),this.visualElement.render())});return()=>{i(),n(),c(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:i=
vendor: 6,162 bytes, line 1
1Zt,dragMomentum:r=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:i,dragMomentum:r}}}function St(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Oo(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Uo extends q{constructor(e){super(e),this.removeGroupControls=F,this.removeListeners=F,this.controls=new Io(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||F}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ge=t=>(e,n)=>{t&&C.update(()=>t(e,n))};class No extends q{constructor(){super(...arguments),this.removePointerDownListener=F}onPointerDown(e){this.session=new Qn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Ge(e),onStart:Ge(n),onMove:s,onEnd:(c,i)=>{delete this.session,o&&C.update(()=>o(c,i))}}}mount(){this.removePointerDownListener=G(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Go(){const t=ft.useContext(Cs);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,o=ft.useId();return ft.useEffect(()=>s(o),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}const bt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ke(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(vt.test(t))t=parseFloat(t);else return t;const n=Ke(t,e.target.x),s=Ke(t,e.target.y);return`${n}% ${s}%`}},Ko={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,o=Q.parse(t);if(o.length>5)return s;const c=Q.createTransformer(t),i=typeof o[0]!="number"?1:0,r=n.x.scale*e.x,a=n.y.scale*e.y;o[0+i]/=r,o[1+i]/=a;const l=M(r,a,.5);return typeof o[2+i]=="number"&&(o[2+i]/=l),typeof o[3+i]=="number"&&(o[3+i]/=l),c(o)}};class zo extends Tn.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=e;ws(Ho),c&&(n.group&&n.group.add(c),s&&s.register&&o&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),bt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:o,isPresent:c}=this.props,i=s.projection;return i&&(i.isPresent=c,o||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==c&&(c?i.promote():i.relegate()||C.postRender(()=>{const r=i.getStack();(!r||!r.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function os(t){const[e,n]=Go(),s=ft.useContext(Ms);return Tn.createElement(zo,{...t,layoutGroup:s,switchLayoutGroup:ft.useContext(Ls),isPresent:e,safeToRemove:n})}const Ho={borderRadius:{...ct,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomLeftRadius:ct,borderBottomRightRadius:ct,boxShadow:Ko},rs=["TopLeft","TopRight","BottomLeft","BottomRight"],$o=rs.length,ze=t=>typeof t=="string"?parseFloat(t):t,He=t=>typeof t=="number"||vt.test(t);function Wo(t,e,n,s,o,c){o?(t.opacity=M(0,n.opacity!==void 0?n.opacity:1,_o(s)),t.opacityExit=M(e.opacity!==void 0?e.opacity:1,0,qo(s))):c&&(t.opacity=M(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let i=0;i<$o;i++){const r=`border${rs[i]}Radius`;let a=$e(e,r),l=$e(n,r);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||He(a)===He(l)?(t[r]=Math.max(M(ze(a),ze(l),s),0),(gt.test(l)||gt.test(a))&&(t[r]+="%")):t[r]=l}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function $e(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const _o=as(0,.5,se),qo=as(.5,.95,F);function as(t,e,n){return s=>s<t?0:s>e?1:n(zt(t,e,s))}function We(t,e){t.min=e.min,t.max=e.max}function E(t,e){We(t.x,e.x),We(t.y,e.y)}function _e(t,e,n,s,o){return t-=e,t=wt(t,1/n,s),o!==void 0&&(t=wt(t,1/o,s)),t}function Xo(t,e=0,n=1,s=.5,o,c=t,i=t){if(gt.test(e)&&(e=parseFloat(e),e=M(i.min,i.max,e/100)-i.min),typeof e!="number")return;let r=M(c.min,c.max,s);t===c&&(r-=e),t.min=_e(t.min,e,n,r,o),t.max=_e(t.max,e,n,r,o)}function qe(t,e,[n,s,o],c,i){Xo(t,e[n],e[s],e[o],e.scale,c,i)}const Yo=["x","scaleX","originX"],Zo=["y","scaleY","originY"];function Xe(t,e,n,s){qe(t.x,e,Yo,n?n.x:void 0,s?s.x:void 0),qe(t.y,e,Zo,n?n.y:void 0,s?s.y:void 0)}function Ye(t){return t.translate===0&&t.scale===1}function ls(t){return Ye(t.x)&&Ye(t.y)}function te(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ze(t){return j(t.x)/j(t.y)}class Jo{constructor(){this.members=[]}add(e){Vn(this.members,e),e.scheduleRender()}remove(e){if(Sn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&s.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Je(t,e,n){let s="";const o=t.x.translate/e.x,c=t.y.translate/e.y;if((o||c)&&(s=`translate3d(${o}px, ${c}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:a,rotateX:l,rotateY:u}=n;a&&(s+=`rotate(${a}deg) `),l&&(s+=`rotateX(${l}deg) `),u&&(s+=`rotateY(${u}deg) `)}const i=t.x.scale*e.x,r=t.y.scale*e.y;return(i!==1||r!==1)&&(s+=`scale(${i}, ${r})`),s||"none"}const Qo=(t,e)=>t.depth-e.depth;class tr{constructor(){this.children=[],this.isDirty=!1}add(e){Vn(this.children,e),this.isDirty=!0}remove(e){Sn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qo),this.isDirty=!1,this.children.forEach(e)}}function er(t,e){const n=performance.now(),s=({timestamp:o})=>{const c=o-n;c>=e&&(z(s),t(c-e))};return C.read(s,!0),()=>z(s)}function nr(t){window.MotionDebug&&window.MotionDebug.record(t)}function sr(t){return t instanceof SVGElement&&t.tagName!=="svg"}function ir(t,e,n){const s=tt(t)?t:rt(t);return s.start(re("",s,e,n)),s.animation}const Qe=["","X","Y","Z"],tn=1e3;let or=0;const J={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function cs({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(i={},r=e==null?void 0:e()){this.id=or++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{J.totalNodes=J.resolvedTargetDeltas=J.recalculatedProjection=0,this.nodes.forEach(lr),this.nodes.forEach(dr),this.nodes.forEach(pr),this.nodes.forEach(cr),nr(J)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new tr)}addEventListener(i,r){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new bn),this.eventHandlers.get(i).add(r)}notifyListeners(i,...r){const a=this.eventHandlers.get(i);a&&a.notify(...r)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sr(i),this.instance=i;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(l||a)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=er(f,250),bt.hasAnimatedSinceResize&&(bt.hasAnimatedSinceResize=!1,this.nodes.forEach(nn))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Pr,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),y=!this.targetLayout||!te(this.targetLayout,p)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const P={...Xn(m,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||nn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,z(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(mr),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:r,layout:a}=this.options;if(r===void 0&&!a)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(en);return}this.isUpdating||this.nodes.forEach(hr),this.isUpdating=!1,this.nodes.forEach(fr),this.nodes.forEach(rr),this.nodes.forEach(ar),this.clearAllSnapshots();const r=performance.now();B.delta=mt(0,1e3/60,r-B.timestamp),B.timestamp=r,B.isProcessing=!0,Bt.update.process(B),Bt.preRender.process(B),Bt.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ur),this.sharedNodes.forEach(gr)}scheduleUpdateProjection(){C.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=D(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:r}=this.options;r&&r.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let r=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(r=!1),r&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!ls(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;i&&(r||Z(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const r=this.measurePageBox();let a=this.removeElementScroll(r);return i&&(a=this.removeTransform(a)),xr(a),{animationId:this.root.animationId,measuredBox:r,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return D();const r=i.measureViewportBox(),{scroll:a}=this.root;return a&&(W(r.x,a.offset.x),W(r.y,a.offset.y)),r}removeElementScroll(i){const r=D();E(r,i);for(let a=0;a<this.path.length;a++){const l=this.path[a],{scroll:u,options:h}=l;if(l!==this.root&&u&&h.layoutScroll){if(u.isRoot){E(r,i);const{scroll:f}=this.root;f&&(W(r.x,-f.offset.x),W(r.y,-f.offset.y))}W(r.x,u.offset.x),W(r.y,u.offset.y)}}return r}applyTransform(i,r=!1){const a=D();E(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];!r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&it(a,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Z(u.latestValues)&&it(a,u.latestValues)}return Z(this.latestValues)&&it(a,this.latestValues),a}removeTransform(i){const r=D();E(r,i);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!Z(l.latestValues))continue;Jt(l.latestValues)&&l.updateSnapshot();const u=D(),h=l.measurePageBox();E(u,h),Xe(r,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Z(this.latestValues)&&Xe(r,this.latestValues),r}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var r;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(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),pt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),E(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=D(),this.targetWithTransforms=D()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),So(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):E(this.target,this.layout.layoutBox),ss(this.target,this.targetDelta)):E(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),pt(this.relativeTargetOrigin,this.target,d.target),E(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}J.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Jt(this.parent.latestValues)||ns(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&
1(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===B.timestamp&&(l=!1),l)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;E(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Bo(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox);const{target:p}=r;if(!p){this.projectionTransform&&(this.projectionDelta=st(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=st(),this.projectionDeltaWithTransform=st());const m=this.projectionTransform;dt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=Je(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==f||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),J.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const r=this.getStack();r&&r.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,r=!1){const a=this.snapshot,l=a?a.latestValues:{},u={...this.latestValues},h=st();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!r;const f=D(),d=a?a.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,x=this.getStack(),v=!x||x.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(vr));this.animationProgress=0;let g;this.mixTargetDelta=P=>{const V=P/1e3;sn(h.x,i.x,V),sn(h.y,i.y,V),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yr(this.relativeTarget,this.relativeTargetOrigin,f,V),g&&te(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=D()),E(g,this.relativeTarget)),m&&(this.animationValues=u,Wo(u,l,this.latestValues,V,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{bt.hasAnimatedSinceResize=!0,this.currentAnimation=ir(0,tn,{...i,onUpdate:r=>{this.mixTargetDelta(r),i.onUpdate&&i.onUpdate(r)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tn),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:r,target:a,layout:l,latestValues:u}=i;if(!(!r||!a||!l)){if(this!==i&&this.layout&&l&&us(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||D();const h=j(this.layout.layoutBox.x);a.x.min=i.target.x.min,a.x.max=a.x.min+h;const f=j(this.layout.layoutBox.y);a.y.min=i.target.y.min,a.y.max=a.y.min+f}E(r,a),it(r,u),dt(this.projectionDeltaWithTransform,this.layoutCorrected,r,u)}}registerSharedNode(i,r){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Jo),this.sharedNodes.get(i).add(r);const l=r.options.initialPromotionConfig;r.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(r):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:r}=this.options;return r?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:r}=this.options;return r?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:r,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),i&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let r=!1;const{latestValues:a}=i;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(r=!0),!r)return;const l={};for(let u=0;u<Qe.length;u++){const h="rotate"+Qe[u];a[h]&&(l[h]=a[h],i.setStaticValue(h,0))}i.render();for(const u in l)i.setStaticValue(u,l[u]);i.scheduleRender()}getProjectionStyles(i={}){var r,a;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Ft(i.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Ft(i.pointerEvents)||""),this.hasProjected&&!Z(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),l.transform=Je(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:d,y:p}=this.projectionDelta;l.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?l.opacity=h===this?(a=(r=f.opacity)!==null&&r!==void 0?r:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in me){if(f[m]===void 0)continue;const{correct:x,applyTo:v}=me[m],y=l.transform==="none"?f[m]:x(f[m],h);if(v){const g=v.length;for(let P=0;P<g;P++)l[v[P]]=y}else l[m]=y}return this.options.layoutId&&(l.pointerEvents=h===this?Ft(i.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(i=>{var r;return(r=i.currentAnimation)===null||r===void 0?void 0:r.stop()}),this.root.nodes.forEach(en),this.root.sharedNodes.clear()}}}function rr(t){t.updateLayout()}function ar(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=t.layout,{animationType:c}=t.options,i=n.source!==t.layout.source;c==="size"?I(h=>{const f=i?n.measuredBox[h]:n.layoutBox[h],d=j(f);f.min=s[h].min,f.max=f.min+d}):us(c,n.layoutBox,s)&&I(h=>{const f=i?n.measuredBox[h]:n.layoutBox[h],d=j(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const r=st();dt(r,s,n.layoutBox);const a=st();i?dt(a,t.applyTransform(o,!0),n.measuredBox):dt(a,s,n.layoutBox);const l=!ls(r);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=D();pt(p,n.layoutBox,f.layoutBox);const m=D();pt(m,s,d.layoutBox),te(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function lr(t){J.totalNodes++,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 cr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ur(t){t.clearSnapshot()}function en(t){t.clearMeasurements()}function hr(t){t.isLayoutDirty=!1}function fr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function dr(t){t.resolveTargetDelta()}function pr(t){t.calcProjection()}function mr(t){t.resetRotation()}function gr(t){t.removeLeadSnapshot()}function sn(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function on(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function yr(t,e,n,s){on(t.x,e.x,n.x,s),on(t.y,e.y,n.y,s)}function vr(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Pr={duration:.45,ease:[.4,0,.1,1]};function rn(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function xr(t){rn(t.x),rn(t.y)}function us(t,e,n){return t==="position"||t==="preserve-aspect"&&!Yt(Ze(e),Ze(n),.2)}const Tr=cs({attachResizeListener:(t,e)=>N(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gt={current:void 0},hs=cs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Gt.current){const t=new Tr({});t.mount(window),t.setOptions({layoutScroll:!0}),Gt.current=t}return Gt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Vr={pan:{Feature:No},drag:{Feature:Uo,ProjectionNode:hs,MeasureLayout:os}},Sr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function br(t){const e=Sr.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function ee(t,e,n=1){const[s,o]=br(t);if(!s)return;const c=window.getComputedStyle(e).getPropertyValue(s);return c?c.trim():Ht(o)?ee(o,e,n+1):o}function Ar(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(o=>{const c=o.get();if(!Ht(c))return;const i=ee(c,s);i&&o.set(i)});for(const o in e){const c=e[o];if(!Ht(c))continue;const i=ee(c,s);i&&(e[o]=i,n||(n={}),n[o]===void 0&&(n[o]=c))}return{target:e,transitionEnd:n}}const Dr=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fs=t=>Dr.has(t),Cr=t=>Object.keys(t).some(fs),an=t=>t===yn||t===vt,ln=(t,e)=>parseFloat(t.split(", ")[e]),cn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/);if(o)return ln(o[1],e);{const c=s.match(/^matrix\((.+)\)$/);return c?ln(c[1],t):0}},wr=new Set(["x","y","z"]),Mr=Rs.filter(t=>!wr.has(t));function Lr(t){const e=[];return Mr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const un={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:cn(4,13),y:cn(5,14)},Rr=(t,e,n)=>{const s=e.measureViewportBox(),o=e.current,c=getComputedStyle(o),{display:i}=c,r={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEac
1h(l=>{r[l]=un[l](s,c)}),e.render();const a=e.measureViewportBox();return n.forEach(l=>{const u=e.getValue(l);u&&u.jump(r[l]),t[l]=un[l](a,c)}),t},Br=(t,e,n={},s={})=>{e={...e},s={...s};const o=Object.keys(e).filter(fs);let c=[],i=!1;const r=[];if(o.forEach(a=>{const l=t.getValue(a);if(!t.hasValue(a))return;let u=n[a],h=lt(u);const f=e[a];let d;if(Kt(f)){const p=f.length,m=f[0]===null?1:0;u=f[m],h=lt(u);for(let x=m;x<p&&f[x]!==null;x++)d?mn(lt(f[x])===d):d=lt(f[x])}else d=lt(f);if(h!==d)if(an(h)&&an(d)){const p=l.get();typeof p=="string"&&l.set(parseFloat(p)),typeof f=="string"?e[a]=parseFloat(f):Array.isArray(f)&&d===vt&&(e[a]=f.map(parseFloat))}else h!=null&&h.transform&&(d!=null&&d.transform)&&(u===0||f===0)?u===0?l.set(d.transform(u)):e[a]=h.transform(f):(i||(c=Lr(t),i=!0),r.push(a),s[a]=s[a]!==void 0?s[a]:e[a],l.jump(f))}),r.length){const a=r.indexOf("height")>=0?window.pageYOffset:null,l=Rr(e,t,r);return c.length&&c.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),An&&a!==null&&window.scrollTo({top:a}),{target:l,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Fr(t,e,n,s){return Cr(e)?Br(t,e,n,s):{target:e,transitionEnd:s}}const jr=(t,e,n,s)=>{const o=Ar(t,e,s);return e=o.target,s=o.transitionEnd,Fr(t,e,n,s)},ne={current:null},ds={current:!1};function Er(){if(ds.current=!0,!!An)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ne.current=t.matches;t.addListener(e),e()}else ne.current=!1}function kr(t,e,n){const{willChange:s}=e;for(const o in e){const c=e[o],i=n[o];if(tt(c))t.addValue(o,c),Ct(s)&&s.add(o);else if(tt(i))t.addValue(o,rt(c,{owner:t})),Ct(s)&&s.remove(o);else if(i!==c)if(t.hasValue(o)){const r=t.getValue(o);!r.hasAnimated&&r.set(c)}else{const r=t.getStaticValue(o);t.addValue(o,rt(r!==void 0?r:c,{owner:t}))}}for(const o in n)e[o]===void 0&&t.removeValue(o);return e}const hn=new WeakMap,ps=Object.keys(Dn),Ir=ps.length,fn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Or=Cn.length;class Ur{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:o,visualState:c},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>C.render(this.render,!1,!0);
1const{latestValues:r,renderState:a}=c;this.latestValues=r,this.baseTarget={...r},this.initialValues=n.initial?{...r}:{},this.renderState=a,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=Bs(n),this.isVariantNode=Fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const f=u[h];r[h]!==void 0&&tt(f)&&(f.set(r[h],!1),Ct(l)&&l.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,hn.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)),ds.current||Er(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ne.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hn.delete(this.current),this.projection&&this.projection.unmount(),z(this.notifyUpdate),z(this.render),this.valueSubscriptions.forEach(e=>e()),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)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=yt.has(e),o=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&C.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),c=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{o(),c()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,o,c){let i,r;for(let a=0;a<Ir;a++){const l=ps[a],{isEnabled:u,Feature:h,ProjectionNode:f,MeasureLayout:d}=Dn[l];f&&(i=f),u(n)&&(!this.features[l]&&h&&(this.features[l]=new h(this)),d&&(r=d))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:l,drag:u,dragConstraints:h,layoutScroll:f,layoutRoot:d}=n;this.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||h&&ut(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:c,layoutScroll:f,layoutRoot:d})}return r}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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<fn.length;s++){const o=fn[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c=e["on"+o];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=kr(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<Or;s++){const o=Cn[s],c=this.props[o];(xn(c)||c===!1)&&(n[o]=c)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(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=rt(n,{owner:this}),this.addValue(e,s)),s}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,o=typeof s=="string"||typeof s=="object"?(n=dn(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,e);return c!==void 0&&!tt(c)?c:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new bn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ms extends Ur{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]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},{transformValues:o},c){let i=io(s,e||{},this);if(o&&(n&&(n=o(n)),s&&(s=o(s)),i&&(i=o(i))),c){no(this,s,i);const r=jr(this,s,i,n);n=r.transitionEnd,s=r.target}return{transition:e,transitionEnd:n,...s}}}function Nr(t){return window.getComputedStyle(t)}class Gr extends ms{readValueFromInstance(e,n){if(yt.has(n)){const s=oe(n);return s&&s.default||0}else{const s=Nr(e),o=(js(n)?s.getPropertyValue(n):s[n])||0;
1return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return is(e,n)}build(e,n,s,o){Es(e,n,s,o.transformTemplate)}scrapeMotionValuesFromProps(e,n){return ks(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;tt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,o){Is(e,n,s,o)}}class Kr extends ms{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=oe(n);return s&&s.default||0}return n=Os.has(n)?n:pn(n),e.getAttribute(n)}measureInstanceViewportBox(){return D()}scrapeMotionValuesFromProps(e,n){return Us(e,n)}build(e,n,s,o){Ns(e,n,s,this.isSVGTag,o.transformTemplate)}renderInstance(e,n,s,o){Gs(e,n,s,o)}mount(e){this.isSVGTag=Ks(e.tagName),super.mount(e)}}const zr=(t,e)=>zs(t)?new Kr(e,{enableHardwareAcceleration:!1}):new Gr(e,{enableHardwareAcceleration:!0}),Hr={layout:{ProjectionNode:hs,MeasureLayout:os}},$r={renderer:zr,...Po,...ei},qr={...$r,...Vr,...Hr};export{qr as default};

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.