1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87242],{84962:function(t,e,i){i.d(e,{S:function(){return c}});var n=i(56717),r=i(87093),s=i(13223),o=i(59111);function a(t,e){return t*Math.sqrt(1-e*e)}let l=["duration","bounce"],u=["stiffness","damping","mass"];function h(t,e){return e.some(e=>void 0!==t[e])}function c({keyframes:t,restDelta:e,restSpeed:i,...c}){let d;let p=t[0],f=t[t.length-1],m={done:!1,value:p},{stiffness:v,damping:g,mass:y,duration:x,velocity:P,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!h(t,u)&&h(t,l)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let l,u;(0,s.K)(t<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let h=1-e;h=(0,o.u)(.05,1,h),t=(0,o.u)(.01,10,(0,n.X)(t)),h<1?(l=e=>{let n=e*h,r=n*t;return .001-(n-i)/a(e,h)*Math.exp(-r)},u=e=>{let n=e*h*t,r=Math.pow(h,2)*Math.pow(e,2)*t,s=a(Math.pow(e,2),h);return(n*i+i-r)*Math.exp(-n)*(-l(e)+.001>0?-1:1)/s}):(l=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),u=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(l,u,5/t);if(t=(0,n.w)(t),isNaN(c))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(c,2)*r;return{stiffness:e,damping:2*h*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...c,velocity:-(0,n.X)(c.velocity||0)}),w=P||0,A=g/(2*Math.sqrt(v*y)),T=f-p,S=(0,n.X)(Math.sqrt(v/y)),V=5>Math.abs(T);if(i||(i=V?.01:2),e||(e=V?.005:.5),A<1){let t=a(S,A);d=e=>f-Math.exp(-A*S*e)*((w+A*S*T)/t*Math.sin(t*e)+T*Math.cos(t*e))}else if(1===A)d=t=>f-Math.exp(-S*t)*(T+(w+S*T)*t);else{let t=S*Math.sqrt(A*A-1);d=e=>{let i=Math.exp(-A*S*e),n=Math.min(t*e,300);return f-i*((w+A*S*T)*Math.sinh(n)+t*T*Math.cosh(n))/t}}return{calculatedDuration:b&&x||null,next:t=>{let n=d(t);if(b)m.done=t>=x;else{let s=w;0!==t&&(s=A<1?(0,r.P)(d,t,n):0);let o=Math.abs(s)<=i,a=Math.abs(f-n)<=e;m.done=o&&a}return m.value=m.done?f:n,m}}}},30431:function(t,e,i){i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},87093:function(t,e,i){i.d(e,{P:function(){return r}});var n=i(51116);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},70032:function(t,e,i){i.d(e,{v:function(){return _}});var n=i(13223),r=i(56717);let s={current:!1},o=t=>Array.isArray(t)&&"number"==typeof t[0],a=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,l={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:a([0,.65,.55,1]),circOut:a([.55,0,1,.45]),backIn:a([.31,.01,.66,-.59]),backOut:a([.33,1.53,.69,.99])};var u=i(44439);let h=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function c(t,e,i,n){if(t===e&&i===n)return u.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=h(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:h(r(t),e,n)}let d=c(.42,0,1,1),p=c(0,0,.58,1),f=c(.42,0,.58,1);var m=i(81477),v=i(26378),g=i(87457),y=i(63627);let x=c(.33,1.53,.69,.99),P=(0,y.M)(x),b=(0,g.o)(P),w={linear:u.Z,easeIn:d,easeInOut:f,easeOut:p,circIn:v.Z7,circInOut:v.X7,circOut:v.Bn,backIn:P,backInOut:b,backOut:x,anticipate:t=>(t*=2)<1?.5*P(t):.5*(2-Math.pow(2,-10*(t-1)))},A=t=>{if(Array.isArray(t)){(0,n.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,s]=t;return c(e,i,r,s)}return"string"==typeof t?((0,n.k)(void 0!==w[t],`Invalid easing type '${t}'`),w[t]):t};var T=i(22888),S=i(46261);function V({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,m.N)(n)?n.map(A):A(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,S.Y)(e)).map(e=>e*t),a=(0,T.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||f).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var C=i(84962),D=i(87093);function E({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let P=t=>-g*Math.exp(-t/n),b=t=>x+P(t),w=t=>{let e=P(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},A=t=>{m(f.value)&&(c=t,d=(0,C.S)({keyframes:[f.value,v(f.value)],velocity:(0,D.P)(b,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}
1))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),A(t)),void 0!==c&&t>c)?d.next(t-c):(e||w(t),f)}}}var M=i(58345);let R=t=>{let e=({timestamp:e})=>t(e);return{start:()=>M.Wi.update(e,!0),stop:()=>(0,M.Pn)(e),now:()=>M.frameData.isProcessing?M.frameData.timestamp:performance.now()}};var k=i(59111),L=i(30431);let j={decay:E,inertia:E,tween:V,keyframes:V,spring:C.S};function B({autoplay:t=!0,delay:e=0,driver:i=R,keyframes:n,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:u,onStop:h,onComplete:c,onUpdate:d,...p}){let f,m,v,g,y,x=1,P=!1,b=()=>{m=new Promise(t=>{f=t})};b();let w=j[s]||V;w!==V&&"number"!=typeof n[0]&&(g=(0,T.s)([0,100],n,{clamp:!1}),n=[0,100]);let A=w({...p,keyframes:n});"mirror"===l&&(y=w({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let S="idle",C=null,D=null,E=null;null===A.calculatedDuration&&o&&(A.calculatedDuration=(0,L.i)(A));let{calculatedDuration:M}=A,B=1/0,F=1/0;null!==M&&(F=(B=M+a)*(o+1)-a);let O=0,W=t=>{if(null===D)return;x>0&&(D=Math.min(D,t)),x<0&&(D=Math.min(t-F/x,D));let i=(O=null!==C?C:Math.round(t-D)*x)-e*(x>=0?1:-1),r=x>=0?i<0:i>F;O=Math.max(i,0),"finished"===S&&null===C&&(O=F);let s=O,u=A;if(o){let t=Math.min(O,F)/B,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,o+1))%2&&("reverse"===l?(i=1-i,a&&(i-=a/B)):"mirror"===l&&(u=y)),s=(0,k.u)(0,1,i)*B}let h=r?{done:!1,value:n[0]}:u.next(s);g&&(h.value=g(h.value));let{done:c}=h;r||null===M||(c=x>=0?O>=F:O<=0);let p=null===C&&("finished"===S||"running"===S&&c);return d&&d(h.value),p&&I(),h},$=()=>{v&&v.stop(),v=void 0},U=()=>{S="idle",$(),f(),b(),D=E=null},I=()=>{S="finished",c&&c(),$(),f()},N=()=>{if(P)return;v||(v=i(W));let t=v.now();u&&u(),null!==C?D=t-C:D&&"finished"!==S||(D=t),"finished"===S&&b(),E=D,C=null,S="running",v.start()};t&&N();let H={then:(t,e)=>m.then(t,e),get time(){return(0,r.X)(O)},set time(newTime){O=newTime=(0,r.w)(newTime),null===C&&v&&0!==x?D=v.now()-newTime/x:C=newTime},get duration(){let t=null===A.calculatedDuration?(0,L.i)(A):A.calculatedDuration;return(0,r.X)(t)},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!v)return;x=newSpeed,H.time=(0,r.X)(O)},get state(){return S},play:N,pause:()=>{S="paused",C=O},stop:()=>{P=!0,"idle"!==S&&(S="idle",h&&h(),U())},cancel:()=>{null!==E&&W(E),U()},complete:()=>{S="finished"},sample:t=>(D=0,W(t))};return H}let F=(0,i(64043).X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),O=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),W=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&l[e]||o(e)||Array.isArray(e)&&e.every(t))}(e.ease);var $=i(8834);let U={type:"spring",stiffness:500,damping:25,restSpeed:10},I=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),N={type:"keyframes",duration:.8},H={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},X=(t,{keyframes:e})=>e.length>2?N:$.G.has(t)?t.startsWith("scale")?I(e[1]):U:H;var z=i(15636);let Y=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(z.P.test(e)||"0"===e)&&!e.startsWith("url("));var Z=i(25861),G=i(13697),q=i(79573);let K={skipAnimations:!1},_=(t,e,i,h={})=>c=>{let d=(0,q.e)(h,t)||{},p=d.delay||h.delay||0,{elapsed:f=0}=h;f-=(0,r.w)(p);let m=function(t,e,i,n){let r,s;let o=Y(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?a:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||(0,G.W)(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(s=r[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)r[l[t]]=(0,Z.T)(e,s);return r}(e,t,i,d),v=m[0],g=m[m.length-1],y=Y(t,v),x=Y(t,g);(0,n.K)(y===x,`You are trying to animate ${t} from "${v}" to "${g}". ${v} is not an animatable value - to enable this animation set ${v} to a value animatable to ${g} via the \`style\` property.`);let P={keyframes:m,velocity:e.getVelocity(),ease:"easeOut",...d,delay:-f,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{c(),d.onComplete&&d.onComplete()}};
1if((0,q.r)(d)||(P={...P,...X(t,P)}),P.duration&&(P.duration=(0,r.w)(P.duration)),P.repeatDelay&&(P.repeatDelay=(0,r.w)(P.repeatDelay)),!y||!x||s.current||!1===d.type||K.skipAnimations)return function({keyframes:t,delay:e,onUpdate:i,onComplete:n}){let r=()=>(i&&i(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:u.Z,pause:u.Z,stop:u.Z,then:t=>(t(),Promise.resolve()),cancel:u.Z,complete:u.Z});return e?B({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(s.current?{...P,delay:0}:P);if(!h.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...s}){let h,c;if(!(F()&&O.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping&&"inertia"!==s.type))return!1;let d=!1,p=!1,f=()=>{c=new Promise(t=>{h=t})};f();let{keyframes:m,duration:v=300,ease:g,times:y}=s;if(W(e,s)){let t=B({...s,repeat:0,delay:0}),e={done:!1,value:m[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;y=void 0,m=i,v=n-10,g="linear"}let x=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:u="loop",ease:h,times:c}={}){let d={[e]:i};c&&(d.offset=c);let p=function t(e){if(e)return o(e)?a(e):Array.isArray(e)?e.map(t):l[e]}(h);return Array.isArray(p)&&(d.easing=p),t.animate(d,{delay:n,duration:r,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:"reverse"===u?"alternate":"normal"})}(t.owner.current,e,m,{...s,duration:v,ease:g,times:y}),P=()=>{p=!1,x.cancel()},b=()=>{p=!0,M.Wi.update(P),h(),f()};return x.onfinish=()=>{p||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(m,s)),n&&n(),b())},{then:(t,e)=>c.then(t,e),attachTimeline:t=>(x.timeline=t,x.onfinish=null,u.Z),get time(){return(0,r.X)(x.currentTime||0)},set time(newTime){x.currentTime=(0,r.w)(newTime)},get speed(){return x.playbackRate},set speed(newSpeed){x.playbackRate=newSpeed},get duration(){return(0,r.X)(v)},play:()=>{d||(x.play(),(0,M.Pn)(P))},pause:()=>x.pause(),stop:()=>{if(d=!0,"idle"===x.playState)return;let{currentTime:e}=x;if(e){let i=B({...s,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}b()},complete:()=>{p||x.finish()},cancel:b}}(e,t,P);if(i)return i}return B(P)}},43289:function(t,e,i){i.d(e,{D:function(){return o}});var n=i(70032),r=i(3078),s=i(23999);function o(t,e,i){let o=(0,s.i)(t)?t:(0,r.BX)(t);return o.start((0,n.v)("",o,e,i)),o.animation}},28500:function(t,e,i){i.d(e,{w:function(){return h}});var n=i(8834),r=i(61750),s=i(70032),o=i(39593),a=i(96179),l=i(79573),u=i(58345);function h(t,e,{delay:i=0,transitionOverride:h,type:c}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:p,...f}=t.makeTargetAnimatable(e),m=t.getValue("willChange");h&&(d=h);let v=[],g=c&&t.animationState&&t.animationState.getState()[c];for(let e in f){let a=t.getValue(e),h=f[e];if(!a||void 0===h||g&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(g,e))continue;let c={delay:i,elapsed:0,...(0,l.e)(d||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[r.M];if(i){let t=window.HandoffAppearAnimations(i,e,a,u.Wi);null!==t&&(c.elapsed=t,c.isHandoff=!0)}}let p=!c.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(a,h);if("spring"===c.type&&(a.getVelocity()||c.velocity)&&(p=!1),a.animation&&(p=!1),p)continue;a.start((0,s.v)(e,a,h,t.shouldReduceMotion&&n.G.has(e)?{type:!1}:c));let y=a.animation;(0,o.L)(m)&&(m.add(e),y.then(()=>m.remove(e))),v.push(y)}return p&&Promise.all(v).then(()=>{p&&(0,a.CD)(t,p)}),v}},61750:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(17444).D)("framerAppearId")},20569:function(t,e,i){i.d(e,{H:function(){return n}});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},44944:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},79573:function(t,e,i){function n({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}function r(t,e){return t[e]||t.default||t}i.d(e,{e:function(){return r},r:function(){return n}})}
1,58881:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},45750:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},64252:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},26378:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(87457),r=i(63627);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},87457:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},63627:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},81477:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},58345:function(t,e,i){i.d(e,{Pn:function(){return a},Wi:function(){return o},frameData:function(){return l},S6:function(){return u}});var n=i(44439);class r{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let s=["prepare","read","update","preRender","render","postRender"],{schedule:o,cancel:a,state:l,steps:u}=function(t,e){let i=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},a=s.reduce((t,e)=>(t[e]=function(t){let e=new r,i=new r,n=0,s=!1,o=!1,a=new WeakSet,l={schedule:(t,r=!1,o=!1)=>{let l=o&&s,u=l?e:i;return r&&a.add(t),u.add(t)&&l&&s&&(n=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:r=>{if(s){o=!0;return}if(s=!0,[e,i]=[i,e],i.clear(),n=e.order.length)for(let i=0;i<n;i++){let n=e.order[i];n(r),a.has(n)&&(l.schedule(n),t())}s=!1,o&&(o=!1,l.process(r))}};return l}(()=>i=!0),t),{}),l=t=>a[t].process(o),u=()=>{let r=performance.now();i=!1,o.delta=n?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,s.forEach(l),o.isProcessing=!1,i&&e&&(n=!1,t(u))},h=()=>{i=!0,n=!0,o.isProcessing||t(u)};return{schedule:s.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,r=!1)=>(i||h(),n.schedule(t,e,r)),t},{}),cancel:t=>s.forEach(e=>a[e].cancel(t)),state:o,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},35938:function(t,e,i){i.d(e,{A:function(){return r}});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},77556:function(t,e,i){i.d(e,{j:function(){return s}});var n=i(98639),r=i(8834);function s(t,{layout:e,layoutId:i}){return r.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.P[t]||"opacity"===t)}},82063:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},47227:function(t,e,i){i.d(e,{D2:function(){return m},YY:function(){return u},am:function(){return c},o2:function(){return l},q2:function(){return s}});var n=i(38090),r=i(12787);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=i[u]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&m(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),n&&(0,r.ud)(s.latestValues)&&m(t,s.latestValues))}e.x=h(e.x),e.y=h(e.y)}}function h(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function c(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[i,r,s]){let o=void 0!==e[s]?e[s]:.5,l=(0,n.C)(t.min,t.max,o);a(t,e[i],e[r],l,e.scale)}let p=["x","scaleX","originX"],f=["y","scaleY","originY"];function m(t,e){d(t.x,e,p),d(t.y,e,f)}}
1,96674:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},98639:function(t,e,i){i.d(e,{B:function(){return r},P:function(){return n}});let n={};function r(t){Object.assign(n,t)}},12787:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},50813:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(82063),r=i(47227);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},43241:function(t,e,i){i.d(e,{J:function(){return Z}});var n=i(96179),r=i(13223),s=i(4946),o=i(37249);let a=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function l(t,e,i=1){(0,r.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,u]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let h=window.getComputedStyle(e).getPropertyValue(n);if(h){let t=h.trim();return(0,s.P)(t)?parseFloat(t):t}return(0,o.tm)(u)?l(u,e,i+1):u}var u=i(44944),h=i(8834),c=i(38580),d=i(44563),p=i(74305),f=i(27492);let m=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),v=t=>m.has(t),g=t=>Object.keys(t).some(v),y=t=>t===p.Rx||t===f.px,x=(t,e)=>parseFloat(t.split(", ")[e]),P=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return x(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?x(e[1],t):0}},b=new Set(["x","y","z"]),w=h._.filter(t=>!b.has(t)),A={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:P(4,13),y:P(5,14)};A.translateX=A.x,A.translateY=A.y;let T=(t,e,i)=>{let n=e.measureViewportBox(),r=getComputedStyle(e.current),{display:s}=r,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=A[t](n,r)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(o[i]),t[i]=A[i](a,r)}),t},S=(t,e,i={},n={})=>{e={...e},n={...n};let s=Object.keys(e).filter(v),o=[],a=!1,l=[];
1if(s.forEach(s=>{let h;let d=t.getValue(s);if(!t.hasValue(s))return;let p=i[s],m=(0,c.C)(p),v=e[s];if((0,u.C)(v)){let t=v.length,e=null===v[0]?1:0;p=v[e],m=(0,c.C)(p);for(let i=e;i<t&&null!==v[i];i++)h?(0,r.k)((0,c.C)(v[i])===h,"All keyframes must be of the same type"):(h=(0,c.C)(v[i]),(0,r.k)(h===m||y(m)&&y(h),"Keyframes must be of the same dimension as the current value"))}else h=(0,c.C)(v);if(m!==h){if(y(m)&&y(h)){let t=d.get();"string"==typeof t&&d.set(parseFloat(t)),"string"==typeof v?e[s]=parseFloat(v):Array.isArray(v)&&h===f.px&&(e[s]=v.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==h?void 0:h.transform)&&(0===p||0===v)?0===p?d.set(h.transform(p)):e[s]=m.transform(v):(a||(o=function(t){let e=[];return w.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),a=!0),l.push(s),n[s]=void 0!==n[s]?n[s]:e[s],d.jump(v))}}),!l.length)return{target:e,transitionEnd:n};{let i=l.indexOf("height")>=0?window.pageYOffset:null,r=T(e,t,l);return o.length&&o.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),d.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},V=(t,e,i,n)=>{var r,s;let a=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,o.tm)(e))return;let i=l(e,n);i&&t.set(i)}),e){let t=e[r];if(!(0,o.tm)(t))continue;let s=l(t,n);s&&(e[r]=s,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=a.target,n=a.transitionEnd,r=e,s=n,g(r)?S(t,r,i,s):{target:r,transitionEnd:s}};var C=i(96674),D=i(34006);let E={current:null},M={current:!1};var R=i(34081),k=i(3078),L=i(39593),j=i(23999),B=i(17743),F=i(74115),O=i(31297),W=i(35938),$=i(72589),U=i(37003),I=i(58345);let N=Object.keys(W.A),H=N.length,X=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],z=$.V.length;class Y{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){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=()=>I.Wi.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=(0,B.G)(e),this.isVariantNode=(0,B.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&(0,j.i)(e)&&(e.set(o[t],!1),(0,L.L)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,U.R.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),M.current||function(){if(M.current=!0,d.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>E.current=t.matches;t.addListener(e),e()}else E.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||E.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in U.R.delete(this.current),this.projection&&this.projection.unmount(),(0,I.Pn)(this.notifyUpdate),(0,I.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=h.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&I.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,r){let s,o;for(let t=0;t<H;t++){let i=N[t],{isEnabled:n,Feature:r,ProjectionNode:a,MeasureLayout:l}=W.A[i];a&&(s=a),n(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:n,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!n||o&&(0,D.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,C.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<X.length;e++){let i=X[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if((0,j.i)(s))t.addValue(r,s),(0,L.L)(n)&&n.add(r);else if((0,j.i)(o))t.addValue(r,(0,k.BX)(s,{owner:t})),(0,L.L)(n)&&n.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,k.BX)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<z;t++){let i=$.V[t],n=this.props[i];((0,F.$)(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,k.BX)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=(0,O.o)(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,j.i)(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new R.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Z extends Y{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},s){let o=(0,n.P$)(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),o&&(o=r(o))),s){(0,n.GJ)(this,i,o);let t=V(this,i,o,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}},87242:function(t,e,i){i.d(e,{E:function(){return il}});var n,r=i(2265),s=i(45750);let o=(0,r.createContext)({});var a=i(64252),l=i(11534);let u=(0,r.createContext)({strict:!1});var h=i(61750),c=i(34006),d=i(74115),p=i(17743);function f(t){return Array.isArray(t)?t.join(" "):t}var m=i(35938),v=i(44563),g=i(58881);let y=(0,r.createContext)({}),x=Symbol.for("motionComponentSymbol"),P=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function b(t){if("string"!=typeof t||t.includes("-"));else if(P.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}var w=i(77556),A=i(23999),T=i(4469);let S=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
1function V(t,e,i){for(let n in e)(0,A.i)(e[n])||(0,w.j)(n,i)||(t[n]=e[n])}let C=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function D(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||C.has(t)}let E=t=>!D(t);try{(n=require("@emotion/is-prop-valid").default)&&(E=t=>t.startsWith("on")?!D(t):n(t))}catch(t){}var M=i(67402);let R=()=>({...S(),attrs:{}});var k=i(37380),L=i(33390),j=i(67098),B=i(20569),F=i(31297),O=i(53576),W=i(4581);function $(t){let e=(0,A.i)(t)?t.get():t;return(0,W.p)(e)?e.toValue():e}let U=t=>(e,i)=>{let n=(0,r.useContext)(o),s=(0,r.useContext)(a.O),l=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,s){let o={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=$(s[t]);let{initial:o,animate:a}=t,l=(0,p.G)(t),u=(0,p.M)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!(0,B.H)(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=(0,F.o)(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]}),r}(n,r,s,t),renderState:e()};return i&&(o.mount=t=>i(n,t,o)),o})(t,e,n,s);return i?l():(0,O.h)(l)};var I=i(58345);let N={useVisualState:U({scrapeMotionValuesFromProps:j.U,createRenderState:R,onMount:(t,e,{renderState:i,latestValues:n})=>{I.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),I.Wi.render(()=>{(0,M.i)(i,n,{enableHardwareAcceleration:!1},(0,k.a)(e.tagName),t.transformTemplate),(0,L.K)(e,i)})}})},H={useVisualState:U({scrapeMotionValuesFromProps:i(67971).U,createRenderState:S})};function X(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let z=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Y(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let Z=t=>e=>z(e)&&t(e,Y(e));function G(t,e,i,n){return X(t,e,Z(i),n)}var q=i(56920);function K(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let _=K("dragHorizontal"),J=K("dragVertical");function Q(t){let e=!1;if("y"===t)e=J();else if("x"===t)e=_();else{let t=_(),i=J();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tt(){let t=Q(!0);return!t||(t(),!1)}class te{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ti(t,e){let i="onHover"+(e?"Start":"End");return G(t.current,"pointer"+(e?"enter":"leave"),(n,r)=>{if("touch"===n.pointerType||tt())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&I.Wi.update(()=>s[i](n,r))},{passive:!t.getProps()[i]})}class tn extends te{mount(){this.unmount=(0,q.z)(ti(this.node,!0),ti(this.node,!1))}unmount(){}}class tr extends te{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=(0,q.z)(X(this.node.current,"focus",()=>this.onFocus()),X(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let ts=(t,e)=>!!e&&(t===e||ts(t,e.parentElement));var to=i(44439);function ta(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,Y(i))}class tl extends te{constructor(){super(...arguments),this.removeStartListeners=to.Z,this.removeEndListeners=to.Z,this.removeAccessibleListeners=to.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=G(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();I.Wi.update(()=>{r||ts(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=G(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,q.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=X(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=X(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&ta("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&I.Wi.update(()=>i(t,e))})}),ta("down",(t,e)=>{this.startPress(t,e)}))}),e=X(this.node.current,"blur",()=>{this.isPressing&&ta("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,q.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&I.Wi.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tt()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&I.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=G(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=X(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,q.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tu=new WeakMap,th=new WeakMap,tc=t=>{let e=tu.get(t.target);e&&e(t)}
1,td=t=>{t.forEach(tc)},tp={some:0,all:1};class tf extends te{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:tp[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;th.has(i)||th.set(i,{});let n=th.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(td,{root:t,...e})),n[r]}(e);return tu.set(t,i),n.observe(t),()=>{tu.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var tm=i(44944);function tv(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var tg=i(67043),ty=i(72589),tx=i(28500);function tP(t,e,i={}){let n=(0,tg.x)(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all((0,tx.w)(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(tb).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(tP(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function tb(t,e){return t.sortNodePosition(e)}let tw=[...ty.e].reverse(),tA=ty.e.length;function tT(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class tS extends te{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tP(t,e,i)));else if("string"==typeof e)n=tP(t,e,i);else{let r="function"==typeof e?(0,tg.x)(t,e,i.custom):e;n=Promise.all((0,tx.w)(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:tT(!0),whileInView:tT(),whileHover:tT(),whileTap:tT(),whileDrag:tT(),whileFocus:tT(),exit:tT()},n=!0,r=(e,i)=>{let n=(0,tg.x)(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},p=1/0;for(let e=0;e<tA;e++){var f;let m=tw[e],v=i[m],g=void 0!==a[m]?a[m]:l[m],y=(0,d.$)(g),x=m===o?v.isActive:null;!1===x&&(p=e);let P=g===l[m]&&g!==a[m]&&y;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...c},!v.isActive&&null===x||!g&&!v.prevProp||(0,B.H)(g)||"boolean"==typeof g)continue;let b=(f=v.prevProp,("string"==typeof g?g!==f:!!Array.isArray(g)&&!tv(g,f))||m===o&&v.isActive&&!P&&y||e>p&&y),w=!1,A=Array.isArray(g)?g:[g],T=A.reduce(r,{});!1===x&&(T={});let{prevResolvedValues:S={}}=v,V={...S,...T},C=t=>{b=!0,h.has(t)&&(w=!0,h.delete(t)),v.needsAnimating[t]=!0};for(let t in V){let e=T[t],i=S[t];if(!c.hasOwnProperty(t))((0,tm.C)(e)&&(0,tm.C)(i)?tv(e,i):e===i)?void 0!==e&&h.has(t)?C(t):v.protectedKeys[t]=!0:void 0!==e?C(t):h.add(t)}v.prevProp=g,v.prevResolvedValues=T,v.isActive&&(c={...c,...T}),n&&t.blockInitialAnimation&&(b=!1),b&&(!P||w)&&u.push(...A.map(t=>({animation:t,options:{type:m,...s}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,r){var o;if(i[e].isActive===n)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=s(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();
1this.unmount(),(0,B.H)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let tV=0;class tC extends te{constructor(){super(...arguments),this.id=tV++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var tD=i(13223),tE=i(56717);let tM=(t,e)=>Math.abs(t-e);class tR{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tj(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(tM(t.x,e.x)**2+tM(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=I.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tk(e,this.transformPagePoint),I.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=tj("pointercancel"===t.type?this.lastMoveEventInfo:tk(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!z(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=tk(Y(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=I.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tj(s,this.history)),this.removeListeners=(0,q.z)(G(this.contextWindow,"pointermove",this.handlePointerMove),G(this.contextWindow,"pointerup",this.handlePointerUp),G(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,I.Pn)(this.updatePoint)}}function tk(t,e){return e?{point:e(t.point)}:t}function tL(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tj({point:t},e){return{point:t,delta:tL(t,tB(e)),offset:tL(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=tB(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,tE.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,tE.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function tB(t){return t[t.length-1]}var tF=i(76376),tO=i(38090);function tW(t){return t.max-t.min}function t$(t,e=0,i=.01){return Math.abs(t-e)<=i}function tU(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tO.C)(e.min,e.max,t.origin),t.scale=tW(i)/tW(e),(t$(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,tO.C)(i.min,i.max,t.origin)-t.originPoint,(t$(t.translate)||isNaN(t.translate))&&(t.translate=0)}function tI(t,e,i,n){tU(t.x,e.x,i.x,n?n.originX:void 0),tU(t.y,e.y,i.y,n?n.originY:void 0)}function tN(t,e,i){t.min=i.min+e.min,t.max=t.min+tW(e)}function tH(t,e,i){t.min=e.min-i.min,t.max=t.min+tW(e)}function tX(t,e,i){tH(t.x,e.x,i.x),tH(t.y,e.y,i.y)}var tz=i(59111);function tY(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tZ(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tG(t,e,i){return{min:tq(t,e),max:tq(t,i)}}function tq(t,e){return"number"==typeof t?t:t[e]||0}var tK=i(96674);function t_(t){return[t("x"),t("y")]}var tJ=i(50813),tQ=i(82063),t0=i(27492),t1=i(70032);let t3=({current:t})=>t?t.ownerDocument.defaultView:null,t2=new WeakMap;class t5{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tK.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new tR(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Y(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Q(i),!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),t_(t=>{let e=this.getAxisMotionValue(t).get()||0;if(t0.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tW(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&I.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>t_(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:t3(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&I.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!t4(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tO.C)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tO.C)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&(0,c.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:tY(t.x,i,r),y:tY(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tG(t,"left","right"),y:tG(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&t_(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,c.I)(e))return!1;let n=e.current;(0,tD.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tJ.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:tZ((t=r.layout.layoutBox).x,s.x),y:tZ(t.y,s.y)};if(i){let t=i((0,tQ.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tQ.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(t_(o=>{if(!t4(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,t1.v)(t,i,0,e))}stopAnimation(){t_(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){t_(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){t_(e=>{let{drag:i}=this.getProps();if(!t4(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,tO.C)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,c.I)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};t_(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=tW(t),r=tW(e);return r>n?i=(0,tF.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tF.Y)(t.min,t.max-r,e.min)),(0,tz.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),t_(e=>{if(!t4(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tO.C)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;t2.set(this.visualElement,this);let t=G(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,c.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=X(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(t_(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function t4(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class t9 extends te{constructor(t){super(t),this.removeGroupControls=to.Z,this.removeListeners=to.Z,this.controls=new t5(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let t7=t=>(e,i)=>{t&&I.Wi.update(()=>t(e,i))};class t6 extends te{constructor(){super(...arguments),this.removePointerDownListener=to.Z}onPointerDown(t){this.session=new tR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:t7(t),onStart:t7(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&I.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=G(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let t8={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function et(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ee={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!t0.px.test(t))return t;t=parseFloat(t)}let i=et(t,e.target.x),n=et(t,e.target.y);return`${i}% ${n}%`}};var ei=i(15636),en=i(98639);class er extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,en.B)(eo),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),t8.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||I.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function es(t){let[e,i]=function(){let t=(0,r.useContext)(a.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,s=(0,r.useId)();return(0,r.useEffect)(()=>n(s),[]),!e&&i?[!1,()=>i&&i(s)]:[!0]}(),n=(0,r.useContext)(g.p);return r.createElement(er,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(y),isPresent:e,safeToRemove:i})}let eo={borderRadius:{...ee,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomLeftRadius:ee,borderBottomRightRadius:ee,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=ei.P.parse(t);if(n.length>5)return t;let r=ei.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,tO.C)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var ea=i(34081),el=i(26378);let eu=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=eu.length,ec=t=>"string"==typeof t?parseFloat(t):t,ed=t=>"number"==typeof t||t0.px.test(t);function ep(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ef=ev(0,.5,el.Bn),em=ev(.5,.95,to.Z);function ev(t,e,i){return n=>n<t?0:n>e?1:i((0,tF.Y)(t,e,n))}function eg(t,e){t.min=e.min,t.max=e.max}function ey(t,e){eg(t.x,e.x),eg(t.y,e.y)}var ex=i(47227);function eP(t,e,i,n,r){return t-=e,t=(0,ex.q2)(t,1/i,n),void 0!==r&&(t=(0,ex.q2)(t,1/r,n)),t}function eb(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(t0.aQ.test(e)&&(e=parseFloat(e),e=(0,tO.C)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,tO.C)(s.min,s.max,n);t===s&&(a-=e),t.min=eP(t.min,e,i,a,r),t.max=eP(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let ew=["x","scaleX","originX"],eA=["y","scaleY","originY"];function eT(t,e,i,n){eb(t.x,e,ew,i?i.x:void 0,n?n.x:void 0),eb(t.y,e,eA,i?i.y:void 0,n?n.y:void 0)}var eS=i(79573);function eV(t){return 0===t.translate&&1===t.scale}function eC(t){return eV(t.x)&&eV(t.y)}function eD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function eE(t){return tW(t.x)/tW(t.y)}var eM=i(69013);class eR{constructor(){this.members=[]}add(t){(0,eM.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,eM.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ek(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+=`scale(${o}, ${a})`),n||"none"}var eL=i(12787);let ej=(t,e)=>t.depth-e.depth;class eB{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eM.y4)(this.children,t),this.isDirty=!0}remove(t){(0,eM.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ej),this.isDirty=!1,this.children.forEach(t)}}var eF=i(94239),eO=i(43289);let eW=["","X","Y","Z"],e$={visibility:"hidden"},eU=0,eI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function eN({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=eU++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eI.totalNodes=eI.resolvedTargetDeltas=eI.recalculatedProjection=0,this.nodes.forEach(ez),this.nodes.forEach(eJ),this.nodes.forEach(eQ),this.nodes.forEach(eY),window.MotionDebug&&window.MotionDebug.record(eI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eB)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ea.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,eF.v)(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,I.Pn)(n),t(r-250))};return I.Wi.read(n,!0),()=>(0,I.Pn)(n)}(n,0),t8.hasAnimatedSinceResize&&(t8.hasAnimatedSinceResize=!1,this.nodes.forEach(e_))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||e4,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eD(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,eS.e)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||e_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,I.Pn)(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(e0),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!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 t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eG);return}this.isUpdating||this.nodes.forEach(eq),this.isUpdating=!1,this.nodes.forEach(eK),this.nodes.forEach(eH),this.nodes.forEach(eX),this.clearAllSnapshots();let t=performance.now();I.frameData.delta=(0,tz.u)(0,1e3/60,t-I.frameData.timestamp),I.frameData.timestamp=t,I.frameData.isProcessing=!0,I.S6.update.process(I.frameData),I.S6.preRender.process(I.frameData),I.S6.render.process(I.frameData),I.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(eZ),this.sharedNodes.forEach(e1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.Wi.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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,tK.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:n(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!eC(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||(0,eL.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),e6((e=n).x),e6(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tK.dO)();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&((0,ex.am)(e.x,i.offset.x),(0,ex.am)(e.y,i.offset.y)),e}removeElementScroll(t){let e=(0,tK.dO)();ey(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){ey(e,t);let{scroll:i}=this.root;i&&((0,ex.am)(e.x,-i.offset.x),(0,ex.am)(e.y,-i.offset.y))}(0,ex.am)(e.x,r.offset.x),(0,ex.am)(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=(0,tK.dO)();ey(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,ex.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,eL.ud)(n.latestValues)&&(0,ex.D2)(i,n.latestValues)}return(0,eL.ud)(this.latestValues)&&(0,ex.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,tK.dO)();ey(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,eL.ud)(i.latestValues))continue;(0,eL.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,tK.dO)();ey(n,i.measurePageBox()),eT(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,eL.ud)(this.latestValues)&&eT(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==I.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=I.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tK.dO)(),this.relativeTargetOrigin=(0,tK.dO)(),tX(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ey(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,tK.dO)(),this.targetWithTransforms=(0,tK.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,tN(i.x,n.x,r.x),tN(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ey(this.target,this.layout.layoutBox),(0,ex.o2)(this.target,this.targetDelta)):ey(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tK.dO)(),this.relativeTargetOrigin=(0,tK.dO)(),tX(this.relativeTargetOrigin,this.target,t.target),ey(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eI.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,eL.Lj)(this.parent.latestValues)||(0,eL.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;ey(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,ex.YY)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=(0,tK.wc)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,tK.wc)(),this.projectionDeltaWithTransform=(0,tK.wc)());let u=this.projectionTransform;tI(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ek(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),eI.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,tK.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tK.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(e5));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(e3(o.x,t.x,n),e3(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;tX(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,e2(p.x,f.x,a.x,n),e2(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),i||(i=(0,tK.dO)()),ey(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tO.C)(0,void 0!==i.opacity?i.opacity:1,ef(n)),t.opacityExit=(0,tO.C)(void 0!==e.opacity?e.opacity:1,0,em(n))):s&&(t.opacity=(0,tO.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<eh;r++){let s=`border${eu[r]}Radius`,o=ep(e,s),a=ep(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ed(o)===ed(a)?(t[s]=Math.max((0,tO.C)(ec(o),ec(a),n),0),(t0.aQ.test(a)||t0.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tO.C)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,I.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.Wi.update(()=>{t8.hasAnimatedSinceResize=!0,this.currentAnimation=(0,eO.D)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&e8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tK.dO)();let e=tW(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tW(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ey(e,i),(0,ex.D2)(e,r),tI(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eR),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<eW.length;e++){let r="rotate"+eW[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return e$;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=$(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=$(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,eL.ud)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=ek(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,en.P){if(void 0===o[t])continue;let{correct:e,applyTo:i}=en.P[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?$(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(eG),this.root.sharedNodes.clear()}}}function eH(t){t.updateLayout()}function eX(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?t_(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=tW(n);n.min=e[t].min,n.max=n.min+r}):e8(r,i.layoutBox,e)&&t_(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=tW(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,tK.wc)();tI(o,e,i.layoutBox);let a=(0,tK.wc)();s?tI(a,t.applyTransform(n,!0),i.measuredBox):tI(a,e,i.layoutBox);let l=!eC(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,tK.dO)();tX(o,i.layoutBox,r.layoutBox);let a=(0,tK.dO)();tX(a,e,s.layoutBox),eD(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ez(t){eI.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 eY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eZ(t){t.clearSnapshot()}function eG(t){t.clearMeasurements()}function eq(t){t.isLayoutDirty=!1}function eK(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e_(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eJ(t){t.resolveTargetDelta()}function eQ(t){t.calcProjection()}function e0(t){t.resetRotation()}function e1(t){t.removeLeadSnapshot()}function e3(t,e,i){t.translate=(0,tO.C)(e.translate,0,i),t.scale=(0,tO.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function e2(t,e,i,n){t.min=(0,tO.C)(e.min,i.min,n),t.max=(0,tO.C)(e.max,i.max,n)}function e5(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let e4={duration:.45,ease:[.4,0,.1,1]},e9=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),e7=e9("applewebkit/")&&!e9("chrome/")?Math.round:to.Z;function e6(t){t.min=e7(t.min),t.max=e7(t.max)}function e8(t,e,i){return"position"===t||"preserve-aspect"===t&&!t$(eE(e),eE(i),.2)}let it=eN({attachResizeListener:(t,e)=>X(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ie={current:void 0},ii=eN({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ie.current){let t=new it({});t.mount(window),t.setOptions({layoutScroll:!0}),ie.current=t}return ie.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ir=i(59282),is=i(23482);let io=(t,e)=>b(t)?new is.e(e,{enableHardwareAcceleration:!1}):new ir.W(e,{enableHardwareAcceleration:!0}),ia={animation:{Feature:tS},exit:{Feature:tC},inView:{Feature:tf},tap:{Feature:tl},focus:{Feature:tr},hover:{Feature:tn},pan:{Feature:t6},drag:{Feature:t9,ProjectionNode:ii,MeasureLayout:es},layout:{ProjectionNode:ii,MeasureLayout:es}},il=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:P}){t&&function(t){for(let e in t)m.A[e]={...m.A[e],...t[e]}}(t);let b=(0,r.forwardRef)(function(m,x){var b;let w;let A={...(0,r.useContext)(s._),...m,layoutId:function({layoutId:t}){let e=(0,r.useContext)(g.p).id;return e&&void 0!==t?e+"-"+t:t}(m)},{isStatic:T}=A,S=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,d.$)(e)?e:void 0,animate:(0,d.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(o));return(0,r.useMemo)(()=>({initial:e,animate:i}),[f(e),f(i)])}(m),V=n(m,T);
1if(!T&&v.j){S.visualElement=function(t,e,i,n){let{visualElement:c}=(0,r.useContext)(o),d=(0,r.useContext)(u),p=(0,r.useContext)(a.O),f=(0,r.useContext)(s._).reducedMotion,m=(0,r.useRef)();n=n||d.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:c,props:i,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:f}));let v=m.current;(0,r.useInsertionEffect)(()=>{v&&v.update(i,p)});let g=(0,r.useRef)(!!(i[h.M]&&!window.HandoffComplete));return(0,l.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,r.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(P,V,A,e);let i=(0,r.useContext)(y),n=(0,r.useContext)(u).strict;S.visualElement&&(w=S.visualElement.loadFeatures(A,n,t,i))}return r.createElement(o.Provider,{value:S},w&&S.visualElement?r.createElement(w,{visualElement:S.visualElement,...A}):null,i(P,m,(b=S.visualElement,(0,r.useCallback)(t=>{t&&V.mount&&V.mount(t),b&&(t?b.mount(t):b.unmount()),x&&("function"==typeof x?x(t):(0,c.I)(x)&&(x.current=t))},[b])),V,T,S.visualElement))});return b[x]=P,b}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,n){return{...b(t)?N:H,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:s},o)=>{let a=(b(e)?function(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=R();return(0,M.i)(i,e,{enableHardwareAcceleration:!1},(0,k.a)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};V(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e,i){let n={},s=function(t,e,i){let n=t.style||{},s={};return V(s,n,t),Object.assign(s,function({transformTemplate:t},e,i){return(0,r.useMemo)(()=>{let n=S();return(0,T.r)(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(s):s}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(i,s,o,e),l={...function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(E(r)||!0===i&&D(r)||!e&&!D(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),...a,ref:n},{children:u}=i,h=(0,r.useMemo)(()=>(0,A.i)(u)?u.get():u,[u]);return(0,r.createElement)(e,{...l,children:h})}}(e),createVisualElement:n,Component:t}})(t,e,ia,io))},17444:function(t,e,i){i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},37249:function(t,e,i){i.d(e,{Xp:function(){return o},f9:function(){return r},tm:function(){return s}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
1:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},94239:function(t,e,i){i.d(e,{v:function(){return n}});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},25861:function(t,e,i){i.d(e,{T:function(){return o}});var n=i(15636),r=i(22779),s=i(22005);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},22005:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(33964),r=i(22779);let s={...i(38325).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},38580:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(74305),r=i(27492),s=i(55113);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},38325:function(t,e,i){i.d(e,{j:function(){return o}});var n=i(74305),r=i(27492);let s={...n.Rx,transform:Math.round},o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:s,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:s}},55113:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},59282:function(t,e,i){i.d(e,{W:function(){return d}});var n=i(4469),r=i(37249),s=i(8834),o=i(67971),a=i(1125),l=i(22005),u=i(50813),h=i(43241),c=i(23999);class d extends h.J{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(s.G.has(e)){let t=(0,l.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,r.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.J)(t,e)}build(t,e,i,r){(0,n.r)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,o.U)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,c.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){(0,a.N)(t,e,i,n)}}},4469:function(t,e,i){i.d(e,{r:function(){return u}});var n=i(8834);let r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s=n._.length;var o=i(37249);let a=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var l=i(38325);function u(t,e,i,u){let{style:h,vars:c,transform:d,transformOrigin:p}=t,f=!1,m=!1,v=!0;for(let t in e){let i=e[t];if((0,o.f9)(t)){c[t]=i;continue}let r=l.j[t],s=a(i,r);if(n.G.has(t)){if(f=!0,d[t]=s,!v)continue;i!==(r.default||0)&&(v=!1)}else t.startsWith("origin")?(m=!0,p[t]=s):h[t]=s}if(!e.transform&&(f||u?h.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},o,a){let l="";for(let e=0;e<s;e++){let i=n._[e];if(void 0!==t[i]){let e=r[i]||i;l+=`${e}(${t[i]}) `}}return e&&!t.z&&(l+="translateZ(0)"),l=l.trim(),a?l=a(t,o?"":l):i&&o&&(l="none"),l}(t.transform,i,v,u):h.transform&&(h.transform="none")),m){let{originX:t="50%",originY:e="50%",originZ:i=0}=p;h.transformOrigin=`${t} ${e} ${i}`}}},1125:function(t,e,i){i.d(e,{N:function(){return n}});function n(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}},67971:function(t,e,i){i.d(e,{U:function(){return s}});var n=i(77556),r=i(23999);function s(t,e){let{style:i}=t,s={};for(let o in i)((0,r.i)(i[o])||e.style&&(0,r.i)(e.style[o])||(0,n.j)(o,t))&&(s[o]=i[o]);return s}}
1,8834:function(t,e,i){i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},37003:function(t,e,i){i.d(e,{R:function(){return n}});let n=new WeakMap},23482:function(t,e,i){i.d(e,{e:function(){return p}});var n=i(67098),r=i(43241),s=i(67402),o=i(17444),a=i(16582),l=i(8834),u=i(33390),h=i(22005),c=i(96674),d=i(37380);class p extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,h.A)(e);return t&&t.default||0}return e=a.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,c.dO)()}scrapeMotionValuesFromProps(t,e){return(0,n.U)(t,e)}build(t,e,i,n){(0,s.i)(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){(0,u.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,d.a)(t.tagName),super.mount(t)}}},67402:function(t,e,i){i.d(e,{i:function(){return l}});var n=i(4469),r=i(27492);function s(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}let o={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:c,pathSpacing:d=1,pathOffset:p=0,...f},m,v,g){if((0,n.r)(t,f,m,g),v){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:y,style:x,dimensions:P}=t;y.transform&&(P&&(x.transform=y.transform),delete y.transform),P&&(void 0!==u||void 0!==h||x.transform)&&(x.transformOrigin=function(t,e,i){let n=s(e,t.x,t.width),r=s(i,t.y,t.height);return`${n} ${r}`}(P,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(y.x=e),void 0!==i&&(y.y=i),void 0!==l&&(y.scale=l),void 0!==c&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let l=s?o:a;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(y,c,d,p,!1)}},16582:function(t,e,i){i.d(e,{s:function(){return n}});let n=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"])},37380:function(t,e,i){i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},33390:function(t,e,i){i.d(e,{K:function(){return o}});var n=i(17444),r=i(1125),s=i(16582);function o(t,e,i,o){for(let i in(0,r.N)(t,e,void 0,o),e.attrs)t.setAttribute(s.s.has(i)?i:(0,n.D)(i),e.attrs[i])}},67098:function(t,e,i){i.d(e,{U:function(){return o}});var n=i(23999),r=i(67971),s=i(8834);function o(t,e){let i=(0,r.U)(t,e);for(let r in t)((0,n.i)(t[r])||(0,n.i)(e[r]))&&(i[-1!==s._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}},17743:function(t,e,i){i.d(e,{G:function(){return o},M:function(){return a}});var n=i(20569),r=i(74115),s=i(72589);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},74115:function(t,e,i){i.d(e,{$:function(){return n}});function n(t){return"string"==typeof t||Array.isArray(t)}},67043:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(31297);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}},31297:function(t,e,i){i.d(e,{o:function(){return n}});function n(t,e,i,n={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}}
1,96179:function(t,e,i){i.d(e,{GJ:function(){return v},P$:function(){return g},CD:function(){return m}});var n=i(4946),r=i(13697),s=i(4581),o=i(3078),a=i(15636),l=i(25861),u=i(33964),h=i(38580),c=i(55113);let d=[...h.$,u.$,a.P],p=t=>d.find((0,c.l)(t));var f=i(67043);function m(t,e){let i=(0,f.x)(t,e),{transitionEnd:n={},transition:r={},...a}=i?t.makeTargetAnimatable(i,!1):{};for(let e in a={...a,...n}){let i=(0,s.Y)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}function v(t,e,i){var s,u;let h=Object.keys(e).filter(e=>!t.hasValue(e)),c=h.length;if(c)for(let d=0;d<c;d++){let c=h[d],f=e[c],m=null;Array.isArray(f)&&(m=f[0]),null===m&&(m=null!==(u=null!==(s=i[c])&&void 0!==s?s:t.readValue(c))&&void 0!==u?u:e[c]),null!=m&&("string"==typeof m&&((0,n.P)(m)||(0,r.W)(m))?m=parseFloat(m):!p(m)&&a.P.test(f)&&(m=(0,l.T)(c,f)),t.addValue(c,(0,o.BX)(m,{owner:t})),void 0===i[c]&&(i[c]=m),null!==m&&t.setBaseTarget(c,m))}}function g(t,e,i){let n={};for(let r in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}},72589:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},69013:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},59111:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>Math.min(Math.max(i,t),e)},13223:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(44439);let r=n.Z,s=n.Z},22888:function(t,e,i){i.d(e,{s:function(){return V}});var n=i(13223),r=i(33964),s=i(59111),o=i(38090);function a(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var l=i(87325),u=i(18859),h=i(92943);let c=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},d=[l.$,u.m,h.J],p=t=>d.find(e=>e.test(t));function f(t){let e=p(t);(0,n.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===h.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=a(l,n,t+1/3),s=a(l,n,t),o=a(l,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let m=(t,e)=>{let i=f(t),n=f(e),r={...i};return t=>(r.red=c(i.red,n.red,t),r.green=c(i.green,n.green,t),r.blue=c(i.blue,n.blue,t),r.alpha=(0,o.C)(i.alpha,n.alpha,t),u.m.transform(r))};var v=i(56920),g=i(15636);let y=(t,e)=>i=>`${i>0?e:t}`;function x(t,e){return"number"==typeof t?i=>(0,o.C)(t,e,i):r.$.test(t)?m(t,e):t.startsWith("var(")?y(t,e):w(t,e)}let P=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>x(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},b=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=x(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},w=(t,e)=>{let i=g.P.createTransformer(e),r=(0,g.V)(t),s=(0,g.V)(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?(0,v.z)(P(r.values,s.values),i):((0,n.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),y(t,e))};var A=i(76376),T=i(44439);let S=(t,e)=>i=>(0,o.C)(t,e,i);function V(t,e,{clamp:i=!0,ease:o,mixer:a}={}){let l=t.length;if((0,n.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],s=i||function(t){if("number"==typeof t);else if("string"==typeof t)return r.$.test(t)?m:w;else if(Array.isArray(t))return P;else if("object"==typeof t)return b;return S}(t[0]),o=t.length-1;for(let i=0;i<o;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||T.Z:e;r=(0,v.z)(t,r)}n.push(r)}return n}(e,o,a),h=u.length,c=e=>{let i=0;if(h>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,A.Y)(t[i],t[i+1],e);return u[i](n)};return i?e=>c((0,s.u)(t[0],t[l-1],e)):c}}
1,44563:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},4946:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^\-?\d*\.?\d+$/.test(t)},34006:function(t,e,i){i.d(e,{I:function(){return n}});function n(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}},13697:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/.test(t)},64043:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},38090:function(t,e,i){i.d(e,{C:function(){return n}});let n=(t,e,i)=>-i*t+i*e+t},44439:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},46261:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(98650);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},98650:function(t,e,i){i.d(e,{c:function(){return s}});var n=i(38090),r=i(76376);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,r.Y)(0,e,s);t.push((0,n.C)(i,1,o))}}},56920:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},76376:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},4581:function(t,e,i){i.d(e,{Y:function(){return s},p:function(){return r}});var n=i(44944);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.C)(t)?t[t.length-1]||0:t},34081:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(69013);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},56717:function(t,e,i){i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},53576:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},11534:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(2265);let r=i(44563).j?n.useLayoutEffect:n.useEffect},51116:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},3078:function(t,e,i){i.d(e,{BX:function(){return u},S1:function(){return a}});var n=i(34081),r=i(51116),s=i(58345);let o=t=>!isNaN(parseFloat(t)),a={current:void 0};class l{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:n}=s.frameData;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,s.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=o(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}}
1,87325:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(18859);let r={test:(0,i(42702).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},92943:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(74305),r=i(27492),s=i(50796),o=i(42702);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.Nw)(e))+", "+r.aQ.transform((0,s.Nw)(i))+", "+(0,s.Nw)(n.Fq.transform(o))+")"}},33964:function(t,e,i){i.d(e,{$:function(){return a}});var n=i(50796),r=i(87325),s=i(92943),o=i(18859);let a={test:t=>o.m.test(t)||r.$.test(t)||s.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):s.J.test(t)?s.J.parse(t):r.$.parse(t),transform:t=>(0,n.HD)(t)?t:t.hasOwnProperty("red")?o.m.transform(t):s.J.transform(t)}},18859:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(59111),r=i(74305),s=i(50796),o=i(42702);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.Nw)(r.Fq.transform(n))+")"}},42702:function(t,e,i){i.d(e,{d:function(){return s},i:function(){return r}});var n=i(50796);let r=(t,e)=>i=>!!((0,n.HD)(i)&&n.mj.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),s=(t,e,i)=>r=>{if(!(0,n.HD)(r))return r;let[s,o,a,l]=r.match(n.KP);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},22779:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(15636),r=i(50796);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.KP)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/([a-z-]*)\(.*?\)/g,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},15636:function(t,e,i){i.d(e,{P:function(){return v},V:function(){return d}});var n=i(37249),r=i(44439),s=i(33964),o=i(74305),a=i(50796);let l={regex:n.Xp,countKey:"Vars",token:"${v}",parse:r.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:s.$.parse},h={regex:a.KP,countKey:"Numbers",token:"${n}",parse:o.Rx.parse};function c(t,{regex:e,countKey:i,token:n,parse:r}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(r)))}function d(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&c(i,l),c(i,u),c(i,h),i}function p(t){return d(t).values}function f(t){let{values:e,numColors:i,numVars:n,tokenised:r}=d(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=r<n?e.replace(l.token,t[r]):r<n+i?e.replace(u.token,s.$.transform(t[r])):e.replace(h.token,(0,a.Nw)(t[r]));return e}}let m=t=>"number"==typeof t?0:t,v={test:function(t){var e,i;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(a.dA))||void 0===i?void 0:i.length)||0)>0},parse:p,createTransformer:f,getAnimatableNone:function(t){let e=p(t);return f(t)(e.map(m))}}},74305:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(59111);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},27492:function(t,e,i){i.d(e,{$C:function(){return h},RW:function(){return s},aQ:function(){return o},px:function(){return a},vh:function(){return l},vw:function(){return u}});var n=i(50796);let r=t=>({test:e=>(0,n.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=r("deg"),o=r("%"),a=r("px"),l=r("vh"),u=r("vw"),h={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}}
1,50796:function(t,e,i){i.d(e,{HD:function(){return a},KP:function(){return r},Nw:function(){return n},dA:function(){return s},mj:function(){return o}});let n=t=>Math.round(1e5*t)/1e5,r=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,o=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},39593:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(23999);function r(t){return!!((0,n.i)(t)&&t.add)}},23999:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)}}]);
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.