"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[483],{3759:function(t,e,i){i.d(e,{Z:function(){return o}});var n=i(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=(t,e)=>{let i=(0,n.forwardRef)((i,o)=>{let{color:a="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:h,children:c,...d}=i;return(0,n.createElement)("svg",{ref:o,...r,width:l,height:l,stroke:a,strokeWidth:h?24*Number(u)/Number(l):u,className:"lucide lucide-".concat(s(t)),...d},[...e.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...(Array.isArray(c)?c:[c])||[]])});return i.displayName="".concat(t),i}},2779:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(3759).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},2020:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(3759).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2190:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(3759).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},72:function(t,e,i){i.d(e,{y:function(){return B}});var n=i(1662);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){if(t===e&&i===s)return n.Z;let o=e=>(function(t,e,i,n,s){let o,a;let l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:r(o(t),e,s)}let o=s(.42,0,1,1),a=s(0,0,.58,1),l=s(.42,0,.58,1),u=t=>Array.isArray(t)&&"number"!=typeof t[0];var h=i(5487),c=i(7255),d=i(415),p=i(5129);let m=s(.33,1.53,.69,.99),f=(0,p.M)(m),v=(0,d.o)(f),g={linear:n.Z,easeIn:o,easeInOut:l,easeOut:a,circIn:c.Z7,circInOut:c.X7,circOut:c.Bn,backIn:f,backInOut:v,backOut:m,anticipate:t=>(t*=2)<1?.5*f(t):.5*(2-Math.pow(2,-10*(t-1)))},y=t=>{if(Array.isArray(t)){(0,h.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return s(e,i,n,r)}return"string"==typeof t?((0,h.k)(void 0!==g[t],`Invalid easing type '${t}'`),g[t]):t};var x=i(4606),P=i(533);function b({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=u(n)?n.map(y):y(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,P.Y)(e)).map(e=>e*t),a=(0,x.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||l).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var w=i(6917),A=i(3038);function T(t,e,i){let n=Math.max(e-5,0);return(0,A.R)(i-t(n),e-n)}var S=i(4169);function C(t,e){return t*Math.sqrt(1-e*e)}let V=["duration","bounce"],E=["stiffness","damping","mass"];function M(t,e){return e.some(e=>void 0!==t[e])}function k({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!M(t,E)&&M(t,V)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;(0,h.K)(t<=(0,w.w)(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,S.u)(.05,1,o),t=(0,S.u)(.01,10,(0,w.X)(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/C(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=C(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=(0,w.w)(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-(0,w.X)(n.velocity||0)}),f=p||0,v=u/(2*Math.sqrt(l*c)),g=o-s,y=(0,w.X)(Math.sqrt(l/c)),x=5>Math.abs(g);if(i||(i=x?.01:2),e||(e=x?.005:.5),v<1){let t=C(y,v);r=e=>o-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)r=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);r=e=>{let i=Math.exp(-v*y*e),n=Math.min(t*e,300);return o-i*((f+v*y*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}return{calculatedDuration:m&&d||null,next:t=>{let n=r(t);if(m)a.done=t>=d;else{let s=f;0!==t&&(s=v<1?T(r,t,n):0);let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function D({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],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/n),b=t=>x+P(t),w=t=>{let e=P(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},A=t=>{f(m.value)&&(c=t,d=k({keyframes:[m.value,v(m.value)],velocity:T(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};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),m)}}}var R=i(2074);let L=t=>{let e=({timestamp:e})=>t(e);return{start:()=>R.Wi.update(e,!0),stop:()=>(0,R.Pn)(e),now:()=>R.frameData.isProcessing?R.frameData.timestamp:performance.now()}};function j(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 F={decay:D,inertia:D,tween:b,keyframes:b,spring:k};function B({autoplay:t=!0,delay:e=0,driver:i=L,keyframes:n,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,m,f,v,g,y=1,P=!1,A=()=>{m=new Promise(t=>{p=t})};A();let T=F[r]||b;T!==b&&"number"!=typeof n[0]&&(v=(0,x.s)([0,100],n,{clamp:!1}),n=[0,100]);let C=T({...d,keyframes:n});"mirror"===a&&(g=T({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let V="idle",E=null,M=null,k=null;null===C.calculatedDuration&&s&&(C.calculatedDuration=j(C));let{calculatedDuration:D}=C,R=1/0,B=1/0;null!==D&&(B=(R=D+o)*(s+1)-o);let O=0,W=t=>{if(null===M)return;y>0&&(M=Math.min(M,t)),y<0&&(M=Math.min(t-B/y,M));let i=(O=null!==E?E:Math.round(t-M)*y)-e*(y>=0?1:-1),r=y>=0?i<0:i>B;O=Math.max(i,0),"finished"===V&&null===E&&(O=B);let l=O,u=C;if(s){let t=Math.min(O,B)/R,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(i=1-i,o&&(i-=o/R)):"mirror"===a&&(u=g)),l=(0,S.u)(0,1,i)*R}let h=r?{done:!1,value:n[0]}:u.next(l);v&&(h.value=v(h.value));let{done:d}=h;r||null===D||(d=y>=0?O>=B:O<=0);let p=null===E&&("finished"===V||"running"===V&&d);return c&&c(h.value),p&&U(),h},$=()=>{f&&f.stop(),f=void 0},I=()=>{V="idle",$(),p(),A(),M=k=null},U=()=>{V="finished",h&&h(),$(),p()},N=()=>{if(P)return;f||(f=i(W));let t=f.now();l&&l(),null!==E?M=t-E:M&&"finished"!==V||(M=t),"finished"===V&&A(),k=M,E=null,V="running",f.start()};t&&N();let z={then:(t,e)=>m.then(t,e),get time(){return(0,w.X)(O)},set time(newTime){O=newTime=(0,w.w)(newTime),null===E&&f&&0!==y?M=f.now()-newTime/y:E=newTime},get duration(){let t=null===C.calculatedDuration?j(C):C.calculatedDuration;return(0,w.X)(t)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,z.time=(0,w.X)(O)},get state(){return V},play:N,pause:()=>{V="paused",E=O},stop:()=>{P=!0,"idle"!==V&&(V="idle",u&&u(),I())},cancel:()=>{null!==k&&W(k),I()},complete:()=>{V="finished"},sample:t=>(M=0,W(t))};return z}},1526:function(t,e,i){i.d(e,{M:function(){return v}});var n=i(7294),r=i(8868);function s(){let t=(0,n.useRef)(!1);return(0,r.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var o=i(2074),a=i(240),l=i(6681);class u extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e}){let i=(0,n.useId)(),r=(0,n.useRef)(null),s=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:t,height:n,top:o,left:a}=s.current;if(e||!r.current||!t||!n)return;r.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${i}"] { position: absolute !important; width: ${t}px !important; height: ${n}px !important; top: ${o}px !important; left: ${a}px !important; } `),()=>{document.head.removeChild(l)}},[e]),n.createElement(u,{isPresent:e,childRef:r,sizeRef:s},n.cloneElement(t,{ref:r}))}let c=({children:t,initial:e,isPresent:i,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:u})=>{let c=(0,l.h)(d),p=(0,n.useId)(),m=(0,n.useMemo)(()=>({id:p,initial:e,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(c.set(t,!0),c.values()))if(!e)return;r&&r()},register:t=>(c.set(t,!1),()=>c.delete(t))}),o?void 0:[i]);return(0,n.useMemo)(()=>{c.forEach((t,e)=>c.set(e,!1))},[i]),n.useEffect(()=>{i||c.size||!r||r()},[i]),"popLayout"===u&&(t=n.createElement(h,{isPresent:i},t)),n.createElement(a.O.Provider,{value:m},t)};function d(){return new Map}var p=i(5364),m=i(5487);let f=t=>t.key||"",v=({children:t,custom:e,initial:i=!0,onExitComplete:a,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:h="sync"})=>{var d;(0,m.k)(!l,"Replace exitBeforeEnter with mode='wait'");let v=(0,n.useContext)(p.p).forceRender||function(){let t=s(),[e,i]=(0,n.useState)(0),r=(0,n.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,n.useCallback)(()=>o.Wi.postRender(r),[r]),e]}()[0],g=s(),y=function(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}(t),x=y,P=(0,n.useRef)(new Map).current,b=(0,n.useRef)(x),w=(0,n.useRef)(new Map).current,A=(0,n.useRef)(!0);if((0,r.L)(()=>{A.current=!1,function(t,e){t.forEach(t=>{let i=f(t);e.set(i,t)})}(y,w),b.current=x}),d=()=>{A.current=!0,w.clear(),P.clear()},(0,n.useEffect)(()=>()=>d(),[]),A.current)return n.createElement(n.Fragment,null,x.map(t=>n.createElement(c,{key:f(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u,mode:h},t)));x=[...x];let T=b.current.map(f),S=y.map(f),C=T.length;for(let t=0;t{if(-1!==S.indexOf(i))return;let r=w.get(i);if(!r)return;let s=T.indexOf(i),o=t;o||(o=n.createElement(c,{key:f(r),isPresent:!1,onExitComplete:()=>{P.delete(i);let t=Array.from(w.keys()).filter(t=>!S.includes(t));if(t.forEach(t=>w.delete(t)),b.current=y.filter(e=>{let n=f(e);return n===i||t.includes(n)}),!P.size){if(!1===g.current)return;v(),a&&a()}},custom:e,presenceAffectsLayout:u,mode:h},r),P.set(i,o)),x.splice(s,0,o)}),x=x.map(t=>{let e=t.key;return P.has(e)?t:n.createElement(c,{key:f(t),isPresent:!0,presenceAffectsLayout:u,mode:h},t)}),n.createElement(n.Fragment,null,P.size?x:x.map(t=>(0,n.cloneElement)(t)))}},5364:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(7294).createContext)({})},6014:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(7294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(7294).createContext)(null)},7255:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(415),r=i(5129);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},415: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},5129:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},2074: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(1662);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;ii=!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)},1218:function(t,e,i){let n;i.d(e,{E:function(){return nF}});var r,s,o=i(7294),a=i(6014);let l=(0,o.createContext)({});var u=i(240),h=i(8868);let c=(0,o.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p="data-"+d("framerAppearId");function m(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function f(t){return"string"==typeof t||Array.isArray(t)}function v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function x(t){return v(t.animate)||y.some(e=>f(t[e]))}function P(t){return!!(x(t)||t.variants)}function b(t){return Array.isArray(t)?t.join(" "):t}let w={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"]},A={};for(let t in w)A[t]={isEnabled:e=>w[t].some(t=>!!e[t])};var T=i(1741),S=i(5364);let C=(0,o.createContext)({}),V=Symbol.for("motionComponentSymbol"),E=["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 M(t){if("string"!=typeof t||t.includes("-"));else if(E.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let k={},D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R=new Set(D);function L(t,{layout:e,layoutId:i}){return R.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!k[t]||"opacity"===t)}var j=i(406);let F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B=D.length;var O=i(7630);let W=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var $=i(1649),I=i(6190);let U={...$.Rx,transform:Math.round},N={borderWidth:I.px,borderTopWidth:I.px,borderRightWidth:I.px,borderBottomWidth:I.px,borderLeftWidth:I.px,borderRadius:I.px,radius:I.px,borderTopLeftRadius:I.px,borderTopRightRadius:I.px,borderBottomRightRadius:I.px,borderBottomLeftRadius:I.px,width:I.px,maxWidth:I.px,height:I.px,maxHeight:I.px,size:I.px,top:I.px,right:I.px,bottom:I.px,left:I.px,padding:I.px,paddingTop:I.px,paddingRight:I.px,paddingBottom:I.px,paddingLeft:I.px,margin:I.px,marginTop:I.px,marginRight:I.px,marginBottom:I.px,marginLeft:I.px,rotate:I.RW,rotateX:I.RW,rotateY:I.RW,rotateZ:I.RW,scale:$.bA,scaleX:$.bA,scaleY:$.bA,scaleZ:$.bA,skew:I.RW,skewX:I.RW,skewY:I.RW,distance:I.px,translateX:I.px,translateY:I.px,translateZ:I.px,x:I.px,y:I.px,z:I.px,perspective:I.px,transformPerspective:I.px,opacity:$.Fq,originX:I.$C,originY:I.$C,originZ:I.px,zIndex:U,fillOpacity:$.Fq,strokeOpacity:$.Fq,numOctaves:U};function z(t,e,i,n){let{style:r,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if((0,O.f9)(t)){s[t]=i;continue}let n=N[t],c=W(i,n);if(R.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(n.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):r[t]=c}if(!e.transform&&(l||n?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},n,r){let s="";for(let e=0;e({style:{},transform:{},transformOrigin:{},vars:{}});function H(t,e,i){for(let n in e)(0,j.i)(e[n])||L(n,i)||(t[n]=e[n])}let X=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 Y(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||X.has(t)}let q=t=>!Y(t);try{(r=require("@emotion/is-prop-valid").default)&&(q=t=>t.startsWith("on")?!Y(t):r(t))}catch(t){}function G(t,e,i){return"string"==typeof t?t:I.px.transform(e+i*t)}let K={offset:"stroke-dashoffset",array:"stroke-dasharray"},_={offset:"strokeDashoffset",array:"strokeDasharray"};function J(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(z(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==s||m.transform)&&(m.transformOrigin=function(t,e,i){let n=G(e,t.x,t.width),r=G(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==n&&(p.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?K:_;t[s.offset]=I.px.transform(-n);let o=I.px.transform(e),a=I.px.transform(i);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let Q=()=>({...Z(),attrs:{}}),tt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function te(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])}let ti=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tn(t,e,i,n){for(let i in te(t,e,void 0,n),e.attrs)t.setAttribute(ti.has(i)?i:d(i),e.attrs[i])}function tr(t,e){let{style:i}=t,n={};for(let r in i)((0,j.i)(i[r])||e.style&&(0,j.i)(e.style[r])||L(r,t))&&(n[r]=i[r]);return n}function ts(t,e){let i=tr(t,e);for(let n in t)((0,j.i)(t[n])||(0,j.i)(e[n]))&&(i[-1!==D.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}function to(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}var ta=i(6681);let tl=t=>Array.isArray(t),tu=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),th=t=>tl(t)?t[t.length-1]||0:t;function tc(t){let e=(0,j.i)(t)?t.get():t;return tu(e)?e.toValue():e}let td=t=>(e,i)=>{let n=(0,o.useContext)(l),r=(0,o.useContext)(u.O),s=()=>(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]=tc(s[t]);let{initial:o,animate:a}=t,l=x(t),u=P(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&&!v(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=to(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,r);return i?s():(0,ta.h)(s)};var tp=i(2074);let tm={useVisualState:td({scrapeMotionValuesFromProps:ts,createRenderState:Q,onMount:(t,e,{renderState:i,latestValues:n})=>{tp.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}}}),tp.Wi.render(()=>{J(i,n,{enableHardwareAcceleration:!1},tt(e.tagName),t.transformTemplate),tn(e,i)})}})},tf={useVisualState:td({scrapeMotionValuesFromProps:tr,createRenderState:Z})};function tv(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tg=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ty(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tx=t=>e=>tg(e)&&t(e,ty(e));function tP(t,e,i,n){return tv(t,e,tx(i),n)}var tb=i(3624);function tw(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tA=tw("dragHorizontal"),tT=tw("dragVertical");function tS(t){let e=!1;if("y"===t)e=tT();else if("x"===t)e=tA();else{let t=tA(),i=tT();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tC(){let t=tS(!0);return!t||(t(),!1)}class tV{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tE(t,e){let i="onHover"+(e?"Start":"End");return tP(t.current,"pointer"+(e?"enter":"leave"),(n,r)=>{if("touch"===n.pointerType||tC())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tp.Wi.update(()=>s[i](n,r))},{passive:!t.getProps()[i]})}class tM extends tV{mount(){this.unmount=(0,tb.z)(tE(this.node,!0),tE(this.node,!1))}unmount(){}}class tk extends tV{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,tb.z)(tv(this.node.current,"focus",()=>this.onFocus()),tv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tD=(t,e)=>!!e&&(t===e||tD(t,e.parentElement));var tR=i(1662);function tL(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,ty(i))}class tj extends tV{constructor(){super(...arguments),this.removeStartListeners=tR.Z,this.removeEndListeners=tR.Z,this.removeAccessibleListeners=tR.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=tP(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();tp.Wi.update(()=>{r||tD(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=tP(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tb.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tv(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tv(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tL("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tp.Wi.update(()=>i(t,e))})}),tL("down",(t,e)=>{this.startPress(t,e)}))}),e=tv(this.node.current,"blur",()=>{this.isPressing&&tL("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tb.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&&tp.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),!tC()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tp.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tP(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tv(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tb.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tF=new WeakMap,tB=new WeakMap,tO=t=>{let e=tF.get(t.target);e&&e(t)},tW=t=>{t.forEach(tO)},t$={some:0,all:1};class tI extends tV{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:t$[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;tB.has(i)||tB.set(i,{});let n=tB.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(tW,{root:t,...e})),n[r]}(e);return tF.set(t,i),n.observe(t),()=>{tF.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(){}}function tU(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;ne[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}var tz=i(5487),tZ=i(6917);let tH={current:!1},tX=t=>Array.isArray(t)&&"number"==typeof t[0],tY=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tq={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tY([0,.65,.55,1]),circOut:tY([.55,0,1,.45]),backIn:tY([.31,.01,.66,-.59]),backOut:tY([.33,1.53,.69,.99])};var tG=i(72);let tK=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===n&&(n=s()),n)),t_=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tJ=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&tq[e]||tX(e)||Array.isArray(e)&&e.every(t))}(e.ease),tQ={type:"spring",stiffness:500,damping:25,restSpeed:10},t0=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),t1={type:"keyframes",duration:.8},t2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t5=(t,{keyframes:e})=>e.length>2?t1:R.has(t)?t.startsWith("scale")?t0(e[1]):tQ:t2;var t3=i(1550);let t4=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(t3.P.test(e)||"0"===e)&&!e.startsWith("url("));var t6=i(6430);let t9=new Set(["brightness","contrast","saturate","opacity"]);function t8(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(t6.KP)||[];if(!n)return t;let r=i.replace(n,""),s=t9.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let t7=/([a-z-]*)\(.*?\)/g,et={...t3.P,getAnimatableNone:t=>{let e=t.match(t7);return e?e.map(t8).join(" "):t}};var ee=i(5385);let ei={...N,color:ee.$,backgroundColor:ee.$,outlineColor:ee.$,fill:ee.$,stroke:ee.$,borderColor:ee.$,borderTopColor:ee.$,borderRightColor:ee.$,borderBottomColor:ee.$,borderLeftColor:ee.$,filter:et,WebkitFilter:et},en=t=>ei[t];function er(t,e){let i=en(t);return i!==et&&(i=t3.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let es=t=>/^0[^.\s]+$/.test(t);function eo(t,e){return t[e]||t.default||t}let ea={skipAnimations:!1},el=(t,e,i,n={})=>r=>{let s=eo(n,t)||{},o=s.delay||n.delay||0,{elapsed:a=0}=n;a-=(0,tZ.w)(o);let l=function(t,e,i,n){let r,s;let o=t4(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{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function({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}(s)&&(p={...p,...t5(t,p)}),p.duration&&(p.duration=(0,tZ.w)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,tZ.w)(p.repeatDelay)),!c||!d||tH.current||!1===s.type||ea.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:tR.Z,pause:tR.Z,stop:tR.Z,then:t=>(t(),Promise.resolve()),cancel:tR.Z,complete:tR.Z});return e?(0,tG.y)({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(tH.current?{...p,delay:0}:p);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:n,...r}){let s,o;if(!(tK()&&t_.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:p}=r;if(tJ(e,r)){let t=(0,tG.y)({...r,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;p=void 0,h=i,c=n-10,d="linear"}let m=function(t,e,i,{delay:n=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return tX(e)?tY(e):Array.isArray(e)?e.map(t):tq[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...r,duration:c,ease:d,times:p}),f=()=>{l=!1,m.cancel()},v=()=>{l=!0,tp.Wi.update(f),s(),u()};return m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let n=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[n]}(h,r)),n&&n(),v())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tR.Z),get time(){return(0,tZ.X)(m.currentTime||0)},set time(newTime){m.currentTime=(0,tZ.w)(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return(0,tZ.X)(c)},play:()=>{a||(m.play(),(0,tp.Pn)(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let i=(0,tG.y)({...r,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}v()},complete:()=>{l||m.finish()},cancel:v}}(e,t,p);if(i)return i}return(0,tG.y)(p)};function eu(t){return!!((0,j.i)(t)&&t.add)}let eh=t=>/^\-?\d*\.?\d+$/.test(t);var ec=i(3234);let ed=t=>e=>e.test(t),ep=[$.Rx,I.px,I.aQ,I.RW,I.vw,I.vh,{test:t=>"auto"===t,parse:t=>t}],em=t=>ep.find(ed(t)),ef=[...ep,ee.$,t3.P],ev=t=>ef.find(ed(t));function eg(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(s=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e),r=a[e];if(!n||void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let o={delay:i,elapsed:0,...eo(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[p];if(i){let t=window.HandoffAppearAnimations(i,e,n,tp.Wi);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;tl.remove(e))),u.push(d)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=tN(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){let i=th(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,ec.BX)(i))}}(t,o)}),u}function ey(t,e,i={}){let n=tN(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(eg(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(ex).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(ey(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 ex(t,e){return t.sortNodePosition(e)}let eP=[...g].reverse(),eb=g.length;function ew(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class eA extends tV{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=>ey(t,e,i)));else if("string"==typeof e)n=ey(t,e,i);else{let r="function"==typeof e?tN(t,e,i.custom):e;n=Promise.all(eg(t,r,i))}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:ew(!0),whileInView:ew(),whileHover:ew(),whileTap:ew(),whileDrag:ew(),whileFocus:ew(),exit:ew()},n=!0,r=(e,i)=>{let n=tN(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={},d=1/0;for(let e=0;ed&&x),A=!1,T=Array.isArray(y)?y:[y],S=T.reduce(r,{});!1===P&&(S={});let{prevResolvedValues:C={}}=g,V={...C,...S},E=t=>{w=!0,h.has(t)&&(A=!0,h.delete(t)),g.needsAnimating[t]=!0};for(let t in V){let e=S[t],i=C[t];if(!c.hasOwnProperty(t))(tl(e)&&tl(i)?tU(e,i):e===i)?void 0!==e&&h.has(t)?E(t):g.protectedKeys[t]=!0:void 0!==e?E(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(c={...c,...S}),n&&t.blockInitialAnimation&&(w=!1),w&&(!b||A)&&u.push(...T.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();this.unmount(),v(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 eT=0;class eS extends tV{constructor(){super(...arguments),this.id=eT++}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(){}}let eC=(t,e)=>Math.abs(t-e);class eV{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=ek(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(eC(t.x,e.x)**2+eC(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tp.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=eE(e,this.transformPagePoint),tp.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=ek("pointercancel"===t.type?this.lastMoveEventInfo:eE(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!tg(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=eE(ty(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tp.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,ek(s,this.history)),this.removeListeners=(0,tb.z)(tP(this.contextWindow,"pointermove",this.handlePointerMove),tP(this.contextWindow,"pointerup",this.handlePointerUp),tP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tp.Pn)(this.updatePoint)}}function eE(t,e){return e?{point:e(t.point)}:t}function eM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ek({point:t},e){return{point:t,delta:eM(t,eD(e)),offset:eM(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=eD(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,tZ.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,tZ.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 eD(t){return t[t.length-1]}var eR=i(3967),eL=i(22);function ej(t){return t.max-t.min}function eF(t,e=0,i=.01){return Math.abs(t-e)<=i}function eB(t,e,i,n=.5){t.origin=n,t.originPoint=(0,eL.C)(e.min,e.max,t.origin),t.scale=ej(i)/ej(e),(eF(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,eL.C)(i.min,i.max,t.origin)-t.originPoint,(eF(t.translate)||isNaN(t.translate))&&(t.translate=0)}function eO(t,e,i,n){eB(t.x,e.x,i.x,n?n.originX:void 0),eB(t.y,e.y,i.y,n?n.originY:void 0)}function eW(t,e,i){t.min=i.min+e.min,t.max=t.min+ej(e)}function e$(t,e,i){t.min=e.min-i.min,t.max=t.min+ej(e)}function eI(t,e,i){e$(t.x,e.x,i.x),e$(t.y,e.y,i.y)}var eU=i(4169);function eN(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 ez(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),eY=()=>({x:eX(),y:eX()}),eq=()=>({min:0,max:0}),eG=()=>({x:eq(),y:eq()});function eK(t){return[t("x"),t("y")]}function e_({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eJ(t){return void 0===t||1===t}function eQ({scale:t,scaleX:e,scaleY:i}){return!eJ(t)||!eJ(e)||!eJ(i)}function e0(t){return eQ(t)||e1(t)||t.z||t.rotate||t.rotateX||t.rotateY}function e1(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e2(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e5(t,e=0,i=1,n,r){t.min=e2(t.min,e,i,n,r),t.max=e2(t.max,e,i,n,r)}function e3(t,{x:e,y:i}){e5(t.x,e.translate,e.scale,e.originPoint),e5(t.y,i.translate,i.scale,i.originPoint)}function e4(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function e6(t,e){t.min=t.min+e,t.max=t.max+e}function e9(t,e,[i,n,r]){let s=void 0!==e[r]?e[r]:.5,o=(0,eL.C)(t.min,t.max,s);e5(t,e[i],e[n],o,e.scale)}let e8=["x","scaleX","originX"],e7=["y","scaleY","originY"];function it(t,e){e9(t.x,e,e8),e9(t.y,e,e7)}function ie(t,e){return e_(function(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}}(t.getBoundingClientRect(),e))}let ii=({current:t})=>t?t.ownerDocument.defaultView:null,ir=new WeakMap;class is{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=eG(),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 eV(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ty(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tS(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),eK(t=>{let e=this.getAxisMotionValue(t).get()||0;if(I.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=ej(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tp.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:()=>eK(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:ii(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&&tp.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||!io(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&&ti&&(t=n?(0,eL.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&&m(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:eN(t.x,i,r),y:eN(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:eZ(t,"left","right"),y:eZ(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eK(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||!m(e))return!1;let n=e.current;(0,tz.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=function(t,e,i){let n=ie(t,i),{scroll:r}=e;return r&&(e6(n.x,r.offset.x),e6(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:ez((t=r.layout.layoutBox).x,s.x),y:ez(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e_(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(eK(o=>{if(!io(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(el(t,i,0,e))}stopAnimation(){eK(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eK(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){eK(e=>{let{drag:i}=this.getProps();if(!io(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,eL.C)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!m(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eK(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=ej(t),r=ej(e);return r>n?i=(0,eR.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,eR.Y)(t.min,t.max-r,e.min)),(0,eU.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(),eK(e=>{if(!io(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,eL.C)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;ir.set(this.visualElement,this);let t=tP(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();m(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=tv(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eK(e=>{let i=this.getAxisMotionValue(e);i&&(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 io(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class ia extends tV{constructor(t){super(t),this.removeGroupControls=tR.Z,this.removeListeners=tR.Z,this.controls=new is(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tR.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let il=t=>(e,i)=>{t&&tp.Wi.update(()=>t(e,i))};class iu extends tV{constructor(){super(...arguments),this.removePointerDownListener=tR.Z}onPointerDown(t){this.session=new eV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ii(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:il(t),onStart:il(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tp.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=tP(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 ih={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ic(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let id={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!I.px.test(t))return t;t=parseFloat(t)}let i=ic(t,e.target.x),n=ic(t,e.target.y);return`${i}% ${n}%`}};class ip extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(k,iv),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()})),ih.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()||tp.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 im(t){let[e,i]=function(){let t=(0,o.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,o.useId)();return(0,o.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),n=(0,o.useContext)(S.p);return o.createElement(ip,{...t,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(C),isPresent:e,safeToRemove:i})}let iv={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t3.P.parse(t);if(n.length>5)return t;let r=t3.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,eL.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 ig=i(1560),iy=i(7255);let ix=["TopLeft","TopRight","BottomLeft","BottomRight"],iP=ix.length,ib=t=>"string"==typeof t?parseFloat(t):t,iw=t=>"number"==typeof t||I.px.test(t);function iA(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iT=iC(0,.5,iy.Bn),iS=iC(.5,.95,tR.Z);function iC(t,e,i){return n=>ne?1:i((0,eR.Y)(t,e,n))}function iV(t,e){t.min=e.min,t.max=e.max}function iE(t,e){iV(t.x,e.x),iV(t.y,e.y)}function iM(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function ik(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(I.aQ.test(e)&&(e=parseFloat(e),e=(0,eL.C)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,eL.C)(s.min,s.max,n);t===s&&(a-=e),t.min=iM(t.min,e,i,a,r),t.max=iM(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let iD=["x","scaleX","originX"],iR=["y","scaleY","originY"];function iL(t,e,i,n){ik(t.x,e,iD,i?i.x:void 0,n?n.x:void 0),ik(t.y,e,iR,i?i.y:void 0,n?n.y:void 0)}function ij(t){return 0===t.translate&&1===t.scale}function iF(t){return ij(t.x)&&ij(t.y)}function iB(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 iO(t){return ej(t.x)/ej(t.y)}var iW=i(10);class i${constructor(){this.members=[]}add(t){(0,iW.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,iW.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)}}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 iI(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"}let iU=(t,e)=>t.depth-e.depth;class iN{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iW.y4)(this.children,t),this.isDirty=!0}remove(t){(0,iW.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iU),this.isDirty=!1,this.children.forEach(t)}}let iz=["","X","Y","Z"],iZ={visibility:"hidden"},iH=0,iX={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iY({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=iH++,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,iX.totalNodes=iX.resolvedTargetDeltas=iX.recalculatedProjection=0,this.nodes.forEach(iK),this.nodes.forEach(i5),this.nodes.forEach(i3),this.nodes.forEach(i_),window.MotionDebug&&window.MotionDebug.record(iX)},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(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,tp.Pn)(n),t(r-250))};return tp.Wi.read(n,!0),()=>(0,tp.Pn)(n)}(n,0),ih.hasAnimatedSinceResize&&(ih.hasAnimatedSinceResize=!1,this.nodes.forEach(i2))})}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()||nt,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!iB(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={...eo(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||i2(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,tp.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.forEach(i4),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(iJ),this.sharedNodes.forEach(i6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tp.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tp.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{let n=e/1e3;if(i9(o.x,t.x,n),i9(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m;eI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,i8(p.x,m.x,a.x,n),i8(p.y,m.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=eG()),iE(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,eL.C)(0,void 0!==i.opacity?i.opacity:1,iT(n)),t.opacityExit=(0,eL.C)(void 0!==e.opacity?e.opacity:1,0,iS(n))):s&&(t.opacity=(0,eL.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r{ih.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=(0,j.i)(0)?0:(0,ec.BX)(0);return n.start(el("",n,1e3,i)),n.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:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&nr(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||eG();let e=ej(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=ej(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}iE(e,i),it(e,r),eO(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new i$),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{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(iQ),this.root.sharedNodes.clear()}}}function iq(t){t.updateLayout()}function iG(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?eK(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=ej(n);n.min=e[t].min,n.max=n.min+r}):nr(r,i.layoutBox,e)&&eK(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=ej(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=eY();eO(o,e,i.layoutBox);let a=eY();s?eO(a,t.applyTransform(n,!0),i.measuredBox):eO(a,e,i.layoutBox);let l=!iF(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=eG();eI(o,i.layoutBox,r.layoutBox);let a=eG();eI(a,e,s.layoutBox),iB(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 iK(t){iX.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 i_(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iJ(t){t.clearSnapshot()}function iQ(t){t.clearMeasurements()}function i0(t){t.isLayoutDirty=!1}function i1(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function i2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function i5(t){t.resolveTargetDelta()}function i3(t){t.calcProjection()}function i4(t){t.resetRotation()}function i6(t){t.removeLeadSnapshot()}function i9(t,e,i){t.translate=(0,eL.C)(e.translate,0,i),t.scale=(0,eL.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function i8(t,e,i,n){t.min=(0,eL.C)(e.min,i.min,n),t.max=(0,eL.C)(e.max,i.max,n)}function i7(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nt={duration:.45,ease:[.4,0,.1,1]},ne=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ni=ne("applewebkit/")&&!ne("chrome/")?Math.round:tR.Z;function nn(t){t.min=ni(t.min),t.max=ni(t.max)}function nr(t,e,i){return"position"===t||"preserve-aspect"===t&&!eF(iO(e),iO(i),.2)}let ns=iY({attachResizeListener:(t,e)=>tv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),no={current:void 0},na=iY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!no.current){let t=new ns({});t.mount(window),t.setOptions({layoutScroll:!0}),no.current=t}return no.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),nl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nu(t,e,i=1){(0,tz.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=nl.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return eh(t)?parseFloat(t):t}return(0,O.tm)(r)?nu(r,e,i+1):r}let nh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nc=t=>nh.has(t),nd=t=>Object.keys(t).some(nc),np=t=>t===$.Rx||t===I.px,nm=(t,e)=>parseFloat(t.split(", ")[e]),nf=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return nm(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?nm(e[1],t):0}},nv=new Set(["x","y","z"]),ng=D.filter(t=>!nv.has(t)),ny={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:nf(4,13),y:nf(5,14)};ny.translateX=ny.x,ny.translateY=ny.y;let nx=(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]=ny[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]=ny[i](a,r)}),t},nP=(t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(nc),s=[],o=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],c=em(h),d=e[r];if(tl(d)){let t=d.length,e=null===d[0]?1:0;c=em(h=d[e]);for(let i=e;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),o=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],u.jump(d))}}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=nx(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),T.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},nb=(t,e,i,n)=>{var r,s;let o=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=nu(e,n);i&&t.set(i)}),e){let t=e[r];if(!(0,O.tm)(t))continue;let s=nu(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=o.target,n=o.transitionEnd,r=e,s=n,nd(r)?nP(t,r,i,s):{target:r,transitionEnd:s}},nw={current:null},nA={current:!1},nT=new WeakMap,nS=Object.keys(A),nC=nS.length,nV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nE=y.length;class nM{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=()=>tp.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=x(e),this.isVariantNode=P(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),eu(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,nT.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)),nA.current||function(){if(nA.current=!0,T.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nw.current=t.matches;t.addListener(e),e()}else nw.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nw.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nT.delete(this.current),this.projection&&this.projection.unmount(),(0,tp.Pn)(this.notifyUpdate),(0,tp.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=R.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tp.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;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):eG()}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,ec.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=to(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 ig.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nk extends nM{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:n},r){let s=function(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}(i,t||{},this);if(n&&(e&&(e=n(e)),i&&(i=n(i)),s&&(s=n(s))),r){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){te(t,e,i,n)}}class nR extends nk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(R.has(e)){let t=en(e);return t&&t.default||0}return e=ti.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return eG()}scrapeMotionValuesFromProps(t,e){return ts(t,e)}build(t,e,i,n){J(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){tn(t,e,i,n)}mount(t){this.isSVGTag=tt(t.tagName),super.mount(t)}}let nL=(t,e)=>M(t)?new nR(e,{enableHardwareAcceleration:!1}):new nD(e,{enableHardwareAcceleration:!0}),nj={animation:{Feature:eA},exit:{Feature:eS},inView:{Feature:tI},tap:{Feature:tj},focus:{Feature:tk},hover:{Feature:tM},pan:{Feature:iu},drag:{Feature:ia,ProjectionNode:na,MeasureLayout:im},layout:{ProjectionNode:na,MeasureLayout:im}},nF=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){t&&function(t){for(let e in t)A[e]={...A[e],...t[e]}}(t);let s=(0,o.forwardRef)(function(s,d){var v;let g;let y={...(0,o.useContext)(a._),...s,layoutId:function({layoutId:t}){let e=(0,o.useContext)(S.p).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:P}=y,w=function(t){let{initial:e,animate:i}=function(t,e){if(x(t)){let{initial:e,animate:i}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(l));return(0,o.useMemo)(()=>({initial:e,animate:i}),[b(e),b(i)])}(s),A=n(s,P);if(!P&&T.j){w.visualElement=function(t,e,i,n){let{visualElement:r}=(0,o.useContext)(l),s=(0,o.useContext)(c),d=(0,o.useContext)(u.O),m=(0,o.useContext)(a._).reducedMotion,f=(0,o.useRef)();n=n||s.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:r,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));let v=f.current;(0,o.useInsertionEffect)(()=>{v&&v.update(i,d)});let g=(0,o.useRef)(!!(i[p]&&!window.HandoffComplete));return(0,h.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,o.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(r,A,y,e);let i=(0,o.useContext)(C),n=(0,o.useContext)(c).strict;w.visualElement&&(g=w.visualElement.loadFeatures(y,n,t,i))}return o.createElement(l.Provider,{value:w},g&&w.visualElement?o.createElement(g,{visualElement:w.visualElement,...y}):null,i(r,s,(v=w.visualElement,(0,o.useCallback)(t=>{t&&A.mount&&A.mount(t),v&&(t?v.mount(t):v.unmount()),d&&("function"==typeof d?d(t):m(d)&&(d.current=t))},[v])),A,P,w.visualElement))});return s[V]=r,s}(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{...M(t)?tm:tf,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let a=(M(e)?function(t,e,i,n){let r=(0,o.useMemo)(()=>{let i=Q();return J(i,e,{enableHardwareAcceleration:!1},tt(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};H(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,i){let n={},r=function(t,e,i){let n=t.style||{},r={};return H(r,n,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,o.useMemo)(()=>{let n=Z();return z(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(r):r}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n})(i,r,s,e),l={...function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(q(r)||!0===i&&Y(r)||!e&&!Y(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,o.useMemo)(()=>(0,j.i)(u)?u.get():u,[u]);return(0,o.createElement)(e,{...l,children:h})}}(e),createVisualElement:n,Component:t}})(t,e,nj,nL))},7630: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*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},10: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}})},4169:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>Math.min(Math.max(i,t),e)},5487:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(1662);let r=n.Z,s=n.Z},4606:function(t,e,i){i.d(e,{s:function(){return C}});var n=i(5487),r=i(5385),s=i(4169),o=i(22);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(6382),u=i(819),h=i(3184);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 m(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 f=(t,e)=>{let i=m(t),n=m(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(3624),g=i(1550);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)?f(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{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(3967),T=i(1662);let S=(t,e)=>i=>(0,o.C)(t,e,i);function C(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)?f: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{let i=0;if(h>1)for(;ic((0,s.u)(t[0],t[l-1],e)):c}},1741:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},22:function(t,e,i){i.d(e,{C:function(){return n}});let n=(t,e,i)=>-i*t+i*e+t},1662:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},533:function(t,e,i){i.d(e,{Y:function(){return s}});var n=i(22),r=i(3967);function s(t){let e=[0];return!function(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))}}(e,t.length-1),e}},3624:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},3967: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}},1560:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(10);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;r1e3*t,r=t=>t/1e3},6681:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(7294);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(7294);let r=i(1741).j?n.useLayoutEffect:n.useEffect},3038:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},3234:function(t,e,i){i.d(e,{BX:function(){return u},S1:function(){return a}});var n=i(1560),r=i(3038),s=i(2074);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)}},6382:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(819);let r={test:(0,i(8834).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}},3184:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(1649),r=i(6190),s=i(6430),o=i(8834);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))+")"}},5385:function(t,e,i){i.d(e,{$:function(){return a}});var n=i(6430),r=i(6382),s=i(3184),o=i(819);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)}},819:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(4169),r=i(1649),s=i(6430),o=i(8834);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))+")"}},8834:function(t,e,i){i.d(e,{d:function(){return s},i:function(){return r}});var n=i(6430);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}}},1550:function(t,e,i){i.d(e,{P:function(){return v},V:function(){return d}});var n=i(7630),r=i(1662),s=i(5385),o=i(1649),a=i(6430);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 m(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"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:m,getAnimatableNone:function(t){let e=p(t);return m(t)(e.map(f))}}},1649:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(4169);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}},6190: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(6430);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)}},6430: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}},406:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)}}]);