"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8139],{66667:(t,e,i)=>{i.d(e,{f:()=>tT});var s=i(30932),r=i(50173);let n={current:!1};var o=i(32619);let a=t=>Array.isArray(t)&&"number"==typeof t[0],l=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,h={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:l([0,.65,.55,1]),circOut:l([.55,0,1,.45]),backIn:l([.31,.01,.66,-.59]),backOut:l([.33,1.53,.69,.99])},u={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},c={},d={};for(let t in u)d[t]=()=>(void 0===c[t]&&(c[t]=u[t]()),c[t]);var p=i(42681);let m=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function f(t,e,i,s){if(t===e&&i===s)return p.l;let r=e=>(function(t,e,i,s,r){let n,o;let a=0;do(n=m(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:m(r(t),e,s)}let v=f(.42,0,1,1),g=f(0,0,.58,1),y=f(.42,0,.58,1),x=t=>Array.isArray(t)&&"number"!=typeof t[0];var P=i(1324),b=i(75265),T=i(85496);let V=f(.33,1.53,.69,.99),A=(0,T.G)(V),S=(0,b.V)(A),w={linear:p.l,easeIn:v,easeInOut:y,easeOut:g,circIn:P.po,circInOut:P.tn,circOut:P.yT,backIn:A,backInOut:S,backOut:V,anticipate:t=>(t*=2)<1?.5*A(t):.5*(2-Math.pow(2,-10*(t-1)))},D=t=>{if(Array.isArray(t)){(0,s.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return f(e,i,r,n)}return"string"==typeof t?((0,s.V)(void 0!==w[t],`Invalid easing type '${t}'`),w[t]):t};var E=i(8791),M=i(5848),C=i(25047);function k(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 j=i(47164),R=i(833),F=i(67893);let L=(t,e,i)=>{let s=t*t;return Math.sqrt(Math.max(0,i*(e*e-s)+s))},B=[j.u,R.B,F.V],U=t=>B.find(e=>e.test(t));function O(t){let e=U(t);(0,s.V)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===F.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=k(a,s,t+1/3),n=k(a,s,t),o=k(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let I=(t,e)=>{let i=O(t),s=O(e),r={...i};return t=>(r.red=L(i.red,s.red,t),r.green=L(i.green,s.green,t),r.blue=L(i.blue,s.blue,t),r.alpha=(0,C.j)(i.alpha,s.alpha,t),R.B.transform(r))};var N=i(33825),G=i(32214);let $=(t,e)=>i=>`${i>0?e:t}`;function q(t,e){return"number"==typeof t?i=>(0,C.j)(t,e,i):E.y.test(t)?I(t,e):t.startsWith("var(")?$(t,e):H(t,e)}let W=(t,e)=>{let i=[...t],s=i.length,r=t.map((t,i)=>q(t,e[i]));return t=>{for(let e=0;e{let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=q(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}},H=(t,e)=>{let i=G.f.createTransformer(e),r=(0,G.V)(t),n=(0,G.V)(e);return r.numVars===n.numVars&&r.numColors===n.numColors&&r.numNumbers>=n.numNumbers?(0,N.F)(W(r.values,n.values),i):((0,s.$)(!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.`),$(t,e))};var K=i(35068);let z=(t,e)=>i=>(0,C.j)(t,e,i);function Y(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let o=t.length;if((0,s.V)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],r=i||function(t){if("number"==typeof t);else if("string"==typeof t)return E.y.test(t)?I:H;else if(Array.isArray(t))return W;else if("object"==typeof t)return X;return z}(t[0]),n=t.length-1;for(let i=0;i{let i=0;if(l>1)for(;ih((0,M.q)(t[0],t[o-1],e)):h}function Q({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let r=x(s)?s.map(D):D(s),n={done:!1,value:e[0]},o=Y((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=(0,K.q)(0,e,s);t.push((0,C.j)(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||y).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(n.value=o(e),n.done=e>=t,n)}}var _=i(57457);function J(t,e,i){let s=Math.max(e-5,0);return(0,_.f)(i-t(s),e-s)}function Z(t,e){return t*Math.sqrt(1-e*e)}let tt=["duration","bounce"],te=["stiffness","damping","mass"];function ti(t,e){return e.some(e=>void 0!==t[e])}function ts({keyframes:t,restDelta:e,restSpeed:i,...n}){let o;let a=t[0],l=t[t.length-1],h={done:!1,value:a},{stiffness:u,damping:c,mass:d,velocity:p,duration:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ti(t,te)&&ti(t,tt)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let o,a;(0,s.$)(t<=(0,r.f)(10),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,M.q)(.05,1,l),t=(0,M.q)(.01,10,(0,r.X)(t)),l<1?(o=e=>{let s=e*l,r=s*t;return .001-(s-i)/Z(e,l)*Math.exp(-r)},a=e=>{let s=e*l*t,r=Math.pow(l,2)*Math.pow(e,2)*t,n=Math.exp(-s),a=Z(Math.pow(e,2),l);return(s*i+i-r)*n*(-o(e)+.001>0?-1:1)/a}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let h=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(o,a,5/t);if(t=(0,r.f)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(h,2)*n;return{stiffness:e,damping:2*l*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(n),v=p?-(0,r.X)(p):0,g=c/(2*Math.sqrt(u*d)),y=l-a,x=(0,r.X)(Math.sqrt(u/d)),P=5>Math.abs(y);if(i||(i=P?.01:2),e||(e=P?.005:.5),g<1){let t=Z(x,g);o=e=>l-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)o=t=>l-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);o=e=>{let i=Math.exp(-g*x*e),s=Math.min(t*e,300);return l-i*((v+g*x*y)*Math.sinh(s)+t*y*Math.cosh(s))/t}}return{calculatedDuration:f&&m||null,next:t=>{let s=o(t);if(f)h.done=t>=m;else{let r=v;0!==t&&(r=g<1?J(o,t,s):0);let n=Math.abs(r)<=i,a=Math.abs(l-s)<=e;h.done=n&&a}return h.value=h.done?l:s,h}}}function tr({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/s),b=t=>x+P(t),T=t=>{let e=P(t),i=b(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},V=t=>{f(m.value)&&(c=t,d=ts({keyframes:[m.value,v(m.value)],velocity:J(b,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u}))};return V(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),V(t)),void 0!==c&&t>c)?d.next(t-c):(e||T(t),m)}}}var tn=i(40051);let to=t=>{let e=({timestamp:e})=>t(e);return{start:()=>o.Gt.update(e,!0),stop:()=>(0,o.WG)(e),now:()=>tn.u.isProcessing?tn.u.timestamp:performance.now()}};function ta(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let tl={decay:tr,inertia:tr,tween:Q,keyframes:Q,spring:ts};function th({autoplay:t=!0,delay:e=0,driver:i=to,keyframes:s,type:n="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:h,onStop:u,onComplete:c,onUpdate:d,...p}){let m,f,v,g,y,x=1,P=!1,b=()=>{m&&m(),f=new Promise(t=>{m=t})};b();let T=tl[n]||Q;T!==Q&&"number"!=typeof s[0]&&(g=Y([0,100],s,{clamp:!1}),s=[0,100]);let V=T({...p,keyframes:s});"mirror"===l&&(y=T({...p,keyframes:[...s].reverse(),velocity:-(p.velocity||0)}));let A="idle",S=null,w=null,D=null;null===V.calculatedDuration&&o&&(V.calculatedDuration=ta(V));let{calculatedDuration:E}=V,C=1/0,k=1/0;null!==E&&(k=(C=E+a)*(o+1)-a);let j=0,R=t=>{if(null===w)return;x>0&&(w=Math.min(w,t));let i=(j=null!==S?S:(t-w)*x)-e,r=i<0;j=Math.max(i,0),"finished"===A&&null===S&&(j=k);let n=j,h=V;if(o){let t=j/C,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--;let s=!!((e=Math.min(e,o+1))%2);s&&("reverse"===l?(i=1-i,a&&(i-=a/C)):"mirror"===l&&(h=y));let r=(0,M.q)(0,1,i);j>k&&(r="reverse"===l&&s?1:0),n=r*C}let u=r?{done:!1,value:s[0]}:h.next(n);g&&(u.value=g(u.value));let{done:c}=u;r||null===E||(c=j>=k);let p=null===S&&("finished"===A||"running"===A&&c||x<0&&j<=0);return d&&d(u.value),p&&B(),u},F=()=>{v&&v.stop(),v=void 0},L=()=>{A="idle",F(),b(),w=D=null},B=()=>{A="finished",c&&c(),F(),b()},U=()=>{if(P)return;v||(v=i(R));let t=v.now();h&&h(),null!==S?w=t-S:w&&"finished"!==A||(w=t),D=w,S=null,A="running",v.start()};t&&U();let O={then:(t,e)=>f.then(t,e),get time(){return(0,r.X)(j)},set time(newTime){j=newTime=(0,r.f)(newTime),null===S&&v&&0!==x?w=v.now()-newTime/x:S=newTime},get duration(){let t=null===V.calculatedDuration?ta(V):V.calculatedDuration;return(0,r.X)(t)},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!v)return;x=newSpeed,O.time=(0,r.X)(j)},get state(){return A},play:U,pause:()=>{A="paused",S=j},stop:()=>{P=!0,"idle"!==A&&(A="idle",u&&u(),L())},cancel:()=>{null!==D&&R(D),L()},complete:()=>{A="finished"},sample:t=>(w=0,R(t))};return O}let tu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tc=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&h[e]||a(e)||Array.isArray(e)&&e.every(t))}(e.ease);var td=i(59440);let tp={type:"spring",stiffness:500,damping:25,restSpeed:10},tm=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tf={type:"keyframes",duration:.8},tv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tg=(t,{keyframes:e})=>e.length>2?tf:td.f.has(t)?t.startsWith("scale")?tm(e[1]):tp:tv,ty=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(G.f.test(e)||"0"===e)&&!e.startsWith("url("));var tx=i(51934),tP=i(76638),tb=i(1546);let tT=(t,e,i,u={})=>c=>{let m=(0,tb.r)(u,t)||{},f=m.delay||u.delay||0,{elapsed:v=0}=u;v-=(0,r.f)(f);let g=function(t,e,i,s){let r,n;let o=ty(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==s.from?s.from:t.get(),l=[];for(let t=0;t{e.set(t),m.onUpdate&&m.onUpdate(t)},onComplete:()=>{c(),m.onComplete&&m.onComplete()}};if((0,tb.D)(m)||(T={...T,...tg(t,T)}),T.duration&&(T.duration=(0,r.f)(T.duration)),T.repeatDelay&&(T.repeatDelay=(0,r.f)(T.repeatDelay)),!P||!b||n.current||!1===m.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:s}){let r=()=>(i&&i(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:p.l,pause:p.l,stop:p.l,then:t=>(t(),Promise.resolve()),cancel:p.l,complete:p.l});return e?th({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(T);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:s,...n}){let u,c;if(!(d.waapi()&&tu.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let p=!1,m=()=>{c=new Promise(t=>{u=t})};m();let{keyframes:f,duration:v=300,ease:g,times:y}=n;if(tc(e,n)){let t=th({...n,repeat:0,delay:0}),e={done:!1,value:f[0]},i=[],s=0;for(;!e.done&&s<2e4;)e=t.sample(s),i.push(e.value),s+=10;y=void 0,f=i,v=s-10,g="linear"}let x=function(t,e,i,{delay:s=0,duration:r,repeat:n=0,repeatType:o="loop",ease:u,times:c}={}){let d={[e]:i};c&&(d.offset=c);let p=function t(e){if(e)return a(e)?l(e):Array.isArray(e)?e.map(t):h[e]}(u);return Array.isArray(p)&&(d.easing=p),t.animate(d,{delay:s,duration:r,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,f,{...n,duration:v,ease:g,times:y}),P=()=>x.cancel(),b=()=>{o.Gt.update(P),u(),m()};return x.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:i="loop"}){let s=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[s]}(f,n)),s&&s(),b()},{then:(t,e)=>c.then(t,e),get time(){return(0,r.X)(x.currentTime||0)},set time(newTime){x.currentTime=(0,r.f)(newTime)},get speed(){return x.playbackRate},set speed(newSpeed){x.playbackRate=newSpeed},get duration(){return(0,r.X)(v)},play:()=>{p||(x.play(),(0,o.WG)(P))},pause:()=>x.pause(),stop:()=>{if(p=!0,"idle"===x.playState)return;let{currentTime:e}=x;if(e){let i=th({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}b()},complete:()=>x.finish(),cancel:b}}(e,t,T);if(i)return i}return th(T)}},1546:(t,e,i)=>{function s({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}function r(t,e){return t[e]||t.default||t}i.d(e,{D:()=>s,r:()=>r})},1324:(t,e,i)=>{i.d(e,{po:()=>n,tn:()=>a,yT:()=>o});var s=i(75265),r=i(85496);let n=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(n),a=(0,s.V)(o)},75265:(t,e,i)=>{i.d(e,{V:()=>s});let s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},85496:(t,e,i)=>{i.d(e,{G:()=>s});let s=t=>e=>1-t(1-e)},65064:(t,e,i)=>{i.d(e,{k:()=>s});function s(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}},7559:(t,e,i)=>{i.d(e,{h:()=>n});var s=i(65064),r=i(87796);function n(t,e,i,n){return(0,s.k)(t,e,(0,r.F)(i),n)}},87796:(t,e,i)=>{i.d(e,{F:()=>n,e:()=>r});var s=i(82250);function r(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let n=t=>e=>(0,s.M)(e)&&t(e,r(e))},82250:(t,e,i)=>{i.d(e,{M:()=>s});let s=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},40051:(t,e,i)=>{i.d(e,{u:()=>s});let s={delta:0,timestamp:0,isProcessing:!1}},32619:(t,e,i)=>{i.d(e,{WG:()=>d,Gt:()=>c,Ci:()=>a});var s=i(40051);let r=!0,n=!1,o=["read","update","preRender","render","postRender"],a=o.reduce((t,e)=>(t[e]=function(t){let e=[],i=[],s=0,r=!1,n=!1,o=new WeakSet,a={schedule:(t,n=!1,a=!1)=>{let l=a&&r,h=l?e:i;return n&&o.add(t),-1===h.indexOf(t)&&(h.push(t),l&&r&&(s=e.length)),t},cancel:t=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1),o.delete(t)},process:l=>{if(r){n=!0;return}if(r=!0,[e,i]=[i,e],i.length=0,s=e.length)for(let i=0;in=!0),t),{}),l=t=>a[t].process(s.u),h=t=>{n=!1,s.u.delta=r?1e3/60:Math.max(Math.min(t-s.u.timestamp,40),1),s.u.timestamp=t,s.u.isProcessing=!0,o.forEach(l),s.u.isProcessing=!1,n&&(r=!1,requestAnimationFrame(h))},u=()=>{n=!0,r=!0,s.u.isProcessing||requestAnimationFrame(h)},c=o.reduce((t,e)=>{let i=a[e];return t[e]=(t,e=!1,s=!1)=>(n||u(),i.schedule(t,e,s)),t},{});function d(t){o.forEach(e=>a[e].cancel(t))}},47216:(t,e,i)=>{function s(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}i.d(e,{D3:()=>a,nQ:()=>o});let r=s("dragHorizontal"),n=s("dragVertical");function o(t){let e=!1;if("y"===t)e=n();else if("x"===t)e=r();else{let t=r(),i=n();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function a(){let t=o(!0);return!t||(t(),!1)}},85216:(t,e,i)=>{i.d(e,{X:()=>s});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}},90994:(t,e,i)=>{i.d(e,{W:()=>S});var s=i(92850),r=i(68768);function n(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;sl.remove(e))),v.push(m)}return o&&Promise.all(v).then(()=>{o&&(0,m.Uo)(t,o)}),v}function v(t,e,i={}){let s=(0,a.K)(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(f(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(g).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(v(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([n(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[n,o]:[o,n];return t().then(()=>e())}}function g(t,e){return t.sortNodePosition(e)}let y=[...l.U].reverse(),x=l.U.length;function P(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var b=i(85216);class T extends b.X{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 s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>v(t,e,i)));else if("string"==typeof e)s=v(t,e,i);else{let r="function"==typeof e?(0,a.K)(t,e,i.custom):e;s=Promise.all(f(t,r,i))}return s.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:P(!0),whileInView:P(),whileHover:P(),whileTap:P(),whileDrag:P(),whileFocus:P(),exit:P()},l=!0,h=(e,i)=>{let s=(0,a.K)(t,i);if(s){let{transition:t,transitionEnd:i,...r}=s;e={...e,...r,...i}}return e};function u(a,u){let c=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set,f={},v=1/0;for(let e=0;ev&&T,D=Array.isArray(b)?b:[b],E=D.reduce(h,{});!1===V&&(E={});let{prevResolvedValues:M={}}=P,C={...M,...E},k=t=>{w=!0,m.delete(t),P.needsAnimating[t]=!0};for(let t in C){let e=E[t],i=M[t];f.hasOwnProperty(t)||(e!==i?(0,r.p)(e)&&(0,r.p)(i)?!n(e,i)||S?k(t):P.protectedKeys[t]=!0:void 0!==e?k(t):m.add(t):void 0!==e&&m.has(t)?k(t):P.protectedKeys[t]=!0)}P.prevProp=b,P.prevResolvedValues=E,P.isActive&&(f={...f,...E}),l&&t.blockInitialAnimation&&(w=!1),w&&!A&&p.push(...D.map(t=>({animation:t,options:{type:x,...a}})))}if(m.size){let e={};m.forEach(i=>{let s=t.getBaseTarget(i);void 0!==s&&(e[i]=s)}),p.push({animation:e})}let P=!!p.length;return l&&!1===c.initial&&!t.manuallyAnimateOnMount&&(P=!1),l=!1,P?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,s,r){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=u(r,e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,s.N)(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 V=0;class A extends b.X{constructor(){super(...arguments),this.id=V++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)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(){}}let S={animation:{Feature:T},exit:{Feature:A}}},81703:(t,e,i)=>{i.d(e,{n:()=>V});var s=i(7559),r=i(33825),n=i(47216),o=i(85216),a=i(32619);function l(t,e){let i="onHover"+(e?"Start":"End");return(0,s.h)(t.current,"pointer"+(e?"enter":"leave"),(s,r)=>{if("touch"===s.type||(0,n.D3)())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[i]&&a.Gt.update(()=>o[i](s,r))},{passive:!t.getProps()[i]})}class h extends o.X{mount(){this.unmount=(0,r.F)(l(this.node,!0),l(this.node,!1))}unmount(){}}var u=i(65064);class c extends o.X{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,r.F)((0,u.k)(this.node.current,"focus",()=>this.onFocus()),(0,u.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var d=i(87796);let p=(t,e)=>!!e&&(t===e||p(t,e.parentElement));var m=i(42681);function f(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,(0,d.e)(i))}class v extends o.X{constructor(){super(...arguments),this.removeStartListeners=m.l,this.removeEndListeners=m.l,this.removeAccessibleListeners=m.l,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let i=this.node.getProps(),n=(0,s.h)(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s}=this.node.getProps();a.Gt.update(()=>{p(this.node.current,t.target)?i&&i(t,e):s&&s(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),o=(0,s.h)(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,r.F)(n,o),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=(0,u.k)(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=(0,u.k)(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&f("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&a.Gt.update(()=>i(t,e))})}),f("down",(t,e)=>{this.startPress(t,e)}))}),e=(0,u.k)(this.node.current,"blur",()=>{this.isPressing&&f("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,r.F)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&a.Gt.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,n.D3)()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&a.Gt.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=(0,s.h)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=(0,u.k)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,r.F)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let g=new WeakMap,y=new WeakMap,x=t=>{let e=g.get(t.target);e&&e(t)},P=t=>{t.forEach(x)},b={some:0,all:1};class T extends o.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:r}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:b[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;y.has(i)||y.set(i,{});let s=y.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(P,{root:t,...e})),s[r]}(e);return g.set(t,i),s.observe(t),()=>{g.delete(t),s.unobserve(t)}}(this.node.current,n,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:s}=this.node.getProps(),n=e?i:s;n&&n(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(){}}let V={inView:{Feature:T},tap:{Feature:v},focus:{Feature:c},hover:{Feature:h}}},70042:(t,e,i)=>{function s({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}i.d(e,{FY:()=>s,bS:()=>n,pA:()=>r})},94949:(t,e,i)=>{i.d(e,{OU:()=>h,Ql:()=>c,Ww:()=>f,hq:()=>n,o4:()=>l});var s=i(25047),r=i(18816);function n(t,e,i){return i+e*(t-i)}function o(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function a(t,e=0,i=1,s,r){t.min=o(t.min,e,i,s,r),t.max=o(t.max,e,i,s,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 h(t,e,i,s=!1){let n,o;let a=i.length;if(a){e.x=e.y=1;for(let h=0;h1.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,n]){let o=void 0!==e[n]?e[n]:.5,l=(0,s.j)(t.min,t.max,o);a(t,e[i],e[r],l,e.scale)}let p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},16848:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>r});let s=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:s(),y:s()}),n=()=>({min:0,max:0}),o=()=>({x:n(),y:n()})},18816:(t,e,i)=>{function s(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!s(t)||!s(e)||!s(i)}function n(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,{HD:()=>n,vF:()=>o,vk:()=>r})},79931:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>n});var s=i(70042),r=i(94949);function n(t,e){return(0,s.FY)((0,s.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let s=n(t,i),{scroll:o}=e;return o&&((0,r.Ql)(s.x,o.offset.x),(0,r.Ql)(s.y,o.offset.y)),s}},82237:(t,e,i)=>{i.d(e,{J:()=>ta});var s=i(24022),r=i(24578),n=i(59440),o=i(98132),a=i(74674),l=i(25435),h=i(79931),u=i(36112),c=i(30932);let d=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function p(t,e,i=1){(0,c.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[s,n]=function(t){let e=d.exec(t);if(!e)return[,];let[,i,s]=e;return[i,s]}(t);if(!s)return;let o=window.getComputedStyle(e).getPropertyValue(s);return o?o.trim():(0,r.pG)(n)?p(n,e,i+1):n}var m=i(68768),f=i(56153),v=i(6978),g=i(16400),y=i(12857);let x=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),P=t=>x.has(t),b=t=>Object.keys(t).some(P),T=t=>t===g.ai||t===y.px,V=(t,e)=>parseFloat(t.split(", ")[e]),A=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/);if(r)return V(r[1],e);{let e=s.match(/^matrix\((.+)\)$/);return e?V(e[1],t):0}},S=new Set(["x","y","z"]),w=n.U.filter(t=>!S.has(t)),D={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:A(4,13),y:A(5,14)},E=(t,e,i)=>{let s=e.measureViewportBox(),r=getComputedStyle(e.current),{display:n}=r,o={};"none"===n&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=D[t](s,r)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let s=e.getValue(i);s&&s.jump(o[i]),t[i]=D[i](a,r)}),t},M=(t,e,i={},s={})=>{e={...e},s={...s};let r=Object.keys(e).filter(P),n=[],o=!1,a=[];if(r.forEach(r=>{let l;let h=t.getValue(r);if(!t.hasValue(r))return;let u=i[r],d=(0,f.n)(u),p=e[r];if((0,m.p)(p)){let t=p.length,e=null===p[0]?1:0;u=p[e],d=(0,f.n)(u);for(let i=e;i{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),s[r]=void 0!==s[r]?s[r]:e[r],h.jump(p))}}),!a.length)return{target:e,transitionEnd:s};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=E(e,t,a);return n.length&&n.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),v.B&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:s}}},C=(t,e,i,s)=>{let n=function(t,{...e},i){let s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:i};for(let n in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,r.pG)(e))return;let i=p(e,s);i&&t.set(i)}),e){let t=e[n];if(!(0,r.pG)(t))continue;let o=p(t,s);o&&(e[n]=o,i||(i={}),void 0===i[n]&&(i[n]=t))}return{target:e,transitionEnd:i}}(t,e,s);return function(t,e,i,s){return b(e)?M(t,e,i,s):{target:e,transitionEnd:s}}(t,e=n.target,i,s=n.transitionEnd)};var k=i(32619),j=i(16848),R=i(8345);let F={current:null},L={current:!1};var B=i(62940),U=i(89109),O=i(6663),I=i(76340),N=i(12599),G=i(95699),$=i(16677),q=i(63876),W=i(77306);let X=new WeakMap,H=Object.keys(q.B),K=H.length,z=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Y=W._.length;class Q{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,visualState:r},n={}){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=()=>k.Gt.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=s,this.options=n,this.isControllingVariants=(0,N.e)(e),this.isVariantNode=(0,N.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...h}=this.scrapeMotionValuesFromProps(e,{});for(let t in h){let e=h[t];void 0!==o[t]&&(0,I.S)(e)&&(e.set(o[t],!1),(0,O.k)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,X.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)),L.current||function(){if(L.current=!0,v.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>F.current=t.matches;t.addListener(e),e()}else F.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||F.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in X.delete(this.current),this.projection&&this.projection.unmount(),(0,k.WG)(this.notifyUpdate),(0,k.WG)(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=n.f.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&k.Gt.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,s,r){let n,o;for(let t=0;tthis.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];e.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,j.ge)()}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;ee.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,U.O)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){return void 0===this.latestValues[t]&&this.current?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,s="string"==typeof i||"object"==typeof i?null===(e=(0,$.a)(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==s)return s;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,I.S)(r)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new B.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class _ extends Q{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:s},r){let n=(0,u.$z)(i,t||{},this);if(s&&(e&&(e=s(e)),i&&(i=s(i)),n&&(n=s(n))),r){(0,u.TM)(this,i,n);let t=C(this,i,n,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}class J extends _{readValueFromInstance(t,e){if(n.f.has(e)){let t=(0,l.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,r.j4)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,h.m)(t,e)}build(t,e,i,r){(0,s.O)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,o.x)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,I.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,s){(0,a.e)(t,e,i,s)}}var Z=i(14485),tt=i(49985),te=i(71440),ti=i(2279),ts=i(6415),tr=i(41793);class tn extends _{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.f.has(e)){let t=(0,l.D)(e);return t&&t.default||0}return e=ti.e.has(e)?e:(0,te.I)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,j.ge)()}scrapeMotionValuesFromProps(t,e){return(0,Z.x)(t,e)}build(t,e,i,s){(0,tt.B)(t,e,i,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,i,s){(0,ts.d)(t,e,i,s)}mount(t){this.isSVGTag=(0,tr.n)(t.tagName),super.mount(t)}}var to=i(97803);let ta=(t,e)=>(0,to.Q)(t)?new tn(e,{enableHardwareAcceleration:!1}):new J(e,{enableHardwareAcceleration:!0})},48139:(t,e,i)=>{i.d(e,{P:()=>eo});var s=i(41231),r=i(77576),n=i(81703),o=i(90994),a=i(85216),l=i(42681),h=i(30932),u=i(87796),c=i(32619),d=i(50173),p=i(7559),m=i(33825);let f=(t,e)=>Math.abs(t-e);var v=i(40051),g=i(82250);class y{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=b(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(f(t.x,e.x)**2+f(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:r}=v.u;this.history.push({...s,timestamp:r});let{onStart:n,onMove:o}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=x(e,this.transformPagePoint),c.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:i,onSessionEnd:s}=this.handlers,r=b("pointercancel"===t.type?this.lastMoveEventInfo:x(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!(0,g.M)(t))return;this.handlers=e,this.transformPagePoint=i;let s=x((0,u.e)(t),this.transformPagePoint),{point:r}=s,{timestamp:n}=v.u;this.history=[{...r,timestamp:n}];let{onSessionStart:o}=e;o&&o(t,b(s,this.history)),this.removeListeners=(0,m.F)((0,p.h)(window,"pointermove",this.handlePointerMove),(0,p.h)(window,"pointerup",this.handlePointerUp),(0,p.h)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,c.WG)(this.updatePoint)}}function x(t,e){return e?{point:e(t.point)}:t}function P(t,e){return{x:t.x-e.x,y:t.y-e.y}}function b({point:t},e){return{point:t,delta:P(t,T(e)),offset:P(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=T(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,d.f)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,d.X)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function T(t){return t[t.length-1]}var V=i(47216),A=i(8345),S=i(35068),w=i(25047);function D(t){return t.max-t.min}function E(t,e=0,i=.01){return Math.abs(t-e)<=i}function M(t,e,i,s=.5){t.origin=s,t.originPoint=(0,w.j)(e.min,e.max,t.origin),t.scale=D(i)/D(e),(E(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,w.j)(i.min,i.max,t.origin)-t.originPoint,(E(t.translate)||isNaN(t.translate))&&(t.translate=0)}function C(t,e,i,s){M(t.x,e.x,i.x,s?s.originX:void 0),M(t.y,e.y,i.y,s?s.originY:void 0)}function k(t,e,i){t.min=i.min+e.min,t.max=t.min+D(e)}function j(t,e,i){t.min=e.min-i.min,t.max=t.min+D(e)}function R(t,e,i){j(t.x,e.x,i.x),j(t.y,e.y,i.y)}var F=i(5848);function L(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 B(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min{this.stopAnimation(),e&&this.snapToCursor((0,u.e)(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,V.nQ)(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),N(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=D(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&c.Gt.update(()=>r(t,e),!1,!0);let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(s&&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(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&c.Gt.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:s}=this.getProps();if(!i||!z(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&ti&&(t=s?(0,w.j)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},s=this.constraints;t&&(0,A.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:L(t.x,i,r),y:L(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:U(t,"left","right"),y:U(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&N(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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,A.X)(e))return!1;let s=e.current;(0,h.V)(null!==s,"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 n=(0,G.L)(s,r.root,this.visualElement.getTransformPagePoint()),o={x:B((t=r.layout.layoutBox).x,n.x),y:B(t.y,n.y)};if(i){let t=i((0,$.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,$.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(N(o=>{if(!z(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,X.f)(t,i,0,e))}stopAnimation(){N(t=>this.getAxisMotionValue(t).stop())}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){N(e=>{let{drag:i}=this.getProps();if(!z(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-(0,w.j)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,A.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};N(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();s[t]=function(t,e){let i=.5,s=D(t),r=D(e);return r>s?i=(0,S.q)(e.min,e.max-s,t.min):s>r&&(i=(0,S.q)(t.min,t.max-r,e.min)),(0,F.q)(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(),N(e=>{if(!z(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set((0,w.j)(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;H.set(this.visualElement,this);let t=this.visualElement.current,e=(0,p.h)(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();(0,A.X)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),i();let n=(0,q.k)(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(N(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),e(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function z(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class Y extends a.X{constructor(t){super(t),this.removeGroupControls=l.l,this.removeListeners=l.l,this.controls=new K(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let Q=t=>(e,i)=>{t&&c.Gt.update(()=>t(e,i))};class _ extends a.X{constructor(){super(...arguments),this.removePointerDownListener=l.l}onPointerDown(t){this.session=new y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Q(t),onStart:Q(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&c.Gt.update(()=>s(t,e))}}}mount(){this.removePointerDownListener=(0,p.h)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var J=i(20282),Z=i(32815),tt=i(88755),te=i(61975);let ti={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ts(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!W.px.test(t))return t;t=parseFloat(t)}let i=ts(t,e.target.x),s=ts(t,e.target.y);return`${i}% ${s}%`}};var tn=i(32214),to=i(30299);class ta extends J.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;(0,to.$)(th),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ti.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===r||(r?n.promote():n.relegate()||c.Gt.postRender(()=>{let t=n.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:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tl(t){let[e,i]=function(){let t=(0,J.useContext)(Z.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,J.useId)();return(0,J.useEffect)(()=>s(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),s=(0,J.useContext)(tt.L);return J.createElement(ta,{...t,layoutGroup:s,switchLayoutGroup:(0,J.useContext)(te.N),isPresent:e,safeToRemove:i})}let th={borderRadius:{...tr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tr,borderTopRightRadius:tr,borderBottomLeftRadius:tr,borderBottomRightRadius:tr,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tn.f.parse(t);if(s.length>5)return t;let r=tn.f.createTransformer(t),n="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,w.j)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};var tu=i(62940),tc=i(1324);let td=["TopLeft","TopRight","BottomLeft","BottomRight"],tp=td.length,tm=t=>"string"==typeof t?parseFloat(t):t,tf=t=>"number"==typeof t||W.px.test(t);function tv(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tg=tx(0,.5,tc.yT),ty=tx(.5,.95,l.l);function tx(t,e,i){return s=>se?1:i((0,S.q)(t,e,s))}function tP(t,e){t.min=e.min,t.max=e.max}function tb(t,e){tP(t.x,e.x),tP(t.y,e.y)}var tT=i(94949);function tV(t,e,i,s,r){return t-=e,t=(0,tT.hq)(t,1/i,s),void 0!==r&&(t=(0,tT.hq)(t,1/r,s)),t}function tA(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(W.KN.test(e)&&(e=parseFloat(e),e=(0,w.j)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,w.j)(n.min,n.max,s);t===n&&(a-=e),t.min=tV(t.min,e,i,a,r),t.max=tV(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let tS=["x","scaleX","originX"],tw=["y","scaleY","originY"];function tD(t,e,i,s){tA(t.x,e,tS,i?i.x:void 0,s?s.x:void 0),tA(t.y,e,tw,i?i.y:void 0,s?s.y:void 0)}var tE=i(1546);function tM(t){return 0===t.translate&&1===t.scale}function tC(t){return tM(t.x)&&tM(t.y)}function tk(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function tj(t){return D(t.x)/D(t.y)}var tR=i(12890);class tF{constructor(){this.members=[]}add(t){(0,tR.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tR.Ai)(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)}}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:s}=t.options;!1===s&&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 tL(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y;if((r||n)&&(s=`translate3d(${r}px, ${n}px, 0) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(s+=`rotate(${t}deg) `),e&&(s+=`rotateX(${e}deg) `),r&&(s+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(s+=`scale(${o}, ${a})`),s||"none"}var tB=i(18816);let tU=(t,e)=>t.depth-e.depth;class tO{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tR.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tR.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tU),this.isDirty=!1,this.children.forEach(t)}}var tI=i(67504),tN=i(89109),tG=i(76340);let t$=["","X","Y","Z"],tq=0,tW={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{tW.totalNodes=tW.resolvedTargetDeltas=tW.recalculatedProjection=0,this.nodes.forEach(tz),this.nodes.forEach(t1),this.nodes.forEach(t5),this.nodes.forEach(tY),window.MotionDebug&&window.MotionDebug.record(tW)},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;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&((0,c.WG)(s),t(r-250))};return c.Gt.read(s,!0),()=>(0,c.WG)(s)}(s,0),ti.hasAnimatedSinceResize&&(ti.hasAnimatedSinceResize=!1,this.nodes.forEach(t0))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||t8,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tk(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,tE.r)(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||t0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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,c.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(t3),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;tthis.update()))}clearAllSnapshots(){this.nodes.forEach(tQ),this.sharedNodes.forEach(t2)}scheduleUpdateProjection(){c.Gt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){c.Gt.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{var s,h;let d=e/1e3;t6(o.x,t.x,d),t6(o.y,t.y,d),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(R(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,h=this.relativeTargetOrigin,t4(s.x,h.x,a.x,d),t4(s.y,h.y,a.y,d),i&&tk(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=(0,I.ge)()),tb(i,this.relativeTarget)),l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,w.j)(0,void 0!==i.opacity?i.opacity:1,tg(s)),t.opacityExit=(0,w.j)(void 0!==e.opacity?e.opacity:1,0,ty(s))):n&&(t.opacity=(0,w.j)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r{ti.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,tG.S)(0)?0:(0,tN.O)(0);return s.start((0,X.f)("",s,1e3,i)),s.animation}(0,0,{...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:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&et(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,I.ge)();let e=D(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=D(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tb(e,i),(0,tT.Ww)(e,r),C(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tF),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 s=this.getStack();s&&s.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 s={};for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(t_),this.root.sharedNodes.clear()}}}function tH(t){t.updateLayout()}function tK(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:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?N(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=D(s);s.min=e[t].min,s.max=s.min+r}):et(r,i.layoutBox,e)&&N(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=D(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,I.xU)();C(o,e,i.layoutBox);let a=(0,I.xU)();n?C(a,t.applyTransform(s,!0),i.measuredBox):C(a,e,i.layoutBox);let l=!tC(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=(0,I.ge)();R(o,i.layoutBox,r.layoutBox);let a=(0,I.ge)();R(a,e,n.layoutBox),tk(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tz(t){tW.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 tY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tQ(t){t.clearSnapshot()}function t_(t){t.clearMeasurements()}function tJ(t){t.isLayoutDirty=!1}function tZ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function t1(t){t.resolveTargetDelta()}function t5(t){t.calcProjection()}function t3(t){t.resetRotation()}function t2(t){t.removeLeadSnapshot()}function t6(t,e,i){t.translate=(0,w.j)(e.translate,0,i),t.scale=(0,w.j)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function t4(t,e,i,s){t.min=(0,w.j)(e.min,i.min,s),t.max=(0,w.j)(e.max,i.max,s)}function t9(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let t8={duration:.45,ease:[.4,0,.1,1]};function t7(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function et(t,e,i){return"position"===t||"preserve-aspect"===t&&!E(tj(e),tj(i),.2)}let ee=tX({attachResizeListener:(t,e)=>(0,q.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ei={current:void 0},es=tX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ei.current){let t=new ee({});t.mount(window),t.setOptions({layoutScroll:!0}),ei.current=t}return ei.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var er=i(82237);let en={...o.W,...n.n,pan:{Feature:_},drag:{Feature:Y,ProjectionNode:es,MeasureLayout:tl},layout:{ProjectionNode:es,MeasureLayout:tl}},eo=(0,s.H)((t,e)=>(0,r.P)(t,e,en,er.J))},51934:(t,e,i)=>{i.d(e,{J:()=>o});var s=i(32214),r=i(11690),n=i(25435);function o(t,e){let i=(0,n.D)(t);return i!==r.p&&(i=s.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},25435:(t,e,i)=>{i.d(e,{D:()=>o});var s=i(8791),r=i(11690);let n={...i(48636).W,color:s.y,backgroundColor:s.y,outlineColor:s.y,fill:s.y,stroke:s.y,borderColor:s.y,borderTopColor:s.y,borderRightColor:s.y,borderBottomColor:s.y,borderLeftColor:s.y,filter:r.p,WebkitFilter:r.p},o=t=>n[t]},56153:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var s=i(16400),r=i(12857),n=i(33353);let o=[s.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,n.w)(t))},33353:(t,e,i)=>{i.d(e,{w:()=>s});let s=t=>e=>e.test(t)},84249:(t,e,i)=>{i.d(e,{K:()=>r});var s=i(16677);function r(t,e,i){let r=t.getProps();return(0,s.a)(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))}},36112:(t,e,i)=>{i.d(e,{TM:()=>v,$z:()=>g,Uo:()=>f});let s=t=>/^\-?\d*\.?\d+$/.test(t);var r=i(76638),n=i(72501),o=i(89109),a=i(32214),l=i(51934),h=i(8791),u=i(56153),c=i(33353);let d=[...u.T,h.y,a.f],p=t=>d.find((0,c.w)(t));var m=i(84249);function f(t,e){let i=(0,m.K)(t,e),{transitionEnd:s={},transition:r={},...a}=i?t.makeTargetAnimatable(i,!1):{};for(let e in a={...a,...s}){let i=(0,n.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.O)(i))}}function v(t,e,i){var n,h;let u=Object.keys(e).filter(e=>!t.hasValue(e)),c=u.length;if(c)for(let d=0;d{function s(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,{Ai:()=>r,Kq:()=>s})},76638:(t,e,i)=>{i.d(e,{$:()=>s});let s=t=>/^0[^.\s]+$/.test(t)},25047:(t,e,i)=>{i.d(e,{j:()=>s});let s=(t,e,i)=>-i*t+i*e+t},33825:(t,e,i)=>{i.d(e,{F:()=>r});let s=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(s)},35068:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s}},62940:(t,e,i)=>{i.d(e,{v:()=>r});var s=i(12890);class r{constructor(){this.subscriptions=[]}add(t){return(0,s.Kq)(this.subscriptions,t),()=>(0,s.Ai)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r{i.d(e,{X:()=>r,f:()=>s});let s=t=>1e3*t,r=t=>t/1e3},57457:(t,e,i)=>{i.d(e,{f:()=>s});function s(t,e){return e?1e3/e*t:0}},89109:(t,e,i)=>{i.d(e,{O:()=>h});var s=i(40051),r=i(32619),n=i(62940),o=i(57457);let a=t=>!isNaN(parseFloat(t));class l{constructor(t,e={}){this.version="10.12.16",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.u;this.lastUpdated!==n&&(this.timeDelta=i,this.lastUpdated=n,r.Gt.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=()=>r.Gt.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=a(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),r.Gt.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 this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.f)(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 h(t,e){return new l(t,e)}},47164:(t,e,i)=>{i.d(e,{u:()=>r});var s=i(833);let r={test:(0,i(70348).$)("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:s.B.transform}},67893:(t,e,i)=>{i.d(e,{V:()=>a});var s=i(16400),r=i(12857),n=i(90164),o=i(70348);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,n.aj)(e))+", "+r.KN.transform((0,n.aj)(i))+", "+(0,n.aj)(s.X4.transform(o))+")"}},8791:(t,e,i)=>{i.d(e,{y:()=>a});var s=i(90164),r=i(47164),n=i(67893),o=i(833);let a={test:t=>o.B.test(t)||r.u.test(t)||n.V.test(t),parse:t=>o.B.test(t)?o.B.parse(t):n.V.test(t)?n.V.parse(t):r.u.parse(t),transform:t=>(0,s.Kg)(t)?t:t.hasOwnProperty("red")?o.B.transform(t):n.V.transform(t)}},833:(t,e,i)=>{i.d(e,{B:()=>h});var s=i(5848),r=i(16400),n=i(90164),o=i(70348);let a=t=>(0,s.q)(0,255,t),l={...r.ai,transform:t=>Math.round(a(t))},h={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,n.aj)(r.X4.transform(s))+")"}},70348:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>n});var s=i(90164);let r=(t,e)=>i=>!!((0,s.Kg)(i)&&s.Fl.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),n=(t,e,i)=>r=>{if(!(0,s.Kg)(r))return r;let[n,o,a,l]=r.match(s.SY);return{[t]:parseFloat(n),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},11690:(t,e,i)=>{i.d(e,{p:()=>l});var s=i(32214),r=i(90164);let n=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(r.SY)||[];if(!s)return t;let o=i.replace(s,""),a=n.has(e)?1:0;return s!==i&&(a*=100),e+"("+a+o+")"}let a=/([a-z-]*)\(.*?\)/g,l={...s.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},32214:(t,e,i)=>{i.d(e,{V:()=>d,f:()=>v});var s=i(24578),r=i(42681),n=i(8791),o=i(16400),a=i(90164);let l={regex:s.z2,countKey:"Vars",token:"${v}",parse:r.l},h={regex:a.ne,countKey:"Colors",token:"${c}",parse:n.y.parse},u={regex:a.SY,countKey:"Numbers",token:"${n}",parse:o.ai.parse};function c(t,{regex:e,countKey:i,token:s,parse:r}){let n=t.tokenised.match(e);n&&(t["num"+i]=n.length,t.tokenised=t.tokenised.replace(e,s),t.values.push(...n.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,h),c(i,u),i}function p(t){return d(t).values}function m(t){let{values:e,numColors:i,numVars:s,tokenised:r}=d(t),o=e.length;return t=>{let e=r;for(let r=0;r"number"==typeof t?0:t,v={test:function(t){var e,i;return isNaN(t)&&(0,a.Kg)(t)&&((null===(e=t.match(a.SY))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(a.ne))||void 0===i?void 0:i.length)||0)>0},parse:p,createTransformer:m,getAnimatableNone:function(t){let e=p(t);return m(t)(e.map(f))}}},6663:(t,e,i)=>{i.d(e,{k:()=>r});var s=i(76340);function r(t){return!!((0,s.S)(t)&&t.add)}}}]);