1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7342],{4394:function(t,e,n){"use strict";n.d(e,{K:function(){return i},k:function(){return r}});var i=function(){},r=function(){}},3454:function(t,e,n){"use strict";var i,r;t.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(7663)},7663:function(t){!function(){var e={229:function(t){var e,n,i,r=t.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(i){n=s}}();var l=[],u=!1,h=-1;function c(){u&&i&&(u=!1,i.length?l=i.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(c);u=!0;for(var e=l.length;e;){for(i=l,l=[];++h<e;)i&&i[h].run();h=-1,e=l.length}i=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(i){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var r=i(229);t.exports=r}()},655:function(t,e,n){"use strict";n.d(e,{_T:function(){return i}});function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}},5364:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});var i=n(7294);let r=(0,i.createContext)({})},6014:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});var i=n(7294);let r=(0,i.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(7294);let r=(0,i.createContext)(null)},7342:function(t,e,n){"use strict";n.d(e,{E:function(){return iQ}});var i,r,o,s,a,l=n(7294),u=n(6014);let h=(0,l.createContext)({});var c=n(240),d=n(8868);let p=(0,l.createContext)({strict:!1});function f(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return"object"==typeof t&&"function"==typeof t.start}let g=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function y(t){return v(t.animate)||g.some(e=>m(t[e]))}function x(t){return Boolean(y(t)||t.variants)}function b(t){return Array.isArray(t)?t.join(" "):t}let w=t=>({isEnabled:e=>t.some(t=>!!e[t])}),P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};var T=n(1741),A=n(6681);let V={hasAnimatedSinceResize:!0,hasEverUpdated:!1},E=1;var S=n(5364);class C extends l.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}let M=(0,l.createContext)({}),R=Symbol.for("motionComponentSymbol"),B=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","text","tspan","use","view"];function k(t){if("string"!=typeof t||t.includes("-"));else if(B.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let L={},D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(D);function O(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!L[t]||"opacity"===t)}var F=n(406);let U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I=(t,e)=>D.indexOf(t)-D.indexOf(e);function $(t){return t.startsWith("--")}let N=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var z=n(2969),Y=n(1248);let W={...Y.Rx,transform:Math.round},H={borderWidth:z.px,borderTopWidth:z.px,borderRightWidth:z.px,borderBottomWidth:z.px,borderLeftWidth:z.px,borderRadius:z.px,radius:z.px,borderTopLeftRadius:z.px,borderTopRightRadius:z.px,borderBottomRightRadius:z.px,borderBottomLeftRadius:z.px,width:z.px,maxWidth:z.px,height:z.px,maxHeight:z.px,size:z.px,top:z.px,right:z.px,bottom:z.px,left:z.px,padding:z.px,paddingTop:z.px,paddingRight:z.px,paddingBottom:z.px,paddingLeft:z.px,margin:z.px,marginTop:z.px,marginRight:z.px,marginBottom:z.px,marginLeft:z.px,rotate:z.RW,rotateX:z.RW,rotateY:z.RW,rotateZ:z.RW,scale:Y.bA,scaleX:Y.bA,scaleY:Y.bA,scaleZ:Y.bA,skew:z.RW,skewX:z.RW,skewY:z.RW,distance:z.px,translateX:z.px,translateY:z.px,translateZ:z.px,x:z.px,y:z.px,z:z.px,perspective:z.px,transformPerspective:z.px,opacity:Y.Fq,originX:z.$C,originY:z.$C,originZ:z.px,zIndex:W,fillOpacity:Y.Fq,strokeOpacity:Y.Fq,numOctaves:W};function Z(t,e,n,i){let{style:r,vars:o,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,h=!1,c=!0;for(let d in e){let p=e[d];if($(d)){o[d]=p;continue}let f=H[d],m=N(p,f);if(j.has(d)){if(u=!0,s[d]=m,a.push(d),!c)continue;p!==(f.default||0)&&(c=!1)}else d.startsWith("origin")?(h=!0,l[d]=m):r[d]=m}if(!e.transform&&(u||i?r.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0}
1,r,o){let s="";for(let a of(e.sort(I),e))s+=`${U[a]||a}(${t[a]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(t,r?"":s):i&&r&&(s="none"),s}(t,n,c,i):r.transform&&(r.transform="none")),h){let{originX:v="50%",originY:g="50%",originZ:y=0}=l;r.transformOrigin=`${v} ${g} ${y}`}}let q=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function X(t,e,n){for(let i in e)(0,F.i)(e[i])||O(i,n)||(t[i]=e[i])}function G(t,e,n){let i={},r=function(t,e,n){let i=t.style||{},r={};return X(r,i,t),Object.assign(r,function({transformTemplate:t},e,n){return(0,l.useMemo)(()=>{let i=q();return Z(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),i.style=r,i}let K=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function _(t){return K.has(t)}let J=t=>!_(t);try{(i=require("@emotion/is-prop-valid").default)&&(J=t=>t.startsWith("on")?!_(t):i(t))}catch(Q){}function tt(t,e,n){return"string"==typeof t?t:z.px.transform(e+n*t)}let te={offset:"stroke-dashoffset",array:"stroke-dasharray"},tn={offset:"strokeDashoffset",array:"strokeDasharray"};function ti(t,{attrX:e,attrY:n,originX:i,originY:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},u,h){Z(t,l,u,h),t.attrs=t.style,t.style={};let{attrs:c,style:d,dimensions:p}=t;c.transform&&(p&&(d.transform=c.transform),delete c.transform),p&&(void 0!==i||void 0!==r||d.transform)&&(d.transformOrigin=function(t,e,n){let i=tt(e,t.x,t.width),r=tt(n,t.y,t.height);return`${i} ${r}`}(p,void 0!==i?i:.5,void 0!==r?r:.5)),void 0!==e&&(c.x=e),void 0!==n&&(c.y=n),void 0!==o&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?te:tn;t[o.offset]=z.px.transform(-i);let s=z.px.transform(e),a=z.px.transform(n);t[o.array]=`${s} ${a}`}(c,o,s,a,!1)}let tr=()=>({...q(),attrs:{}});function to(t,e){let n=(0,l.useMemo)(()=>{let n=tr();return ti(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let i={};X(i,t.style,t),n.style={...i,...n.style}}return n}let ts=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ta(t,{style:e,vars:n},i,r){for(let o in Object.assign(t.style,e,r&&r.getProjectionStyles(i)),n)t.style.setProperty(o,n[o])}let tl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function tu(t,e,n,i){for(let r in ta(t,e,void 0,i),e.attrs)t.setAttribute(tl.has(r)?r:ts(r),e.attrs[r])}function th(t){let{style:e}=t,n={};for(let i in e)((0,F.i)(e[i])||O(i,t))&&(n[i]=e[i]);return n}function tc(t){let e=th(t);for(let n in t)if((0,F.i)(t[n])){let i="x"===n||"y"===n?"attr"+n.toUpperCase():n;e[i]=t[n]}return e}function td(t,e,n,i={},r={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),e}let tp=t=>Array.isArray(t),tf=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),tm=t=>tp(t)?t[t.length-1]||0:t;function tv(t){let e=(0,F.i)(t)?t.get():t;return tf(e)?e.toValue():e}let tg=t=>
1(e,n)=>{let i=(0,l.useContext)(h),r=(0,l.useContext)(c.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,r,o){let s={latestValues:function(t,e,n,i){let r={},o=i(t);for(let s in o)r[s]=tv(o[s]);let{initial:a,animate:l}=t,u=y(t),h=x(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?l:a;if(d&&"boolean"!=typeof d&&!v(d)){let p=Array.isArray(d)?d:[d];p.forEach(e=>{let n=td(t,e);if(!n)return;let{transitionEnd:i,transition:o,...s}=n;for(let a in s){let l=s[a];if(Array.isArray(l)){let u=c?l.length-1:0;l=l[u]}null!==l&&(r[a]=l)}for(let h in i)r[h]=i[h]})}return r}(i,r,o,t),renderState:e()};return n&&(s.mount=t=>n(i,t,s)),s})(t,e,i,r);return n?o():(0,A.h)(o)},ty={useVisualState:tg({scrapeMotionValuesFromProps:tc,createRenderState:tr,onMount(t,e,{renderState:n,latestValues:i}){try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(r){n.dimensions={x:0,y:0,width:0,height:0}}ti(n,i,{enableHardwareAcceleration:!1},t.transformTemplate),tu(e,n)}})},tx={useVisualState:tg({scrapeMotionValuesFromProps:th,createRenderState:q})};function tb(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function tw(t,e,n,i){(0,l.useEffect)(()=>{let r=t.current;if(n&&r)return tb(r,e,n,i)},[t,e,n,i])}function tP(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function tT(t){let e=!!t.touches;return e}(r=s||(s={})).Animate="animate",r.Hover="whileHover",r.Tap="whileTap",r.Drag="whileDrag",r.Focus="whileFocus",r.InView="whileInView",r.Exit="exit";let tA={pageX:0,pageY:0};function tV(t,e="page"){return{point:tT(t)?function(t,e="page"){let n=t.touches[0]||t.changedTouches[0],i=n||tA;return{x:i[e+"X"],y:i[e+"Y"]}}(t,e):function(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}(t,e)}}let tE=(t,e=!1)=>{let n=e=>t(e,tV(e));return e?t=>{let e=t instanceof MouseEvent,i=!e||e&&0===t.button;i&&n(t)}:n},tS=()=>T.j&&null===window.onpointerdown,tC=()=>T.j&&null===window.ontouchstart,tM=()=>T.j&&null===window.onmousedown,tR={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tB={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tk(t){if(tS());else if(tC())return tB[t];else if(tM())return tR[t];return t}function tL(t,e,n,i){return tb(t,tk(e),tE(n,"pointerdown"===e),i)}function tD(t,e,n,i){return tw(t,tk(e),n&&tE(n,"pointerdown"===e),i)}function tj(t){let e=null;return()=>{let n=()=>{e=null};return null===e&&(e=t,n)}}let tO=tj("dragHorizontal"),tF=tj("dragVertical");function tU(t){let e=!1;if("y"===t)e=tF();else if("x"===t)e=tO();else{let n=tO(),i=tF();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function tI(){let t=tU(!0);return!t||(t(),!1)}function t$(t,e,n){return(i,r)=>{!(!tP(i)||tI())&&(t.animationState&&t.animationState.setActive(s.Hover,e),n&&n(i,r))}}let tN=(t,e)=>!!e&&(t===e||tN(t,e.parentElement));var tz=n(5411),tY=n(9897),tW=n(9304),tH=n(6034);let tZ=new WeakMap,tq=new WeakMap,tX=t=>{let e=tZ.get(t.target);e&&e(t)},tG=t=>{t.forEach(tX)},tK={some:0,all:1};function t_(t,e,n,{root:i,margin:r,amount:o="some",once:a}){(0,l.useEffect)(()=>{if(!t||!n.current)return;let l={root:null==i?void 0:i.current,rootMargin:r,threshold:"number"==typeof o?o:tK[o]},u=t=>{let{isIntersecting:i}=t;if(e.isInView===i||(e.isInView=i,a&&!i&&e.hasEnteredView))return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(s.InView,i);let r=n.getProps(),o=i?r.onViewportEnter:r.onViewportLeave;o&&o(t)};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;tq.has(n)||tq.set(n,{});let i=tq.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(tG,{root:t,...e})),i[r]}(e);return tZ.set(t,n),i.observe(t),()=>{tZ.delete(t),i.unobserve(t)}}(n.current,l,u)},[t,i,r,o])}function tJ(t,e,n,{fallback:i=!0}){(0,l.useEffect)(()=>{t&&i&&("production"!==tW.O&&(0,tH.O)(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{e.hasEnteredView=!0;let{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(s.InView,!0)}))},[t])}let tQ=t=>e=>(t(e),null),t0={inView:tQ(function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:i,viewport:r={}}){let o=(0,l.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(e||n||i);
1r.once&&o.current.hasEnteredView&&(s=!1);let a="undefined"==typeof IntersectionObserver?tJ:t_;a(s,o.current,t,r)}),tap:tQ(function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:i,visualElement:r}){let o=(0,l.useRef)(!1),a=(0,l.useRef)(null),u={passive:!(e||t||n||f)};function h(){a.current&&a.current(),a.current=null}function c(){return h(),o.current=!1,r.animationState&&r.animationState.setActive(s.Tap,!1),!tI()}function d(e,i){c()&&(tN(r.current,e.target)?t&&t(e,i):n&&n(e,i))}function p(t,e){c()&&n&&n(t,e)}function f(t,n){h(),!o.current&&(o.current=!0,a.current=(0,tY.z)(tL(window,"pointerup",d,u),tL(window,"pointercancel",p,u)),r.animationState&&r.animationState.setActive(s.Tap,!0),e&&e(t,n))}tD(r,"pointerdown",t||e||n||i?f:void 0,u),(0,tz.z)(h)}),focus:tQ(function({whileFocus:t,visualElement:e}){let{animationState:n}=e,i=()=>{n&&n.setActive(s.Focus,!0)},r=()=>{n&&n.setActive(s.Focus,!1)};tw(e,"focus",t?i:void 0),tw(e,"blur",t?r:void 0)}),hover:tQ(function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){tD(i,"pointerenter",t||n?t$(i,!0,t):void 0,{passive:!t}),tD(i,"pointerleave",e||n?t$(i,!1,e):void 0,{passive:!e})})};function t1(){let t=(0,l.useContext)(c.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:i}=t,r=(0,l.useId)();(0,l.useEffect)(()=>i(r),[]);let o=()=>n&&n(r);return!e&&n?[!1,o]:[!0]}function t2(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var t5=n(612),t4=n(9296),t3=n(4735);let t7=t=>1e3*t;var t9=n(4394),t6=n(4710);let t8=(t,e)=>1-3*e+3*t,et=(t,e)=>3*e-6*t,ee=t=>3*t,en=(t,e,n)=>((t8(e,n)*t+et(e,n))*t+ee(e))*t,ei=(t,e,n)=>3*t8(e,n)*t*t+2*et(e,n)*t+ee(e),er={linear:t6.GE,easeIn:t6.YQ,easeInOut:t6.mZ,easeOut:t6.Vv,circIn:t6.Z7,circInOut:t6.X7,circOut:t6.Bn,backIn:t6.G2,backInOut:t6.XL,backOut:t6.CG,anticipate:t6.LU,bounceIn:t6.h9,bounceInOut:t6.yD,bounceOut:t6.gJ},eo=t=>{if(Array.isArray(t)){(0,t9.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,i,r]=t;return function(t,e,n,i){if(t===e&&n===i)return t6.GE;let r=new Float32Array(11);for(let o=0;o<11;++o)r[o]=en(.1*o,t,n);return o=>0===o||1===o?o:en(function(e){let i=0,o=1;for(;10!==o&&r[o]<=e;++o)i+=.1;--o;let s=(e-r[o])/(r[o+1]-r[o]),a=i+.1*s,l=ei(a,t,n);return l>=.001?function(t,e,n,i){for(let r=0;r<8;++r){let o=ei(e,n,i);if(0===o)break;let s=en(e,n,i)-t;e-=s/o}return e}(e,a,t,n):0===l?a:function(t,e,n,i,r){let o,s;let a=0;do(o=en(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<10);return s}(e,i,i+.1,t,n)}(o),e,i)}(e,n,i,r)}return"string"==typeof t?((0,t9.k)(void 0!==er[t],`Invalid easing type '${t}'`),er[t]):t},es=t=>Array.isArray(t)&&"number"!=typeof t[0];var ea=n(8407);let el=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&ea.P.test(e)&&!e.startsWith("url(")),eu=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),eh=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ec=()=>({type:"keyframes",ease:"linear",duration:.3}),ed=t=>({type:"keyframes",duration:.8,values:t}),ep={x:eu,y:eu,z:eu,rotate:eu,rotateX:eu,rotateY:eu,rotateZ:eu,scaleX:eh,scaleY:eh,scale:eh,opacity:ec,backgroundColor:ec,color:ec,default:eh},ef=(t,e)=>({to:e,...(tp(e)?ed:ep[t]||ep.default)(e)});var em=n(6777);let ev=new Set(["brightness","contrast","saturate","opacity"]);function eg(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(em.KP)||[];if(!i)return t;let r=n.replace(i,""),o=ev.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}let ey=/([a-z-]*)\(.*?\)/g,ex=Object.assign(Object.assign({},ea.P),{getAnimatableNone(t){let e=t.match(ey);return e?e.map(eg).join(" "):t}});var eb=n(7405);let ew={...H,color:eb.$,backgroundColor:eb.$,outlineColor:eb.$,fill:eb.$,stroke:eb.$,borderColor:eb.$,borderTopColor:eb.$,borderRightColor:eb.$,borderBottomColor:eb.$,borderLeftColor:eb.$,filter:ex,WebkitFilter:ex},eP=t=>ew[t];function eT(t,e){var n;let i=eP(t);return i!==ex&&(i=ea.P),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}let eA={current:!1};function eV(t,e){let n=performance.now(),i=({timestamp:r})=>{let o=r-n;o>=e&&(t3.qY.read(i),t(o-e))};return t3.ZP.read(i,!0),()=>t3.qY.read(i)}let eE=!1;function eS(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function eC(t){return"number"==typeof t?0:eT("",t)}function eM(t,e){return t[e]||t.default||t}function eR(t,e,n,i={}){return eA.current&&(i={type:!1}),e.start(r=>{let o,s;let a=function(t,e,n,i,r){let o=eM(i,t)||{},s=void 0!==o.from?o.from:e.get(),a=el(t,n);"none"===s&&a&&"string"==typeof n?s=eT(t,n):eS(s)&&"string"==typeof n?s=eC(n):!Array.isArray(n)&&eS(n)&&"string"==typeof s&&(n=eC(s));let l=el(t,s);return(0,t9.K)(l===a,`You are trying to animate ${t} from "${s}" to "${n}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${n} via the \`style\` property.`),l&&a&&!1!==o.type?function(){var i,a;let l={from:s,to:n,velocity:e.getVelocity(),onComplete:r,onUpdate:t=>e.set(t)};return"inertia"===o.type||"decay"===o.type?function({from:t=0,velocity:e=0,min:n,max:i,power:r=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:c,onComplete:d,onStop:p}){let f;function m(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i?n:Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==f||f.stop(),f=(0,t5.j)(Object.assign(Object.assign({},t),{driver:h,onUpdate(e){var n;null==c||c(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p}))}function y(t){g(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},t))}if(m(t))y({from:t,velocity:e,to:v(t)});else{let x,b,w=r*e+t;void 0!==u&&(w=u(w));let P=v(w),T=P===n?-1:1,A=t=>
1{x=b,b=t,e=(0,t4.R)(t-x,(0,t3.$B)().delta),(1===T&&t>P||-1===T&&t<P)&&y({from:t,to:P,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:o,power:r,restDelta:l,modifyTarget:u,onUpdate:m(w)?A:void 0})}return{stop:()=>null==f?void 0:f.stop()}}({...l,...o}):(0,t5.j)({...(i=o,Array.isArray(l.to)&&void 0===i.duration&&(i.duration=.8),Array.isArray((a=l).to)&&null===a.to[0]&&(a.to=[...a.to],a.to[0]=a.from),!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(i)&&(i={...i,...ef(t,l.to)}),{...l,...function({ease:t,times:e,yoyo:n,flip:i,loop:r,...o}){let s={...o};return e&&(s.offset=e),o.duration&&(s.duration=t7(o.duration)),o.repeatDelay&&(s.repeatDelay=t7(o.repeatDelay)),t&&(s.ease=es(t)?t.map(eo):eo(t)),"tween"===o.type&&(s.type="keyframes"),(n||r||i)&&((0,t9.K)(!eE,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),eE=!0,n?s.repeatType="reverse":r?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=r||n||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(i)}
1),onUpdate(t){l.onUpdate(t),o.onUpdate&&o.onUpdate(t)},onComplete(){l.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let t=tm(n);return e.set(t),r(),o.onUpdate&&o.onUpdate(t),o.onComplete&&o.onComplete(),{stop(){}}}}(t,e,n,i,r),l=function(t,e){var n,i;let r=eM(t,e)||{};return null!==(i=null!==(n=r.delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(i,t),u=()=>o=a();return l?s=eV(u,t7(l)):u(),()=>{s&&s(),o&&o.stop()}})}let eB=t=>/^\-?\d*\.?\d+$/.test(t),ek=t=>/^0[^.\s]+$/.test(t);var eL=n(3234);let eD=t=>e=>e.test(t),ej=[Y.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:t=>"auto"===t,parse:t=>t}],eO=t=>ej.find(eD(t)),eF=[...ej,eb.$,ea.P],eU=t=>eF.find(eD(t));function eI(t,e,n){let i=t.getProps();return td(i,e,void 0!==n?n:i.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function e$(t){return Boolean((0,F.i)(t)&&t.add)}function eN(t,e,n={}){var i;let r=eI(t,e,n.custom),{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);let s=r?()=>ez(t,r,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,i=0,r=1,o){let s=[],a=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(eY).forEach((t,i)=>{s.push(eN(t,e,{...o,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,r+i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[u,h]="beforeChildren"===l?[s,a]:[a,s];return u().then(h)}}function ez(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e),u=t.getValue("willChange");i&&(s=i);let h=[],c=r&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[r]);for(let d in l){let p=t.getValue(d),f=l[d];if(!p||void 0===f||c&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(c,d))continue;let m={delay:n,...s};t.shouldReduceMotion&&j.has(d)&&(m={...m,type:!1,delay:0});let v=eR(d,p,f,m);e$(u)&&(u.add(d),v=v.then(()=>u.remove(d))),h.push(v)}return Promise.all(h).then(()=>{a&&function(t,e){let n=eI(t,e),{transitionEnd:i={},transition:r={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let s in o={...o,...i}){var a;let l=tm(o[s]);a=s,t.hasValue(a)?t.getValue(a).set(l):t.addValue(a,(0,eL.B)(l))}}(t,a)})}function eY(t,e){return t.sortNodePosition(e)}let eW=[s.Animate,s.InView,s.Focus,s.Hover,s.Tap,s.Drag,s.Exit],eH=[...eW].reverse(),eZ=eW.length;function eq(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let eX={animation:tQ(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){let r=e.map(e=>eN(t,e,n));i=Promise.all(r)}else if("string"==typeof e)i=eN(t,e,n);else{let o="function"==typeof e?eI(t,e,n.custom):e;i=ez(t,o,n)}return i.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={[s.Animate]:eq(!0),[s.InView]:eq(),[s.Hover]:eq(),[s.Tap]:eq(),[s.Drag]:eq(),[s.Focus]:eq(),[s.Exit]:eq()},i=!0,r=(e,n)=>{let i=eI(t,n);if(i){let{transition:r,transitionEnd:o,...s}=i;e={...e,...s,...o}}return e};function o(o,s){var a,l;let u=t.getProps(),h=t.getVariantContext(!0)||{},c=[],d=new Set,p={},f=1/0;for(let g=0;g<eZ;g++){let y=eH[g],x=n[y],b=null!==(a=u[y])&&void 0!==a?a:h[y],w=m(b),P=y===s?x.isActive:null;!1===P&&(f=g);let T=b===h[y]&&b!==u[y]&&w;if(T&&i&&t.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...p},!x.isActive&&null===P||!b&&!x.prevProp||v(b)||"boolean"==typeof b)continue;let A=(l=x.prevProp,"string"==typeof b?b!==l:!!Array.isArray(b)&&!t2(b,l)),V=A||y===s&&x.isActive&&!T&&w||g>f&&w,E=Array.isArray(b)?b:[b],S=E.reduce(r,{});!1===P&&(S={});let{prevResolvedValues:C={}}=x,M={...C,...S},R=t=>{V=!0,d.delete(t),x.needsAnimating[t]=!0};for(let B in M){let k=S[B],L=C[B];p.hasOwnProperty(B)||(k!==L?tp(k)&&tp(L)?!t2(k,L)||A?R(B):x.protectedKeys[B]=!0:void 0!==k?R(B):d.add(B):void 0!==k&&d.has(B)?R(B):x.protectedKeys[B]=!0)}x.prevProp=b,x.prevResolvedValues=S,x.isActive&&(p={...p,...S}),i&&t.blockInitialAnimation&&(V=!1),V&&!T&&c.push(...E.map(t=>({animation:t,options:{type:y,...o}})))}if(d.size){let D={};
1d.forEach(e=>{let n=t.getBaseTarget(e);void 0!==n&&(D[e]=n)}),c.push({animation:D})}let j=Boolean(c.length);return i&&!1===u.initial&&!t.manuallyAnimateOnMount&&(j=!1),i=!1,j?e(c):Promise.resolve()}return{animateChanges:o,setActive:function(e,i,r){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;let a=o(r,e);for(let l in n)n[l].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t)),v(e)&&(0,l.useEffect)(()=>e.subscribe(t),[e])}),exit:tQ(t=>{let{custom:e,visualElement:n}=t,[i,r]=t1(),o=(0,l.useContext)(c.O);(0,l.useEffect)(()=>{n.isPresent=i;let t=n.animationState&&n.animationState.setActive(s.Exit,!i,{custom:o&&o.custom||e});t&&!i&&t.then(r)},[i])})},eG=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),eK=t=>eG(t)&&t.hasOwnProperty("z");var e_=n(734);let eJ=(t,e)=>Math.abs(t-e);class eQ{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=e2(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){if((0,e_.e)(t)&&(0,e_.e)(e))return eJ(t,e);if(eG(t)&&eG(e)){let n=eJ(t.x,e.x),i=eJ(t.y,e.y),r=eK(t)&&eK(e)?eJ(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(r,2))}}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;let{point:i}=t,{timestamp:r}=(0,t3.$B)();this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(this.lastMoveEvent=t,this.lastMoveEventInfo=e0(e,this.transformPagePoint),tP(t)&&0===t.buttons){this.handlePointerUp(t,e);return}t3.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i}=this.handlers,r=e2(e0(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,r),i&&i(t,r)},tT(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;let i=tV(t),r=e0(i,this.transformPagePoint),{point:o}=r,{timestamp:s}=(0,t3.$B)();this.history=[{...o,timestamp:s}];let{onSessionStart:a}=e;a&&a(t,e2(r,this.history)),this.removeListeners=(0,tY.z)(tL(window,"pointermove",this.handlePointerMove),tL(window,"pointerup",this.handlePointerUp),tL(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),t3.qY.update(this.updatePoint)}}function e0(t,e){return e?{point:e(t.point)}:t}function e1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function e2({point:t},e){return{point:t,delta:e1(t,e5(e)),offset:e1(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=e5(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>t7(.1)));)n--;if(!i)return{x:0,y:0};let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function e5(t){return t[t.length-1]}var e4=n(2453),e3=n(9326),e7=n(6773);function e9(t){return t.max-t.min}function e6(t,e=0,n=.01){return Math.abs(t-e)<=n}function e8(t,e,n,i=.5){t.origin=i,t.originPoint=(0,e4.C)(e.min,e.max,t.origin),t.scale=e9(n)/e9(e),(e6(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,e4.C)(n.min,n.max,t.origin)-t.originPoint,(e6(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nt(t,e,n,i){e8(t.x,e.x,n.x,null==i?void 0:i.originX),e8(t.y,e.y,n.y,null==i?void 0:i.originY)}function ne(t,e,n){t.min=n.min+e.min,t.max=t.min+e9(e)}function nn(t,e,n){t.min=e.min-n.min,t.max=t.min+e9(e)}function ni(t,e,n){nn(t.x,e.x,n.x),nn(t.y,e.y,n.y)}function nr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function no(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function ns(t,e,n){return{min:na(t,e),max:na(t,n)}}function na(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}let nl=()=>({translate:0,scale:1,origin:0,originPoint:0}),nu=()=>({x:nl(),y:nl()}),nh=()=>({min:0,max:0}),nc=()=>({x:nh(),y:nh()});
1function nd(t){return[t("x"),t("y")]}function np({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function nf(t){return void 0===t||1===t}function nm({scale:t,scaleX:e,scaleY:n}){return!nf(t)||!nf(e)||!nf(n)}function nv(t){return nm(t)||ng(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ng(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ny(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function nx(t,e=0,n=1,i,r){t.min=ny(t.min,e,n,i,r),t.max=ny(t.max,e,n,i,r)}function nb(t,{x:e,y:n}){nx(t.x,e.translate,e.scale,e.originPoint),nx(t.y,n.translate,n.scale,n.originPoint)}function nw(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function nP(t,e){t.min=t.min+e,t.max=t.max+e}function nT(t,e,[n,i,r]){let o=void 0!==e[r]?e[r]:.5,s=(0,e4.C)(t.min,t.max,o);nx(t,e[n],e[i],s,e.scale)}let nA=["x","scaleX","originX"],nV=["y","scaleY","originY"];function nE(t,e){nT(t.x,e,nA),nT(t.y,e,nV)}function nS(t,e){return np(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let nC=new WeakMap;class nM{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=nc(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;let n=t=>{this.stopAnimation(),e&&this.snapToCursor(tV(t,"page").point)},i=(t,e)=>{var n;let{drag:i,dragPropagation:r,onDragStart:o}=this.getProps();(!i||r||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tU(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nd(t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(z.aQ.test(i)){let r=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(r){let o=e9(r);i=o*(parseFloat(i)/100)}}this.originPoint[t]=i}),null==o||o(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(s.Drag,!0))},r=(t,e)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&(null==r||r(this.currentDirection));return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null==o||o(t,e)},o=(t,e)=>this.stop(t,e);this.panSession=new eQ(t,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=e;this.startAnimation(i);let{onDragEnd:r}=this.getProps();null==r||r(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(s.Drag,!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!nR(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,e4.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,e4.C)(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&f(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:nr(t.x,n,r),y:nr(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ns(t,"left","right"),y:ns(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nd(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!f(e))return!1;let i=e.current;(0,t9.k)(null!==i,"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 o=function(t,e,n){let i=nS(t,n),{scroll:r}=e;return r&&(nP(i.x,r.offset.x),nP(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:no((t=r.layout.layoutBox).x,o.x),y:no(t.y,o.y)};if(n){let a=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!a,a&&(s=np(a))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=nd(s=>{var l;if(!nR(s,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[s])&&void 0!==l?l:{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...u};return this.startAxisValueAnimation(s,h)});return Promise.all(l).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return eR(t,n,0,e)}
1stopAnimation(){nd(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e,n;let i="_drag"+t.toUpperCase(),r=this.visualElement.getProps()[i];return r||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){nd(e=>{let{drag:n}=this.getProps();if(!nR(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:o,max:s}=i.layout.layoutBox[e];r.set(t[e]-(0,e4.C)(o,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!f(n)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nd(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,i=e9(t),r=e9(e);return r>i?n=(0,e3.Y)(e.min,e.max-i,t.min):i>r&&(n=(0,e3.Y)(t.min,t.max-r,e.min)),(0,e7.u)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),nd(t=>{if(!nR(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,e4.C)(i,o,r[t]))})}addListeners(){var t;if(!this.visualElement.current)return;nC.set(this.visualElement,this);let e=this.visualElement.current,n=tL(e,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout()),i();let s=tb(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nd(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),null==a||a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function nR(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}let nB={pan:tQ(function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:i,visualElement:r}){let o=(0,l.useRef)(null),{transformPagePoint:s}=(0,l.useContext)(u._),a={onSessionStart:i,onStart:e,onMove:t,onEnd(t,e){o.current=null,n&&n(t,e)}};(0,l.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(a)}),tD(r,"pointerdown",(t||e||n||i)&&function(t){o.current=new eQ(t,a,{transformPagePoint:s})}),(0,tz.z)(()=>o.current&&o.current.end())}),drag:tQ(function(t){let{dragControls:e,visualElement:n}=t,i=(0,A.h)(()=>new nM(n));(0,l.useEffect)(()=>e&&e.subscribe(i),[i,e]),(0,l.useEffect)(()=>i.addListeners(),[i])})};function nk(t){return"string"==typeof t&&t.startsWith("var(--")}let nL=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nD(t,e,n=1){(0,t9.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,r]=function(t){let e=nL.exec(t);if(!e)return[,];let[,n,i]=e;return[n,i]}(t);if(!i)return;let o=window.getComputedStyle(e).getPropertyValue(i);return o?o.trim():nk(r)?nD(r,e,n+1):r}let nj=new Set(["width","height","top","left","right","bottom","x","y"]),nO=t=>nj.has(t),nF=t=>Object.keys(t).some(nO),nU=(t,e)=>{t.set(e,!1),t.set(e)},nI=t=>t===Y.Rx||t===z.px;(o=a||(a={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";let n$=(t,e)=>parseFloat(t.split(", ")[e]),nN=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/);if(r)return n$(r[1],e);{let o=i.match(/^matrix\((.+)\)$/);return o?n$(o[1],t):0}},nz=new Set(["x","y","z"]),nY=D.filter(t=>!nz.has(t)),nW={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:nN(4,13),y:nN(5,14)},nH=(t,e,n)=>{let i=e.measureViewportBox(),r=e.current,o=getComputedStyle(r),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEac
1h(t=>{a[t]=nW[t](i,o)}),e.render();let l=e.measureViewportBox();return n.forEach(n=>{let i=e.getValue(n);nU(i,a[n]),t[n]=nW[n](l,o)}),t},nZ=(t,e,n={},i={})=>{e={...e},i={...i};let r=Object.keys(e).filter(nO),o=[],s=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=n[r],c=eO(h),d=e[r];if(tp(d)){let p=d.length,f=null===d[0]?1:0;c=eO(h=d[f]);for(let m=f;m<p;m++)l?(0,t9.k)(eO(d[m])===l,"All keyframes must be of the same type"):(l=eO(d[m]),(0,t9.k)(l===c||nI(c)&&nI(l),"Keyframes must be of the same dimension as the current value"))}else l=eO(d);if(c!==l){if(nI(c)&&nI(l)){let v=u.get();"string"==typeof v&&u.set(parseFloat(v)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===z.px&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(s||(o=function(t){let e=[];return nY.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(r),i[r]=void 0!==i[r]?i[r]:e[r],nU(u,d))}}),!a.length)return{target:e,transitionEnd:i};{let l=a.indexOf("height")>=0?window.pageYOffset:null,u=nH(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),T.j&&null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:i}}},nq=(t,e,n,i)=>{var r,o;let s=function(t,{...e},n){let i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};for(let r in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!nk(e))return;let n=nD(e,i);n&&t.set(n)}),e){let o=e[r];if(!nk(o))continue;let s=nD(o,i);s&&(e[r]=s,n&&void 0===n[r]&&(n[r]=o))}return{target:e,transitionEnd:n}}(t,e,i);return e=s.target,i=s.transitionEnd,r=e,o=i,nF(r)?nZ(t,r,n,o):{target:r,transitionEnd:o}},nX={current:null},nG={current:!1};var nK=n(1560);let n_=Object.keys(P),nJ=n_.length,nQ=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n0{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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=()=>t3.ZP.render(this.render,!1,!0);let{latestValues:o,renderState:s}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=r,this.isControllingVariants=y(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(let u in l){let h=l[u];void 0!==o[u]&&(0,F.i)(h)&&(h.set(o[u],!1),e$(a)&&a.add(u))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nG.current||function(){if(nG.current=!0,T.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nX.current=t.matches;t.addListener(e),e()}else nX.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nX.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;for(let i in null===(t=this.projection)||void 0===t||t.unmount(),t3.qY.update(this.notifyUpdate),t3.qY.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[i].clear();this.current=null}
1bindToMotionValue(t,e){let n=j.has(t),i=e.onChange(e=>{this.latestValues[t]=e,this.props.onUpdate&&t3.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,i,r,o){let s=[];"production"!==tW.O&&n&&e&&(0,t9.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let a=0;a<nJ;a++){let u=n_[a],{isEnabled:h,Component:c}=P[u];h(t)&&c&&s.push((0,l.createElement)(c,{key:u,...t,visualElement:this}))}if(!this.projection&&r){this.projection=new r(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:d,layout:p,drag:m,dragConstraints:v,layoutScroll:g}=t;this.projection.setOptions({layoutId:d,layout:p,alwaysMeasureLayout:Boolean(m)||v&&f(v),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof p?p:"both",initialPromotionConfig:o,layoutScroll:g})}return s}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nc()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<nQ.length;e++){let n=nQ[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){let{willChange:i}=e;for(let r in e){let o=e[r],s=n[r];if((0,F.i)(o))t.addValue(r,o),e$(i)&&i.add(r);else if((0,F.i)(s))t.addValue(r,(0,eL.B)(o)),e$(i)&&i.remove(r);else if(s!==o){if(t.hasValue(r)){let a=t.getValue(r);a.hasAnimated||a.set(o)}else{let l=t.getStaticValue(r);t.addValue(r,(0,eL.B)(void 0!==l?l:o))}}}for(let u in n)void 0===e[u]&&t.removeValue(u);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){let i=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(i.initial=this.props.initial),i}let r={};for(let o=0;o<n2;o++){let s=n1[o],a=this.props[s];(m(a)||!1===a)&&(r[s]=a)}return r}addVariantChild(t){var e;let n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,eL.B)(e),this.addValue(t,n)),n}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:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=td(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,F.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new nK.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}let n1=["initial",...eW],n2=n1.length;class n5 extends n0{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},r){let o=function(t,e,n){var i;let r={};for(let o in t){let s=function(t,e){if(!e)return;let n=e[t]||e.default||e;return n.from}(o,e);r[o]=void 0!==s?s:null===(i=n.getValue(o))||void 0===i?void 0:i.get()}return r}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),o&&(o=i(o))),r){!function(t,e,n){var i,r;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let l=o[a],u=e[l],h=null;
1Array.isArray(u)&&(h=u[0]),null===h&&(h=null!==(r=null!==(i=n[l])&&void 0!==i?i:t.readValue(l))&&void 0!==r?r:e[l]),null!=h&&("string"==typeof h&&(eB(h)||ek(h))?h=parseFloat(h):!eU(h)&&ea.P.test(u)&&(h=eT(l,u)),t.addValue(l,(0,eL.B)(h)),void 0===n[l]&&(n[l]=h),null!==h&&t.setBaseTarget(l,h))}}(this,n,o);let s=nq(this,n,o,e);e=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:e,...n}}}class n4 extends n5{readValueFromInstance(t,e){if(j.has(e)){let n=eP(e);return n&&n.default||0}{let i=window.getComputedStyle(t),r=($(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nS(t,e)}build(t,e,n,i){Z(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return th(t)}renderInstance(t,e,n,i){ta(t,e,n,i)}}class n3 extends n5{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return j.has(e)?(null===(n=eP(e))||void 0===n?void 0:n.default)||0:(e=tl.has(e)?e:ts(e),t.getAttribute(e))}measureInstanceViewportBox(){return nc()}scrapeMotionValuesFromProps(t){return tc(t)}build(t,e,n,i){ti(t,e,n,i.transformTemplate)}renderInstance(t,e,n,i){tu(t,e,n,i)}}let n7=(t,e)=>k(t)?new n3(e,{enableHardwareAcceleration:!1}):new n4(e,{enableHardwareAcceleration:!0});function n9(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n6={correct(t,e){if(!e.target)return t;if("string"==typeof t){if(!z.px.test(t))return t;t=parseFloat(t)}let n=n9(t,e.target.x),i=n9(t,e.target.y);return`${n}% ${i}%`}},n8="_$css";class it extends l.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;Object.assign(L,ie),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),V.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||t3.ZP.postRender(()=>{var t;(null===(t=o.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;null==t||t()}render(){return null}}let ie={borderRadius:{...n6,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n6,borderTopRightRadius:n6,borderBottomLeftRadius:n6,borderBottomRightRadius:n6,boxShadow:{correct(t,{treeScale:e,projectionDelta:n}){let i=t,r=t.includes("var("),o=[];r&&(t=t.replace(nL,t=>(o.push(t),n8)));let s=ea.P.parse(t);if(s.length>5)return i;let a=ea.P.createTransformer(t),l="number"!=typeof s[0]?1:0,u=n.x.scale*e.x,h=n.y.scale*e.y;s[0+l]/=u,s[1+l]/=h;let c=(0,e4.C)(u,h,.5);"number"==typeof s[2+l]&&(s[2+l]/=c),"number"==typeof s[3+l]&&(s[3+l]/=c);let d=a(s);if(r){let p=0;d=d.replace(n8,()=>{let t=o[p];return p++,t})}return d}}},ii=["TopLeft","TopRight","BottomLeft","BottomRight"],ir=ii.length,io=t=>"string"==typeof t?parseFloat(t):t,is=t=>"number"==typeof t||z.px.test(t);function ia(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}let il=ih(0,.5,t6.Bn),iu=ih(.5,.95,t6.GE);function ih(t,e,n){return i=>i<t?0:i>e?1:n((0,e3.Y)(t,e,i))}function ic(t,e){t.min=e.min,t.max=e.max}function id(t,e){ic(t.x,e.x),ic(t.y,e.y)}function ip(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function im(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(z.aQ.test(e)){e=parseFloat(e);let a=(0,e4.C)(s.min,s.max,e/100);e=a-s.min}if("number"!=typeof e)return;let l=(0,e4.C)(o.min,o.max,i);t===o&&(l-=e),t.min=ip(t.min,e,n,l,r),t.max=ip(t.max,e,n,l,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let iv=["x","scaleX","originX"],ig=["y","scaleY","originY"];function iy(t,e,n,i){im(t.x,e,iv,null==n?void 0:n.x,null==i?void 0:i.x),im(t.y,e,ig,null==n?void 0:n.y,null==i?void 0:i.y)}function ix(t){return 0===t.translate&&1===t.scale}function ib(t){return ix(t.x)&&ix(t.y)}function iw(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 iP(t){return e9(t.x)/e9(t.y)}var iT=n(10);class iA{constructor(){this.members=[]}add(t){(0,iT.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,iT.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let i=n;i>=0;i--){let r=this.members[i];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}promote(t,e){var n;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),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{var e,n,i,r,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(i=t.resumingFrom)||void 0===i?void 0:(r=i.options).onExitComplete)||void 0===o||o.call(r)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function iV(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y;if((r||o)&&(i=`translate3d(${r}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:s,rotateX:a,rotateY:l}=n;s&&(i+=`rotate(${s}deg) `),a&&(i+=`rotateX(${a}deg) `),l&&(i+=`rotateY(${l}deg) `)}let u=t.x.scale*e.x,h=t.y.scale*e.y;return(1!==u||1!==h)&&(i+=`scale(${u}, ${h})`),i||"none"}let iE=(t,e)=>t.depth-e.depth;class iS{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iT.y4)(this.children,t),this.isDirty=!0}remove(t){(0,iT.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iE),this.isDirty=!1,this.children.forEach(t)}}let iC=["","X","Y","Z"],iM=0;function iR({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t,n={},i=null==e?void 0:e()){this.id=iM++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(iL),this.nodes.forEach(iU),this.nodes.forEach(iI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let r=0;r<this.path.length;r++)this.path[r].shouldResetTransform=!0;this.root===this&&(this.nodes=new iS)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nK.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||r)&&(this.isLayoutDirty=!0),t){let a;let l=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,a&&a(),a=eV(l,250),V.hasAnimatedSinceResize&&(V.hasAnimatedSinceResize=!1,this.nodes.forEach(iF))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var r,o,a,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=null!==(o=null!==(r=this.options.transition)&&void 0!==r?r:s.getDefaultTransition())&&void 0!==o?o:iH,{onLayoutAnimationStart:c,onLayoutAnimationComplete:d}=s.getProps(),p=!this.targetLayout||!iw(this.targetLayout,i)||n,f=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||f||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,f);let m={...eM(h,"layout"),onPlay:c,onComplete:d};s.shouldReduceMotion&&(m.delay=0,m.type=!1),this.startAnimation(m)}else e||0!==this.animationProgress||iF(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,t3.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;!this.isUpdateBlocked()&&(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(i$),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked()){null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);return}
1if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let r=0;r<this.path.length;r++){let o=this.path[r];o.shouldResetTransform=!0,o.updateScroll("snapshot")}let{layoutId:s,layout:a}=this.options;if(void 0===s&&!a)return;let l=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){let t=this.isUpdateBlocked();if(t){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ij);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(iZ),this.potentialNodes.clear()),this.nodes.forEach(iO),this.nodes.forEach(iB),this.nodes.forEach(ik),this.clearAllSnapshots(),t3.iW.update(),t3.iW.preRender(),t3.iW.render())}clearAllSnapshots(){this.nodes.forEach(iD),this.sharedNodes.forEach(iN)}scheduleUpdateProjection(){t3.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){t3.ZP.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let n=this.path[e];n.updateScroll()}let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==i?void 0:i.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ib(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==i?void 0:i(this.latestValues,""),s=o!==this.prevTransformTemplateValue;e&&(n||nv(this.latestValues)||s)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),iq((e=i).x),iq(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return nc();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(nP(e.x,n.offset.x),nP(e.y,n.offset.y)),e}removeElementScroll(t){let e=nc();id(e,t);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;if(i!==this.root&&r&&o.layoutScroll){if(r.isRoot){id(e,t);let{scroll:s}=this.root;s&&(nP(e.x,-s.offset.x),nP(e.y,-s.offset.y))}nP(e.x,r.offset.x),nP(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let n=nc();id(n,t);for(let i=0;i<this.path.length;i++){let r=this.path[i];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nE(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nv(r.latestValues)&&nE(n,r.latestValues)}return nv(this.latestValues)&&nE(n,this.latestValues),n}removeTransform(t){var e;let n=nc();id(n,t);for(let i=0;i<this.path.length;i++){let r=this.path[i];if(!r.instance||!nv(r.latestValues))continue;nm(r.latestValues)&&r.updateSnapshot();let o=nc(),s=r.measurePageBox();id(o,s),iy(n,r.latestValues,null===(e=r.snapshot)||void 0===e?void 0:e.layoutBox,o)}return nv(this.latestValues)&&iy(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t,e,n,i;let r=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:o,layoutId:s}=this.options;if(this.layout&&(o||s)){if(!this.targetDelta&&!this.relativeTarget){let a=this.getClosestProjectingParent();a&&a.layout?(this.relativeParent=a,this.relativeTarget=nc(),this.relativeTargetOrigin=nc(),ni(this.relativeTargetOrigin,this.layout.layoutBox,a.layout.layoutBox),id(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=nc(),this.targetWithTransforms=nc()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target))?(e=this.target,n=this.relativeTarget,i=this.relativeParent.target,ne(e.x,n.x,i.x),ne(e.y,n.y,i.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):id(this.target,this.layout.layoutBox),nb(this.target,this.targetDelta)):id(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let l=this.getClosestProjectingParent();l&&Boolean(l.resumingFrom)===Boolean(this.resumingFrom)&&!l.options.layoutScroll&&l.target?(this.relativeParent=l,this.relativeTarget=nc(),this.relativeTargetOrigin=nc(),ni(this.relativeTargetOrigin,this.target,l.target),id(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nm(this.parent.latestValues)||ng(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;let{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;let i=this.getLead(),r=Boolean(this.resumingFrom)||this!==i,o=!0;if(e&&(o=!1),r&&n&&(o=!1),o)return;let{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;id(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,i=!1){var r,o;let s,a;let l=n.length;if(l){e.x=e.y=1;for(let u=0;u<l;u++)a=(s=n[u]).projectionDelta,(null===(o=null===(r=s.instance)||void 0===r?void 0:r.style)||void 0===o?void 0:o.display)!=="contents"&&(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nE(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,nb(t,a)),i&&nv(s.latestValues)&&nE(t,s.latestValues));e.x=nw(e.x),e.y=nw(e.y)}}(this.layoutCorrected,this.treeScale,this.path,r);let{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=nu(),this.projectionDeltaWithTransform=nu());let u=this.treeScale.x,h=this.treeScale.y,c=this.projectionTransform;nt(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=iV(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==h)&&
1(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;let r=this.snapshot,o=(null==r?void 0:r.latestValues)||{},s={...this.latestValues},a=nu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;let l=nc(),u=(null==r?void 0:r.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),h=1>=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0),c=Boolean(u&&!h&&!0===this.options.crossfade&&!this.path.some(iW));this.animationProgress=0,this.mixTargetDelta=e=>{var n,i,r;let d=e/1e3;iz(a.x,t.x,d),iz(a.y,t.y,d),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ni(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,r=this.relativeTargetOrigin,iY(i.x,r.x,l.x,d),iY(i.y,r.y,l.y,d)),u&&(this.animationValues=s,function(t,e,n,i,r,o){var s,a,l,u;r?(t.opacity=(0,e4.C)(0,null!==(s=n.opacity)&&void 0!==s?s:1,il(i)),t.opacityExit=(0,e4.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,iu(i))):o&&(t.opacity=(0,e4.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let h=0;h<ir;h++){let c=`border${ii[h]}Radius`,d=ia(e,c),p=ia(n,c);if(void 0===d&&void 0===p)continue;d||(d=0),p||(p=0);let f=0===d||0===p||is(d)===is(p);f?(t[c]=Math.max((0,e4.C)(io(d),io(p),i),0),(z.aQ.test(p)||z.aQ.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=(0,e4.C)(e.rotate||0,n.rotate||0,i))}(s,o,this.latestValues,d,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=d},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(t3.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t3.ZP.update(()=>
1{V.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){let i=(0,F.i)(t)?t:(0,eL.B)(t);return eR("",i,1e3,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,0,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&iX(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||nc();let o=e9(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+o;let s=e9(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+s}id(e,n),nE(e,r),nt(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){var n,i,r;this.sharedNodes.has(t)||this.sharedNodes.set(t,new iA);let o=this.sharedNodes.get(t);o.add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(r=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===r?void 0:r.call(i,e)})}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:n}={}){let i=this.getStack();i&&i.promote(this,n),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:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let i={};for(let r=0;r<iC.length;r++){let o="rotate"+iC[r];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}for(let s in null==t||t.render(),i)t.setStaticValue(s,i[s]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tv(t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let a={};return this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=tv(t.pointerEvents)||""),this.hasProjected&&!nv(this.latestValues)&&(a.transform=o?o({},""):"none",this.hasProjected=!1),a}let l=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=iV(this.projectionDeltaWithTransform,this.treeScale,l),o&&(r.transform=o(l,r.transform));let{x:u,y:h}=this.projectionDelta;for(let c in r.transformOrigin=`${100*u.origin}% ${100*h.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(i=null!==(n=l.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=s===this?void 0!==l.opacity?l.opacity:"":void 0!==l.opacityExit?l.opacityExit:0,L){if(void 0===l[c])continue;let{correct:d,applyTo:p}=L[c],f=d(l[c],s);if(p){let m=p.length;for(let v=0;v<m;v++)r[p[v]]=f}else r[c]=f}return this.options.layoutId&&(r.pointerEvents=s===this?tv(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ij),this.root.sharedNodes.clear()}}}function iB(t){t.updateLayout()}function ik(t){var e,n,i;let r=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=t.layout,{animationType:a}=t.options,l=r.source!==t.layout.source;"size"===a?nd(t=>{let e=l?r.measuredBox[t]:r.layoutBox[t],n=e9(e);e.min=o[t].min,e.max=e.min+n}):iX(a,r.layoutBox,o)&&nd(t=>{let e=l?r.measuredBox[t]:r.layoutBox[t],n=e9(o[t]);e.max=e.min+n});let u=nu();nt(u,o,r.layoutBox);let h=nu();l?nt(h,t.applyTransform(s,!0),r.measuredBox):nt(h,o,r.layoutBox);let c=!ib(u),d=!1;if(!t.resumeFrom){let p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:f,layout:m}=p;if(f&&m){let v=nc();ni(v,r.layoutBox,f.layoutBox);let g=nc();ni(g,o,m.layoutBox),iw(v,g)||(d=!0)}}}t.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:h,layoutDelta:u,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function iL(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function iD(t){t.clearSnapshot()}function ij(t){t.clearMeasurements()}function iO(t){let{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iF(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function iU(t){t.resolveTargetDelta()}function iI(t){t.calcProjection()}function i$(t){t.resetRotation()}function iN(t){t.removeLeadSnapshot()}function iz(t,e,n){t.translate=(0,e4.C)(e.translate,0,n),t.scale=(0,e4.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function iY(t,e,n,i){t.min=(0,e4.C)(e.min,n.min,i),t.max=(0,e4.C)(e.max,n.max,i)}function iW(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iH={duration:.45,ease:[.4,0,.1,1]};function iZ(t,e){let n=t.root;for(let i=t.path.length-1;i>=0;i--)if(Boolean(t.path[i].instance)){n=t.path[i];break}let r=n&&n!==t.root?n.instance:document,o=r.querySelector(`[data-
1projection-id="${e}"]`);o&&t.mount(o,!0)}function iq(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function iX(t,e,n){return"position"===t||"preserve-aspect"===t&&!e6(iP(e),iP(n),.2)}let iG=iR({attachResizeListener:(t,e)=>tb(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iK={current:void 0},i_=iR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent(){if(!iK.current){let t=new iG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),iK.current=t}return iK.current},resetTransform(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),iJ={...eX,...t0,...nB,measureLayout:function(t){let[e,n]=t1(),i=(0,l.useContext)(S.p);return l.createElement(it,{...t,layoutGroup:i,switchLayoutGroup:(0,l.useContext)(M),isPresent:e,safeToRemove:n})}},iQ=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:i,useVisualState:r,Component:o}){t&&function(t){for(let e in t)"projectionNodeConstructor"===e?P.projectionNodeConstructor=t[e]:P[e].Component=t[e]}(t);let s=(0,l.forwardRef)(function(s,a){var v,g;let x={...(0,l.useContext)(u._),...s,layoutId:function({layoutId:t}){let e=(0,l.useContext)(S.p).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:w}=x,R=null,B=function(t){let{initial:e,animate:n}=function(t,e){if(y(t)){let{initial:n,animate:i}=t;return{initial:!1===n||m(n)?n:void 0,animate:m(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,l.useContext)(h));return(0,l.useMemo)(()=>({initial:e,animate:n}),[b(e),b(n)])}(s),k=w?void 0:(0,A.h)(()=>{if(V.hasEverUpdated)return E++}),L=r(s,w);if(!w&&T.j){B.visualElement=function(t,e,n,i){let r=(0,l.useContext)(h).visualElement,o=(0,l.useContext)(p),s=(0,l.useContext)(c.O),a=(0,l.useContext)(u._).reducedMotion,f=(0,l.useRef)();i=i||o.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:r,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));let m=f.current;return(0,d.L)(()=>{m&&m.render()}),(0,l.useEffect)(()=>{m&&m.animationState&&m.animationState.animateChanges()}),(0,d.L)(()=>()=>m&&m.notify("Unmount"),[]),m}(o,L,x,e);let D=(0,l.useContext)(p).strict,j=(0,l.useContext)(M);B.visualElement&&(R=B.visualElement.loadFeatures(x,D,t,k,n||P.projectionNodeConstructor,j))}return l.createElement(C,{visualElement:B.visualElement,props:x},R,l.createElement(h.Provider,{value:B},i(o,s,k,(v=B.visualElement,g=a,(0,l.useCallback)(t=>{t&&L.mount&&L.mount(t),v&&(t?v.mount(t):v.unmount()),g&&("function"==typeof g?g(t):f(g)&&(g.current=t))},[v])),L,w,B.visualElement)))});return s[R]=o,s}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,i,r){let o=k(t)?ty:tx;return{...o,preloadedFeatures:n,useRender:function(t=!1){let e=(e,n,i,r,{latestValues:o},s)=>{let a=k(e)?to:G,u=a(n,o,s),h=function(t,e,n){let i={};for(let r in t)(J(r)||!0===n&&_(r)||!e&&!_(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(n,"string"==typeof e,t),c={...h,...u,ref:r};return i&&(c["data-projection-id"]=i),(0,l.createElement)(e,c)};return e}(e),createVisualElement:i,projectionNodeConstructor:r,Component:t}})(t,e,iJ,n7,i_))},10:function(t,e,n){"use strict";function i(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},1741:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});let i="undefined"!=typeof document},9304:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(3454);let r=(void 0===i||i.env,"production")},1560:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(10);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let o=this.subscriptions[r];o&&o(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},6681:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(7294);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});
1var i=n(7294),r=n(1741);let o=r.j?i.useLayoutEffect:i.useEffect},5411:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});var i=n(7294);function r(t){return(0,i.useEffect)(()=>()=>t(),[])}},6034:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});let i=new Set;function r(t,e,n){t||i.has(e)||(console.warn(e),n&&console.warn(n),i.add(e))}},3234:function(t,e,n){"use strict";n.d(e,{B:function(){return l}});var i=n(4735),r=n(9296),o=n(1560);let s=t=>!isNaN(parseFloat(t));class a{constructor(t){this.version="7.6.15",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o.L,this.velocityUpdateSubscribers=new o.L,this.renderSubscribers=new o.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=(0,i.$B)();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,i.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>i.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=s(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return 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.stopAnimation=t(e)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function l(t){return new a(t)}},406:function(t,e,n){"use strict";n.d(e,{i:function(){return i}});let i=t=>!!(null==t?void 0:t.getVelocity)},4735:function(t,e,n){"use strict";n.d(e,{qY:function(){return p},ZP:function(){return x},iW:function(){return f},$B:function(){return y}});let i=1/60*1e3,r="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(r()),i),s=!0,a=!1,l=!1,u={delta:0,timestamp:0},h=["read","update","preRender","render","postRender"],c=h.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,r=!1,o=!1,s=new WeakSet,a={schedule(t,o=!1,a=!1){let l=a&&r,u=l?e:n;return o&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(i=e.length)),t},cancel(t){let e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process(l){if(r){o=!0;return}if(r=!0,[e,n]=[n,e],n.length=0,i=e.length)for(let u=0;u<i;u++){let h=e[u];h(l),s.has(h)&&(a.schedule(h),t())}r=!1,o&&(o=!1,a.process(l))}};return a}(()=>a=!0),t),{}),d=h.reduce((t,e)=>{let n=c[e];return t[e]=(t,e=!1,i=!1)=>(a||g(),n.schedule(t,e,i)),t},{}),p=h.reduce((t,e)=>(t[e]=c[e].cancel,t),{}),f=h.reduce((t,e)=>(t[e]=()=>c[e].process(u),t),{}),m=t=>c[t].process(u),v=t=>{a=!1,u.delta=s?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,h.forEach(m),l=!1,a&&(s=!1,o(v))},g=()=>{a=!0,s=!0,l||o(v)},y=()=>u;var x=d},612:function(t,e,n){"use strict";n.d(e,{j:function(){return x}});var i=n(655),r=n(4394),o=n(6773);function s(t,e){return t*Math.sqrt(1-e*e)}let a=["duration","bounce"],l=["stiffness","damping","mass"];function u(t,e){return e.some(e=>void 0!==t[e])}function h(t){var{from:e=0,to:n=1,restSpeed:h=2,restDelta:d}=t,p=(0,i._T)(t,["from","to","restSpeed","restDelta"]);let f={done:!1,value:e},{stiffness:m,damping:v,mass:g,velocity:y,duration:x,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!u(t,l)&&u(t,a)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let a,l;(0,r.K)(t<=1e4,"Spring duration must be 10 seconds or less");let u=1-e;u=(0,o.u)(.05,1,u),t=(0,o.u)(.01,10,t/1e3),u<1?(a=e=>{let i=e*u,r=i*t,o=s(e,u);return .001-(i-n)/o*Math.exp(-r)},l=e=>{let i=e*u,r=i*t,o=Math.pow(u,2)*Math.pow(e,2)*t,l=s(Math.pow(e,2),u),h=-a(e)+.001>0?-1:1;return h*((r*n+n-o)*Math.exp(-r))/l}):(a=e=>{let i=Math.exp(-e*t),r=(e-n)*t+1;return -.001+i*r},l=e=>{let i=Math.exp(-e*t),r=(n-e)*(t*t);return i*r});let h=5/t,c=function(t,e,n){let i=n;for(let r=1;r<12;r++)i-=t(i)/e(i);return i}(a,l,h);if(t*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{let d=Math.pow(c,2)*i;return{stiffness:d,damping:2*u*Math.sqrt(i*d),duration:t}}}(t);(e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(p),w=c,P=c;function T(){let t=y?-(y/1e3):0,i=n-e,r=v/(2*Math.sqrt(m*g)),o=Math.sqrt(m/g)/1e3;if(void 0===d&&(d=Math.min(Math.abs(n-e)/100,.4)),r<1){let a=s(o,r);w=e=>n-Math.exp(-r*o*e)*((t+r*o*i)/a*Math.sin(a*e)+i*Math.cos(a*e)),P=e=>{let n=Math.exp(-r*o*e);return r*o*n*(Math.sin(a*e)*(t+r*o*i)/a+i*Math.cos(a*e))-n*(Math.cos(a*e)*(t+r*o*i)-a*i*Math.sin(a*e))}}else if(1===r)w=e=>n-Math.exp(-o*e)*(i+(t+o*i)*e);else{let l=o*Math.sqrt(r*r-1);w=e=>{let s=Math.min(l*e,300);return n-Math.exp(-r*o*e)*((t+r*o*i)*Math.sinh(s)+l*i*Math.cosh(s))/l}}}return T(),{next(t){let e=w(t);if(b)f.done=t>=x;else{let i=1e3*P(t),r=Math.abs(n-e)<=d;f.done=Math.abs(i)<=h&&r}return f.value=f.done?n:e,f},flipTarget(){y=-y,[e,n]=[n,e],T()}}}h.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;let c=t=>0;var d=n(9180),p=n(4710);function f({from:t=0,to:e=1,ease:n,offset:i,duration:r=300}){let o={done:!1,value:t},s=Array.isArray(e)?e:[t,e],a=(i&&i.length===s.length?i:function(t){let e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(s)).map(t=>t*r);function l(){return(0,d.s)(a,s,{ease:Array.isArray(n)?n:s.map(()=>n||p.mZ).splice(0,s.length-1)})}let u=l();return{next:t=>(o.value=u(t),o.done=t>=r,o),flipTarget(){s.reverse(),u=l()}}}let m={keyframes:f,spring:h,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:o}){let s={done:!1,value:e},a=n*t,l=e+a,u=void 0===o?l:o(l);return u!==l&&(a=u-e),{next(t){let e=-a*Math.exp(-t/i);return s.done=!(e>r||e<-r),s.value=s.done?u:u+e,s},flipTarget(){}}}};var v=n(4735);function g(t,e,n=0){return t-e-n}let y=t=>{let e=({delta:e})=>t(e);return{start:()=>v.ZP.update(e,!0),stop:()=>v.qY.update(e)}};function x(t){let e,n,r;var o,{from:s,autoplay:a=!0,driver:l=y,elapsed:u=0,repeat:c=0,repeatType:p="loop",repeatDelay:v=0,onPlay:x,onStop:b,onComplete:w,onRepeat:P,onUpdate:T}=t,A=(0,i._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:V}=A,E=0,S=A.duration,C=!1,M=!0,R=function(t){if(Array.isArray(t.to))return f;if(m[t.type])return m[t.type];let e=new Set(Object.keys(t));if(e.has("ease")||e.has("duration")&&!e.has("dampingRatio"));else if(e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta"))return h;return f}(A);(null===(o=R.needsInterpolation)||void 0===o?void 0:o.call(R,s,V))&&(r=(0,d.s)([0,100],[s,V],{clamp:!1}),s=0,V=100);let B=R(Object.assign(Object.assign({},A),{from:s,to:V}));return a&&(null==x||x(),(e=l(function(t){if(M||(t=-t),u+=t,!C){let i=B.next(Math.max(0,u));n=i.value,r&&(n=r(n)),C=M?i.done:u<=0}if(null==T||T(n),C){if(0===E&&(null!=S||(S=u)),E<c){var o,s;o=u,s=S,(M?o>=s+v:o<=-v)&&(E++,"reverse"===p?u=function(t,e,n=0,i=!0){return i?g(e+-t,e,n):e-(t-e)+n}(u,S,v,M=E%2==0):(u=g(u,S,v),"mirror"===p&&B.flipTarget()),C=!1,P&&P())}else e.stop(),w&&w()}})).start()),{stop(){null==b||b(),e.stop()}}}},4710:function(t,e,n){"use strict";n.d(e,{LU:function(){return y},G2:function(){return m},XL:function(){return g},CG:function(){return v},h9:function(){return T},yD:function(){return A},gJ:function(){return P},Z7:function(){return d},X7:function(){return f},Bn:function(){return p},YQ:function(){return u},mZ:function(){return c},Vv:function(){return h},GE:function(){return l}});let i=t=>e=>1-t(1-e),r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,o=t=>e=>e*e*((t+1)*e-t),s=4/11,a=8/11,l=t=>t,u=t=>Math.pow(t,2),h=i(u),c=r(u),d=t=>1-Math.sin(Math.acos(t)),p=i(d),f=r(p),m=o(1.525),v=i(m),g=r(m),y=(t=>{let e=o(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(0),x=4356/361,b=35442/1805,w=16061/1805,P=t=>
1{if(1===t||0===t)return t;let e=t*t;return t<s?7.5625*e:t<a?9.075*e-9.9*t+3.4:t<.9?x*e-b*t+w:10.8*t*t-20.52*t+10.72},T=i(P),A=t=>t<.5?.5*(1-P(1-2*t)):.5*P(2*t-1)+.5},6773:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});let i=(t,e,n)=>Math.min(Math.max(n,t),e)},734:function(t,e,n){"use strict";n.d(e,{e:function(){return i}});let i=t=>"number"==typeof t},9180:function(t,e,n){"use strict";n.d(e,{s:function(){return S}});var i=n(9326),r=n(2453),o=n(2960),s=n(8059),a=n(4582),l=n(4394);function u(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function h({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=u(l,a,t+1/3),o=u(l,a,t),s=u(l,a,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}let c=(t,e,n)=>{let i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},d=[o.$,s.m,a.J],p=t=>d.find(e=>e.test(t)),f=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,m=(t,e)=>{let n=p(t),i=p(e);(0,l.k)(!!n,f(t)),(0,l.k)(!!i,f(e));let o=n.parse(t),u=i.parse(e);n===a.J&&(o=h(o),n=s.m),i===a.J&&(u=h(u),i=s.m);let d=Object.assign({},o);return t=>{for(let e in d)"alpha"!==e&&(d[e]=c(o[e],u[e],t));return d.alpha=(0,r.C)(o.alpha,u.alpha,t),n.transform(d)}};var v=n(7405),g=n(8407),y=n(734),x=n(9897);function b(t,e){return(0,y.e)(t)?n=>(0,r.C)(t,e,n):v.$.test(t)?m(t,e):A(t,e)}let w=(t,e)=>{let n=[...t],i=n.length,r=t.map((t,n)=>b(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}},P=(t,e)=>{let n=Object.assign(Object.assign({},t),e),i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=b(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}};function T(t){let e=g.P.parse(t),n=e.length,i=0,r=0,o=0;for(let s=0;s<n;s++)i||"number"==typeof e[s]?i++:void 0!==e[s].hue?o++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:o}}let A=(t,e)=>{let n=g.P.createTransformer(e),i=T(t),r=T(e),o=i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers;return o?(0,x.z)(w(i.parsed,r.parsed),n):((0,l.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.`),n=>`${n>0?e:t}`)};var V=n(6773);let E=(t,e)=>n=>(0,r.C)(t,e,n);function S(t,e,{clamp:n=!0,ease:r,mixer:o}={}){let s=t.length;(0,l.k)(s===e.length,"Both input and output ranges must be the same length"),(0,l.k)(!r||!Array.isArray(r)||r.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());let a=function(t,e,n){var i;let r=[],o=n||("number"==typeof(i=t[0])?E:"string"==typeof i?v.$.test(i)?m:A:Array.isArray(i)?w:"object"==typeof i?P:void 0),s=t.length-1;for(let a=0;a<s;a++){let l=o(t[a],t[a+1]);if(e){let u=Array.isArray(e)?e[a]:e;l=(0,x.z)(u,l)}r.push(l)}return r}(e,r,o),u=2===s?function([t,e],[n]){return r=>n((0,i.Y)(t,e,r))}(t,a):function(t,e){let n=t.length,r=n-1;return o=>{let s=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(s=r-1,a=!0),!a){let l=1;for(;l<n&&!(t[l]>o)&&l!==r;l++);s=l-1}let u=(0,i.Y)(t[s],t[s+1],o);return e[s](u)}}(t,a);return n?e=>u((0,V.u)(t[0],t[s-1],e)):u}},2453:function(t,e,n){"use strict";n.d(e,{C:function(){return i}});let i=(t,e,n)=>-n*t+n*e+t},9897:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},9326:function(t,e,n){"use strict";n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},9296:function(t,e,n){"use strict";function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:function(){return i}})},2960:function(t,e,n){"use strict";n.d(e,{$:function(){return o}});var i=n(8059),r=n(3953);let o={test:(0,r.i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
1a:r?parseInt(r,16)/255:1}},transform:i.m.transform}},4582:function(t,e,n){"use strict";n.d(e,{J:function(){return a}});var i=n(1248),r=n(2969),o=n(6777),s=n(3953);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,o.Nw)(e))+", "+r.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(i.Fq.transform(s))+")"}},7405:function(t,e,n){"use strict";n.d(e,{$:function(){return a}});var i=n(6777),r=n(2960),o=n(4582),s=n(8059);let a={test:t=>s.m.test(t)||r.$.test(t)||o.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):o.J.test(t)?o.J.parse(t):r.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):o.J.transform(t)}},8059:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var i=n(1248),r=n(6777),o=n(3953);let s=(0,r.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(s(t))}),l={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,r.Nw)(i.Fq.transform(o))+")"}},3953:function(t,e,n){"use strict";n.d(e,{d:function(){return o},i:function(){return r}});var i=n(6777);let r=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>r=>{if(!(0,i.HD)(r))return r;let[o,s,a,l]=r.match(i.KP);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8407:function(t,e,n){"use strict";n.d(e,{P:function(){return d}});var i=n(7405),r=n(1248),o=n(6777);let s="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);let e=[],n=0,l=t.match(o.dA);l&&(n=l.length,t=t.replace(o.dA,s),e.push(...l.map(i.$.parse)));let u=t.match(o.KP);return u&&(t=t.replace(o.KP,a),e.push(...u.map(r.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function h(t){let{values:e,numColors:n,tokenised:r}=l(t),u=e.length;return t=>{let e=r;for(let l=0;l<u;l++)e=e.replace(l<n?s:a,l<n?i.$.transform(t[l]):(0,o.Nw)(t[l]));return e}}let c=t=>"number"==typeof t?0:t,d={test:function(t){var e,n,i,r;return isNaN(t)&&(0,o.HD)(t)&&(null!==(n=null===(e=t.match(o.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(r=null===(i=t.match(o.dA))||void 0===i?void 0:i.length)&&void 0!==r?r:0)>0},parse:u,createTransformer:h,getAnimatableNone:function(t){let e=u(t),n=h(t);return n(e.map(c))}}},1248:function(t,e,n){"use strict";n.d(e,{Fq:function(){return o},Rx:function(){return r},bA:function(){return s}});var i=n(6777);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o=Object.assign(Object.assign({},r),{transform:(0,i.uZ)(0,1)}),s=Object.assign(Object.assign({},r),{default:1})},2969:function(t,e,n){"use strict";n.d(e,{$C:function(){return h},RW:function(){return o},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var i=n(6777);let r=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=r("deg"),s=r("%"),a=r("px"),l=r("vh"),u=r("vw"),h=Object.assign(Object.assign({},s),{parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)})},6777:function(t,e,n){"use strict";n.d(e,{HD:function(){return l},KP:function(){return o},Nw:function(){return r},dA:function(){return s},mj:function(){return a},uZ:function(){return i}});let i=(t,e)=>n=>Math.max(Math.min(n,e),t),r=t=>t%1?Number(t.toFixed(5)):t,o=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(t){return"string"==typeof t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.