!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb27d32c-ecc6-4b70-88e0-213600e75e0c",e._sentryDebugIdIdentifier="sentry-dbid-fb27d32c-ecc6-4b70-88e0-213600e75e0c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2435],{92877:(e,t,n)=>{n.d(t,{Af:()=>eJ,H7:()=>rx,M_:()=>eG,X:()=>eQ,m:()=>eX});var r,i,a,s=n(51674),o=n(54982);function l(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var u=(0,s.vd)({"../../../node_modules/.pnpm/@emotion+memoize@0.7.4/node_modules/@emotion/memoize/dist/memoize.esm.js"(){r=l}}),c={};(0,s.r2)(c,{default:()=>a});var h=(0,s.vd)({"../../../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js"(){u(),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=r(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})}}),d=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),p=(0,o.createContext)({}),f=(0,o.createContext)(null),m="undefined"!=typeof document,g=m?o.useLayoutEffect:o.useEffect,v=(0,o.createContext)({strict:!1}),y=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),b="data-"+y("framerAppearId");function w(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function x(e){return"string"==typeof e||Array.isArray(e)}function A(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}var k=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],C=["initial",...k];function P(e){return A(e.animate)||C.some(t=>x(e[t]))}function V(e){return!!(P(e)||e.variants)}function S(e){return Array.isArray(e)?e.join(" "):e}var M={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E={};for(let e in M)E[e]={isEnabled:t=>M[e].some(e=>!!t[e])};function T(e){for(let t in e)E[t]={...E[t],...e[t]}}var F=(0,o.createContext)({}),R=(0,o.createContext)({}),O=Symbol.for("motionComponentSymbol"),I=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function L(e){if("string"!=typeof e||e.includes("-"));else if(I.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var D={},B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(B);function N(e,t){let{layout:n,layoutId:r}=t;return j.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!D[e]||"opacity"===e)}var z=e=>!!(e&&e.getVelocity),H={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W=B.length,U=e=>t=>"string"==typeof t&&t.startsWith(e),X=U("--"),q=U("var(--"),Y=(e,t)=>t&&"number"==typeof e?t.transform(e):e,_=(e,t,n)=>Math.min(Math.max(n,e),t),Z={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},$={...Z,transform:e=>_(0,1,e)},K={...Z,default:1},G=e=>Math.round(1e5*e)/1e5,J=/(-)?([\d]*\.?[\d])+/g,Q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ee=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function et(e){return"string"==typeof e}var en=e=>({test:t=>et(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),er=en("deg"),ei=en("%"),ea=en("px"),es=en("vh"),eo=en("vw"),el={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu={...Z,transform:Math.round},ec={borderWidth:ea,borderTopWidth:ea,borderRightWidth:ea,borderBottomWidth:ea,borderLeftWidth:ea,borderRadius:ea,radius:ea,borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomRightRadius:ea,borderBottomLeftRadius:ea,width:ea,maxWidth:ea,height:ea,maxHeight:ea,size:ea,top:ea,right:ea,bottom:ea,left:ea,padding:ea,paddingTop:ea,paddingRight:ea,paddingBottom:ea,paddingLeft:ea,margin:ea,marginTop:ea,marginRight:ea,marginBottom:ea,marginLeft:ea,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:K,scaleX:K,scaleY:K,scaleZ:K,skew:er,skewX:er,skewY:er,distance:ea,translateX:ea,translateY:ea,translateZ:ea,x:ea,y:ea,z:ea,perspective:ea,transformPerspective:ea,opacity:$,originX:el,originY:el,originZ:ea,zIndex:eu,fillOpacity:$,strokeOpacity:$,numOctaves:eu};function eh(e,t,n,r){let{style:i,vars:a,transform:s,transformOrigin:o}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(X(e)){a[e]=n;continue}let r=ec[e],h=Y(n,r);if(j.has(e)){if(l=!0,s[e]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,o[e]=h):i[e]=h}if(!t.transform&&(l||r?i.transform=function(e,t,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:a=!0}=t,s="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function ep(e,t,n){for(let r in t)z(t[r])||N(r,n)||(e[r]=t[r])}var ef=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function em(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ef.has(e)}var eg=e=>!em(e);function ev(e){e&&(eg=t=>t.startsWith("on")?!em(t):e(t))}try{ev((h(),(0,s.lS)(c)).default)}catch(e){}function ey(e,t,n){return"string"==typeof e?e:ea.transform(t+n*e)}var eb={offset:"stroke-dashoffset",array:"stroke-dasharray"},ew={offset:"strokeDashoffset",array:"strokeDasharray"};function ex(e,t,n,r,i){let{attrX:a,attrY:s,attrScale:o,originX:l,originY:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...p}=t;if(eh(e,p,n,i),r){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==l||void 0!==u||m.transform)&&(m.transformOrigin=function(e,t,n){let r=ey(t,e.x,e.width),i=ey(n,e.y,e.height);return"".concat(r," ").concat(i)}(g,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==a&&(f.x=a),void 0!==s&&(f.y=s),void 0!==o&&(f.scale=o),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];e.pathLength=1;let a=i?eb:ew;e[a.offset]=ea.transform(-r);let s=ea.transform(t),o=ea.transform(n);e[a.array]="".concat(s," ").concat(o)}(f,c,h,d,!1)}var eA=()=>({...ed(),attrs:{}}),ek=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eC(e,t,n,r){let{style:i,vars:a}=t;for(let t in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(t,a[t])}var eP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eV(e,t,n,r){for(let n in eC(e,t,void 0,r),t.attrs)e.setAttribute(eP.has(n)?n:y(n),t.attrs[n])}function eS(e,t){let{style:n}=e,r={};for(let i in n)(z(n[i])||t.style&&z(t.style[i])||N(i,e))&&(r[i]=n[i]);return r}function eM(e,t){let n=eS(e,t);for(let r in e)(z(e[r])||z(t[r]))&&(n[-1!==B.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eE(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function eT(e){let t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}var eF=e=>Array.isArray(e),eR=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eO=e=>eF(e)?e[e.length-1]||0:e,eI=e=>(t,n)=>{let r=(0,o.useContext)(p),i=(0,o.useContext)(f),a=()=>(function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:a,onMount:s}=e,o={latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=function(e){let t=z(e)?e.get():e;return eR(t)?t.toValue():t}(a[e]);let{initial:s,animate:o}=e,l=P(e),u=V(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?o:s;return h&&"boolean"!=typeof h&&!A(h)&&(Array.isArray(h)?h:[h]).forEach(t=>{let n=eE(e,t);if(!n)return;let{transitionEnd:r,transition:a,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(t,n,r,i),renderState:a()};return s&&(o.mount=e=>s(t,e,o)),o})(e,t,r,i);return n?a():eT(a)},eL=e=>e,eD=class{add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}constructor(){this.order=[],this.scheduled=new Set}},eB=["prepare","read","update","preRender","render","postRender"],{schedule:ej,cancel:eN,state:ez,steps:eH}=function(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=eB.reduce((e,t)=>(e[t]=function(e){let t=new eD,n=new eD,r=0,i=!1,a=!1,s=new WeakSet,o={schedule:function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=o&&i,u=l?t:n;return a&&s.add(e),u.add(e)&&l&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;nn=!0),e),{}),s=e=>a[e].process(i),o=()=>{let a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1),i.timestamp=a,i.isProcessing=!0,eB.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(o))},l=()=>{n=!0,r=!0,i.isProcessing||e(o)};return{schedule:eB.reduce((e,t)=>{let r=a[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||l(),r.schedule(e,t,i)},e},{}),cancel:e=>eB.forEach(t=>a[t].cancel(e)),state:i,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eL,!0),eW={useVisualState:eI({scrapeMotionValuesFromProps:eM,createRenderState:eA,onMount:(e,t,n)=>{let{renderState:r,latestValues:i}=n;ej.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),ej.render(()=>{ex(r,i,{enableHardwareAcceleration:!1},ek(t.tagName),e.transformTemplate),eV(t,r)})}})},eU={useVisualState:eI({scrapeMotionValuesFromProps:eS,createRenderState:ed})},eX=function(e){function t(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){let{preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:a}=e;t&&T(t);let s=(0,o.forwardRef)(function(e,s){var l;let u;let c={...(0,o.useContext)(d),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,o.useContext)(F).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:h}=c,y=function(e){let{initial:t,animate:n}=function(e,t){if(P(e)){let{initial:t,animate:n}=e;return{initial:!1===t||x(t)?t:void 0,animate:x(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(p));return(0,o.useMemo)(()=>({initial:t,animate:n}),[S(t),S(n)])}(e),A=i(e,h);if(!h&&m){y.visualElement=function(e,t,n,r){let{visualElement:i}=(0,o.useContext)(p),a=(0,o.useContext)(v),s=(0,o.useContext)(f),l=(0,o.useContext)(d).reducedMotion,u=(0,o.useRef)();r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let c=u.current;(0,o.useInsertionEffect)(()=>{c&&c.update(n,s)});let h=(0,o.useRef)(!!(n[b]&&!window.HandoffComplete));return g(()=>{c&&(c.render(),h.current&&c.animationState&&c.animationState.animateChanges())}),(0,o.useEffect)(()=>{c&&(c.updateFeatures(),!h.current&&c.animationState&&c.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))}),c}(a,A,c,n);let e=(0,o.useContext)(R),r=(0,o.useContext)(v).strict;y.visualElement&&(u=y.visualElement.loadFeatures(c,r,t,e))}return o.createElement(p.Provider,{value:y},u&&y.visualElement?o.createElement(u,{visualElement:y.visualElement,...c}):null,r(a,e,(l=y.visualElement,(0,o.useCallback)(e=>{e&&A.mount&&A.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):w(s)&&(s.current=e))},[l])),A,h,y.visualElement))});return s[O]=a,s}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}(function(e,t,n,r){let{forwardMotionProps:i=!1}=t;return{...L(e)?eW:eU,preloadedFeatures:n,useRender:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n,r,i,a)=>{let{latestValues:s}=i,l=(L(t)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=eA();return ex(n,t,{enableHardwareAcceleration:!1},ek(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ep(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return ep(i,r,e),Object.assign(i,function(e,t,n){let{transformTemplate:r}=e;return(0,o.useMemo)(()=>{let e=ed();return eh(e,t,{enableHardwareAcceleration:!n},r),Object.assign({},e.vars,e.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,s,a,t),u={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(eg(i)||!0===n&&em(i)||!t&&!em(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...l,ref:r},{children:c}=n,h=(0,o.useMemo)(()=>z(c)?c.get():c,[c]);return(0,o.createElement)(t,{...u,children:h})}}(i),createVisualElement:r,Component:e}});function eq(){let e=(0,o.useRef)(!1);return g(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var eY=class extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function e_(e){let{children:t,isPresent:n}=e,r=(0,o.useId)(),i=(0,o.useRef)(null),a=(0,o.useRef)({width:0,height:0,top:0,left:0});return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:o}=a.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(o,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[n]),o.createElement(eY,{isPresent:n,childRef:i,sizeRef:a},o.cloneElement(t,{ref:i}))}var eZ=e=>{let{children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:l}=e,u=eT(e$),c=(0,o.useId)(),h=(0,o.useMemo)(()=>({id:c,initial:n,isPresent:r,custom:a,onExitComplete:e=>{for(let t of(u.set(e,!0),u.values()))if(!t)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),s?void 0:[r]);return(0,o.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),o.useEffect(()=>{r||u.size||!i||i()},[r]),"popLayout"===l&&(t=o.createElement(e_,{isPresent:r},t)),o.createElement(f.Provider,{value:h},t)};function e$(){return new Map}var eK=e=>e.key||"",eG=e=>{var t;let{children:n,custom:r,initial:i=!0,onExitComplete:a,exitBeforeEnter:s,presenceAffectsLayout:l=!0,mode:u="sync"}=e;eL(!s,"Replace exitBeforeEnter with mode='wait'");let c=(0,o.useContext)(F).forceRender||function(){let e=eq(),[t,n]=(0,o.useState)(0),r=(0,o.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,o.useCallback)(()=>ej.postRender(r),[r]),t]}()[0],h=eq(),d=function(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}(n),p=d,f=(0,o.useRef)(new Map).current,m=(0,o.useRef)(p),v=(0,o.useRef)(new Map).current,y=(0,o.useRef)(!0);if(g(()=>{y.current=!1,function(e,t){e.forEach(e=>{let n=eK(e);t.set(n,e)})}(d,v),m.current=p}),t=()=>{y.current=!0,v.clear(),f.clear()},(0,o.useEffect)(()=>()=>t(),[]),y.current)return o.createElement(o.Fragment,null,p.map(e=>o.createElement(eZ,{key:eK(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:l,mode:u},e)));p=[...p];let b=m.current.map(eK),w=d.map(eK),x=b.length;for(let e=0;e{if(-1!==w.indexOf(t))return;let n=v.get(t);if(!n)return;let i=b.indexOf(t),s=e;s||(s=o.createElement(eZ,{key:eK(n),isPresent:!1,onExitComplete:()=>{f.delete(t);let e=Array.from(v.keys()).filter(e=>!w.includes(e));if(e.forEach(e=>v.delete(e)),m.current=d.filter(n=>{let r=eK(n);return r===t||e.includes(r)}),!f.size){if(!1===h.current)return;c(),a&&a()}},custom:r,presenceAffectsLayout:l,mode:u},n),f.set(t,s)),p.splice(i,0,s)}),p=p.map(e=>{let t=e.key;return f.has(t)?e:o.createElement(eZ,{key:eK(e),isPresent:!0,presenceAffectsLayout:l,mode:u},e)}),o.createElement(o.Fragment,null,f.size?p:p.map(e=>(0,o.cloneElement)(e)))};function eJ(e){let{children:t,isValidProp:n,...r}=e;n&&ev(n),(r={...(0,o.useContext)(d),...r}).isStatic=eT(()=>r.isStatic);let i=(0,o.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return o.createElement(d.Provider,{value:i},t)}function eQ(e){let{children:t,features:n,strict:r=!1}=e,[,i]=(0,o.useState)(!e0(n)),a=(0,o.useRef)(void 0);if(!e0(n)){let{renderer:e,...t}=n;a.current=e,T(t)}return(0,o.useEffect)(()=>{e0(n)&&n().then(e=>{let{renderer:t,...n}=e;T(n),a.current=t,i(!0)})},[]),o.createElement(v.Provider,{value:{renderer:a.current,strict:r}},t)}function e0(e){return"function"==typeof e}function e1(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}var e3=e=>1e3*e,e5=e=>e/1e3,e4={current:!1},e6=e=>Array.isArray(e)&&"number"==typeof e[0],e8=e=>{let[t,n,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")},e9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e8([0,.65,.55,1]),circOut:e8([.55,0,1,.45]),backIn:e8([.31,.01,.66,-.59]),backOut:e8([.33,1.53,.69,.99])},e7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function te(e,t,n,r){if(e===t&&n===r)return eL;let i=t=>(function(e,t,n,r,i){let a,s;let o=0;do(a=e7(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:e7(i(e),t,r)}var tt=te(.42,0,1,1),tn=te(0,0,.58,1),tr=te(.42,0,.58,1),ti=e=>Array.isArray(e)&&"number"!=typeof e[0],ta=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ts=e=>t=>1-e(1-t),to=e=>1-Math.sin(Math.acos(e)),tl=ts(to),tu=ta(to),tc=te(.33,1.53,.69,.99),th=ts(tc),td=ta(th),tp={linear:eL,easeIn:tt,easeInOut:tr,easeOut:tn,circIn:to,circInOut:tu,circOut:tl,backIn:th,backInOut:td,backOut:tc,anticipate:e=>(e*=2)<1?.5*th(e):.5*(2-Math.pow(2,-10*(e-1)))},tf=e=>{if(Array.isArray(e)){eL(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return te(t,n,r,i)}return"string"==typeof e?(eL(void 0!==tp[e],"Invalid easing type '".concat(e,"'")),tp[e]):e},tm=(e,t)=>n=>!!(et(n)&&ee.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tg=(e,t,n)=>r=>{if(!et(r))return r;let[i,a,s,o]=r.match(J);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},tv=e=>_(0,255,e),ty={...Z,transform:e=>Math.round(tv(e))},tb={test:tm("rgb","red"),parse:tg("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+ty.transform(t)+", "+ty.transform(n)+", "+ty.transform(r)+", "+G($.transform(i))+")"}},tw={test:tm("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tb.transform},tx={test:tm("hsl","hue"),parse:tg("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+ei.transform(G(n))+", "+ei.transform(G(r))+", "+G($.transform(i))+")"}},tA={test:e=>tb.test(e)||tw.test(e)||tx.test(e),parse:e=>tb.test(e)?tb.parse(e):tx.test(e)?tx.parse(e):tw.parse(e),transform:e=>et(e)?e:e.hasOwnProperty("red")?tb.transform(e):tx.transform(e)},tk=(e,t,n)=>-n*e+n*t+e;function tC(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var tP=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tV=[tw,tb,tx],tS=e=>tV.find(t=>t.test(e));function tM(e){let t=tS(e);eL(!!t,"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));let n=t.parse(e);return t===tx&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,r/=100;let a=0,s=0,o=0;if(n/=100){let e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=tC(i,e,t+1/3),s=tC(i,e,t),o=tC(i,e,t-1/3)}else a=s=o=r;return{red:Math.round(255*a),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(n)),n}var tE=(e,t)=>{let n=tM(e),r=tM(t),i={...n};return e=>(i.red=tP(n.red,r.red,e),i.green=tP(n.green,r.green,e),i.blue=tP(n.blue,r.blue,e),i.alpha=tk(n.alpha,r.alpha,e),tb.transform(i))},tT=(e,t)=>n=>t(e(n)),tF=function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=i;for(let i=0;i"number"==typeof e?0:e,tz={test:function(e){var t,n;return isNaN(e)&&et(e)&&((null===(t=e.match(J))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Q))||void 0===n?void 0:n.length)||0)>0},parse:tB,createTransformer:tj,getAnimatableNone:function(e){let t=tB(e);return tj(e)(t.map(tN))}},tH=(e,t)=>n=>"".concat(n>0?t:e);function tW(e,t){return"number"==typeof e?n=>tk(e,t,n):tA.test(e)?tE(e,t):e.startsWith("var(")?tH(e,t):tq(e,t)}var tU=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tW(e,t[n]));return e=>{for(let t=0;t{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},tq=(e,t)=>{let n=tz.createTransformer(t),r=tD(e),i=tD(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tF(tU(r.values,i.values),n):(eL(!0,"Complex values '".concat(e,"' and '").concat(t,"' 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.")),tH(e,t))},tY=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},t_=(e,t)=>n=>tk(e,t,n);function tZ(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.length;if(eL(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return tA.test(e)?tE:tq;else if(Array.isArray(e))return tU;else if("object"==typeof e)return tX;return t_}(e[0]),a=e.length-1;for(let n=0;n{let n=0;if(o>1)for(;nl(_(e[0],e[a-1],t)):l}function t$(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e,a=ti(i)?i.map(tf):tf(i),s={done:!1,value:n[0]},o=tZ((r&&r.length===n.length?r:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tY(0,t,r);e.push(tk(n,1,i))}}(t,e.length-1),t}(n)).map(e=>e*t),n,{ease:Array.isArray(a)?a:n.map(()=>a||tr).splice(0,n.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}function tK(e,t,n){var r,i;let a=Math.max(t-5,0);return r=n-e(a),(i=t-a)?1e3/i*r:0}function tG(e,t){return e*Math.sqrt(1-t*t)}var tJ=["duration","bounce"],tQ=["stiffness","damping","mass"];function t0(e,t){return t.some(t=>void 0!==e[t])}function t1(e){let t,{keyframes:n,restDelta:r,restSpeed:i,...a}=e,s=n[0],o=n[n.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t0(e,tQ)&&t0(e,tJ)){let n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:a=0,mass:s=1}=e;eL(r<=e3(10),"Spring duration must be 10 seconds or less");let o=1-i;o=_(.05,1,o),r=_(.01,10,e5(r)),o<1?(t=e=>{let t=e*o,n=t*r;return .001-(t-a)/tG(e,o)*Math.exp(-n)},n=e=>{let n=e*o*r,i=Math.pow(o,2)*Math.pow(e,2)*r,s=Math.exp(-n),l=tG(Math.pow(e,2),o);return(n*a+a-i)*s*(-t(e)+.001>0?-1:1)/l}):(t=e=>-.001+Math.exp(-e*r)*((e-a)*r+1),n=e=>r*r*(a-e)*Math.exp(-e*r));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=e3(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:r}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...a,velocity:-e5(a.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*h)),v=o-s,y=e5(Math.sqrt(u/h)),b=5>Math.abs(v);if(i||(i=b?.01:2),r||(r=b?.005:.5),g<1){let e=tG(y,g);t=t=>o-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)t=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);t=t=>{let n=Math.exp(-g*y*t),r=Math.min(e*t,300);return o-n*((m+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{let n=t(e);if(f)l.done=e>=d;else{let a=m;0!==e&&(a=g<1?tK(t,e,n):0);let s=Math.abs(a)<=i,u=Math.abs(o-n)<=r;l.done=s&&u}return l.value=l.done?o:n,l}}}function t2(e){let t,n,{keyframes:r,velocity:i=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:h,restDelta:d=.5,restSpeed:p}=e,f=r[0],m={done:!1,value:f},g=e=>void 0!==c&&eh,v=e=>void 0===c?h:void 0===h?c:Math.abs(c-e)-y*Math.exp(-e/s),A=e=>w+x(e),k=e=>{let t=x(e),n=A(e);m.done=Math.abs(t)<=d,m.value=m.done?w:n},C=e=>{g(m.value)&&(t=e,n=t1({keyframes:[m.value,v(m.value)],velocity:tK(A,e,m.value),damping:o,stiffness:l,restDelta:d,restSpeed:p}))};return C(0),{calculatedDuration:null,next:e=>{let r=!1;return(n||void 0!==t||(r=!0,k(e),C(e)),void 0!==t&&e>t)?n.next(e-t):(r||k(e),m)}}}var t3=e=>{let t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>ej.update(t,!0),stop:()=>eN(t),now:()=>ez.isProcessing?ez.timestamp:performance.now()}};function t5(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}var t4={decay:t2,inertia:t2,tween:t$,keyframes:t$,spring:t1};function t6(e){let t,n,r,i,a,{autoplay:s=!0,delay:o=0,driver:l=t3,keyframes:u,type:c="keyframes",repeat:h=0,repeatDelay:d=0,repeatType:p="loop",onPlay:f,onStop:m,onComplete:g,onUpdate:v,...y}=e,b=1,w=!1,x=()=>{n=new Promise(e=>{t=e})};x();let A=t4[c]||t$;A!==t$&&"number"!=typeof u[0]&&(i=tZ([0,100],u,{clamp:!1}),u=[0,100]);let k=A({...y,keyframes:u});"mirror"===p&&(a=A({...y,keyframes:[...u].reverse(),velocity:-(y.velocity||0)}));let C="idle",P=null,V=null,S=null;null===k.calculatedDuration&&h&&(k.calculatedDuration=t5(k));let{calculatedDuration:M}=k,E=1/0,T=1/0;null!==M&&(T=(E=M+d)*(h+1)-d);let F=0,R=e=>{if(null===V)return;b>0&&(V=Math.min(V,e)),b<0&&(V=Math.min(e-T/b,V));let t=(F=null!==P?P:Math.round(e-V)*b)-o*(b>=0?1:-1),n=b>=0?t<0:t>T;F=Math.max(t,0),"finished"===C&&null===P&&(F=T);let r=F,s=k;if(h){let e=Math.min(F,T)/E,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(n=1-n,d&&(n-=d/E)):"mirror"===p&&(s=a)),r=_(0,1,n)*E}let l=n?{done:!1,value:u[0]}:s.next(r);i&&(l.value=i(l.value));let{done:c}=l;n||null===M||(c=b>=0?F>=T:F<=0);let f=null===P&&("finished"===C||"running"===C&&c);return v&&v(l.value),f&&L(),l},O=()=>{r&&r.stop(),r=void 0},I=()=>{C="idle",O(),t(),x(),V=S=null},L=()=>{C="finished",g&&g(),O(),t()},D=()=>{if(w)return;r||(r=l(R));let e=r.now();f&&f(),null!==P?V=e-P:V&&"finished"!==C||(V=e),"finished"===C&&x(),S=V,P=null,C="running",r.start()};s&&D();let B={then:(e,t)=>n.then(e,t),get time(){return e5(F)},set time(newTime){F=newTime=e3(newTime),null===P&&r&&0!==b?V=r.now()-newTime/b:P=newTime},get duration(){return e5(null===k.calculatedDuration?t5(k):k.calculatedDuration)},get speed(){return b},set speed(newSpeed){if(newSpeed===b||!r)return;b=newSpeed,B.time=e5(F)},get state(){return C},play:D,pause:()=>{C="paused",P=F},stop:()=>{w=!0,"idle"!==C&&(C="idle",m&&m(),I())},cancel:()=>{null!==S&&R(S),I()},complete:()=>{C="finished"},sample:e=>(V=0,R(e))};return B}var t8=function(e){let t;return()=>(void 0===t&&(t=e()),t)}(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t9=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),t7=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&e9[t]||e6(t)||Array.isArray(t)&&t.every(e))}(t.ease),ne={type:"spring",stiffness:500,damping:25,restSpeed:10},nt=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),nn={type:"keyframes",duration:.8},nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ni=(e,t)=>{let{keyframes:n}=t;return n.length>2?nn:j.has(e)?e.startsWith("scale")?nt(n[1]):ne:nr},na=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tz.test(t)||"0"===t)&&!t.startsWith("url(")),ns=new Set(["brightness","contrast","saturate","opacity"]);function no(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(J)||[];if(!r)return e;let i=n.replace(r,""),a=ns.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}var nl=/([a-z-]*)\(.*?\)/g,nu={...tz,getAnimatableNone:e=>{let t=e.match(nl);return t?t.map(no).join(" "):e}},nc={...ec,color:tA,backgroundColor:tA,outlineColor:tA,fill:tA,stroke:tA,borderColor:tA,borderTopColor:tA,borderRightColor:tA,borderBottomColor:tA,borderLeftColor:tA,filter:nu,WebkitFilter:nu},nh=e=>nc[e];function nd(e,t){let n=nh(e);return n!==nu&&(n=tz),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var np=e=>/^0[^.\s]+$/.test(e);function nf(e,t){return e[t]||e.default||e}var nm={skipAnimations:!1},ng=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let a=nf(r,e)||{},s=a.delay||r.delay||0,{elapsed:o=0}=r;o-=e3(s);let l=function(e,t,n,r){let i,a;let s=na(t,n);i=Array.isArray(n)?[...n]:[null,n];let o=void 0!==r.from?r.from:e.get(),l=[];for(let e=0;e{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(!function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:s,repeatType:o,repeatDelay:l,from:u,elapsed:c,...h}=e;return!!Object.keys(h).length}(a)&&(p={...p,...ni(e,p)}),p.duration&&(p.duration=e3(p.duration)),p.repeatDelay&&(p.repeatDelay=e3(p.repeatDelay)),!h||!d||e4.current||!1===a.type||nm.skipAnimations)return function(e){let{keyframes:t,delay:n,onUpdate:r,onComplete:i}=e,a=()=>(r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:eL,pause:eL,stop:eL,then:e=>(e(),Promise.resolve()),cancel:eL,complete:eL});return n?t6({keyframes:[0,1],duration:0,delay:n,onComplete:a}):a()}(e4.current?{...p,delay:0}:p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,n){let r,i,{onUpdate:a,onComplete:s,...o}=n;if(!(t8()&&t9.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let l=!1,u=!1,c=()=>{i=new Promise(e=>{r=e})};c();let{keyframes:h,duration:d=300,ease:p,times:f}=o;if(t7(t,o)){let e=t6({...o,repeat:0,delay:0}),t={done:!1,value:h[0]},n=[],r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,h=n,d=r-10,p="linear"}let m=function(e,t,n){let{delay:r=0,duration:i,repeat:a=0,repeatType:s="loop",ease:o,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[t]:n};l&&(u.offset=l);let c=function e(t){if(t)return e6(t)?e8(t):Array.isArray(t)?t.map(e):e9[t]}(o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,h,{...o,duration:d,ease:p,times:f}),g=()=>{u=!1,m.cancel()},v=()=>{u=!0,ej.update(g),r(),c()};return m.onfinish=()=>{u||(e.set(function(e,t){let{repeat:n,repeatType:r="loop"}=t,i=n&&"loop"!==r&&n%2==1?0:e.length-1;return e[i]}(h,o)),s&&s(),v())},{then:(e,t)=>i.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,eL),get time(){return e5(m.currentTime||0)},set time(newTime){m.currentTime=e3(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return e5(d)},play:()=>{l||(m.play(),eN(g))},pause:()=>m.pause(),stop:()=>{if(l=!0,"idle"===m.playState)return;let{currentTime:t}=m;if(t){let n=t6({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}v()},complete:()=>{u||m.finish()},cancel:v}}(t,e,p);if(n)return n}return t6(p)}};function nv(e){return!!(z(e)&&e.add)}var ny=e=>/^\-?\d*\.?\d+$/.test(e),nb=class{add(e){var t;return -1===(t=this.subscriptions).indexOf(e)&&t.push(e),()=>(function(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)})(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e)),nx={current:void 0},nA=class{onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nb);let n=this.events[e].add(t);return"change"===e?()=>{n(),ej.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nx.current&&nx.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(e,t={}){var n=this;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.prev=n.current,n.current=e;let{delta:r,timestamp:i}=ez;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,ej.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.events.change&&n.events.change.notify(n.current),n.events.velocityChange&&n.events.velocityChange.notify(n.getVelocity()),t&&n.events.renderRequest&&n.events.renderRequest.notify(n.current)},this.scheduleVelocityCheck=()=>ej.postRender(this.velocityCheck),this.velocityCheck=e=>{let{timestamp:t}=e;t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=nw(this.current),this.owner=t.owner}};function nk(e,t){return new nA(e,t)}var nC=e=>t=>t.test(e),nP=[Z,ea,ei,er,eo,es,{test:e=>"auto"===e,parse:e=>e}],nV=e=>nP.find(nC(e)),nS=[...nP,tA,tz],nM=e=>nS.find(nC(e));function nE(e,t){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=e.makeTargetAnimatable(t),l=e.getValue("willChange");r&&(a=r);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let r=e.getValue(t),i=o[t];if(!r||void 0===i||c&&function(e,t){let{protectedKeys:n,needsAnimating:r}=e,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(c,t))continue;let s={delay:n,elapsed:0,...nf(a||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[b];if(n){let e=window.HandoffAppearAnimations(n,t,r,ej);null!==e&&(s.elapsed=e,s.isHandoff=!0)}}let h=!s.isHandoff&&!function(e,t){let n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;el.remove(t))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(e,t){let n=e2(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=eO(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nk(n))}}(e,s)}),u}function nT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e2(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(nE(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0,s=[],o=(e.variantChildren.size-1)*r,l=1===i?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e*r}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-e*r};return Array.from(e.variantChildren).sort(nF).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(nT(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,a+r,s,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}function nF(e,t){return e.sortNodePosition(t)}var nR=[...k].reverse(),nO=k.length;function nI(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var nL=class{update(){}constructor(e){this.isMounted=!1,this.node=e}},nD=class extends nL{updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),A(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nT(e,t,r)));else if("string"==typeof t)n=nT(e,t,r);else{let i="function"==typeof t?e2(e,t,r.custom):t;n=Promise.all(nE(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}(e,n,r)})),n={animate:nI(!0),whileInView:nI(),whileHover:nI(),whileTap:nI(),whileDrag:nI(),whileFocus:nI(),exit:nI()},r=!0,i=(t,n)=>{let r=e2(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,s){let o=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,h={},d=1/0;for(let t=0;td&&v),k=!1,C=Array.isArray(g)?g:[g],P=C.reduce(i,{});!1===y&&(P={});let{prevResolvedValues:V={}}=m,S={...V,...P},M=e=>{w=!0,c.has(e)&&(k=!0,c.delete(e)),m.needsAnimating[e]=!0};for(let e in S){let t=P[e],n=V[e];if(!h.hasOwnProperty(e))(eF(t)&&eF(n)?e1(t,n):t===n)?void 0!==t&&c.has(e)?M(e):m.protectedKeys[e]=!0:void 0!==t?M(e):c.add(e)}m.prevProp=g,m.prevResolvedValues=P,m.isActive&&(h={...h,...P}),r&&e.blockInitialAnimation&&(w=!1),w&&(!b||k)&&u.push(...C.map(e=>({animation:e,options:{type:f,...a}})))}if(c.size){let t={};c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let f=!!u.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let o=a(i,t);for(let e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}},nB=0,nj=class extends nL{update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}constructor(){super(...arguments),this.id=nB++}};function nN(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var nz=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e[t+"X"],y:e[t+"Y"]}}}var nW=e=>t=>nz(t)&&e(t,nH(t));function nU(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}var nX=nU("dragHorizontal"),nq=nU("dragVertical");function nY(){let e=function(e){let t=!1;if("y"===e)t=nq();else if("x"===e)t=nX();else{let e=nX(),n=nq();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}(!0);return!e||(e(),!1)}function n_(e,t){var n,r,i;let a="pointer"+(t?"enter":"leave"),s="onHover"+(t?"Start":"End");return n=e.current,r=(n,r)=>{if("touch"===n.pointerType||nY())return;let i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[s]&&ej.update(()=>i[s](n,r))},i={passive:!e.getProps()[s]},nN(n,a,nW(r),i)}var nZ=class extends nL{onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tF(nN(this.node.current,"focus",()=>this.onFocus()),nN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}},n$=(e,t)=>!!t&&(e===t||n$(e,t.parentElement));function nK(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,nH(n))}var nG=class extends nL{startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ej.update(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nY()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&ej.update(()=>n(e,t))}mount(){var e,t,n,r;let i=this.node.getProps(),a=(e=i.globalTapTarget?window:this.node.current,t="pointerdown",n=this.startPointerPress,r={passive:!(i.onTapStart||i.onPointerStart)},nN(e,t,nW(n),r)),s=nN(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tF(a,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=eL,this.removeEndListeners=eL,this.removeAccessibleListeners=eL,this.startPointerPress=(e,t)=>{var n,r,i,a,s,o,l,u;if(this.isPressing)return;this.removeEndListeners();let c=this.node.getProps(),h=(n=window,r="pointerup",i=(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();ej.update(()=>{i||n$(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},a={passive:!(c.onTap||c.onPointerUp)},nN(n,r,nW(i),a)),d=(s=window,o="pointercancel",l=(e,t)=>this.cancelPress(e,t),u={passive:!(c.onTapCancel||c.onPointerCancel)},nN(s,o,nW(l),u));this.removeEndListeners=tF(h,d),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=nN(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=nN(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&nK("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&ej.update(()=>n(e,t))})}),nK("down",(e,t)=>{this.startPress(e,t)}))}),t=nN(this.node.current,"blur",()=>{this.isPressing&&nK("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=tF(e,t)}}},nJ=new WeakMap,nQ=new WeakMap,n0=e=>{let t=nJ.get(e.target);t&&t(e)},n1=e=>{e.forEach(n0)},n2={some:0,all:1},n3=class extends nL{startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:n2[r]};return function(e,t,n){let r=function(e){let{root:t,...n}=e,r=t||document;nQ.has(r)||nQ.set(r,{});let i=nQ.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(n1,{root:t,...n})),i[a]}(t);return nJ.set(e,n),r.observe(e),()=>{nJ.delete(e),r.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}},n5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function n4(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;eL(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[r,i]=function(e){let t=n5.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ny(e)?parseFloat(e):e}return q(i)?n4(i,t,n+1):i}var n6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),n8=e=>n6.has(e),n9=e=>Object.keys(e).some(n8),n7=e=>e===Z||e===ea,re=(e,t)=>parseFloat(e.split(", ")[t]),rt=(e,t)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;let a=i.match(/^matrix3d\((.+)\)$/);if(a)return re(a[1],t);{let t=i.match(/^matrix\((.+)\)$/);return t?re(t[1],e):0}},rn=new Set(["x","y","z"]),rr=B.filter(e=>!rn.has(e)),ri={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:rt(4,13),y:rt(5,14)};ri.translateX=ri.x,ri.translateY=ri.y;var ra=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=ri[e](r,i)}),t.render();let o=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(s[n]),e[n]=ri[n](o,i)}),e},rs=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t={...t},r={...r};let i=Object.keys(t).filter(n8),a=[],s=!1,o=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],h=nV(c),d=t[i];if(eF(d)){let e=d.length,t=null===d[0]?1:0;h=nV(c=d[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),o.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(d))}}),!o.length)return{target:t,transitionEnd:r};{let n=o.indexOf("height")>=0?window.pageYOffset:null,i=ra(t,e,o);return a.length&&a.forEach(t=>{let[n,r]=t;e.getValue(n).set(r)}),e.render(),m&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ro=(e,t,n,r)=>{let i=function(e,t,n){let{...r}=t,i=e.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(let t in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!q(t))return;let n=n4(t,i);n&&e.set(n)}),r){let e=r[t];if(!q(e))continue;let a=n4(e,i);a&&(r[t]=a,n||(n={}),void 0===n[t]&&(n[t]=e))}return{target:r,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return n9(t)?rs(e,t,n,r):{target:t,transitionEnd:r}}(e,t=i.target,n,r=i.transitionEnd)},rl=()=>({min:0,max:0}),ru=()=>({x:rl(),y:rl()}),rc={current:null},rh={current:!1},rd=new WeakMap,rp=Object.keys(E),rf=rp.length,rm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rg=C.length,rv=class{scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,rd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rh.current||function(){if(rh.current=!0,m){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rc.current=e.matches;e.addListener(t),t()}else rc.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rd.delete(this.current),this.projection&&this.projection.unmount(),eN(this.notifyUpdate),eN(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=j.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ej.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r){let i,a,{children:s,...o}=e;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof t?t:"both",initialPromotionConfig:r,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ru()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t0&&void 0!==arguments[0]&&arguments[0];if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;et.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=nk(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=eE(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||z(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nb),this.events[e].add(t)}notify(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rthis.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ej.render(this.render,!1,!0);let{latestValues:s,renderState:o}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=o,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.isControllingVariants=P(t),this.isVariantNode=V(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==s[e]&&z(t)&&(t.set(s[e],!1),nv(l)&&l.add(e))}}},ry=class extends rv{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}makeTargetAnimatableFromInstance(e,t,n){let{transition:r,transitionEnd:i,...a}=e,{transformValues:s}=t,o=function(e,t,n){let r={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)r[i]=e;else{let e=n.getValue(i);e&&(r[i]=e.get())}}return r}(a,r||{},this);if(s&&(i&&(i=s(i)),a&&(a=s(a)),o&&(o=s(o))),n){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),s=a.length;if(s)for(let o=0;o{this.current&&(this.current.textContent="".concat(e))}))}renderInstance(e,t,n,r){eC(e,t,n,r)}constructor(){super(...arguments),this.type="html"}},rw=class extends ry{getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(j.has(t)){let e=nh(t);return e&&e.default||0}return t=eP.has(t)?t:y(t),e.getAttribute(t)}measureInstanceViewportBox(){return ru()}scrapeMotionValuesFromProps(e,t){return eM(e,t)}build(e,t,n,r){ex(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eV(e,t,n,r)}mount(e){this.isSVGTag=ek(e.tagName),super.mount(e)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}},rx={renderer:(e,t)=>L(e)?new rw(t,{enableHardwareAcceleration:!1}):new rb(t,{enableHardwareAcceleration:!0}),animation:{Feature:nD},exit:{Feature:nj},inView:{Feature:n3},tap:{Feature:nG},focus:{Feature:nZ},hover:{Feature:class extends nL{mount(){this.unmount=tF(n_(this.node,!0),n_(this.node,!1))}unmount(){}}}}}}]);