PageSourceSearch

https://nafsihub.org/_next/static/chunks/0hy6ag-egjhnh.js

js nafsihub.org collected 2026-10-05 20:39:55 UTC 119,360 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39016,46628,t=>{"use strict";var e=t.i(91788);let i="u">typeof document;t.s(["isBrowser",0,i],46628);let r=i?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,r],39016)},99613,t=>{"use strict";var e=t.i(91788),i=t.i(39016);t.s(["useIsMounted",0,function(){let t=(0,e.useRef)(!1);return(0,i.useIsomorphicLayoutEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}])},73639,92164,t=>{"use strict";var e;let i,r,n,s,a,o,l=t=>t;t.s(["noop",0,l],92164);class u{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let h=["prepare","read","update","preRender","render","postRender"],{schedule:c,cancel:d,state:p,steps:m}=(e="u">typeof requestAnimationFrame?requestAnimationFrame:l,i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=h.reduce((t,e)=>{var r;let n,s,a,o,l,h,c;return t[e]=(r=()=>i=!0,n=new u,s=new u,a=0,o=!1,l=!1,h=new WeakSet,c={schedule:(t,e=!1,i=!1)=>{let r=i&&o,l=r?n:s;return e&&h.add(t),l.add(t)&&r&&o&&(a=n.order.length),t},cancel:t=>{s.remove(t),h.delete(t)},process:t=>{if(o){l=!0;return}if(o=!0,[n,s]=[s,n],s.clear(),a=n.order.length)for(let e=0;e<a;e++){let i=n.order[e];i(t),h.has(i)&&(c.schedule(i),r())}o=!1,l&&(l=!1,c.process(t))}}),t},{}),a=t=>s[t].process(n),o=()=>{let t=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(t-n.timestamp,40),1),n.timestamp=t,n.isProcessing=!0,h.forEach(a),n.isProcessing=!1,i&&(r=!1,e(o))},{schedule:h.reduce((t,a)=>{let l=s[a];return t[a]=(t,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(o)),l.schedule(t,s,a)),t},{}),cancel:t=>
1h.forEach(e=>s[e].cancel(t)),state:n,steps:s});t.s(["cancelFrame",0,d,"frame",0,c,"frameData",0,p,"steps",0,m],73639)},10581,t=>{"use strict";var e=t.i(91788),i=t.i(99613),r=t.i(73639);t.s(["useForceUpdate",0,function(){let t=(0,i.useIsMounted)(),[n,s]=(0,e.useState)(0),a=(0,e.useCallback)(()=>{t.current&&s(n+1)},[n]);return[(0,e.useCallback)(()=>r.frame.postRender(a),[a]),n]}])},62946,t=>{"use strict";let e=(0,t.i(91788).createContext)(null);t.s(["PresenceContext",0,e])},57126,t=>{"use strict";var e=t.i(91788);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},46588,t=>{"use strict";var e=t.i(91788),i=t.i(62946),r=t.i(57126),n=e;class s extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a({children:t,isPresent:e}){let i=(0,n.useId)(),r=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:t,height:n,top:s,left:a}=o.current;if(e||!r.current||!t||!n)return;r.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${n}px !important;
6            top: ${s}px !important;
7            left: ${a}px !important;
8          }
9        `),()=>{document.head.removeChild(l)}},[e]),n.createElement(s,{isPresent:e,childRef:r,sizeRef:o},n.cloneElement(t,{ref:r}))}function o(){return new Map}t.s(["PresenceChild",0,({children:t,initial:n,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:h,mode:c})=>{let d=(0,r.useConstant)(o),p=(0,e.useId)(),m=(0,e.useMemo)(()=>({id:p,initial:n,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;l&&l()},register:t=>(d.set(t,!1),()=>d.delete(t))}),h?void 0:[s]);return(0,e.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[s]),e.useEffect(()=>{s||d.size||!l||l()},[s]),"popLayout"===c&&(t=e.createElement(a,{isPresent:s},t)),e.createElement(i.PresenceContext.Provider,{value:m},t)}],46588)},11535,t=>{"use strict";let e=(0,t.i(91788).createContext)({});t.s(["LayoutGroupContext",0,e])},16320,t=>{"use strict";var e=t.i(91788);t.s(["useUnmountEffect",0,function(t){return(0,e.useEffect)(()=>()=>t(),[])}])},86312,t=>{"use strict";var e=t.i(92164);let i=e.noop,r=e.noop;t.s(["invariant",0,r,"warning",0,i])},98817,t=>{"use strict";var e=t.i(91788),i=t.i(10581),r=t.i(99613),n=t.i(46588),s=t.i(11535),a=t.i(39016),o=t.i(16320),l=t.i(86312);let u=t=>t.key||"";t.s(["AnimatePresence",0,({children:t,custom:h,initial:c=!0,onExitComplete:d,exitBeforeEnter:p,presenceAffectsLayout:m=!0,mode:f="sync"})=>{let g;(0,l.invariant)(!p,"Replace exitBeforeEnter with mode='wait'");let v=(0,e.useContext)(s.LayoutGroupContext).forceRender||(0,i.useForceUpdate)()[0],y=(0,r.useIsMounted)(),x=(g=[],e.Children.forEach(t,t=>{(0,e.isValidElement)(t)&&g.push(t)}),g),P=x,b=(0,e.useRef)(new Map).current,T=(0,e.useRef)(P),V=(0,e.useRef)(new Map).current,S=(0,e.useRef)(!0);if((0,a.useIsomorphicLayoutEffect)(()=>{S.current=!1,x.forEach(t=>{let e=u(t);V.set(e,t)}),T.current=P}),(0,o.useUnmountEffect)(()=>{S.current=!0,V.clear(),b.clear()}),S.current)return e.createElement(e.Fragment,null,P.map(t=>e.createElement(n.PresenceChild,{key:u(t),isPresent:!0,initial:!!c&&void 0,presenceAffectsLayout:m,mode:f},t)));P=[...P];let C=T.current.map(u),w=x.map(u),A=C.length;for(let t=0;t<A;t++){let e=C[t];-1!==w.indexOf(e)||b.has(e)||b.set(e,void 0)}return"wait"===f&&b.size&&(P=[]),b.forEach((t,i)=>{if(-1!==w.indexOf(i))return;let r=V.get(i);if(!r)return;let s=C.indexOf(i),a=t;a||(a=e.createElement(n.PresenceChild,{key:u(r),isPresent:!1,onExitComplete:()=>{b.delete(i);let t=Array.from(V.keys()).filter(t=>!w.includes(t));if(t.forEach(t=>V.delete(t)),T.current=x.filter(e=>{let r=u(e);return r===i||t.includes(r)}),!b.size){if(!1===y.current)return;v(),d&&d()}},custom:h,presenceAffectsLayout:m,mode:f},r),b.set(i,a)),P.splice(s,0,a)}),P=P.map(t=>{let i=t.key;return b.has(i)?t:e.createElement(n.PresenceChild,{key:u(t),isPresent:!0,presenceAffectsLayout:m,mode:f},t)}),e.createElement(e.Fragment,null,b.size?P:P.map(t=>(0,e.cloneElement)(t)))}])},36241,t=>{"use strict";var e=t.i(91788);t.s(["useCallbackRef",0,function(t,i=[]){let r=(0,e.useRef)(t);return(0,e.useEffect)(()=>{r.current=t}),(0,e.useCallback)((...t)=>r.current?.(...t),i)}])},86398,t=>{"use strict";var e=t.i(91788),i=t.i(62946);t.s(["useIsPresent",0,function(){var t;return null===(t=(0,e.useContext)(i.PresenceContext))||t.isPresent},"usePresence",0,function(){let t=(0,e.useContext)(i.PresenceContext);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:s}=t,a=(0,e.useId)();return(0,e.useEffect)(()=>s(a),[]),!r&&n?[!1,()=>n&&n(a)]:[!0]}])},12600,64357,t=>{"use strict";var e=t.i(91788);let i=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,i],12600);let r=(0,e.createContext)({});t.s(["MotionContext",0,r],64357)},80144,64854,88212,60833,43392,7572,42607,29096,14344,55647,86649,83896,99991,t=>{"use strict";var e=t.i(91788),i=t.i(62946),r=t.i(64357),n=t.i(39016);let s=(0,e.createContext)({strict:!1});t.s(["LazyContext",0,s],64854);var a=t.i(12600);let o=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();t.s(["camelToDash",0,o],88212);let l="data-"+o("framerAppearId");function u(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function h(t){return"string"==typeof t||Array.isArray(t)}function c(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.s(["optimizedAppearDataAttribute",0,l],60833),t.s(["useVisualElement",0,function(t,o,u,h){let{visualElement:c}=(0,e.useContext)(r.MotionContext),d=(0,e.useContext)(s),p=(0,e.useContext)(i.PresenceContext),m=(0,e.useContext)(a.MotionConfigContext).reducedMotion,f=(0,e.useRef)();h=h||d.renderer,!f.current&&h&&(f.current=h(t,{visualState:o,parent:c,props:u,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;(0,e.useInsertionEffect)(()=>{g&&g.update(u,p)});let v=(0,e.useRef)(!!(u[l]&&!window.HandoffComplete));return(0,n.useIsomorphicLayoutEffect)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,e.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}],80144),t.s(["isRefObject",0,u],43392),t.s(["useMotionRef",0,function(t,i,r){return(0,e.useCallback)(e=>
9{e&&t.mount&&t.mount(e),i&&(e?i.mount(e):i.unmount()),r&&("function"==typeof r?r(e):u(r)&&(r.current=e))},[i])}],7572),t.s(["isVariantLabel",0,h],42607),t.s(["isAnimationControls",0,c],29096);let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...d];function m(t){return c(t.animate)||p.some(e=>h(t[e]))}function f(t){return Array.isArray(t)?t.join(" "):t}t.s(["variantPriorityOrder",0,d,"variantProps",0,p],14344),t.s(["isControllingVariants",0,m,"isVariantNode",0,function(t){return!!(m(t)||t.variants)}],55647),t.s(["useCreateMotionContext",0,function(t){let{initial:i,animate:n}=function(t,e){if(m(t)){let{initial:e,animate:i}=t;return{initial:!1===e||h(e)?e:void 0,animate:h(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(r.MotionContext));return(0,e.useMemo)(()=>({initial:i,animate:n}),[f(i),f(n)])}],86649);let g={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"]},v={};for(let t in g)v[t]={isEnabled:e=>g[t].some(t=>!!e[t])};t.s(["featureDefinitions",0,v],83896),t.s(["loadFeatures",0,function(t){for(let e in t)v[e]={...v[e],...t[e]}}],99991)},19368,t=>{"use strict";var e,i,r=/^((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)-.*))$/,n=(e=function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i={},function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",0,n],19368)},92306,22469,28167,4606,8487,85461,66179,26749,454,18312,43755,60679,47799,1629,28235,33416,89124,45375,38777,48073,84804,6591,9643,10840,72158,t=>{"use strict";var e,i=t.i(91788),r=t.i(12600),n=t.i(64357),s=t.i(80144),a=t.i(
97572),o=t.i(86649),l=t.i(99991),u=t.i(46628),h=t.i(11535),c=t.i(64854);let d=(0,i.createContext)({});t.s(["SwitchLayoutGroupContext",0,d],22469);let p=Symbol.for("motionComponentSymbol");function m({preloadedFeatures:t,createVisualElement:e,useRender:f,useVisualState:g,Component:v}){t&&(0,l.loadFeatures)(t);let y=(0,i.forwardRef)(function(l,p){let m,y={...(0,i.useContext)(r.MotionConfigContext),...l,layoutId:function({layoutId:t}){let e=(0,i.useContext)(h.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(l)},{isStatic:x}=y,P=(0,o.useCreateMotionContext)(l),b=g(l,x);if(!x&&u.isBrowser){P.visualElement=(0,s.useVisualElement)(v,b,y,e);let r=(0,i.useContext)(d),n=(0,i.useContext)(c.LazyContext).strict;P.visualElement&&(m=P.visualElement.loadFeatures(y,n,t,r))}return i.createElement(n.MotionContext.Provider,{value:P},m&&P.visualElement?i.createElement(m,{visualElement:P.visualElement,...y}):null,f(v,l,(0,a.useMotionRef)(b,P.visualElement,p),b,x,P.visualElement))});return y[p]=v,y}t.s(["createMotionComponent",0,m],92306),t.s(["createMotionProxy",0,function(t){function e(i,r={}){return m(t(i,r))}if("u"<typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,r)=>(i.has(r)||i.set(r,e(r)),i.get(r))})}],28167);let f=["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 g(t){if("string"!=typeof t||t.includes("-"));else if(f.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}t.s(["isSVGComponent",0,g],4606);let v={};t.s(["addScaleCorrector",0,function(t){Object.assign(v,t)},"scaleCorrectors",0,v],8487);let y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(y);function P(t,{layout:e,layoutId:i}){return x.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!v[t]||"opacity"===t)}t.s(["transformPropOrder",0,y,"transformProps",0,x],85461);let b=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",0,b],66179);let T={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V=y.length,S=t=>e=>"string"==typeof e&&e.startsWith(t),C=S("--"),w=S("var(--");
9t.s(["cssVariableRegex",0,/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,"isCSSVariableName",0,C,"isCSSVariableToken",0,w],26749);let A=(t,e)=>e&&"number"==typeof t?e.transform(t):t,E=(t,e,i)=>Math.min(Math.max(i,t),e);t.s(["clamp",0,E],454);let M={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},D={...M,transform:t=>E(0,1,t)},k={...M,default:1};function R(t){return"string"==typeof t}t.s(["alpha",0,D,"number",0,M,"scale",0,k],18312),t.s(["colorRegex",0,/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,"floatRegex",0,/(-)?([\d]*\.?[\d])+/g,"isString",0,R,"sanitize",0,t=>Math.round(1e5*t)/1e5,"singleColorRegex",0,/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i],43755);let L=t=>({test:e=>R(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),B=L("deg"),F=L("%"),j=L("px"),O=L("vh"),I=L("vw"),U={...F,parse:t=>F.parse(t)/100,transform:t=>F.transform(100*t)};t.s(["degrees",0,B,"percent",0,F,"progressPercentage",0,U,"px",0,j,"vh",0,O,"vw",0,I],60679);let N={...M,transform:Math.round},z={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,size:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:B,rotateX:B,rotateY:B,rotateZ:B,scale:k,scaleX:k,scaleY:k,scaleZ:k,skew:B,skewX:B,skewY:B,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:D,originX:U,originY:U,originZ:j,zIndex:N,fillOpacity:D,strokeOpacity:D,numOctaves:N};function W(t,e,i,r){let{style:n,vars:s,transform:a,transformOrigin:o}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(C(t)){s[t]=i;continue}let r=z[t],c=A(i,r);if(x.has(t)){if(l=!0,a[t]=c,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,o[t]=c):n[t]=c}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},r,n){let s="";for(let e=0;e<V;e++){let i=y[e];if(void 0!==t[i]){let e=T[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):i&&r&&(s="none"),s}(t.transform,i,h,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}t.s(["numberValueTypes",0,z],47799),t.s(["buildHTMLStyles",0,W],1629);let $=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H(t,e,i){for(let r in e)b(e[r])||P(r,i)||(t[r]=e[r])}t.s(["createHtmlRenderState",0,$],28235);let G=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 X(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||G.has(t)}let Y=t=>!X(t);try{(e=t.r(19368).default)&&(Y=t=>t.startsWith("on")?!X(t):e(t))}catch(t){}function q(t,e,i){return"string"==typeof t?t:j.transform(e+i*t)}let K={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z={offset:"strokeDashoffset",array:"strokeDasharray"};function _(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},h,c,d){let p,m;if(W(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g,dimensions:v}=t;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(void 0!==n||void 0!==s||g.transform)&&(p=q(void 0!==n?n:.5,v.x,v.width),m=q(void 0!==s?s:.5,v.y,v.height),g.transformOrigin=`${p} ${m}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==r&&(f.scale=r),void 0!==a&&function(t,e,
9i=1,r=0,n=!0){t.pathLength=1;let s=n?K:Z;t[s.offset]=j.transform(-r);let a=j.transform(e),o=j.transform(i);t[s.array]=`${a} ${o}`}(f,a,o,l,!1)}t.s(["buildSVGAttrs",0,_],33416);let J=()=>({...$(),attrs:{}});t.s(["createSvgRenderState",0,J],89124);let Q=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["isSVGTag",0,Q],45375),t.s(["createUseRender",0,function(t=!1){return(e,r,n,{latestValues:s},a)=>{let o=(g(e)?function(t,e,r,n){let s=(0,i.useMemo)(()=>{let i=J();return _(i,e,{enableHardwareAcceleration:!1},Q(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};H(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e,r){let n,s,a={},o=(n=t.style||{},H(s={},n,t),Object.assign(s,function({transformTemplate:t},e,r){return(0,i.useMemo)(()=>{let i=$();return W(i,e,{enableHardwareAcceleration:!r},t),Object.assign({},i.vars,i.style)},[e])}(t,e,r)),t.transformValues?t.transformValues(s):s);return t.drag&&!1!==t.dragListener&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(a.tabIndex=0),a.style=o,a})(r,s,a,e),l={...function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(Y(n)||!0===i&&X(n)||!e&&!X(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(r,"string"==typeof e,t),...o,ref:n},{children:u}=r,h=(0,i.useMemo)(()=>b(u)?u.get():u,[u]);return(0,i.createElement)(e,{...l,children:h})}}],38777);var tt=t.i(88212);function te(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}t.s(["renderHTML",0,te],48073);let ti=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tr(t,e){let{style:i}=t,r={};for(let n in i)(b(i[n])||e.style&&b(e.style[n])||P(n,t))&&(r[n]=i[n]);return r}t.s(["camelCaseAttributes",0,ti],84804),t.s(["renderSVG",0,function(t,e,i,r){for(let i in te(t,e,void 0,r),e.attrs)t.setAttribute(ti.has(i)?i:(0,tt.camelToDash)(i),e.attrs[i])}],6591),t.s(["scrapeMotionValuesFromProps",0,tr],9643),t.s(["scrapeMotionValuesFromProps",0,function(t,e){let i=tr(t,e);for(let r in t)(b(t[r])||b(e[r]))&&(i[-1!==y.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}],10840),t.s(["resolveVariantFromProps",0,function(t,e,i,r={},n={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),e}],72158)},25179,93967,34167,24416,t=>{"use strict";var e=t.i(91788),i=t.i(29096),r=t.i(62946),n=t.i(72158),s=t.i(57126);let a=t=>Array.isArray(t);t.s(["isKeyframesTarget",0,a],93967);let o=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue);t.s(["isCustomValue",0,o,"resolveFinalValueInKeyframes",0,t=>a(t)?t[t.length-1]||0:t],34167);var l=t.i(66179);function u(t){let e=(0,l.isMotionValue)(t)?t.get():t;return o(e)?e.toValue():e}t.s(["resolveMotionValue",0,u],24416);var h=t.i(64357),c=t.i(55647);t.s(["makeUseVisualState",0,t=>(a,o)=>{let l=(0,e.useContext)(h.MotionContext),d=(0,e.useContext)(r.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},s,a,o){let l={latestValues:function(t,e,r,s){let a={},o=s(t,{});for(let t in o)a[t]=u(o[t]);let{initial:l,animate:h}=t,d=(0,c.isControllingVariants)(t),p=(0,c.isVariantNode)(t);e&&p&&!d&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===h&&(h=e.animate));let m=!!r&&!1===r.initial,f=(m=m||!1===l)?h:l;return f&&"boolean"!=typeof f&&!(0,i.isAnimationControls)(f)&&(Array.isArray(f)?f:[f]).forEach(e=>{let i=(0,n.resolveVariantFromProps)(t,e);if(!i)return;let{transitionEnd:r,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(a[t]=e)}for(let t in r)a[t]=r[t]}),a}(s,a,o,t),renderState:e()};return r&&(l.mount=t=>r(s,t,l)),l})(t,a,l,d);
9return o?p():(0,s.useConstant)(p)}],25179)},51293,71800,62415,26470,73138,38775,88234,96327,96643,44426,75913,t=>{"use strict";var e=t.i(4606),i=t.i(38777),r=t.i(6591),n=t.i(10840),s=t.i(25179),a=t.i(89124),o=t.i(33416),l=t.i(45375),u=t.i(73639);let h={useVisualState:(0,s.makeUseVisualState)({scrapeMotionValuesFromProps:n.scrapeMotionValuesFromProps,createRenderState:a.createSvgRenderState,onMount:(t,e,{renderState:i,latestValues:n})=>{u.frame.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),u.frame.render(()=>{(0,o.buildSVGAttrs)(i,n,{enableHardwareAcceleration:!1},(0,l.isSVGTag)(e.tagName),t.transformTemplate),(0,r.renderSVG)(e,i)})}})};var c=t.i(9643),d=t.i(28235);let p={useVisualState:(0,s.makeUseVisualState)({scrapeMotionValuesFromProps:c.scrapeMotionValuesFromProps,createRenderState:d.createHtmlRenderState})};function m(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}t.s(["createDomMotionConfig",0,function(t,{forwardMotionProps:r=!1},n,s){return{...(0,e.isSVGComponent)(t)?h:p,preloadedFeatures:n,useRender:(0,i.createUseRender)(r),createVisualElement:s,Component:t}}],51293),t.s(["addDomEvent",0,m],71800);let f=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function g(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}t.s(["isPrimaryPointer",0,f],62415);let v=t=>e=>f(e)&&t(e,g(e));function y(t,e,i,r){return m(t,e,v(i),r)}t.s(["addPointerInfo",0,v,"extractEventInfo",0,g],26470),t.s(["addPointerEvent",0,y],73138);let x=(t,e)=>i=>e(t(i)),P=(...t)=>t.reduce(x);function b(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}t.s(["pipe",0,P],38775);let T=b("dragHorizontal"),V=b("dragVertical");function S(t){let e=!1;if("y"===t)e=V();else if("x"===t)e=T();else{let t=T(),i=V();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function C(){let t=S(!0);return!t||(t(),!1)}t.s(["getGlobalLock",0,S,"isDragActive",0,C],88234);class w{constructor(t){this.isMounted=!1,this.node=t}update(){}}function A(t,e){let i="onHover"+(e?"Start":"End");return y(t.current,"pointer"+(e?"enter":"leave"),(r,n)=>{if("touch"===r.pointerType||C())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&u.frame.update(()=>s[i](r,n))},{passive:!t.getProps()[i]})}t.s(["Feature",0,w],96327);let E=(t,e)=>!!e&&(t===e||E(t,e.parentElement));var M=t.i(92164);function D(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,g(i))}let k=new WeakMap,R=new WeakMap,L=t=>{let e=k.get(t.target);e&&e(t)},B=t=>{t.forEach(L)},F={some:0,all:1};t.s(["gestureAnimations",0,{inView:{Feature:class extends w{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:F[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;R.has(i)||R.set(i,{});let r=R.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(B,{root:t,...e})),r[n]}(o),k.set(t,l),e.observe(t),()=>{k.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends w{constructor(){super(...arguments),this.removeStartListeners=M.noop,this.removeEndListeners=M.noop,this.removeAccessibleListeners=M.noop,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=y(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps();u.frame.update(()=>{n||E(this.node.current,t.target)?i&&i(t,e):r&&r(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),n=y(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=P(r,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&D("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&u.frame.update(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=m(this.node.current,"keyup",e),D("down",(t,e)=>{this.startPress(t,e)})},e=m(this.node.current,"keydown",t),i=()=>{this.isPressing&&D("cancel",(t,e)=>this.cancelPress(t,e))},r=m(this.node.current,"blur",i);this.removeAccessibleListeners=P(e,r)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&u.frame.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!C()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&u.frame.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=y(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=m(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=P(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends w{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=P(m(this.node.current,"focus",()=>this.onFocus()),m(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends w{mount(){this.unmount=P(A(this.node,!0),A(this.node,!1))}unmount(){}}}}],96643),t.s(["shallowCompare",0,function(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}],44426);var j=t.i(72158);
9t.s(["resolveVariant",0,function(t,e,i){let r,n,s=t.getProps();return(0,j.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,(r={},t.values.forEach((t,e)=>r[e]=t.get()),r),(n={},t.values.forEach((t,e)=>n[e]=t.getVelocity()),n))}],75913)},30519,79636,86779,10009,38453,89473,85204,46238,65017,51273,53643,55414,85574,22632,77529,68804,59345,76691,82324,29089,27957,88975,98700,t=>{"use strict";let e,i;var r,n=t.i(29096),s=t.i(93967),a=t.i(44426),o=t.i(42607),l=t.i(75913),u=t.i(14344),h=t.i(85461),c=t.i(60833),d=t.i(86312);let p=t=>1e3*t,m=t=>Array.isArray(t)&&"number"==typeof t[0],f=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,g={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:f([0,.65,.55,1]),circOut:f([.55,0,1,.45]),backIn:f([.31,.01,.66,-.59]),backOut:f([.33,1.53,.69,.99])};t.i(50461);var v=t.i(92164);let y=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function x(t,e,i,r){return t===e&&i===r?v.noop:n=>0===n||1===n?n:y(function(t,e,i,r,n){let s,a,o=0;do(s=y(a=e+(i-e)/2,r,n)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,t,i),e,r)}let P=x(.42,0,1,1),b=x(0,0,.58,1),T=x(.42,0,.58,1),V=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,S=t=>e=>1-t(1-e),C=t=>1-Math.sin(Math.acos(t)),w=S(C),A=V(C);t.s(["circIn",0,C,"circInOut",0,A,"circOut",0,w],79636);let E=x(.33,1.53,.69,.99),M=S(E),D=V(M),k={linear:v.noop,easeIn:P,easeInOut:T,easeOut:b,circIn:C,circInOut:A,circOut:w,backIn:M,backInOut:D,backOut:E,anticipate:t=>(t*=2)<1?.5*M(t):.5*(2-Math.pow(2,-10*(t-1)))},R=t=>{if(Array.isArray(t)){(0,d.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return x(e,i,r,n)}return"string"==typeof t?((0,d.invariant)(void 0!==k[t],`Invalid easing type '${t}'`),k[t]):t};var L=t.i(43755),B=t.i(454),F=t.i(18312);let j=(t,e)=>i=>!!((0,L.isString)(i)&&L.singleColorRegex.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),O=(t,e,i)=>r=>{if(!(0,L.isString)(r))return r;let[n,s,a,o]=r.match(L.floatRegex);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},I={...F.number,transform:t=>Math.round((0,B.clamp)(0,255,t))},U={test:j("rgb","red"),parse:O("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+I.transform(t)+", "+I.transform(e)+", "+I.transform(i)+", "+(0,L.sanitize)(F.alpha.transform(r))+")"},N={test:j("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:U.transform};var z=t.i(60679);let W={test:j("hsl","hue"),parse:O("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+z.percent.transform((0,L.sanitize)(e))+", "+z.percent.transform((0,L.sanitize)(i))+", "+(0,L.sanitize)(F.alpha.transform(r))+")"},$={test:t=>U.test(t)||N.test(t)||W.test(t),parse:t=>U.test(t)?U.parse(t):W.test(t)?W.parse(t):N.parse(t),transform:t=>(0,L.isString)(t)?t:t.hasOwnProperty("red")?U.transform(t):W.transform(t)},H=(t,e,i)=>-i*t+i*e+t;function G(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}t.s(["mix",0,H],86779);let X=(t,e,i)=>{let r=t*t;return Math.sqrt(Math.max(0,i*(e*e-r)+r))},Y=[N,U,W];function q(t){let e=Y.find(e=>e.test(t));(0,d.invariant)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===W&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,a=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,o=2*i-r;n=G(o,r,t+1/3),s=G(o,r,t),a=G(o,r,t-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let K=(t,e)=>{let i=q(t),r=q(e),n={...i};return t=>(n.red=X(i.red,r.red,t),n.green=X(i.green,r.green,t),n.blue=X(i.blue,r.blue,t),n.alpha=H(i.alpha,r.alpha,t),U.transform(n))};var Z=t.i(38775);let _={regex:t.i(26749).cssVariableRegex,countKey:"Vars",token:"${v}",parse:v.noop},J={regex:L.colorRegex,countKey:"Colors",token:"${c}",parse:$.parse},Q={regex:L.floatRegex,countKey:"Numbers",token:"${n}",parse:F.number.parse};function tt(t,{regex:e,countKey:i,token:r,parse:n}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(n)))}function te(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&tt(i,_),tt(i,J),tt(i,Q),i}function ti(t){return te(t).values}function tr(t){let{values:e,numColors:i,numVars:r,tokenised:n}=te(t),s=e.length;return t=>{let e=n;for(let n=0;n<s;n++)e=n<r?e.replace(_.token,t[n]):n<r+i?e.replace(J.token,$.transform(t[n])):e.replace(Q.token,(0,L.sanitize)(t[n]));return e}}let tn=t=>"number"==typeof t?0:t,ts={test:function(t){var e,i;return isNaN(t)&&(0,L.isString)(t)&&((null==(e=t.match(L.floatRegex))?void 0:e.length)||0)+((null==(i=t.match(L.colorRegex))?void 0:i.length)||0)>0},parse:ti,createTransformer:tr,getAnimatableNone:function(t){let e=ti(t);return tr(t)(e.map(tn))}};t.s(["analyseComplexValue",0,te,"complex",0,ts],10009);let ta=(t,e)=>i=>`${i>0?e:t}`;function to(t,e){return"number"==typeof t?i=>H(t,e,i):$.test(t)?K(t,e):t.startsWith("var(")?ta(t,e):th(t,e)}let tl=(t,e)=>{let i=[...t],r=i.length,n=t.map((t,i)=>to(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}},tu=(t,e)=>{let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=to(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}},th=(t,e)=>{let i=ts.createTransformer(e),r=te(t),n=te(e);return r.numVars===n.numVars&&r.numColors===n.numColors&&r.numNumbers>=n.numNumbers?(0,Z.pipe)(tl(r.values,n.values),i):((0,d.warning)(!0,`Complex values '${t}' and '${e}
9' 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.`),ta(t,e))},tc=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};t.s(["progress",0,tc],38453);let td=(t,e)=>i=>H(t,e,i);function tp(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if((0,d.invariant)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||function(t){if("number"==typeof t);else if("string"==typeof t)return $.test(t)?K:th;else if(Array.isArray(t))return tl;else if("object"==typeof t)return tu;return td}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||v.noop:e;s=(0,Z.pipe)(t,s)}r.push(s)}return r}(e,r,n),o=a.length,l=e=>{let i=0;if(o>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let r=tc(t[i],t[i+1],e);return a[i](r)};return i?e=>l((0,B.clamp)(t[0],t[s-1],e)):l}function tm({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(R):R(r),o={done:!1,value:e[0]},l=tp((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=tc(0,e,r);t.push(H(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||T).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}function tf(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function tg(t,e){return t*Math.sqrt(1-e*e)}let tv=["duration","bounce"],ty=["stiffness","damping","mass"];function tx(t,e){return e.some(e=>void 0!==t[e])}function tP({keyframes:t,restDelta:e,restSpeed:i,...r}){let n,s=t[0],a=t[t.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tx(t,ty)&&tx(t,tv)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;(0,d.warning)(t<=p(10),"Spring duration must be 10 seconds or less");let a=1-e;a=(0,B.clamp)(.05,1,a),t=(0,B.clamp)(.01,10,t/1e3),a<1?(n=e=>{let r=e*a,n=r*t;return .001-(r-i)/tg(e,a)*Math.exp(-n)},s=e=>{let r=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-r),l=tg(Math.pow(e,2),a);return(r*i+i-s)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=p(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),g=m||0,v=u/(2*Math.sqrt(l*h)),y=a-s,x=Math.sqrt(l/h)/1e3,P=5>Math.abs(y);if(i||(i=P?.01:2),e||(e=P?.005:.5),v<1){let t=tg(x,v);n=e=>a-Math.exp(-v*x*e)*((g+v*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)n=t=>a-Math.exp(-x*t)*(y+(g+x*y)*t);else{let t=x*Math.sqrt(v*v-1);n=e=>{let i=Math.exp(-v*x*e),r=Math.min(t*e,300);return a-i*((g+v*x*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}return{calculatedDuration:f&&c||null,next:t=>{let r=n(t);if(f)o.done=t>=c;else{let s=g;0!==t&&(s=v<1?tf(n,t,r):0);let l=Math.abs(a-r)<=e;o.done=Math.abs(s)<=i&&l}return o.value=o.done?a:r,o}}}function tb({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/r),x=t=>v+y(t),P=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=tP({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tf(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),b(t)),void 0!==c&&t>c)?d.next(t-c):(e||P(t),m)}}}var tT=t.i(73639);let tV=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tT.frame.update(e,!0),stop:()=>(0,tT.cancelFrame)(e),now:()=>tT.frameData.isProcessing?tT.frameData.timestamp:performance.now()}};function tS(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let tC={decay:tb,inertia:tb,tween:tm,keyframes:tm,spring:tP};function tw({autoplay:t=!0,delay:e=0,driver:i=tV,keyframes:r,type:n="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:
9o="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let m,f,g,v,y,x=1,P=!1,b=()=>{f=new Promise(t=>{m=t})};b();let T=tC[n]||tm;T!==tm&&"number"!=typeof r[0]&&(v=tp([0,100],r,{clamp:!1}),r=[0,100]);let V=T({...d,keyframes:r});"mirror"===o&&(y=T({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let S="idle",C=null,w=null,A=null;null===V.calculatedDuration&&s&&(V.calculatedDuration=tS(V));let{calculatedDuration:E}=V,M=1/0,D=1/0;null!==E&&(D=(M=E+a)*(s+1)-a);let k=0,R=t=>{if(null===w)return;x>0&&(w=Math.min(w,t)),x<0&&(w=Math.min(t-D/x,w));let i=(k=null!==C?C:Math.round(t-w)*x)-e*(x>=0?1:-1),n=x>=0?i<0:i>D;k=Math.max(i,0),"finished"===S&&null===C&&(k=D);let l=k,u=V;if(s){let t=Math.min(k,D)/M,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===o?(i=1-i,a&&(i-=a/M)):"mirror"===o&&(u=y)),l=(0,B.clamp)(0,1,i)*M}let h=n?{done:!1,value:r[0]}:u.next(l);v&&(h.value=v(h.value));let{done:d}=h;n||null===E||(d=x>=0?k>=D:k<=0);let p=null===C&&("finished"===S||"running"===S&&d);return c&&c(h.value),p&&j(),h},L=()=>{g&&g.stop(),g=void 0},F=()=>{S="idle",L(),m(),b(),w=A=null},j=()=>{S="finished",h&&h(),L(),m()},O=()=>{if(P)return;g||(g=i(R));let t=g.now();l&&l(),null!==C?w=t-C:w&&"finished"!==S||(w=t),"finished"===S&&b(),A=w,C=null,S="running",g.start()};t&&O();let I={then:(t,e)=>f.then(t,e),get time(){return k/1e3},set time(newTime){k=newTime=p(newTime),null===C&&g&&0!==x?w=g.now()-newTime/x:C=newTime},get duration(){return(null===V.calculatedDuration?tS(V):V.calculatedDuration)/1e3},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!g)return;x=newSpeed,I.time=k/1e3},get state(){return S},play:O,pause:()=>{S="paused",C=k},stop:()=>{P=!0,"idle"!==S&&(S="idle",u&&u(),F())},cancel:()=>{null!==A&&R(A),F()},complete:()=>{S="finished"},sample:t=>(w=0,R(t))};return I}let tA=(r=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===e&&(e=r()),e)),tE=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tM={type:"spring",stiffness:500,damping:25,restSpeed:10},tD={type:"keyframes",duration:.8},tk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tR=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ts.test(e)||"0"===e)&&!e.startsWith("url(")),tL=new Set(["brightness","contrast","saturate","opacity"]);function tB(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(L.floatRegex)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tL.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tF=/([a-z-]*)\(.*?\)/g,tj={...ts,getAnimatableNone:t=>{let e=t.match(tF);return e?e.map(tB).join(" "):t}},tO={...t.i(47799).numberValueTypes,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:tj,WebkitFilter:tj},tI=t=>tO[t];function tU(t,e){let i=tI(t);return i!==tj&&(i=ts),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",0,tI],89473);let tN=t=>/^0[^.\s]+$/.test(t);function tz({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}function tW(t,e){return t[e]||t.default||t}t.s(["getValueTransition",0,tW,"isTransitionDefined",0,tz],85204);let t$=(t,e,i,r={})=>n=>{let s=tW(r,t)||{},a=s.delay||r.delay||0,{elapsed:o=0}=r;o-=p(a);let l=function(t,e,i,r){let n,s,a=tR(e,i);n=Array.isArray(i)?[...i]:[null,i];let o=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<n.length;t++){var u;null===n[t]&&(n[t]=0===t?o:n[t-1]),("number"==typeof(u=n[t])?0===u:null!==u?"none"===u||"0"===u||tN(u):void 0)&&l.push(t),"string"==typeof n[t]&&"none"!==n[t]&&"0"!==n[t]&&(s=n[t])}if(a&&l.length&&s)for(let t=0;t<l.length;t++)n[l[t]]=tU(e,s);return n}(e,t,i,s),u=l[0],c=l[l.length-1],y=tR(t,u),x=tR(t,c);(0,d.warning)(y===x,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let P={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-o,onUpdate:t=>
9{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(tz(s)||(P={...P,...((t,{keyframes:e})=>e.length>2?tD:h.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tM:tk)(t,P)}),P.duration&&(P.duration=p(P.duration)),P.repeatDelay&&(P.repeatDelay=p(P.repeatDelay)),!y||!x||!1===s.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:r}){let n=()=>(i&&i(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:v.noop,pause:v.noop,stop:v.noop,then:t=>(t(),Promise.resolve()),cancel:v.noop,complete:v.noop});return e?tw({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}(P);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:r,...n}){let s,a;if(!(tA()&&tE.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let o=!1,l=!1,u=()=>{a=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:y}=n;if("spring"===n.type||"backgroundColor"===e||!function t(e){return!!(!e||"string"==typeof e&&g[e]||m(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let t=tw({...n,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),i.push(e.value),r+=10;y=void 0,h=i,c=r-10,d="linear"}let x=function(t,e,i,{delay:r=0,duration:n,repeat:s=0,repeatType:a="loop",ease:o,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return m(e)?f(e):Array.isArray(e)?e.map(t):g[e]}(o);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,h,{...n,duration:c,ease:d,times:y}),P=()=>{l=!1,x.cancel()},b=()=>{l=!0,tT.frame.update(P),s(),u()};return x.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let r=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[r]}(h,n)),r&&r(),b())},{then:(t,e)=>a.then(t,e),attachTimeline:t=>(x.timeline=t,x.onfinish=null,v.noop),get time(){return(x.currentTime||0)/1e3},set time(newTime){x.currentTime=p(newTime)},get speed(){return x.playbackRate},set speed(newSpeed){x.playbackRate=newSpeed},get duration(){return c/1e3},play:()=>{o||(x.play(),(0,tT.cancelFrame)(P))},pause:()=>x.pause(),stop:()=>{if(o=!0,"idle"===x.playState)return;let{currentTime:e}=x;if(e){let i=tw({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}b()},complete:()=>{l||x.finish()},cancel:b}}(e,t,P);if(i)return i}return tw(P)};t.s(["animateMotionValue",0,t$],46238);var tH=t.i(66179);function tG(t){return!!((0,tH.isMotionValue)(t)&&t.add)}t.s(["isWillChangeMotionValue",0,tG],65017);let tX=t=>/^\-?\d*\.?\d+$/.test(t);t.s(["isNumericalString",0,tX],51273);var tY=t.i(34167);function tq(t,e){-1===t.indexOf(e)&&t.push(e)}function tK(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",0,tq,"removeItem",0,tK],53643);class tZ{constructor(){this.subscriptions=[]}add(t){return tq(this.subscriptions,t),()=>tK(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",0,tZ],55414);class t_{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:r}=tT.frameData;this.lastUpdated!==r&&(this.timeDelta=i,this.lastUpdated=r,tT.frame.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>tT.frame.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(t=>!isNaN(parseFloat(t)))(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tZ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tT.frame.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return i&&i.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tJ(t,e){return new t_(t,e)}t.s(["motionValue",0,tJ],85574);let tQ=t=>e=>e.test(t),t0=[F.number,z.px,z.percent,z.degrees,z.vw,z.vh,{test:t=>"auto"===t,parse:t=>t}];t.s(["dimensionValueTypes",0,t0,"findDimensionValueType",0,t=>t0.find(tQ(t))],22632);let t1=[...t0,$,ts],t3=t=>t1.find(tQ(t));function t6(t,e){let i=(0,l.resolveVariant)(t,e),{transitionEnd:r={},transition:n={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...r}){let i=(0,tY.resolveFinalValueInKeyframes)(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,tJ(i))}}function t9(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let u=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let r=t.getValue(e),n=o[e];if(!r||void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(d,e))continue;let a={delay:i,elapsed:0,...tW(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[c.optimizedAppearDataAttribute];if(i){let t=window.HandoffAppearAnimations(i,e,r,tT.frame);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let p=!a.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(r,n);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(p=!1),r.animation&&(p=!1),p)continue;r.start(t$(e,r,n,t.shouldReduceMotion&&h.transformProps.has(e)?{type:!1}:a));let m=r.animation;tG(l)&&(l.add(e),m.then(()=>l.remove(e))),u.push(m)}return a&&Promise.all(u).then(()=>{a&&t6(t,a)}),u}function t2(t,e,i={}){let r=(0,l.resolveVariant)(t,e,i.custom),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(t9(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=n;
9return function(t,e,i=0,r=0,n=1,s){let a=[],o=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>o-t*r;return Array.from(t.variantChildren).sort(t4).forEach((t,r)=>{t.notify("AnimationStart",e),a.push(t2(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,s+r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}function t4(t,e){return t.sortNodePosition(e)}t.s(["checkTargetForNewValues",0,function(t,e,i){var r,n;let s=Object.keys(e).filter(e=>!t.hasValue(e)),a=s.length;if(a)for(let o=0;o<a;o++){let a=s[o],l=e[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(n=null!=(r=i[a])?r:t.readValue(a))?n:e[a]),null!=u&&("string"==typeof u&&(tX(u)||tN(u))?u=parseFloat(u):!t3(u)&&ts.test(l)&&(u=tU(a,l)),t.addValue(a,tJ(u,{owner:t})),void 0===i[a]&&(i[a]=u),null!==u&&t.setBaseTarget(a,u))}},"getOrigin",0,function(t,e,i){let r={};for(let n in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(n,e);if(void 0!==t)r[n]=t;else{let t=i.getValue(n);t&&(r[n]=t.get())}}return r},"setTarget",0,t6],77529);let t5=[...u.variantPriorityOrder].reverse(),t8=u.variantPriorityOrder.length;function t7(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var et=t.i(96327);class ee extends et.Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>t2(t,e,i)));else if("string"==typeof e)r=t2(t,e,i);else{let n="function"==typeof e?(0,l.resolveVariant)(t,e,i.custom):e;r=Promise.all(t9(t,n,i))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:t7(!0),whileInView:t7(),whileHover:t7(),whileTap:t7(),whileDrag:t7(),whileFocus:t7(),exit:t7()},r=!0,u=(e,i)=>{let r=(0,l.resolveVariant)(t,i);if(r){let{transition:t,transitionEnd:i,...n}=r;e={...e,...n,...i}}return e};function h(l,h){let c=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set,f={},g=1/0;for(let e=0;e<t8;e++){var v,y;let x=t5[e],P=i[x],b=void 0!==c[x]?c[x]:d[x],T=(0,o.isVariantLabel)(b),V=x===h?P.isActive:null;!1===V&&(g=e);let S=b===d[x]&&b!==c[x]&&T;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),P.protectedKeys={...f},!P.isActive&&null===V||!b&&!P.prevProp||(0,n.isAnimationControls)(b)||"boolean"==typeof b)continue;let C=(v=P.prevProp,("string"==typeof(y=b)?y!==v:!!Array.isArray(y)&&!(0,a.shallowCompare)(y,v))||x===h&&P.isActive&&!S&&T||e>g&&T),w=!1,A=Array.isArray(b)?b:[b],E=A.reduce(u,{});!1===V&&(E={});let{prevResolvedValues:M={}}=P,D={...M,...E},k=t=>{C=!0,m.has(t)&&(w=!0,m.delete(t)),P.needsAnimating[t]=!0};for(let t in D){let e=E[t],i=M[t];if(!f.hasOwnProperty(t))((0,s.isKeyframesTarget)(e)&&(0,s.isKeyframesTarget)(i)?(0,a.shallowCompare)(e,i):e===i)?void 0!==e&&m.has(t)?k(t):P.protectedKeys[t]=!0:void 0!==e?k(t):m.add(t)}P.prevProp=b,P.prevResolvedValues=E,P.isActive&&(f={...f,...E}),r&&t.blockInitialAnimation&&(C=!1),C&&(!S||w)&&p.push(...A.map(t=>({animation:t,options:{type:x,...l}})))}if(m.size){let e={};m.forEach(i=>{let r=t.getBaseTarget(i);void 0!==r&&(e[i]=r)}),p.push({animation:e})}let x=!!p.length;return r&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,r,n){var s;if(i[e].isActive===r)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let a=h(n,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,n.isAnimationControls)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}var ei=et;let er=0;class en extends ei.Feature{constructor(){super(...arguments),this.id=er++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&n.then(()=>
9e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}t.s(["animations",0,{animation:{Feature:ee},exit:{Feature:en}}],30519);var es=et,ea=t.i(26470),eo=t.i(73138);let el=(t,e)=>Math.abs(t-e);var eu=t.i(62415);class eh{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ep(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(el(t.x,e.x)**2+el(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=tT.frameData;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ec(e,this.transformPagePoint),tT.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ep("pointercancel"===t.type?this.lastMoveEventInfo:ec(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!(0,eu.isPrimaryPointer)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=ec((0,ea.extractEventInfo)(t),this.transformPagePoint),{point:a}=s,{timestamp:o}=tT.frameData;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=e;l&&l(t,ep(s,this.history)),this.removeListeners=(0,Z.pipe)((0,eo.addPointerEvent)(this.contextWindow,"pointermove",this.handlePointerMove),(0,eo.addPointerEvent)(this.contextWindow,"pointerup",this.handlePointerUp),(0,eo.addPointerEvent)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tT.cancelFrame)(this.updatePoint)}}function ec(t,e){return e?{point:e(t.point)}:t}function ed(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ep({point:t},e){return{point:t,delta:ed(t,em(e)),offset:ed(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=em(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>p(.1)));)e--;if(!i)return{x:0,y:0};let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function em(t){return t[t.length-1]}var ef=t.i(88234),eg=t.i(43392);function ev(t){return t.max-t.min}function ey(t,e=0,i=.01){return Math.abs(t-e)<=i}function ex(t,e,i,r=.5){t.origin=r,t.originPoint=H(e.min,e.max,t.origin),t.scale=ev(i)/ev(e),(ey(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=H(i.min,i.max,t.origin)-t.originPoint,(ey(t.translate)||isNaN(t.translate))&&(t.translate=0)}function eP(t,e,i){t.min=i.min+e.min,t.max=t.min+ev(e)}function eb(t,e,i){t.min=e.min-i.min,t.max=t.min+ev(e)}function eT(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function eV(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function eS(t,e,i){return{min:eC(t,e),max:eC(t,i)}}function eC(t,e){return"number"==typeof t?t:t[e]||0}t.s(["calcBoxDelta",0,function(t,e,i,r){ex(t.x,e.x,i.x,r?r.originX:void 0),ex(t.y,e.y,i.y,r?r.originY:void 0)},"calcLength",0,ev,"calcRelativeBox",0,function(t,e,i){eP(t.x,e.x,i.x),eP(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){eb(t.x,e.x,i.x),eb(t.y,e.y,i.y)},"isNear",0,ey],68804);let ew=()=>({translate:0,scale:1,origin:0,originPoint:0}),eA=()=>({min:0,max:0}),eE=()=>({x:eA(),y:eA()});function eM(t){return[t("x"),t("y")]}function eD({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function ek(t){return void 0===t||1===t}function eR({scale:t,scaleX:e,scaleY:i}){return!ek(t)||!ek(e)||!ek(i)}function eL(t){return eR(t)||eB(t)||t.z||t.rotate||t.rotateX||t.rotateY}function eB(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["createBox",0,eE,"createDelta",0,()=>({x:ew(),y:ew()})],59345),t.s(["eachAxis",0,eM],76691);function eF(t,e,i){return i+e*(t-i)}function ej(t,e,i,r,n){return void 0!==n&&(t=eF(t,n,r)),eF(t,i,r)+e}function eO(t,e=0,i=1,r,n){t.min=ej(t.min,e,i,r,n),t.max=ej(t.max,e,i,r,n)}function eI(t,{x:e,y:i}){eO(t.x,e.translate,e.scale,e.originPoint),eO(t.y,i.translate,i.scale,i.originPoint)}function eU(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function eN(t,e){t.min=t.min+e,t.max=t.max+e}function ez(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,a=H(t.min,t.max,s);eO(t,e[i],e[r],a,e.scale)}t.s(["has2DTranslate",0,eB,"hasScale",0,eR,"hasTransform",0,eL],82324);let eW=["x","scaleX","originX"],e$=["y","scaleY","originY"];function eH(t,e){ez(t.x,e,eW),ez(t.y,e,e$)}function eG(t,e){return eD(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}function eX(t,e,i){let r=eG(t,i),{scroll:n}=e;return n&&(eN(r.x,n.offset.x),eN(r.y,n.offset.y)),r}
9t.s(["applyBoxDelta",0,eI,"applyTreeDeltas",0,function(t,e,i,r=!1){let n,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let a=n.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&eH(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eI(t,s)),r&&eL(n.latestValues)&&eH(t,n.latestValues))}e.x=eU(e.x),e.y=eU(e.y)}},"scalePoint",0,eF,"transformBox",0,eH,"translateAxis",0,eN],29089),t.s(["measurePageBox",0,eX,"measureViewportBox",0,eG],27957);var eY=t.i(71800);let eq=({current:t})=>t?t.ownerDocument.defaultView:null,eK=new WeakMap;class eZ{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=eE(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,ea.extractEventInfo)(t,"page").point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,ef.getGlobalLock)(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eM(t=>{let e=this.getAxisMotionValue(t).get()||0;if(z.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=ev(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tT.frame.update(()=>n(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:a}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>this.stop(t,e),o=()=>eM(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new eh(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:eq(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&tT.frame.update(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!e_(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?H(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?H(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&(0,eg.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:eT(t.x,i,n),y:eT(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eS(t,"left","right"),y:eS(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&eM(t=>{var e,i;let n;this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,eg.isRefObject)(e))return!1;let r=e.current;(0,d.invariant)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=eX(r,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:eV(t.x,s.x),y:eV(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eD(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(eM(a=>
9{if(!e_(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(t$(t,i,0,e))}stopAnimation(){eM(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eM(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eM(e=>{let{drag:i}=this.getProps();if(!e_(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-H(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,eg.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};eM(t=>{let e=this.getAxisMotionValue(t);if(e){var i,n;let s,a,o,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,a=ev(i),(o=ev(n))>a?s=tc(n.min,n.max-a,i.min):a>o&&(s=tc(i.min,i.max-o,n.min)),(0,B.clamp)(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eM(e=>{if(!e_(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(H(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;eK.set(this.visualElement,this);let t=this.visualElement.current,e=(0,eo.addPointerEvent)(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();(0,eg.isRefObject)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),i();let s=(0,eY.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eM(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),n(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function e_(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eJ extends es.Feature{constructor(t){super(t),this.removeGroupControls=v.noop,this.removeListeners=v.noop,this.controls=new eZ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",0,eJ],88975);var eQ=et;let e0=t=>(e,i)=>{t&&tT.frame.update(()=>t(e,i))};class e1 extends eQ.Feature{constructor(){super(...arguments),this.removePointerDownListener=v.noop}onPointerDown(t){this.session=new eh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:e0(t),onStart:e0(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&tT.frame.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=(0,eo.addPointerEvent)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",0,e1],98700)},11829,t=>{"use strict";t.i(92306);var e=t.i(28167),i=t.i(51293),r=t.i(96643),n=t.i(30519),s=t.i(88975),a=t.i(98700),o=t.i(91788),l=t.i(86398),u=t.i(11535),h=t.i(22469);let c={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var d=t.i(60679);function p(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let m={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!d.px.test(t))return t;else t=parseFloat(t);let i=p(t,e.target.x),r=p(t,e.target.y);return`${i}% ${r}%`}};var f=t.i(86779),g=t.i(10009),v=t.i(8487),y=t.i(73639);class x extends o.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;(0,v.addScaleCorrector)(b),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),c.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||y.frame.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function P(t){let[e,i]=(0,l.usePresence)(),r=(0,o.useContext)(u.LayoutGroupContext);return o.default.createElement(x,{...t,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(h.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}let b={borderRadius:{...m,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomLeftRadius:m,borderBottomRightRadius:m,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=g.complex.parse(t);if(r.length>5)return t;let n=g.complex.createTransformer(t),s=+("number"!=typeof r[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;r[0+s]/=a,r[1+s]/=o;let l=(0,f.mix)(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};var T=t.i(55414),V=t.i(79636),S=t.i(38453),C=t.i(92164);let w=["TopLeft","TopRight","BottomLeft","BottomRight"],A=w.length,E=t=>"string"==typeof t?parseFloat(t):t,M=t=>"number"==typeof t||d.px.test(t);function D(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let k=L(0,.5,V.circOut),R=L(.5,.95,C.noop);function L(t,e,i){return r=>r<t?0:r>e?1:i((0,S.progress)(t,e,r))}function B(t,e){t.min=e.min,t.max=e.max}function F(t,e){B(t.x,e.x),B(t.y,e.y)}var j=t.i(29089),O=t.i(68804);function I(t,e,i,r,n){return t-=e,t=(0,j.scalePoint)(t,1/i,r),void 0!==n&&(t=(0,j.scalePoint)(t,1/n,r)),t}function U(t,e,[i,r,n],s,a){!function(t,e=0,i=1,r=.5,n,s=t,a=t){if(d.percent.test(e)&&(e=parseFloat(e),e=(0,f.mix)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,f.mix)(s.min,s.max,r);t===s&&(o-=e),t.min=I(t.min,e,i,o,n),t.max=I(t.max,e,i,o,n)}(t,e[i],e[r],e[n],e.scale,s,a)}let N=["x","scaleX","originX"],z=["y","scaleY","originY"];function W(t,e,i,r){U(t.x,e,N,i?i.x:void 0,r?r.x:void 0),U(t.y,e,z,i?i.y:void 0,r?r.y:void 0)}var $=t.i(59345),H=t.i(85204);function G(t){return 0===t.translate&&1===t.scale}function X(t){return G(t.x)&&G(t.y)}function Y(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function q(t){return(0,O.calcLength)(t.x)/(0,O.calcLength)(t.y)}var K=t.i(53643);class Z{constructor(){this.members=[]}add(t){(0,K.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,K.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(r=`translate3d(${n}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:n}=i;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),n&&(r+=`rotateY(${n}deg) `)}let a=t.x.scale*e.x,o=t.y.scale*e.y;return(1!==a||1!==o)&&(r+=`scale(${a}, ${o})`),r||"none"}var J=t.i(76691),Q=t.i(82324);let tt=(t,e)=>t.depth-e.depth;class te{constructor(){this.children=[],this.isDirty=!1}add(t){(0,K.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,K.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tt),this.isDirty=!1,this.children.forEach(t)}}
9var ti=t.i(24416),tr=t.i(46238),tn=t.i(85574),ts=t.i(66179),ta=t.i(454);let to=["","X","Y","Z"],tl={visibility:"hidden"},tu=0,th={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tc({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,th.totalNodes=th.resolvedTargetDeltas=th.recalculatedProjection=0,this.nodes.forEach(tm),this.nodes.forEach(tb),this.nodes.forEach(tT),this.nodes.forEach(tf),window.MotionDebug&&window.MotionDebug.record(th)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new te)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new T.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=performance.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&((0,y.cancelFrame)(e),r(n-250))},y.frame.read(e,!0),i=()=>(0,y.cancelFrame)(e),c.hasAnimatedSinceResize&&(c.hasAnimatedSinceResize=!1,this.nodes.forEach(tP))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||tE,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!Y(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,H.getValueTransition)(n,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||tP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,y.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tV),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}
9if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tv);return}this.isUpdating||this.nodes.forEach(ty),this.isUpdating=!1,this.nodes.forEach(tx),this.nodes.forEach(td),this.nodes.forEach(tp),this.clearAllSnapshots();let t=performance.now();y.frameData.delta=(0,ta.clamp)(0,1e3/60,t-y.frameData.timestamp),y.frameData.timestamp=t,y.frameData.isProcessing=!0,y.steps.update.process(y.frameData),y.steps.preRender.process(y.frameData),y.steps.render.process(y.frameData),y.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tg),this.sharedNodes.forEach(tS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,y.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){y.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!X(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||(0,Q.hasTransform)(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),tk((e=r).x),tk(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,$.createBox)();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&((0,j.translateAxis)(e.x,i.offset.x),(0,j.translateAxis)(e.y,i.offset.y)),e}removeElementScroll(t){let e=(0,$.createBox)();F(e,t);for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;if(r!==this.root&&n&&s.layoutScroll){if(n.isRoot){F(e,t);let{scroll:i}=this.root;i&&((0,j.translateAxis)(e.x,-i.offset.x),(0,j.translateAxis)(e.y,-i.offset.y))}(0,j.translateAxis)(e.x,n.offset.x),(0,j.translateAxis)(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=(0,$.createBox)();F(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(0,j.transformBox)(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),(0,Q.hasTransform)(r.latestValues)&&(0,j.transformBox)(i,r.latestValues)}return(0,Q.hasTransform)(this.latestValues)&&(0,j.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,$.createBox)();F(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,Q.hasTransform)(i.latestValues))continue;(0,Q.hasScale)(i.latestValues)&&i.updateSnapshot();let r=(0,$.createBox)();F(r,i.measurePageBox()),W(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return(0,Q.hasTransform)(this.latestValues)&&W(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==y.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==i;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=y.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,$.createBox)(),this.relativeTargetOrigin=(0,$.createBox)(),(0,O.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),F(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,$.createBox)(),this.targetWithTransforms=(0,$.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,O.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):F(this.target,this.layout.layoutBox),(0,j.applyBoxDelta)(this.target,this.targetDelta)):F(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,$.createBox)(),this.relativeTargetOrigin=(0,$.createBox)(),(0,O.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),F(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}th.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,Q.hasScale)(this.parent.latestValues)||(0,Q.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===y.frameData.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;F(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,j.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=(0,$.createDelta)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,$.createDelta)(),this.projectionDeltaWithTransform=(0,$.createDelta)());let u=this.projectionTransform;(0,O.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=_(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==o)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),th.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=(0,$.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,$.createBox)(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
9!0===this.options.crossfade&&!this.path.some(tA));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(tC(a.x,t.x,r),tC(a.y,t.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,g,v,y;(0,O.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,g=this.relativeTargetOrigin,v=o,y=r,tw(m.x,g.x,v.x,y),tw(m.y,g.y,v.y,y),i&&(u=this.relativeTarget,p=i,u.x.min===p.x.min&&u.x.max===p.x.max&&u.y.min===p.y.min&&u.y.max===p.y.max)&&(this.isProjectionDirty=!1),i||(i=(0,$.createBox)()),F(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=(0,f.mix)(0,void 0!==i.opacity?i.opacity:1,k(r)),t.opacityExit=(0,f.mix)(void 0!==e.opacity?e.opacity:1,0,R(r))):s&&(t.opacity=(0,f.mix)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<A;n++){let s=`border${w[n]}Radius`,a=D(e,s),o=D(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||M(a)===M(o)?(t[s]=Math.max((0,f.mix)(E(a),E(o),r),0),(d.percent.test(o)||d.percent.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,f.mix)(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,y.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=y.frame.update(()=>{var e;let i;c.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=(0,ts.isMotionValue)(0)?0:(0,tn.motionValue)(0)).start((0,tr.animateMotionValue)("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&tR(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||(0,$.createBox)();let e=(0,O.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=(0,O.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}F(e,i),(0,j.transformBox)(e,n),(0,O.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Z),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<to.length;e++){let n="rotate"+to[e];i[n]&&(r[n]=i[n],t.setStaticValue(n,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tl;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=(0,ti.resolveMotionValue)(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,ti.resolveMotionValue)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,Q.hasTransform)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=_(this.projectionDeltaWithTransform,this.treeScale,a),n&&(r.transform=n(a,r.transform));let{x:o,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=a.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,v.scaleCorrectors){if
9(void 0===a[t])continue;let{correct:e,applyTo:i}=v.scaleCorrectors[t],n="none"===r.transform?a[t]:e(a[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?(0,ti.resolveMotionValue)(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(tv),this.root.sharedNodes.clear()}}}function td(t){t.updateLayout()}function tp(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?(0,J.eachAxis)(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=(0,O.calcLength)(r);r.min=e[t].min,r.max=r.min+n}):tR(n,i.layoutBox,e)&&(0,J.eachAxis)(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=(0,O.calcLength)(e[r]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)});let a=(0,$.createDelta)();(0,O.calcBoxDelta)(a,e,i.layoutBox);let o=(0,$.createDelta)();s?(0,O.calcBoxDelta)(o,t.applyTransform(r,!0),i.measuredBox):(0,O.calcBoxDelta)(o,e,i.layoutBox);let l=!X(a),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=(0,$.createBox)();(0,O.calcRelativePosition)(a,i.layoutBox,n.layoutBox);let o=(0,$.createBox)();(0,O.calcRelativePosition)(o,e,s.layoutBox),Y(a,o)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tm(t){th.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tf(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tg(t){t.clearSnapshot()}function tv(t){t.clearMeasurements()}function ty(t){t.isLayoutDirty=!1}function tx(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tP(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tb(t){t.resolveTargetDelta()}function tT(t){t.calcProjection()}function tV(t){t.resetRotation()}function tS(t){t.removeLeadSnapshot()}function tC(t,e,i){t.translate=(0,f.mix)(e.translate,0,i),t.scale=(0,f.mix)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tw(t,e,i,r){t.min=(0,f.mix)(e.min,i.min,r),t.max=(0,f.mix)(e.max,i.max,r)}function tA(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tE={duration:.45,ease:[.4,0,.1,1]},tM=t=>"u">typeof navigator&&navigator.userAgent.toLowerCase().includes(t),tD=tM("applewebkit/")&&!tM("chrome/")?Math.round:C.noop;function tk(t){t.min=tD(t.min),t.max=tD(t.max)}function tR(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,O.isNear)(q(e),q(i),.2)}var tL=t.i(71800);let tB=tc({attachResizeListener:(t,e)=>(0,tL.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tF={current:void 0},tj=tc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tF.current){let t=new tB({});t.mount(window),t.setOptions({layoutScroll:!0}),tF.current=t}return tF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tO={pan:{Feature:a.PanGesture},drag:{Feature:s.DragGesture,ProjectionNode:tj,MeasureLayout:P}};var tI=t.i(1629),tU=t.i(26749),tN=t.i(85461),tz=t.i(9643),tW=t.i(48073),t$=t.i(89473),tH=t.i(27957),tG=t.i(77529),tX=t.i(86312),tY=t.i(51273);let tq=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tK(t,e,i=1){(0,tX.invariant)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=tq.exec(t);if(!e)return[,];let[,i,r]=e;return[i,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return(0,tY.isNumericalString)(t)?parseFloat(t):t}return(0,tU.isCSSVariableToken)(n)?tK(n,e,i+1):n}var tZ=t.i(93967),t_=t.i(22632),tJ=t.i(46628),tQ=t.i(18312);let t0=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),t1=t=>t0.has(t),t3=t=>t===tQ.number||t===d.px,t6=(t,e)=>parseFloat(t.split(", ")[e]),t9=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/);if(n)return t6(n[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?t6(e[1],t):0}},t2=new Set(["x","y","z"]),t4=tN.transformPropOrder.filter(t=>!t2.has(t)),t5={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t9(4,13),y:t9(5,14)};t5.translateX=t5.x,t5.translateY=t5.y,t.i(50461);var t8=t.i(43392);let t7={current:null},et={current:!1};var ee=t.i(65017),ei=t.i(55647),er=t.i(42607),en=t.i(72158),es=t.i(83896),ea=t.i(14344);let eo=new WeakMap,el=Object.keys(es.featureDefinitions),eu=el.length,eh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ec=ea.variantProps.length;class ed{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,visualState:n},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>y.frame.render(this.render,!1,!0);const{latestValues:a,renderState:o}=n;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=o,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.isControllingVariants=(0,ei.isControllingVariants)(e),this.isVariantNode=(0,ei.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==a[t]&&(0,ts.isMotionValue)(e)&&(e.set(a[t],!1),(0,ee.isWillChangeMotionValue)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((t,e)=>this.bindToMotionValue(e,t)),et.current||function(){if(et.current=!0,tJ.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>t7.current=t.matches;t.addListener(e),e()}else t7.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||t7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in eo.delete(this.current),this.projection&&this.projection.unmount(),(0,y.cancelFrame)(this.notifyUpdate),(0,y.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=tN.transformProps.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&y.frame.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,r,n){let s,a;for(let t=0;t<eu;t++){let i=el[t],{isEnabled:r,Feature:n,ProjectionNode:o,MeasureLayout:l}=es.featureDefinitions[i];o&&(s=o),r(e)&&(!this.features[i]&&n&&(this.features[i]=new n(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:r,dragConstraints:a,layoutScroll:o,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!r||a&&(0,t8.isRefObject)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:o,layoutRoot:l})}return a}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,$.createBox)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eh.length;e++){let i=eh[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){let{willChange:r}=e;for(let n in e){let s=e[n],a=i[n];if((0,ts.isMotionValue)(s))t.addValue(n,s),(0,ee.isWillChangeMotionValue)(r)&&r.add(n);else if((0,ts.isMotionValue)(a))t.addValue(n,(0,tn.motionValue)(s,{owner:t})),(0,ee.isWillChangeMotionValue)(r)&&r.remove(n);else if(a!==s)if(t.hasValue(n)){let e=t.getValue(n);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tn.motionValue)(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<ec;t++){let i=ea.variantProps[t],r=this.props[i];((0,er.isVariantLabel)(r)||!1===r)&&(e[i]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tn.motionValue)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!=(e=this.getBaseTargetFromProps(this.props,t))?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,r="string"==typeof i||"object"==typeof i?null==(e=(0,en.resolveVariantFromProps)(this.props,i))?void 0:e[t]:void 0;if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,ts.isMotionValue)(n)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new T.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ep extends ed{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},n){let s=(0,tG.getOrigin)(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),s&&(s=r(s))),n){var a,o,l,u,h;let t;(0,tG.checkTargetForNewValues)(this,i,s);let r=(a=i,o=s,a=(t=function(t,{...e},i){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:i};for(let n in i&&(i={...i}
9),t.values.forEach(t=>{let e=t.get();if(!(0,tU.isCSSVariableToken)(e))return;let i=tK(e,r);i&&t.set(i)}),e){let t=e[n];if(!(0,tU.isCSSVariableToken)(t))continue;let s=tK(t,r);s&&(e[n]=s,i||(i={}),void 0===i[n]&&(i[n]=t))}return{target:e,transitionEnd:i}}(this,a,l=e)).target,l=t.transitionEnd,u=a,h=l,Object.keys(u).some(t1)?((t,e,i={},r={})=>{e={...e},r={...r};let n=Object.keys(e).filter(t1),s=[],a=!1,o=[];if(n.forEach(n=>{let l,u=t.getValue(n);if(!t.hasValue(n))return;let h=i[n],c=(0,t_.findDimensionValueType)(h),p=e[n];if((0,tZ.isKeyframesTarget)(p)){let t=p.length,e=+(null===p[0]);h=p[e],c=(0,t_.findDimensionValueType)(h);for(let i=e;i<t&&null!==p[i];i++)l?(0,tX.invariant)((0,t_.findDimensionValueType)(p[i])===l,"All keyframes must be of the same type"):(l=(0,t_.findDimensionValueType)(p[i]),(0,tX.invariant)(l===c||t3(c)&&t3(l),"Keyframes must be of the same dimension as the current value"))}else l=(0,t_.findDimensionValueType)(p);if(c!==l)if(t3(c)&&t3(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof p?e[n]=parseFloat(p):Array.isArray(p)&&l===d.px&&(e[n]=p.map(parseFloat))}else if((null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===p))0===h?u.set(l.transform(h)):e[n]=c.transform(p);else{if(!a){let e;e=[],t4.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e.length&&t.render(),s=e,a=!0}o.push(n),r[n]=void 0!==r[n]?r[n]:e[n],u.jump(p)}}),!o.length)return{target:e,transitionEnd:r};{let i=o.indexOf("height")>=0?window.pageYOffset:null,n=((t,e,i)=>{let r=e.measureViewportBox(),n=getComputedStyle(e.current),{display:s}=n,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=t5[t](r,n)}),e.render();let o=e.measureViewportBox();return i.forEach(i=>{let r=e.getValue(i);r&&r.jump(a[i]),t[i]=t5[i](o,n)}),t})(e,t,o);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),tJ.isBrowser&&null!==i&&window.scrollTo({top:i}),{target:n,transitionEnd:r}}})(this,u,o,h):{target:u,transitionEnd:h});e=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:e,...i}}}class em extends ep{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(tN.transformProps.has(e)){let t=(0,t$.getDefaultValueType)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=((0,tU.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,tH.measureViewportBox)(t,e)}build(t,e,i,r){(0,tI.buildHTMLStyles)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,tz.scrapeMotionValuesFromProps)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,ts.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){(0,tW.renderHTML)(t,e,i,r)}}var ef=t.i(10840),eg=t.i(33416),ev=t.i(88212),ey=t.i(84804),ex=t.i(6591),eP=t.i(45375);class eb extends ep{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tN.transformProps.has(e)){let t=(0,t$.getDefaultValueType)(e);return t&&t.default||0}return e=ey.camelCaseAttributes.has(e)?e:(0,ev.camelToDash)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,$.createBox)()}scrapeMotionValuesFromProps(t,e){return(0,ef.scrapeMotionValuesFromProps)(t,e)}build(t,e,i,r){(0,eg.buildSVGAttrs)(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){(0,ex.renderSVG)(t,e,i,r)}mount(t){this.isSVGTag=(0,eP.isSVGTag)(t.tagName),super.mount(t)}}var eT=t.i(4606);let eV=(t,e)=>(0,eT.isSVGComponent)(t)?new eb(e,{enableHardwareAcceleration:!1}):new em(e,{enableHardwareAcceleration:!0}),eS={...n.animations,...r.gestureAnimations,...tO,layout:{ProjectionNode:tj,MeasureLayout:P}},eC=(0,e.createMotionProxy)((t,e)=>(0,i.createDomMotionConfig)(t,e,eS,eV));t.s(["motion",0,eC],11829)},51482,t=>{"use strict";var e=t.i(91788);let i=globalThis?.document?e.useLayoutEffect:e.useEffect;t.s(["useSafeLayoutEffect",0,i])},31579,t=>{"use strict";var e=t.i(91398);let[i,r]=(0,t.i(33924).createContext)({strict:!1,name:"PortalManagerContext"});function n(t){let{children:r,zIndex:n}=t;return(0,e.jsx)(i,{value:{zIndex:n},children:r})}n.displayName="PortalManager",t.s(["PortalManager",0,n,"usePortalManager",0,r])},35020,t=>{"use strict";var e=t.i(91398),i=t.i(51482),r=t.i(33924),n=t.i(91788),s=t.i(30943),a=t.i(31579);let[o,l]=(0,r.createContext)({strict:!1,name:"PortalContext"}
9),u="chakra-portal",h=t=>(0,e.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),c=t=>{let{appendToParentPortal:r,children:c}=t,[d,p]=(0,n.useState)(null),m=(0,n.useRef)(null),[,f]=(0,n.useState)({});(0,n.useEffect)(()=>f({}),[]);let g=l(),v=(0,a.usePortalManager)();(0,i.useSafeLayoutEffect)(()=>{if(!d)return;let t=d.ownerDocument,e=r?g??t.body:t.body;if(!e)return;m.current=t.createElement("div"),m.current.className=u,e.appendChild(m.current),f({});let i=m.current;return()=>{e.contains(i)&&e.removeChild(i)}},[d]);let y=v?.zIndex?(0,e.jsx)(h,{zIndex:v?.zIndex,children:c}):c;return m.current?(0,s.createPortal)((0,e.jsx)(o,{value:m.current,children:y}),m.current):(0,e.jsx)("span",{ref:t=>{t&&p(t)}})},d=t=>{let{children:r,containerRef:a,appendToParentPortal:l}=t,h=a.current,c=h??("u">typeof window?document.body:void 0),d=(0,n.useMemo)(()=>{let t=h?.ownerDocument.createElement("div");return t&&(t.className=u),t},[h]),[,p]=(0,n.useState)({});return((0,i.useSafeLayoutEffect)(()=>p({}),[]),(0,i.useSafeLayoutEffect)(()=>{if(d&&c)return c.appendChild(d),()=>{c.removeChild(d)}},[d,c]),c&&d)?(0,s.createPortal)((0,e.jsx)(o,{value:l?d:null,children:r}),d):null};function p(t){let{containerRef:i,...r}={appendToParentPortal:!0,...t};return i?(0,e.jsx)(d,{containerRef:i,...r}):(0,e.jsx)(c,{...r})}p.className=u,p.selector=".chakra-portal",p.displayName="Portal",t.s(["Portal",0,p])},97991,t=>{"use strict";t.s(["isBrowser",0,function(){return!!globalThis?.document},"isContentEditableElement",0,function(t){let e=t.getAttribute("contenteditable");return"false"!==e&&null!=e},"isDisabledElement",0,function(t){return!0==!!t.getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled")},"isHTMLElement",0,function(t){return null!=t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE},"isHiddenElement",0,function t(e){return!!(e.parentElement&&t(e.parentElement))||e.hidden}])}]);

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.