1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[488],{46:(t,e,i)=>{"use strict";i.d(e,{l:()=>r});let r=t=>t},181:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var r=i(4232);let n=i(2205).B?r.useLayoutEffect:r.useEffect},183:(t,e,i)=>{"use strict";i.d(e,{l:()=>a});var r=i(2505),n=i(5128),s=i(6257),o=i(7443);function a(t){let e=(0,r.T)(t);if("virtual"===(0,o.ME)()){let i=e.activeElement;(0,n.v)(()=>{e.activeElement===i&&t.isConnected&&(0,s.e)(t)})}else(0,s.e)(t)}},785:(t,e,i)=>{"use strict";i.d(e,{W:()=>r});let r={skipAnimations:!1,useManualTiming:!1}},1200:(t,e,i)=>{"use strict";i.d(e,{M:()=>n});var r=i(4232);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1461:(t,e,i)=>{"use strict";i.d(e,{Ci:()=>a,Gt:()=>n,WG:()=>s,uv:()=>o});var r=i(46);let{schedule:n,cancel:s,state:o,steps:a}=(0,i(3746).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},1600:(t,e,i)=>{"use strict";i.d(e,{J:()=>s});var r=i(6936),n=i(4232);function s(t){let e=(0,n.useRef)(null);return(0,r.N)(()=>{e.current=t},[t]),(0,n.useCallback)((...t)=>{let i=e.current;return null==i?void 0:i(...t)},[])}},1636:(t,e,i)=>{"use strict";i.d(e,{R:()=>s});var r=i(9023),n=i(4232);function s(t){let{isDisabled:e,onBlurWithin:i,onFocusWithin:s,onFocusWithinChange:o}=t,a=(0,n.useRef)({isFocusWithin:!1}),l=(0,n.useCallback)(t=>{a.current.isFocusWithin&&!t.currentTarget.contains(t.relatedTarget)&&(a.current.isFocusWithin=!1,i&&i(t),o&&o(!1))},[i,o,a]),u=(0,r.y)(l),h=(0,n.useCallback)(t=>{a.current.isFocusWithin||document.activeElement!==t.target||(s&&s(t),o&&o(!0),a.current.isFocusWithin=!0,u(t))},[s,o,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}},2205:(t,e,i)=>{"use strict";i.d(e,{B:()=>r});let r="undefined"!=typeof document},2505:(t,e,i)=>{"use strict";i.d(e,{T:()=>r,m:()=>n});let r=t=>{var e;return null!=(e=null==t?void 0:t.ownerDocument)?e:document},n=t=>t&&"window"in t&&t.window===t?t:r(t).defaultView||window},2572:(t,e,i)=>{"use strict";i.d(e,{JT:()=>c,Kq:()=>h,OD:()=>f,P_:()=>u,Sl:()=>d,U7:()=>g,_6:()=>p});var r=i(5273),n=i(7038),s=i(5264),o=i(6936),a=i(4232),l=i(8477);let u=Symbol("default");function h({values:t,children:e}){for(let[i,r]of t)e=a.createElement(i.Provider,{value:r},e);return e}function d(t){let{className:e,style:i,children:r,defaultClassName:n,defaultChildren:s,defaultStyle:o,values:l}=t;return(0,a.useMemo)(()=>{let t,a,u;return t="function"==typeof e?e({...l,defaultClassName:n}):e,a="function"==typeof i?i({...l,defaultStyle:o||{}}):i,u="function"==typeof r?r({...l,defaultChildren:s}):null==r?s:r,{className:null!=t?t:n,style:a||o?{...o,...a}:void 0,children:null!=u?u:s,"data-rac":""}},[e,i,r,n,s,o,l])}function c(t,e,i){let{ref:o,...l}=function(t,e){let i=(0,a.useContext)(t);if(null===e)return null;if(i&&"object"==typeof i&&"slots"in i&&i.slots){let t=new Intl.ListFormat().format(Object.keys(i.slots).map(t=>`"${t}"`));if(!e&&!i.slots[u])throw Error(`A slot prop is required. Valid slot names are ${t}.`);let r=e||u;if(!i.slots[r])throw Error(`Invalid slot "${e}". Valid slot names are ${t}.`);return i.slots[r]}return i}(i,t.slot)||{},h=(0,r.U)((0,a.useMemo)(()=>(0,n.P)(e,o),[e,o])),d=(0,s.v)(l,t);return"style"in l&&l.style&&"style"in t&&t.style&&("function"==typeof l.style||"function"==typeof t.style?d.style=e=>{let i="function"==typeof l.style?l.style(e):l.style,r={...e.defaultStyle,...i},n="function"==typeof t.style?t.style({...e,defaultStyle:r}):t.style;return{...r,...n}}:d.style={...l.style,...t.style}),[d,h]}function p(t,e=!0){let[i,r]=(0,a.useState)(!0);return m(t,i&&e,(0,a.useCallback)(()=>r(!1),[])),i&&e}function f(t,e){let[i,r]=(0,a.useState)(!1),[n,s]=(0,a.useState)("idle");return!e&&t.current&&"idle"===n&&(i=!0,r(!0),s("exiting")),t.current||"exited"!==n||s("idle"),m(t,i,(0,a.useCallback)(()=>{s("exited"),r(!1)},[])),i}function m(t,e,i){let r=(0,a.useRef)(null);e&&t.current&&(r.current=window.getComputedStyle(t.current).animation),(0,o.N)(()=>{if(e&&t.current){let e=window.getComputedStyle(t.current);if(e.animationName&&"none"!==e.animationName&&e.animation!==r.current){let e=n=>{n.target===t.current&&(r.removeEventListener("animationend",e),l.flushSync(()=>{i()}))},r=t.current;return r.addEventListener("animationend",e),()=>{r.removeEventListener("animationend",e)}}i()}},[t,e,i])}if("undefined"!=typeof HTMLTemplateElement){let t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}let v=(0,a.createContext)(!1);function g(t){let e=(e,i)=>(0,a.useContext)(v)?null:t(e,i);return e.displayName=t.displayName||t.name,a.forwardRef(e)}"undefined"!=typeof DocumentFragment&&new DocumentFragment},2919:(t,e,i)=>{"use strict";i.d(e,{$:()=>n,V:()=>s});var r=i(46);let n=r.l,s=r.l},3080:(t,e,i)=>{"use strict";i.d(e,{$:()=>q});
1var r=i(2572),n=i(5264),s=i(6406),o=i(183),a=i(5257),l=i(4232),u=i(9023),h=i(2505);function d(t){let{isDisabled:e,onFocus:i,onBlur:r,onFocusChange:n}=t,s=(0,l.useCallback)(t=>{if(t.target===t.currentTarget)return r&&r(t),n&&n(!1),!0},[r,n]),o=(0,u.y)(s),a=(0,l.useCallback)(t=>{let e=(0,h.T)(t.target);t.target===t.currentTarget&&e.activeElement===t.target&&(i&&i(t),n&&n(!0),o(t))},[n,i,o]);return{focusProps:{onFocus:!e&&(i||n||r)?a:void 0,onBlur:!e&&(r||n)?s:void 0}}}function c(t){if(!t)return;let e=!0;return i=>{t({...i,preventDefault(){i.preventDefault()},isDefaultPrevented:()=>i.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}}),e&&i.stopPropagation()}}let p=l.createContext(null);var f=i(3419),m=i(5128);let v="default",g="",y=new WeakMap;function T(t){if((0,f.un)()){if("default"===v){let e=(0,h.T)(t);g=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}v="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(y.set(t,t.style.userSelect),t.style.userSelect="none")}function b(t){if((0,f.un)())"disabled"===v&&(v="restoring",setTimeout(()=>{(0,m.v)(()=>{if("restoring"===v){let e=(0,h.T)(t);"none"===e.documentElement.style.webkitUserSelect&&(e.documentElement.style.webkitUserSelect=g||""),g="",v="default"}})},300));else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&y.has(t)){let e=y.get(t);"none"===t.style.userSelect&&(t.style.userSelect=e),""===t.getAttribute("style")&&t.removeAttribute("style"),y.delete(t)}}var P=i(7257);function w(t,e,i){if(!e.has(t))throw TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}function x(t,e,i){var r=w(t,e,"set");if(r.set)r.set.call(t,i);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=i}return i}var E=i(1600),S=i(3399),A=i(6257);function C(t,e,i=!0){var r,n;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=e;(0,f.gm)()&&(null==(n=window.event)||null==(r=n.type)?void 0:r.startsWith("key"))&&"_blank"===t.target&&((0,f.cX)()?s=!0:o=!0);let u=(0,f.Tc)()&&(0,f.cX)()&&!(0,f.bh)()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});C.isOpening=i,(0,A.e)(t),t.dispatchEvent(u),C.isOpening=!1}C.isOpening=!1;var M=i(7449),k=new WeakMap;class V{continuePropagation(){x(this,k,!1)}get shouldStopPropagation(){var t;return t=w(this,k,"get"),t.get?t.get.call(this):t.value}constructor(t,e,i){!function(t,e,i){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object");e.set(t,i)}(this,k,{writable:!0,value:void 0}),x(this,k,!0),this.type=t,this.pointerType=e,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey}}let L=Symbol("linkClicked");function R(t){return"A"===t.tagName&&t.hasAttribute("href")}function D(t,e){let{key:i,code:r}=t,n=e.getAttribute("role");return("Enter"===i||" "===i||"Spacebar"===i||"Space"===r)&&!(e instanceof(0,h.m)(e).HTMLInputElement&&!U(e,i)||e instanceof(0,h.m)(e).HTMLTextAreaElement||e.isContentEditable)&&!(("link"===n||!n&&R(e))&&"Enter"!==i)}function F(t,e){let i=t.changedTouches;for(let t=0;t<i.length;t++){let r=i[t];if(r.identifier===e)return r}return null}function j(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function O(t,e){let i,r,n=e.getBoundingClientRect(),s=(i=0,r=0,void 0!==t.width?i=t.width/2:void 0!==t.radiusX&&(i=t.radiusX),void 0!==t.height?r=t.height/2:void 0!==t.radiusY&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+i,bottom:t.clientY+r,left:t.clientX-i});return!(n.left>s.right)&&!(s.left>n.right)&&!(n.top>s.bottom)&&!(s.top>n.bottom)}function B(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function I(t,e){return t instanceof HTMLInputElement?!U(t,e):t instanceof HTMLButtonElement?"submit"!==t.type&&"reset"!==t.type:!R(t)}let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function U(t,e){return"checkbox"===t.type||"radio"===t.type?" "===e:N.has(t.type)}var W=i(7443),$=i(1636);let K=!1,H=0;function G(){K=!0,setTimeout(()=>{K=!1},50)}function _(t){"touch"===t.pointerType&&G()}function z(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",_):document.addEventListener("touchend",G),H++,()=>{--H>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",_):document.removeEventListener("touchend",G))}}let Y=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),X=(0,l.createContext)({}),q=(0,r.U7)(function(t,e){[t,e]=(0,r.JT)(t,e,X);let i=t,{buttonProps:u,isPressed:m}=function(t,e){let i,{elementType:r="button",isDisabled:u,onPress:m,onPressStart:v,onPressEnd:g,onPressUp:y,onPressChange:w,preventFocusOnPress:x,allowFocusWhenDisabled:k,onClick:N,href:U,target:W,rel:$,type:K="button"}=t;i="button"===r?{type:K,disabled:u}:{role:"button",tabIndex:u?void 0:0,href:"a"===r&&u?void 0:U,target:"a"===r?W:void 0,type:"input"===r?K:void 0,disabled:"input"===r?u:void 0,"aria-disabled":u&&"input"!==r?u:void 0,rel:"a"===r?$:void 0};let{pressProps:H,isPressed:G}=function(t){let e,i,r,s,{onPress:o,onPressChange:u,onPressStart:d,onPressEnd:c,onPressUp:p,isDisabled:m,isPressed:v,preventFocusOnPress:g,shouldCancelOnPointerExit:y,allowTextSelectionOnPress:w,ref:x,...k}=function(t){let e=(0,l.useContext)(P.F);if(e){let{register:i,...r}=e;t=(0,n.v)(r,t),i()}return(0,a.w)(e,t.ref),t}(t),[N,U]=(0,l.useState)(!1),W=(0,l.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:K}=(e=(0,l.useRef)(new Map),i=(0,l.useCallback)((t,i,r,n)=>{let s=(null==n?void 0:n.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:i,eventTarget:t,fn:s,options:n}),t.addEventListener(i,r,n)},[]),r=(0,l.useCallback)((t,i,r,n)=>{var s;let o=(null==(s=e.current.get(r))?void 0:s.fn)||r;t.removeEventListener(i,o,n),e.current.delete(r)},[]),s=(0,l.useCallback)(()=>{e.current.forEach((t,e)=>{r(t.eventTarget,t.type,e,t.options)})},[r]),(0,l.useEffect)(()=>s,[s]),{addGlobalListener:i,removeGlobalListener:r,removeAllGlobalListeners:s}),H=(0,E.J)((t,e)=>{let i=W.current;if(m||i.didFirePressStart)return!1;let r=!0;if(i.isTriggeringEvent=!0,d){let i=new V("pressstart",e,t);d(i),r=i.shouldStopPropagation}return u&&u(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,U(!0),r}
1),G=(0,E.J)((t,e,i=!0)=>{let r=W.current;if(!r.didFirePressStart)return!1;r.ignoreClickAfterPress=!0,r.didFirePressStart=!1,r.isTriggeringEvent=!0;let n=!0;if(c){let i=new V("pressend",e,t);c(i),n=i.shouldStopPropagation}if(u&&u(!1),U(!1),o&&i&&!m){let i=new V("press",e,t);o(i),n&&(n=i.shouldStopPropagation)}return r.isTriggeringEvent=!1,n}),_=(0,E.J)((t,e)=>{let i=W.current;if(m)return!1;if(p){i.isTriggeringEvent=!0;let r=new V("pressup",e,t);return p(r),i.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),z=(0,E.J)(t=>{let e=W.current;e.isPressed&&e.target&&(e.isOverTarget&&null!=e.pointerType&&G(j(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,K(),w||b(e.target))}),Y=(0,E.J)(t=>{y&&z(t)}),X=(0,l.useMemo)(()=>{let t=W.current,e={onKeyDown(e){if(D(e.nativeEvent,e.currentTarget)&&e.currentTarget.contains(e.target)){var r;I(e.target,e.key)&&e.preventDefault();let n=!0;if(!t.isPressed&&!e.repeat){t.target=e.currentTarget,t.isPressed=!0,n=H(e,"keyboard");let r=e.currentTarget;$((0,h.T)(e.currentTarget),"keyup",(0,S.c)(e=>{D(e,r)&&!e.repeat&&r.contains(e.target)&&t.target&&_(j(t.target,e),"keyboard")},i),!0)}n&&e.stopPropagation(),e.metaKey&&(0,f.cX)()&&(null==(r=t.metaKeyEvents)||r.set(e.key,e.nativeEvent))}else"Meta"===e.key&&(t.metaKeyEvents=new Map)},onClick(e){if((!e||e.currentTarget.contains(e.target))&&e&&0===e.button&&!t.isTriggeringEvent&&!C.isOpening){let i=!0;if(m&&e.preventDefault(),!t.ignoreClickAfterPress&&!t.ignoreEmulatedMouseEvents&&!t.isPressed&&("virtual"===t.pointerType||(0,M.Y)(e.nativeEvent))){m||g||(0,A.e)(e.currentTarget);let t=H(e,"virtual"),r=_(e,"virtual"),n=G(e,"virtual");i=t&&r&&n}t.ignoreEmulatedMouseEvents=!1,t.ignoreClickAfterPress=!1,i&&e.stopPropagation()}}},i=e=>{var i,r,n;if(t.isPressed&&t.target&&D(e,t.target)){I(e.target,e.key)&&e.preventDefault();let i=e.target;G(j(t.target,e),"keyboard",t.target.contains(i)),K(),"Enter"!==e.key&&R(t.target)&&t.target.contains(i)&&!e[L]&&(e[L]=!0,C(t.target,e,!1)),t.isPressed=!1,null==(r=t.metaKeyEvents)||r.delete(e.key)}else if("Meta"===e.key&&(null==(i=t.metaKeyEvents)?void 0:i.size)){let e=t.metaKeyEvents;
1for(let i of(t.metaKeyEvents=void 0,e.values()))null==(n=t.target)||n.dispatchEvent(new KeyboardEvent("keyup",i))}};if("undefined"!=typeof PointerEvent){e.onPointerDown=e=>{if(0!==e.button||!e.currentTarget.contains(e.target))return;if((0,M.P)(e.nativeEvent)){t.pointerType="virtual";return}B(e.currentTarget)&&e.preventDefault(),t.pointerType=e.pointerType;let s=!0;t.isPressed||(t.isPressed=!0,t.isOverTarget=!0,t.activePointerId=e.pointerId,t.target=e.currentTarget,m||g||(0,A.e)(e.currentTarget),w||T(t.target),s=H(e,t.pointerType),$((0,h.T)(e.currentTarget),"pointermove",i,!1),$((0,h.T)(e.currentTarget),"pointerup",r,!1),$((0,h.T)(e.currentTarget),"pointercancel",n,!1)),s&&e.stopPropagation()},e.onMouseDown=t=>{t.currentTarget.contains(t.target)&&0===t.button&&(B(t.currentTarget)&&t.preventDefault(),t.stopPropagation())},e.onPointerUp=e=>{e.currentTarget.contains(e.target)&&"virtual"!==t.pointerType&&0===e.button&&O(e,e.currentTarget)&&_(e,t.pointerType||e.pointerType)};let i=e=>{e.pointerId===t.activePointerId&&(t.target&&O(e,t.target)?t.isOverTarget||null==t.pointerType||(t.isOverTarget=!0,H(j(t.target,e),t.pointerType)):t.target&&t.isOverTarget&&null!=t.pointerType&&(t.isOverTarget=!1,G(j(t.target,e),t.pointerType,!1),Y(e)))},r=e=>{e.pointerId===t.activePointerId&&t.isPressed&&0===e.button&&t.target&&(O(e,t.target)&&null!=t.pointerType?G(j(t.target,e),t.pointerType):t.isOverTarget&&null!=t.pointerType&&G(j(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,K(),w||b(t.target))},n=t=>{z(t)};e.onDragStart=t=>{t.currentTarget.contains(t.target)&&z(t)}}else{e.onMouseDown=e=>{if(0===e.button&&e.currentTarget.contains(e.target)){if(B(e.currentTarget)&&e.preventDefault(),t.ignoreEmulatedMouseEvents)return void e.stopPropagation();t.isPressed=!0,t.isOverTarget=!0,t.target=e.currentTarget,t.pointerType=(0,M.Y)(e.nativeEvent)?"virtual":"mouse",m||g||(0,A.e)(e.currentTarget),H(e,t.pointerType)&&e.stopPropagation(),$((0,h.T)(e.currentTarget),"mouseup",i,!1)}},e.onMouseEnter=e=>{if(!e.currentTarget.contains(e.target))return;let i=!0;t.isPressed&&!t.ignoreEmulatedMouseEvents&&null!=t.pointerType&&(t.isOverTarget=!0,i=H(e,t.pointerType)),i&&e.stopPropagation()},e.onMouseLeave=e=>{if(!e.currentTarget.contains(e.target))return;let i=!0;t.isPressed&&!t.ignoreEmulatedMouseEvents&&null!=t.pointerType&&(t.isOverTarget=!1,i=G(e,t.pointerType,!1),Y(e)),i&&e.stopPropagation()},e.onMouseUp=e=>{e.currentTarget.contains(e.target)&&(t.ignoreEmulatedMouseEvents||0!==e.button||_(e,t.pointerType||"mouse"))};let i=e=>{if(0===e.button){if(t.isPressed=!1,K(),t.ignoreEmulatedMouseEvents){t.ignoreEmulatedMouseEvents=!1;return}t.target&&O(e,t.target)&&null!=t.pointerType?G(j(t.target,e),t.pointerType):t.target&&t.isOverTarget&&null!=t.pointerType&&G(j(t.target,e),t.pointerType,!1),t.isOverTarget=!1}};e.onTouchStart=e=>{if(!e.currentTarget.contains(e.target))return;let i=function(t){let{targetTouches:e}=t;return e.length>0?e[0]:null}(e.nativeEvent);i&&(t.activePointerId=i.identifier,t.ignoreEmulatedMouseEvents=!0,t.isOverTarget=!0,t.isPressed=!0,t.target=e.currentTarget,t.pointerType="touch",m||g||(0,A.e)(e.currentTarget),w||T(t.target),H(e,t.pointerType)&&e.stopPropagation(),$((0,h.m)(e.currentTarget),"scroll",r,!0))},e.onTouchMove=e=>{if(!e.currentTarget.contains(e.target))return;if(!t.isPressed)return void e.stopPropagation();let i=F(e.nativeEvent,t.activePointerId),r=!0;i&&O(i,e.currentTarget)?t.isOverTarget||null==t.pointerType||(t.isOverTarget=!0,r=H(e,t.pointerType)):t.isOverTarget&&null!=t.pointerType&&(t.isOverTarget=!1,r=G(e,t.pointerType,!1),Y(e)),r&&e.stopPropagation()},e.onTouchEnd=e=>{if(!e.currentTarget.contains(e.target))return;if(!t.isPressed)return void e.stopPropagation();let i=F(e.nativeEvent,t.activePointerId),r=!0;i&&O(i,e.currentTarget)&&null!=t.pointerType?(_(e,t.pointerType),r=G(e,t.pointerType)):t.isOverTarget&&null!=t.pointerType&&(r=G(e,t.pointerType,!1)),r&&e.stopPropagation(),t.isPressed=!1,t.activePointerId=null,t.isOverTarget=!1,t.ignoreEmulatedMouseEvents=!0,t.target&&!w&&b(t.target),K()},e.onTouchCancel=e=>{e.currentTarget.contains(e.target)&&(e.stopPropagation(),t.isPressed&&z(e))};let r=e=>{t.isPressed&&e.target.contains(t.target)&&z({currentTarget:t.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};e.onDragStart=t=>{t.currentTarget.contains(t.target)&&z(t)}}return e},[$,m,g,K,w,z,Y,G,H,_]);return(0,l.useEffect)(()=>()=>{var t;w||b(null!=(t=W.current.target)?t:void 0)},[w]),{isPressed:v||N,pressProps:(0,n.v)(k,X)}}({onPressStart:v,onPressEnd:g,onPressChange:w,onPress:m,onPressUp:y,isDisabled:u,preventFocusOnPress:x,ref:e}),{focusableProps:_}=function(t,e){let{focusProps:i}=d(t),{keyboardProps:r}={keyboardProps:t.isDisabled?{}:{onKeyDown:c(t.onKeyDown),onKeyUp:c(t.onKeyUp)}},s=(0,n.v)(i,r),u=function(t){let e=(0,l.useContext)(p)||{};(0,a.w)(e,t);let{ref:i,...r}=e;return r}(e),h=t.isDisabled?{}
1:u,f=(0,l.useRef)(t.autoFocus);return(0,l.useEffect)(()=>{f.current&&e.current&&(0,o.l)(e.current),f.current=!1},[e]),{focusableProps:(0,n.v)({...s,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},h)}}(t,e);k&&(_.tabIndex=u?-1:_.tabIndex);let z=(0,n.v)(_,H,(0,s.$)(t,{labelable:!0}));return{isPressed:G,buttonProps:(0,n.v)(i,z,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:t=>{N&&(N(t),console.warn("onClick is deprecated, please use onPress"))}})}}(t,e),{focusProps:v,isFocused:g,isFocusVisible:y}=function(t={}){let{autoFocus:e=!1,isTextInput:i,within:r}=t,n=(0,l.useRef)({isFocused:!1,isFocusVisible:e||(0,W.pP)()}),[s,o]=(0,l.useState)(!1),[a,u]=(0,l.useState)(()=>n.current.isFocused&&n.current.isFocusVisible),h=(0,l.useCallback)(()=>u(n.current.isFocused&&n.current.isFocusVisible),[]),c=(0,l.useCallback)(t=>{n.current.isFocused=t,o(t),h()},[h]);(0,W.K7)(t=>{n.current.isFocusVisible=t,h()},[],{isTextInput:i});let{focusProps:p}=d({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=(0,$.R)({isDisabled:!r,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:r?f:p}}(t),{hoverProps:w,isHovered:x}=function(t){let{onHoverStart:e,onHoverChange:i,onHoverEnd:r,isDisabled:n}=t,[s,o]=(0,l.useState)(!1),a=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(z,[]);let{hoverProps:u,triggerHoverEnd:h}=(0,l.useMemo)(()=>{let t=(t,r)=>{if(a.pointerType=r,n||"touch"===r||a.isHovered||!t.currentTarget.contains(t.target))return;a.isHovered=!0;let s=t.currentTarget;a.target=s,e&&e({type:"hoverstart",target:s,pointerType:r}),i&&i(!0),o(!0)},s=(t,e)=>{if(a.pointerType="",a.target=null,"touch"===e||!a.isHovered)return;a.isHovered=!1;let n=t.currentTarget;r&&r({type:"hoverend",target:n,pointerType:e}),i&&i(!1),o(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=e=>{K&&"mouse"===e.pointerType||t(e,e.pointerType)},l.onPointerLeave=t=>{!n&&t.currentTarget.contains(t.target)&&s(t,t.pointerType)}):(l.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=e=>{a.ignoreEmulatedMouseEvents||K||t(e,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=t=>{!n&&t.currentTarget.contains(t.target)&&s(t,"mouse")}),{hoverProps:l,triggerHoverEnd:s}},[e,i,r,n,a]);return(0,l.useEffect)(()=>{n&&h({currentTarget:a.target},a.pointerType)},[n]),{hoverProps:u,isHovered:s}}(t),k=(0,r.Sl)({...t,values:{isHovered:x,isPressed:m,isFocused:g,isFocusVisible:y,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return l.createElement("button",{...(0,s.$)(t,{propNames:Y}),...(0,n.v)(u,v,w),...k,ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-pressed":i.isPressed||m||void 0,"data-hovered":x||void 0,"data-focused":g||void 0,"data-focus-visible":y||void 0})})},3399:(t,e,i)=>{"use strict";function r(...t){return(...e)=>{for(let i of t)"function"==typeof i&&i(...e)}}i.d(e,{c:()=>r})},3408:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return l}}),i(6201);let r=i(8637),n=i(9161),s=["-moz-initial","fill","none","scale-down",void 0];function o(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function l(t,e){var i,l;let u,h,d,{src:c,sizes:p,unoptimized:f=!1,priority:m=!1,loading:v,className:g,quality:y,width:T,height:b,fill:P=!1,style:w,overrideSrc:x,onLoad:E,onLoadingComplete:S,placeholder:A="empty",blurDataURL:C,fetchPriority:M,decoding:k="async",layout:V,objectFit:L,objectPosition:R,lazyBoundary:D,lazyRoot:F,...j}=t,{imgConf:O,showAltText:B,blurComplete:I,defaultLoader:N}=e,U=O||n.imageConfigDefault;if("allSizes"in U)u=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e),r=null==(i=U.qualities)?void 0:i.sort((t,e)=>t-e);u={...U,allSizes:t,deviceSizes:e,qualities:r}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,
1configurable:!0});let W=j.loader||N;delete j.loader,delete j.srcSet;let $="__next_img_default"in W;if($){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=W;W=e=>{let{config:i,...r}=e;return t(r)}}if(V){"fill"===V&&(P=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[V];t&&(w={...w,...t});let e={responsive:"100vw",fill:"100vw"}[V];e&&!p&&(p=e)}let K="",H=a(T),G=a(b),_=!1;if((l=c)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let t=o(c)?c.default:c;if(!t.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(h=t.blurWidth,d=t.blurHeight,C=C||t.blurDataURL,K=t.src,_=/\.avif(?:\?|$)/i.test(K),!P)if(H||G){if(H&&!G){let e=H/t.width;G=Math.round(t.height*e)}else if(!H&&G){let e=G/t.height;H=Math.round(t.width*e)}}else H=t.width,G=t.height}_&&"blur"===A&&!C&&(A="empty");let z=!m&&("lazy"===v||void 0===v);(!(c="string"==typeof c?c:K)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,z=!1),u.unoptimized&&(f=!0),$&&!u.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(f=!0);let Y=a(y),X=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:L,objectPosition:R}:{},B?{}:{color:"transparent"},w),q=I||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:H,heightInt:G,blurWidth:h,blurHeight:d,blurDataURL:C||"",objectFit:X.objectFit})+'")':'url("'+A+'")',J=s.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,Z=q?{backgroundSize:J,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function(t){let{config:e,src:i,unoptimized:r,width:n,quality:s,sizes:o,loader:a}=t;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,i){let{deviceSizes:r,allSizes:n}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let r;r=t.exec(i);)e.push(parseInt(r[2]));if(e.length){let t=.01*Math.min(...e);return{widths:n.filter(e=>e>=r[0]*t),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof e?{widths:r,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>n.find(e=>e>=t)||n[n.length-1]))],kind:"x"}}(e,n,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,r)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:r+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:u,src:c,unoptimized:f,width:H,quality:Y,sizes:p,loader:W});return{props:{...j,loading:z?"lazy":v,fetchPriority:M,width:H,height:G,decoding:k,className:g,style:{...X,...Z},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:f,priority:m,placeholder:A,fill:P}}}},3419:(t,e,i)=>{"use strict";function r(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&((null==(e=window.navigator.userAgentData)?void 0:e.brands.some(e=>t.test(e.brand)))||t.test(window.navigator.userAgent))}function n(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null==(e=window.navigator.userAgentData)?void 0:e.platform)||window.navigator.platform)}function s(){return n(/^Mac/i)}function o(){return n(/^iPad/i)||s()&&navigator.maxTouchPoints>1}function a(){return n(/^iPhone/i)||o()}function l(){return r(/AppleWebKit/i)&&!r(/Chrome/i)}function u(){return r(/Android/i)}function h(){return r(/Firefox/i)}i.d(e,{Tc:()=>l,bh:()=>o,cX:()=>s,gm:()=>h,m0:()=>u,un:()=>a})},3746:(t,e,i)=>{"use strict";i.d(e,{I:()=>o});var r=i(785);
1class n{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let s=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=s.reduce((t,e)=>(t[e]=function(t){let e=new n,i=new n,r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(t,n=!1,o=!1)=>{let l=o&&s,u=l?e:i;return n&&a.add(t),u.add(t)&&l&&s&&(r=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:n=>{if(s){o=!0;return}if(s=!0,[e,i]=[i,e],i.clear(),r=e.order.length)for(let i=0;i<r;i++){let r=e.order[i];a.has(r)&&(l.schedule(r),t()),r(n)}s=!1,o&&(o=!1,l.process(n))}};return l}(()=>i=!0),t),{}),u=t=>{l[t].process(a)},h=()=>{let n=r.W.useManualTiming?a.timestamp:performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(n-a.timestamp,40),1),a.timestamp=n,a.isProcessing=!0,s.forEach(u),a.isProcessing=!1,i&&e&&(o=!1,t(h))};return{schedule:s.reduce((e,r)=>{let n=l[r];return e[r]=(e,r=!1,s=!1)=>(!i&&(i=!0,o=!0,a.isProcessing||t(h)),n.schedule(e,r,s)),e},{}),cancel:t=>s.forEach(e=>l[e].cancel(t)),state:a,steps:l}}},3866:(t,e,i)=>{"use strict";i.d(e,{t:()=>r});let r=(0,i(4232).createContext)(null)},4468:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let r=i(4252),n=i(3408),s=i(9420),o=r._(i(5540));function a(t){let{props:e}=(0,n.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},4587:(t,e,i)=>{t.exports=i(4468)},5048:(t,e,i)=>{"use strict";i.d(e,{L:()=>r});let r=(0,i(4232).createContext)({})},5128:(t,e,i)=>{"use strict";i.d(e,{v:()=>o});let r=new Map,n=new Set;function s(){if("undefined"==typeof window)return;function t(t){return"propertyName"in t}let e=i=>{if(!t(i)||!i.target)return;let s=r.get(i.target);if(s&&(s.delete(i.propertyName),0===s.size&&(i.target.removeEventListener("transitioncancel",e),r.delete(i.target)),0===r.size)){for(let t of n)t();n.clear()}};document.body.addEventListener("transitionrun",i=>{if(!t(i)||!i.target)return;let n=r.get(i.target);n||(n=new Set,r.set(i.target,n),i.target.addEventListener("transitioncancel",e,{once:!0})),n.add(i.propertyName)}),document.body.addEventListener("transitionend",e)}function o(t){requestAnimationFrame(()=>{0===r.size?t():n.add(t)})}"undefined"!=typeof document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s))},5257:(t,e,i)=>{"use strict";i.d(e,{w:()=>n});var r=i(6936);function n(t,e){(0,r.N)(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}},5264:(t,e,i)=>{"use strict";i.d(e,{v:()=>o});var r=i(3399),n=i(8960),s=i(9241);function o(...t){let e={...t[0]};for(let i=1;i<t.length;i++){let o=t[i];for(let t in o){let i=e[t],a=o[t];"function"==typeof i&&"function"==typeof a&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&90>=t.charCodeAt(2)?e[t]=(0,r.c)(i,a):("className"===t||"UNSAFE_className"===t)&&"string"==typeof i&&"string"==typeof a?e[t]=(0,s.A)(i,a):"id"===t&&i&&a?e.id=(0,n.Tw)(i,a):e[t]=void 0!==a?a:i}}return e}},5273:(t,e,i)=>{"use strict";i.d(e,{U:()=>n});var r=i(4232);function n(t){let e=(0,r.useRef)(null);return(0,r.useMemo)(()=>({get current(){return e.current},set current(value){e.current=value,"function"==typeof t?t(value):t&&(t.current=value)}}),[t])}},5540:(t,e)=>{"use strict";function i(t){var e;let{config:i,src:r,width:n,quality:s}=t,o=s||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return i.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+o+(r.startsWith("/_next/static/media/"),"")}
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},6257:(t,e,i)=>{"use strict";function r(t){if(function(){if(null==n){n=!1;try{document.createElement("div").focus({get preventScroll(){return n=!0,!0}})}catch(t){}}return n}())t.focus({preventScroll:!0});else{let e=function(t){let e=t.parentNode,i=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&i.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&i.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),i}(t);t.focus(),function(t){for(let{element:e,scrollTop:i,scrollLeft:r}of t)e.scrollTop=i,e.scrollLeft=r}(e)}}i.d(e,{e:()=>r});let n=null},6406:(t,e,i)=>{"use strict";i.d(e,{$:()=>a});let r=new Set(["id"]),n=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),o=/^(data-.*)$/;function a(t,e={}){let{labelable:i,isLink:l,propNames:u}=e,h={};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r.has(e)||i&&n.has(e)||l&&s.has(e)||(null==u?void 0:u.has(e))||o.test(e))&&(h[e]=t[e]);return h}},6936:(t,e,i)=>{"use strict";i.d(e,{N:()=>n});var r=i(4232);let n="undefined"!=typeof document?r.useLayoutEffect:()=>{}},7038:(t,e,i)=>{"use strict";function r(...t){return 1===t.length?t[0]:e=>{for(let i of t)"function"==typeof i?i(e):null!=i&&(i.current=e)}}i.d(e,{P:()=>r})},7257:(t,e,i)=>{"use strict";i.d(e,{F:()=>r});let r=i(4232).createContext({register:()=>{}});r.displayName="PressResponderContext"},7443:(t,e,i)=>{"use strict";i.d(e,{K7:()=>E,ME:()=>w,pP:()=>P});var r=i(3419),n=i(7449),s=i(2505),o=i(4232);let a=null,l=new Set,u=new Map,h=!1,d=!1,c={Tab:!0,Escape:!0};function p(t,e){for(let i of l)i(t,e)}function f(t){h=!0,t.metaKey||!(0,r.cX)()&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(a="keyboard",p("keyboard",t))}
1function m(t){a="pointer",("mousedown"===t.type||"pointerdown"===t.type)&&(h=!0,p("pointer",t))}function v(t){(0,n.Y)(t)&&(h=!0,a="virtual")}function g(t){t.target!==window&&t.target!==document&&(h||d||(a="virtual",p("virtual",t)),h=!1,d=!1)}function y(){h=!1,d=!0}function T(t){if("undefined"==typeof window||u.get((0,s.m)(t)))return;let e=(0,s.m)(t),i=(0,s.T)(t),r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){h=!0,r.apply(this,arguments)},i.addEventListener("keydown",f,!0),i.addEventListener("keyup",f,!0),i.addEventListener("click",v,!0),e.addEventListener("focus",g,!0),e.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(i.addEventListener("pointerdown",m,!0),i.addEventListener("pointermove",m,!0),i.addEventListener("pointerup",m,!0)):(i.addEventListener("mousedown",m,!0),i.addEventListener("mousemove",m,!0),i.addEventListener("mouseup",m,!0)),e.addEventListener("beforeunload",()=>{b(t)},{once:!0}),u.set(e,{focus:r})}let b=(t,e)=>{let i=(0,s.m)(t),r=(0,s.T)(t);e&&r.removeEventListener("DOMContentLoaded",e),u.has(i)&&(i.HTMLElement.prototype.focus=u.get(i).focus,r.removeEventListener("keydown",f,!0),r.removeEventListener("keyup",f,!0),r.removeEventListener("click",v,!0),i.removeEventListener("focus",g,!0),i.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",m,!0),r.removeEventListener("pointermove",m,!0),r.removeEventListener("pointerup",m,!0)):(r.removeEventListener("mousedown",m,!0),r.removeEventListener("mousemove",m,!0),r.removeEventListener("mouseup",m,!0)),u.delete(i))};function P(){return"pointer"!==a}function w(){return a}"undefined"!=typeof document&&function(t){let e,i=(0,s.T)(void 0);"loading"!==i.readyState?T(void 0):(e=()=>{T(t)},i.addEventListener("DOMContentLoaded",e)),()=>b(t,e)}();let x=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function E(t,e,i){T(),(0,o.useEffect)(()=>{let e=(e,r)=>{(function(t,e,i){var r;let n="undefined"!=typeof window?(0,s.m)(null==i?void 0:i.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?(0,s.m)(null==i?void 0:i.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,s.m)(null==i?void 0:i.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,s.m)(null==i?void 0:i.target).KeyboardEvent:KeyboardEvent;return!((t=t||(null==i?void 0:i.target)instanceof n&&!x.has(null==i||null==(r=i.target)?void 0:r.type)||(null==i?void 0:i.target)instanceof o||(null==i?void 0:i.target)instanceof a&&(null==i?void 0:i.target.isContentEditable))&&"keyboard"===e&&i instanceof l&&!c[i.key])})(!!(null==i?void 0:i.isTextInput),e,r)&&t(P())};return l.add(e),()=>{l.delete(e)}},e)}},7449:(t,e,i)=>{"use strict";i.d(e,{P:()=>s,Y:()=>n});var r=i(3419);function n(t){return 0===t.mozInputSource&&!!t.isTrusted||((0,r.m0)()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType)}function s(t){return!(0,r.m0)()&&0===t.width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"===t.pointerType}},7963:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var r=i(4232);let n=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&i.indexOf(t)===e).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)((t,e)=>{let{color:i="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:d,...c}=t;return(0,r.createElement)("svg",{ref:e,...s,width:o,height:o,stroke:i,strokeWidth:l?24*Number(a)/Number(o):a,className:n("lucide",u),...c},[...d.map(t=>{let[e,i]=t;return(0,r.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),a=(t,e)=>{let i=(0,r.forwardRef)((i,s)=>{let{className:a,...l}=i;return(0,r.createElement)(o,{ref:s,iconNode:e,className:n("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return i.displayName="".concat(t),i}},8637:(t,e)=>{"use strict";function i(t){let{widthInt:e,heightInt:i,blurWidth:r,blurHeight:n,blurDataURL:s,objectFit:o}=t,a=r?40*r:e,l=n?40*n:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},8960:(t,e,i)=>{"use strict";i.d(e,{Tw:()=>h,Bi:()=>u,X1:()=>d});var r=i(6936),n=i(1600),s=i(4232),o=i(8970);let a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(t){let[e,i]=(0,s.useState)(t),n=(0,s.useRef)(null),u=(0,o.Cc)(e),h=(0,s.useCallback)(t=>{n.current=t},[]);return a&&l.set(u,h),(0,r.N)(()=>()=>{l.delete(u)},[u]),(0,s.useEffect)(()=>{let t=n.current;t&&(n.current=null,i(t))}),u}function h(t,e){if(t===e)return t;let i=l.get(t);if(i)return i(e),e;let r=l.get(e);return r?(r(t),t):e}function d(t=[]){let e=u(),[i,o]=function(t){let[e,i]=(0,s.useState)(t),o=(0,s.useRef)(null),a=(0,n.J)(()=>{if(!o.current)return;let t=o.current.next();if(t.done){o.current=null;return}e===t.value?a():i(t.value)});(0,r.N)(()=>{o.current&&a()});let l=(0,n.J)(t=>{o.current=t(e),a()});return[e,l]}(e),a=(0,s.useCallback)(()=>{o(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,o]);return(0,r.N)(a,[e,a,...t]),i}},8970:(t,e,i)=>{"use strict";i.d(e,{Cc:()=>u,wR:()=>p});var r=i(4232);let n={prefix:String(Math.round(1e10*Math.random())),current:0},s=r.createContext(n),o=r.createContext(!1),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap,u="function"==typeof r.useId?function(t){let e=r.useId(),[i]=(0,r.useState)(p()),s=i?"react-aria":`react-aria${n.prefix}`;return t||`${s}-${e}`}:function(t){let e=(0,r.useContext)(s);e!==n||a||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=function(t=!1){let e=(0,r.useContext)(s),i=(0,r.useRef)(null);if(null===i.current&&!t){var n,o;let t=null==(o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(n=o.ReactCurrentOwner)?void 0:n.current;if(t){let i=l.get(t);null==i?l.set(t,{id:e.current,state:t.memoizedState}):t.memoizedState!==i.state&&(e.current=i.id,l.delete(t))}i.current=++e.current}return i.current}(!!t),o=`react-aria${e.prefix}`;return t||`${o}-${i}`};function h(){return!1}function d(){return!0}function c(t){return()=>{}}function p(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(c,h,d):(0,r.useContext)(o)}},9023:(t,e,i)=>{"use strict";i.d(e,{y:()=>a});var r=i(4232),n=i(6936),s=i(1600);class o{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=t}}function a(t){let e=(0,r.useRef)({isFocused:!1,observer:null});(0,n.N)(()=>{let t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let i=(0,s.J)(e=>{null==t||t(e)});return(0,r.useCallback)(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=t.target;r.addEventListener("focusout",t=>{e.current.isFocused=!1,r.disabled&&i(new o("blur",t)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)},{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var t;null==(t=e.current.observer)||t.disconnect();
1let i=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[i])}},9241:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}},9420:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return b}});let r=i(4252),n=i(8365),s=i(7876),o=n._(i(4232)),a=r._(i(8477)),l=r._(i(9269)),u=i(3408),h=i(9161),d=i(9263);i(6201);let c=i(242),p=r._(i(5540)),f=i(9203),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function v(t,e,i,r,n,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&n(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,n=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{n=!0,e.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:r,sizes:n,height:a,width:l,decoding:u,className:h,style:d,fetchPriority:c,placeholder:p,loading:m,unoptimized:y,fill:T,onLoadRef:b,onLoadingCompleteRef:P,setBlurComplete:w,setShowAltText:x,sizesInput:E,onLoad:S,onError:A,...C}=t,M=(0,o.useCallback)(t=>{t&&(A&&(t.src=t.src),t.complete&&v(t,p,b,P,w,y,E))},[i,p,b,P,w,A,y,E]),k=(0,f.useMergedRef)(e,M);return(0,s.jsx)("img",{...C,...g(c),loading:m,width:l,height:a,decoding:u,"data-nimg":T?"fill":"1",className:h,style:d,sizes:n,srcSet:r,src:i,ref:k,onLoad:t=>{v(t.currentTarget,p,b,P,w,y,E)},onError:t=>{x(!0),"empty"!==p&&w(!0),A&&A(t)}})});function T(t){let{isAppRouter:e,imgAttributes:i}=t,r={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,r),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...r},"__nimg-"+i.src+i.srcSet+i.sizes)})}let b=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),n=(0,o.useMemo)(()=>{var t;let e=m||r||h.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),n=e.deviceSizes.sort((t,e)=>t-e),s=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:i,deviceSizes:n,qualities:s}},[r]),{onLoad:a,onLoadingComplete:l}=t,f=(0,o.useRef)(a);(0,o.useEffect)(()=>{f.current=a},[a]);let v=(0,o.useRef)(l);(0,o.useEffect)(()=>{v.current=l},[l]);let[g,b]=(0,o.useState)(!1),[P,w]=(0,o.useState)(!1),{props:x,meta:E}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:n,blurComplete:g,showAltText:P});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...x,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:f,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:w,sizesInput:t.sizes,ref:e}),E.priority?(0,s.jsx)(T,{isAppRouter:!i,imgAttributes:x}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9751:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});let r=(0,i(4232).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})}
1,9830:(t,e,i)=>{"use strict";let r;i.d(e,{P:()=>n0});var n=i(7876),s=i(4232),o=i(9751);let a=(0,s.createContext)({});var l=i(3866),u=i(181);let h=(0,s.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),c="data-"+d("framerAppearId"),{schedule:p,cancel:f}=(0,i(3746).I)(queueMicrotask,!1);function m(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let v=(0,s.createContext)({}),g=!1;function y(){window.HandoffComplete=!0}function T(t){return"string"==typeof t||Array.isArray(t)}function b(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let P=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],w=["initial",...P];function x(t){return b(t.animate)||w.some(e=>T(t[e]))}function E(t){return!!(x(t)||t.variants)}function S(t){return Array.isArray(t)?t.join(" "):t}let A={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"]},C={};for(let t in A)C[t]={isEnabled:e=>A[t].some(t=>!!e[t])};var M=i(2205),k=i(5048);let V=Symbol.for("motionComponentSymbol"),L=["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 R(t){if("string"!=typeof t||t.includes("-"));else if(L.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let D={},F=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(F);function O(t,{layout:e,layoutId:i}){return j.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!D[t]||"opacity"===t)}let B=t=>!!(t&&t.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N=F.length,U=t=>e=>"string"==typeof e&&e.startsWith(t),W=U("--"),$=U("var(--"),K=t=>!!$(t)&&H.test(t.split("/*")[0].trim()),H=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,G=(t,e)=>e&&"number"==typeof t?e.transform(t):t,_=(t,e,i)=>i>e?e:i<t?t:i,z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Y={...z,transform:t=>_(0,1,t)},X={...z,default:1},q=t=>Math.round(1e5*t)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function tt(t){return"string"==typeof t}let te=t=>({test:e=>tt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ti=te("deg"),tr=te("%"),tn=te("px"),ts=te("vh"),to=te("vw"),ta={...tr,parse:t=>tr.parse(t)/100,transform:t=>tr.transform(100*t)},tl={...z,transform:Math.round},tu={borderWidth:tn,borderTopWidth:tn,borderRightWidth:tn,borderBottomWidth:tn,borderLeftWidth:tn,borderRadius:tn,radius:tn,borderTopLeftRadius:tn,borderTopRightRadius:tn,borderBottomRightRadius:tn,borderBottomLeftRadius:tn,width:tn,maxWidth:tn,height:tn,maxHeight:tn,size:tn,top:tn,right:tn,bottom:tn,left:tn,padding:tn,paddingTop:tn,paddingRight:tn,paddingBottom:tn,paddingLeft:tn,margin:tn,marginTop:tn,marginRight:tn,marginBottom:tn,marginLeft:tn,rotate:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:ti,skewX:ti,skewY:ti,distance:tn,translateX:tn,translateY:tn,translateZ:tn,x:tn,y:tn,z:tn,perspective:tn,transformPerspective:tn,opacity:Y,originX:ta,originY:ta,originZ:tn,zIndex:tl,backgroundPositionX:tn,backgroundPositionY:tn,fillOpacity:Y,strokeOpacity:Y,numOctaves:tl};function th(t,e,i,r){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(W(t)){s[t]=i;continue}let r=tu[t],d=G(i,r);if(j.has(t)){if(l=!0,o[t]=d,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=d):n[t]=d}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0}
1,r,n){let s="";for(let e=0;e<N;e++){let i=F[e];if(void 0!==t[i]){let e=I[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}=a;n.transformOrigin=`${t} ${e} ${i}`}}let td=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tc(t,e,i){for(let r in e)B(e[r])||O(r,i)||(t[r]=e[r])}let tp=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tf(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tp.has(t)}let tm=t=>!tf(t);try{!function(t){t&&(tm=e=>e.startsWith("on")?!tf(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}function tv(t,e,i){return"string"==typeof t?t:tn.transform(e+i*t)}let tg={offset:"stroke-dashoffset",array:"stroke-dasharray"},ty={offset:"strokeDashoffset",array:"strokeDasharray"};function tT(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d,c){if(th(t,u,h,c),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==n||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,i){let r=tv(e,t.x,t.width),n=tv(i,t.y,t.height);return`${r} ${n}`}(m,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==r&&(p.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?tg:ty;t[s.offset]=tn.transform(-r);let o=tn.transform(e),a=tn.transform(i);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let tb=()=>({...td(),attrs:{}}),tP=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tw(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])}let tx=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 tE(t,e,i,r){for(let i in tw(t,e,void 0,r),e.attrs)t.setAttribute(tx.has(i)?i:d(i),e.attrs[i])}function tS(t,e,i){var r;let{style:n}=t,s={};for(let o in n)(B(n[o])||e.style&&B(e.style[o])||O(o,t)||(null==(r=null==i?void 0:i.getValue(o))?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function tA(t,e,i){let r=tS(t,e,i);for(let i in t)(B(t[i])||B(e[i]))&&(r[-1!==F.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}function tC(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tM(t,e,i,r){if("function"==typeof e){let[n,s]=tC(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=tC(r);e=e(void 0!==i?i:t.custom,n,s)}return e}var tk=i(1200);let tV=t=>Array.isArray(t),tL=t=>tV(t)?t[t.length-1]||0:t;function tR(t){let e=B(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let tD=t=>(e,i)=>{let r=(0,s.useContext)(a),n=(0,s.useContext)(l.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},r,n,s){let o={latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=tR(s[t]);let{initial:o,animate:a}=t,l=x(t),u=E(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;return d&&"boolean"!=typeof d&&!b(d)&&(Array.isArray(d)?d:[d]).forEac
1h(e=>{let i=tM(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=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in r)n[t]=r[t]}),n}(r,n,s,t),renderState:e()};return i&&(o.mount=t=>i(r,t,o)),o})(t,e,r,n);return i?o():(0,tk.M)(o)};var tF=i(1461);let tj={useVisualState:tD({scrapeMotionValuesFromProps:tA,createRenderState:tb,onMount:(t,e,{renderState:i,latestValues:r})=>{tF.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tF.Gt.render(()=>{tT(i,r,{enableHardwareAcceleration:!1},tP(e.tagName),t.transformTemplate),tE(e,i)})}})},tO={useVisualState:tD({scrapeMotionValuesFromProps:tS,createRenderState:td})};function tB(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let tI=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tN(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function tU(t,e,i,r){return tB(t,e,t=>tI(t)&&i(t,tN(t)),r)}let tW=(t,e)=>i=>e(t(i)),t$=(...t)=>t.reduce(tW);function tK(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tH=tK("dragHorizontal"),tG=tK("dragVertical");function t_(t){let e=!1;if("y"===t)e=tG();else if("x"===t)e=tH();else{let t=tH(),i=tG();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tz(){let t=t_(!0);return!t||(t(),!1)}class tY{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tX(t,e){let i=e?"onHoverStart":"onHoverEnd";return tU(t.current,e?"pointerenter":"pointerleave",(r,n)=>{if("touch"===r.pointerType||tz())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&tF.Gt.postRender(()=>o(r,n))},{passive:!t.getProps()[i]})}class tq extends tY{mount(){this.unmount=t$(tX(this.node,!0),tX(this.node,!1))}unmount(){}}class tJ extends tY{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=t$(tB(this.node.current,"focus",()=>this.onFocus()),tB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tZ=(t,e)=>!!e&&(t===e||tZ(t,e.parentElement));var tQ=i(46);function t0(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tN(i))}class t1 extends tY{constructor(){super(...arguments),this.removeStartListeners=tQ.l,this.removeEndListeners=tQ.l,this.removeAccessibleListeners=tQ.l,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=tU(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps(),s=n||tZ(this.node.current,t.target)?i:r;s&&tF.Gt.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),n=tU(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=t$(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()&&t0("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tF.Gt.postRender(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=tB(this.node.current,"keyup",e),t0("down",(t,e)=>{this.startPress(t,e)})},e=tB(this.node.current,"keydown",t),i=()=>{this.isPressing&&t0("cancel",(t,e)=>this.cancelPress(t,e))},r=tB(this.node.current,"blur",i);this.removeAccessibleListeners=t$(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&&tF.Gt.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tz()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tF.Gt.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tU(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tB(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t$(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let t2=new WeakMap,t3=new WeakMap,t5=t=>{let e=t2.get(t.target);e&&e(t)}
1,t4=t=>{t.forEach(t5)},t6={some:0,all:1};class t9 extends tY{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:t6[r]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!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(),s=e?i:r;s&&s(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;t3.has(i)||t3.set(i,{});let r=t3.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(t4,{root:t,...e})),r[n]}(s);return t2.set(a,o),l.observe(a),()=>{t2.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}function t8(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}function t7(t,e,i){let r=t.getProps();return tM(r,e,void 0!==i?i:r.custom,t)}let et=t=>1e3*t,ee={type:"spring",stiffness:500,damping:25,restSpeed:10},ei={type:"keyframes",duration:.8},er={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function en(t,e){return t[e]||t.default||t}var es=i(785);let eo={current:!1},ea=t=>null!==t;function el(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(ea),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}function eu(){r=void 0}let eh={now:()=>(void 0===r&&eh.set(tF.uv.isProcessing||es.W.useManualTiming?tF.uv.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(eu)}},ed=t=>/^0[^.\s]+$/u.test(t);var ec=i(2919);let ep=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ef=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,em=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ev=t=>t===z||t===tn,eg=(t,e)=>parseFloat(t.split(", ")[e]),ey=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return eg(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?eg(e[1],t):0}},eT=new Set(["x","y","z"]),eb=F.filter(t=>!eT.has(t)),eP={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:ey(4,13),y:ey(5,14)};eP.translateX=eP.x,eP.translateY=eP.y;let ew=t=>e=>e.test(t),ex=[z,tn,tr,ti,to,ts,{test:t=>"auto"===t,parse:t=>t}],eE=t=>ex.find(ew(t)),eS=new Set,eA=!1,eC=!1;function eM(){if(eC){let t=Array.from(eS).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eb.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eC=!1,eA=!1,eS.forEach(t=>t.complete()),eS.clear()}function ek(){eS.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eC=!0)})}class eV{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eS.add(this),eA||(eA=!0,tF.Gt.read(ek),tF.Gt.resolveKeyframes(eM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n])if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eS.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eS.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eL=(t,e)=>i=>!!(tt(i)&&Q.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eR=(t,e,i)=>r=>{if(!tt(r))return r;let[n,s,o,a]=r.match(J);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eD={...z,transform:t=>Math.round(_(0,255,t))},eF={test:eL("rgb","red"),parse:eR("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+eD.transform(t)+", "+eD.transform(e)+", "+eD.transform(i)+", "+q(Y.transform(r))+")"},ej={test:eL("#"),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),alph
1a:n?parseInt(n,16)/255:1}},transform:eF.transform},eO={test:eL("hsl","hue"),parse:eR("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tr.transform(q(e))+", "+tr.transform(q(i))+", "+q(Y.transform(r))+")"},eB={test:t=>eF.test(t)||ej.test(t)||eO.test(t),parse:t=>eF.test(t)?eF.parse(t):eO.test(t)?eO.parse(t):ej.parse(t),transform:t=>tt(t)?t:t.hasOwnProperty("red")?eF.transform(t):eO.transform(t)},eI="number",eN="color",eU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eW(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(eU,t=>(eB.test(t)?(r.color.push(s),n.push(eN),i.push(eB.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(eI),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function e$(t){return eW(t).values}function eK(t){let{split:e,types:i}=eW(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===eI?n+=q(t[s]):e===eN?n+=eB.transform(t[s]):n+=t[s]}return n}}let eH=t=>"number"==typeof t?0:t,eG={test:function(t){var e,i;return isNaN(t)&&tt(t)&&((null==(e=t.match(J))?void 0:e.length)||0)+((null==(i=t.match(Z))?void 0:i.length)||0)>0},parse:e$,createTransformer:eK,getAnimatableNone:function(t){let e=e$(t);return eK(t)(e.map(eH))}},e_=new Set(["brightness","contrast","saturate","opacity"]);function ez(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(J)||[];if(!r)return t;let n=i.replace(r,""),s=+!!e_.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let eY=/\b([a-z-]*)\(.*?\)/gu,eX={...eG,getAnimatableNone:t=>{let e=t.match(eY);return e?e.map(ez).join(" "):t}},eq={...tu,color:eB,backgroundColor:eB,outlineColor:eB,fill:eB,stroke:eB,borderColor:eB,borderTopColor:eB,borderRightColor:eB,borderBottomColor:eB,borderLeftColor:eB,filter:eX,WebkitFilter:eX},eJ=t=>eq[t];function eZ(t,e){let i=eJ(t);return i!==eX&&(i=eG),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let eQ=new Set(["auto","none","0"]);class e0 extends eV{constructor(t,e,i,r){super(t,e,i,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&K(r=r.trim())){let n=function t(e,i,r=1){(0,ec.V)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=ef.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return ep(t)?parseFloat(t):t}return K(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!em.has(i)||2!==t.length)return;let[r,n]=t,s=eE(r),o=eE(n);if(s!==o)if(ev(s)&&ev(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||ed(r))&&i.push(e)}i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!eQ.has(e)&&eW(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=eZ(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eP[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=eP[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function e1(t){let e;return()=>(void 0===e&&(e=t()),e)}let e2=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eG.test(t)||"0"===t)&&!t.startsWith("url("));class e3{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(ek(),eM()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=e2(n,e),a=e2(s,e);return(0,ec.$)(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||"spring"===i&&r)}(t,i,r,n))if(eo.current||!s){null==a||a(el(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function e5(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 e4(t,e){return t*Math.sqrt(1-e*e)}let e6=["duration","bounce"],e9=["stiffness","damping","mass"];function e8(t,e){return e.some(e=>void 0!==t[e])}function e7({keyframes:t,restDelta:e,restSpeed:i,...r}){let n,s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:d,velocity:c,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e8(t,e9)&&e8(t,e6)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;(0,ec.$)(t<=et(10),"Spring duration must be 10 seconds or less");let o=1-e;o=_(.05,1,o),t=_(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/e4(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=e4(Math.pow(e,2),o);return(r*i+i-s)*a*(-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 a=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=et(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=c||0,m=u/(2*Math.sqrt(l*h)),v=o-s,g=Math.sqrt(l/h)/1e3,y=5>Math.abs(v);if(i||(i=y?.01:2),e||(e=y?.005:.5),m<1){let t=e4(g,m);n=e=>o-Math.exp(-m*g*e)*((f+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)n=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{let t=g*Math.sqrt(m*m-1);n=e=>{let i=Math.exp(-m*g*e),r=Math.min(t*e,300);return o-i*((f+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:p&&d||null,next:t=>{let r=n(t);if(p)a.done=t>=d;else{let s=f;0!==t&&(s=m<1?e5(n,t,r):0);let l=Math.abs(o-r)<=e;a.done=Math.abs(s)<=i&&l}return a.value=a.done?o:r,a}}}function it({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],f={done:!1,value:p},m=i*e,v=p+m,g=void 0===o?v:o(v);g!==v&&(m=g-p);let y=t=>-m*Math.exp(-t/r),T=t=>g+y(t),b=t=>{let e=y(t),i=T(t);f.done=Math.abs(e)<=u,f.value=f.done?g:i},P=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=e7({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:e5(T,t,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),f)}}}let ie=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;
1function ii(t,e,i,r){return t===e&&i===r?tQ.l:n=>0===n||1===n?n:ie(function(t,e,i,r,n){let s,o,a=0;do(s=ie(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(n,0,1,t,i),e,r)}let ir=ii(.42,0,1,1),is=ii(0,0,.58,1),io=ii(.42,0,.58,1),ia=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,il=t=>e=>1-t(1-e),iu=t=>1-Math.sin(Math.acos(t)),ih=il(iu),id=ia(iu),ic=ii(.33,1.53,.69,.99),ip=il(ic),im=ia(ip),iv={linear:tQ.l,easeIn:ir,easeInOut:io,easeOut:is,circIn:iu,circInOut:id,circOut:ih,backIn:ip,backInOut:im,backOut:ic,anticipate:t=>(t*=2)<1?.5*ip(t):.5*(2-Math.pow(2,-10*(t-1)))},ig=t=>{if(Array.isArray(t)){(0,ec.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return ii(e,i,r,n)}return"string"==typeof t?((0,ec.V)(void 0!==iv[t],`Invalid easing type '${t}'`),iv[t]):t},iy=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},iT=(t,e,i)=>t+(e-t)*i;function ib(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}function iP(t,e){return i=>i>0?e:t}let iw=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},ix=[ej,eF,eO];function iE(t){let e=ix.find(e=>e.test(t));if((0,ec.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===eO&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=ib(a,r,t+1/3),s=ib(a,r,t),o=ib(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let iS=(t,e)=>{let i=iE(t),r=iE(e);if(!i||!r)return iP(t,e);let n={...i};return t=>(n.red=iw(i.red,r.red,t),n.green=iw(i.green,r.green,t),n.blue=iw(i.blue,r.blue,t),n.alpha=iT(i.alpha,r.alpha,t),eF.transform(n))},iA=new Set(["none","hidden"]);function iC(t,e){return i=>iT(t,e,i)}function iM(t){return"number"==typeof t?iC:"string"==typeof t?K(t)?iP:eB.test(t)?iS:iL:Array.isArray(t)?ik:"object"==typeof t?eB.test(t)?iS:iV:iP}function ik(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>iM(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function iV(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=iM(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let iL=(t,e)=>{let i=eG.createTransformer(e),r=eW(t),n=eW(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?iA.has(t)&&!n.values.length||iA.has(e)&&!r.values.length?function(t,e){return iA.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):t$(ik(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=null!=(i=t.values[a])?i:0;r[s]=l,n[o]++}return r}(r,n),n.values),i):((0,ec.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iP(t,e))};function iR(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?iT(t,e,i):iM(t)(t,e)}function iD({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ig):ig(r),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if((0,ec.V)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let r=[],n=i||iR,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=t$(Array.isArray(e)?e[i]||tQ.l:e,s)),r.push(s)}return r}(e,r,n),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let r=iy(t[i],t[i+1],e);return o[i](r)};return i?e=>l(_(t[0],t[s-1],e)):l}((n=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=iy(0,e,r);t.push(iT(i,1,n))}}(e,t.length-1),e}(e),n.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||io).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let iF=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tF.Gt.update(e,!0),stop:()=>(0,tF.WG)(e),now:()=>tF.uv.isProcessing?tF.uv.timestamp:eh.now()}},ij={decay:it,inertia:it,tween:iD,keyframes:iD,spring:e7},iO=t=>t/100;
1class iB extends e3{constructor({KeyframeResolver:t=eV,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:i,motionValue:r,keyframes:n}=this.options,s=(t,e)=>this.onKeyframesResolved(t,e);i&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(n,s,i,r):this.resolver=new t(n,s,i,r),this.resolver.scheduleResolve()}initPlayback(t){let e,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=ij[r]||iD;l!==iD&&"number"!=typeof t[0]&&(e=t$(iO,iR(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(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}(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,T=n;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(T=s)),y=_(0,1,i)*h}let b=g?{done:!1,value:a[0]}:T.next(y);o&&(b.value=o(b.value));let{done:P}=b;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return w&&void 0!==r&&(b.value=el(a,this.options,r)),m&&m(b.value),w&&this.finish(),b}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=et(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=iF,onPlay:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=i),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedProm
1ise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let iI=t=>Array.isArray(t)&&"number"==typeof t[0],iN=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,iU={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iN([0,.65,.55,1]),circOut:iN([.55,0,1,.45]),backIn:iN([.31,.01,.66,-.59]),backOut:iN([.33,1.53,.69,.99])};function iW(t){return i$(t)||iU.easeOut}function i$(t){if(t)return iI(t)?iN(t):Array.isArray(t)?t.map(iW):iU[t]}let iK=e1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iH=new Set(["opacity","clipPath","filter","transform"]);class iG extends e3{constructor(t){super(t);let{name:e,motionValue:i,keyframes:r}=this.options;this.resolver=new e0(r,(t,e)=>this.onKeyframesResolved(t,e),e,i),this.resolver.scheduleResolve()}initPlayback(t,e){var i,r;let{duration:n=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(null==(i=l.owner)?void 0:i.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function t(e){return!!(!e||"string"==typeof e&&e in iU||iI(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:i,motionValue:r,...l}=this.options,u=function(t,e){let i=new iB({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,l);1===(t=u.keyframes).length&&(t[1]=t[0]),n=u.duration,s=u.times,o=u.ease,a="keyframes"}let h=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=i$(a);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"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:n,times:s,ease:o});return h.startTime=eh.now(),this.pendingTimeline?(h.timeline=this.pendingTimeline,this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;l.set(el(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=et(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return tQ.l;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return tQ.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:o}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,...l}=this.options,u=new iB({...l,keyframes:i,duration:r,type:n,ease:s,times:o,isGenerator:!0}),h=et(this.time);t.setWithVelocity(u.sample(h-10).value,u.sample(h).value,10)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;return iK()&&i&&iH.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}}let i_=e1(()=>void 0!==window.ScrollTimeline);class iz{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}
1then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>{if(i_()&&e.attachTimeline)e.attachTimeline(t);else{let i;e.pause();let r=()=>{var r;let{currentTime:n}=t,s=(null===n?0:n.value)/100;i!==s&&(r=s,e.time=e.duration*r),i=s};return tF.Gt.update(r,!0),()=>(0,tF.WG)(r)}});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let iY=(t,e,i,r={},n,s)=>o=>{let a=en(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=et(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?ei:j.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ee:er)(t,h)}),h.duration&&(h.duration=et(h.duration)),h.repeatDelay&&(h.repeatDelay=et(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(d=!0)),(eo.current||es.W.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!s&&void 0!==e.get()){let t=el(h.keyframes,a);if(void 0!==t)return tF.Gt.update(()=>{h.onUpdate(t),h.onComplete()}),new iz([])}return!s&&iG.supports(h)?new iG(h):new iB(h)};function iX(t){return!!(B(t)&&t.add)}function iq(t,e){-1===t.indexOf(e)&&t.push(e)}function iJ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class iZ{constructor(){this.subscriptions=[]}add(t){return iq(this.subscriptions,t),()=>iJ(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}}let iQ={current:void 0};class i0{constructor(t,e={}){this.version="11.2.12",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=eh.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eh.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new iZ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tF.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return iQ.current&&iQ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t: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 i1(t,e){return new i0(t,e)}function i2(t){return t.getProps()[c]}function i3(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e,u=t.getValue("willChange");r&&(o=r);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let r=t.getValue(e,null!=(s=t.latestValues[e])?s:null),n=l[e];
1if(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,...en(o||{},e)},c=!1;if(window.HandoffAppearAnimations){let i=i2(t);if(i){let t=window.HandoffAppearAnimations(i,e,r,tF.Gt);null!==t&&(a.elapsed=t,c=!0)}}r.start(iY(e,r,n,t.shouldReduceMotion&&j.has(e)?{type:!1}:a,t,c));let p=r.animation;p&&(iX(u)&&(u.add(e),p.then(()=>u.remove(e))),h.push(p))}return a&&Promise.all(h).then(()=>{tF.Gt.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=t7(t,e)||{};for(let e in n={...n,...i}){let i=tL(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,i1(i))}}(t,a)})}),h}function i5(t,e,i={}){var r;let n=t7(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(i3(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(i4).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(i5(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function i4(t,e){return t.sortNodePosition(e)}let i6=[...P].reverse(),i9=P.length;function i8(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i7(){return{animate:i8(!0),whileInView:i8(),whileHover:i8(),whileTap:i8(),whileDrag:i8(),whileFocus:i8(),exit:i8()}}class rt extends tY{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=>i5(t,e,i)));else if("string"==typeof e)r=i5(t,e,i);else{let n="function"==typeof e?t7(t,e,i.custom):e;r=Promise.all(i3(t,n,i))}return r.then(()=>{tF.Gt.postRender(()=>{t.notify("AnimationComplete",e)})})})(t,e,i))),i=i7(),r=!0,n=e=>(i,r)=>{var n;let s=t7(t,r,"exit"===e?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function s(s){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],u=new Set,h={},d=1/0;for(let e=0;e<i9;e++){var c,p;let f=i6[e],m=i[f],v=void 0!==o[f]?o[f]:a[f],g=T(v),y=f===s?m.isActive:null;!1===y&&(d=e);let P=v===a[f]&&v!==o[f]&&g;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...h},!m.isActive&&null===y||!v&&!m.prevProp||b(v)||"boolean"==typeof v)continue;let w=(c=m.prevProp,("string"==typeof(p=v)?p!==c:!!Array.isArray(p)&&!t8(p,c))||f===s&&m.isActive&&!P&&g||e>d&&g),x=!1,E=Array.isArray(v)?v:[v],S=E.reduce(n(f),{});!1===y&&(S={});let{prevResolvedValues:A={}}=m,C={...A,...S},M=e=>{w=!0,u.has(e)&&(x=!0,u.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=S[t],i=A[t];if(!h.hasOwnProperty(t))(tV(e)&&tV(i)?t8(e,i):e===i)?void 0!==e&&u.has(t)?M(t):m.protectedKeys[t]=!0:null!=e?M(t):u.add(t)}m.prevProp=v,m.prevResolvedValues=S,m.isActive&&(h={...h,...S}),r&&t.blockInitialAnimation&&(w=!1),w&&(!P||x)&&l.push(...E.map(t=>({animation:t,options:{type:f}})))}if(u.size){let e={};u.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),l.push({animation:e})}let f=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=i7(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();b(t)&&(this.unmountControls=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 t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let re=0;class ri extends tY{constructor(){super(...arguments),this.id=re++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>
1e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let rr=(t,e)=>Math.abs(t-e);class rn{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=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=ra(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(rr(t.x,e.x)**2+rr(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:r}=t,{timestamp:n}=tF.uv;this.history.push({...r,timestamp:n});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=rs(e,this.transformPagePoint),tF.Gt.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=ra("pointercancel"===t.type?this.lastMoveEventInfo:rs(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tI(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=rs(tN(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tF.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,ra(s,this.history)),this.removeListeners=t$(tU(this.contextWindow,"pointermove",this.handlePointerMove),tU(this.contextWindow,"pointerup",this.handlePointerUp),tU(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tF.WG)(this.updatePoint)}}function rs(t,e){return e?{point:e(t.point)}:t}function ro(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ra({point:t},e){return{point:t,delta:ro(t,rl(e)),offset:ro(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=rl(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>et(.1)));)i--;if(!r)return{x:0,y:0};let s=(n.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rl(t){return t[t.length-1]}function ru(t){return t.max-t.min}function rh(t,e=0,i=.01){return Math.abs(t-e)<=i}function rd(t,e,i,r=.5){t.origin=r,t.originPoint=iT(e.min,e.max,t.origin),t.scale=ru(i)/ru(e),(rh(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=iT(i.min,i.max,t.origin)-t.originPoint,(rh(t.translate)||isNaN(t.translate))&&(t.translate=0)}function rc(t,e,i,r){rd(t.x,e.x,i.x,r?r.originX:void 0),rd(t.y,e.y,i.y,r?r.originY:void 0)}function rp(t,e,i){t.min=i.min+e.min,t.max=t.min+ru(e)}function rf(t,e,i){t.min=e.min-i.min,t.max=t.min+ru(e)}function rm(t,e,i){rf(t.x,e.x,i.x),rf(t.y,e.y,i.y)}function rv(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 rg(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 ry(t,e,i){return{min:rT(t,e),max:rT(t,i)}}function rT(t,e){return"number"==typeof t?t:t[e]||0}let rb=()=>({translate:0,scale:1,origin:0,originPoint:0}),rP=()=>({x:rb(),y:rb()}),rw=()=>({min:0,max:0}),rx=()=>({x:rw(),y:rw()});function rE(t){return[t("x"),t("y")]}function rS({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function rA(t){return void 0===t||1===t}function rC({scale:t,scaleX:e,scaleY:i}){return!rA(t)||!rA(e)||!rA(i)}function rM(t){return rC(t)||rk(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function rk(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function rV(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function rL(t,e=0,i=1,r,n){t.min=rV(t.min,e,i,r,n),t.max=rV(t.max,e,i,r,n)}function rR(t,{x:e,y:i}){rL(t.x,e.translate,e.scale,e.originPoint),rL(t.y,i.translate,i.scale,i.originPoint)}function rD(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function rF(t,e){t.min=t.min+e,t.max=t.max+e}function rj(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,o=iT(t.min,t.max,s);rL(t,e[i],e[r],o,e.scale)}let rO=["x","scaleX","originX"],rB=["y","scaleY","originY"];function rI(t,e){rj(t.x,e,rO),rj(t.y,e,rB)}function rN(t,e){return rS(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))}let rU=({current:t})=>t?t.ownerDocument.defaultView:null,rW=new WeakMap;class r${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=rx(),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(tN(t,"page").point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t_(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),rE(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=ru(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tF.Gt.postRender(()=>n(t,e));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:o}=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}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>rE(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 rn(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:rU(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&&tF.Gt.postRender(()=>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||!rK(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?iT(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?iT(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&&m(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:rv(t.x,i,n),y:rv(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:ry(t,"left","right"),y:ry(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rE(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!m(e))return!1;let r=e.current;(0,ec.V)(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;
1let s=function(t,e,i){let r=rN(t,i),{scroll:n}=e;return n&&(rF(r.x,n.offset.x),rF(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:rg(t.x,s.x),y:rg(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=rS(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rE(o=>{if(!rK(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iY(t,i,0,e,this.visualElement))}stopAnimation(){rE(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rE(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){rE(e=>{let{drag:i}=this.getProps();if(!rK(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]-iT(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!m(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rE(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=ru(t),n=ru(e);return n>r?i=iy(e.min,e.max-r,t.min):r>n&&(i=iy(t.min,t.max-n,e.min)),_(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rE(e=>{if(!rK(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(iT(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;rW.set(this.visualElement,this);let t=tU(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();m(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tF.Gt.read(e);let n=tB(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rE(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function rK(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rH extends tY{constructor(t){super(t),this.removeGroupControls=tQ.l,this.removeListeners=tQ.l,this.controls=new r$(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tQ.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let rG=t=>(e,i)=>{t&&tF.Gt.postRender(()=>t(e,i))};class r_ extends tY{constructor(){super(...arguments),this.removePointerDownListener=tQ.l}onPointerDown(t){this.session=new rn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rU(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rG(t),onStart:rG(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&tF.Gt.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=tU(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rz={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rY(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rX={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tn.test(t))return t;else t=parseFloat(t);let i=rY(t,e.target.x),r=rY(t,e.target.y);return`${i}% ${r}%`}};class rq extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(D,rZ),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()})),rz.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()||tF.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),p.postRender(()=>{!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 rJ(t){let[e,i]=function(){let t=(0,s.useContext)(l.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:r}=t,n=(0,s.useId)();return(0,s.useEffect)(()=>r(n),[]),!e&&i?[!1,()=>i&&i(n)]:[!0]}(),r=(0,s.useContext)(k.L);return(0,n.jsx)(rq,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(v),isPresent:e,safeToRemove:i})}let rZ={borderRadius:{...rX,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rX,borderTopRightRadius:rX,borderBottomLeftRadius:rX,borderBottomRightRadius:rX,boxSh
1adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=eG.parse(t);if(r.length>5)return t;let n=eG.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=iT(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rQ=["TopLeft","TopRight","BottomLeft","BottomRight"],r0=rQ.length,r1=t=>"string"==typeof t?parseFloat(t):t,r2=t=>"number"==typeof t||tn.test(t);function r3(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let r5=r6(0,.5,ih),r4=r6(.5,.95,tQ.l);function r6(t,e,i){return r=>r<t?0:r>e?1:i(iy(t,e,r))}function r9(t,e){t.min=e.min,t.max=e.max}function r8(t,e){r9(t.x,e.x),r9(t.y,e.y)}function r7(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nt(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tr.test(e)&&(e=parseFloat(e),e=iT(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=iT(s.min,s.max,r);t===s&&(a-=e),t.min=r7(t.min,e,i,a,n),t.max=r7(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let ne=["x","scaleX","originX"],ni=["y","scaleY","originY"];function nr(t,e,i,r){nt(t.x,e,ne,i?i.x:void 0,r?r.x:void 0),nt(t.y,e,ni,i?i.y:void 0,r?r.y:void 0)}function nn(t){return 0===t.translate&&1===t.scale}function ns(t){return nn(t.x)&&nn(t.y)}function no(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 na(t){return ru(t.x)/ru(t.y)}class nl{constructor(){this.members=[]}add(t){iq(this.members,t),t.scheduleRender()}remove(t){if(iJ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,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 nu(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}let nh=(t,e)=>t.depth-e.depth;class nd{constructor(){this.children=[],this.isDirty=!1}add(t){iq(this.children,t),this.isDirty=!0}remove(t){iJ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nh),this.isDirty=!1,this.children.forEach(t)}}let nc=["","X","Y","Z"],np={visibility:"hidden"},nf=0,nm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nv(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ng({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nf++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nm.totalNodes=nm.resolvedTargetDeltas=nm.recalculatedProjection=0,this.nodes.forEac
1h(nb),this.nodes.forEach(nC),this.nodes.forEach(nM),this.nodes.forEach(nP),window.MotionDebug&&window.MotionDebug.record(nm)},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 nd)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iZ),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,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=eh.now(),r=({timestamp:e})=>{let n=e-i;n>=250&&((0,tF.WG)(r),t(n-250))};return tF.Gt.read(r,!0),()=>(0,tF.WG)(r)}(r,250),rz.hasAnimatedSinceResize&&(rz.hasAnimatedSinceResize=!1,this.nodes.forEach(nA))})}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()||nF,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!no(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={...en(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nA(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,tF.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nk),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:i}=e.options;return!!i&&(!!i2(i)||!!e.parent&&!e.parent.hasCheckedOptimisedAppear&&t(e.parent))}(this)&&window.HandoffCancelAllAnimations(),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(nx);return}this.isUpdating||this.nodes.forEach(nE),this.isUpdating=!1,this.nodes.forEach(nS),this.nodes.forEach(ny),this.nodes.forEac
1h(nT),this.clearAllSnapshots();let t=eh.now();tF.uv.delta=_(0,1e3/60,t-tF.uv.timestamp),tF.uv.timestamp=t,tF.uv.isProcessing=!0,tF.Ci.update.process(tF.uv),tF.Ci.preRender.process(tF.uv),tF.Ci.render.process(tF.uv),tF.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nw),this.sharedNodes.forEach(nV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tF.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tF.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rx(),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||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ns(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||rM(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)),nB((e=r).x),nB(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rx();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(rF(e.x,i.offset.x),rF(e.y,i.offset.y)),e}removeElementScroll(t){let e=rx();r8(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){r8(e,t);let{scroll:i}=this.root;i&&(rF(e.x,-i.offset.x),rF(e.y,-i.offset.y))}rF(e.x,n.offset.x),rF(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=rx();r8(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&&rI(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rM(r.latestValues)&&rI(i,r.latestValues)}return rM(this.latestValues)&&rI(i,this.latestValues),i}removeTransform(t){let e=rx();r8(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!rM(i.latestValues))continue;rC(i.latestValues)&&i.updateSnapshot();let r=rx();r8(r,i.measurePageBox()),nr(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return rM(this.latestValues)&&nr(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!==tF.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tF.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rx(),this.relativeTargetOrigin=rx(),rm(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),r8(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rx(),this.targetWithTransforms=rx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,rp(i.x,r.x,n.x),rp(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):r8(this.target,this.layout.layoutBox),rR(this.target,this.targetDelta)):r8(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=rx(),this.relativeTargetOrigin=rx(),rm(this.relativeTargetOrigin,this.target,t.target),r8(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nm.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rC(this.parent.latestValues)||rk(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===tF.uv.t
1imestamp&&(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;r8(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rI(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,rR(t,s)),r&&rM(n.latestValues)&&rI(t,n.latestValues))}e.x=rD(e.x),e.y=rD(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=rx());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=rP(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rP(),this.projectionDeltaWithTransform=rP());let u=this.projectionTransform;rc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=nu(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nm.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},o=rP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rx(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(nD));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(nL(o.x,t.x,r),nL(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,f,m,v;rm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,v=r,nR(p.x,f.x,m.x,v),nR(p.y,f.y,m.y,v),i&&(u=this.relativeTarget,c=i,u.x.min===c.x.min&&u.x.max===c.x.max&&u.y.min===c.y.min&&u.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=rx()),r8(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=iT(0,void 0!==i.opacity?i.opacity:1,r5(r)),t.opacityExit=iT(void 0!==e.opacity?e.opacity:1,0,r4(r))):s&&(t.opacity=iT(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<r0;n++){let s=`border${rQ[n]}Radius`,o=r3(e,s),a=r3(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||r2(o)===r2(a)?(t[s]=Math.max(iT(r1(o),r1(a),r),0),(tr.test(a)||tr.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=iT(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,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,tF.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tF.Gt.update(()=>{rz.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let r=B(0)?0:i1(t);return r.start(iY("",r,1e3,i)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&nI(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||rx();let e=ru(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=ru(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}r8(e,i),rI(e,n),rc(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nl),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)}
1resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&nv("z",t,r,this.animationValues);for(let e=0;e<nc.length;e++)nv(`rotate${nc[e]}`,t,r,this.animationValues),nv(`skew${nc[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return np;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tR(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=tR(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rM(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=nu(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,D){if(void 0===o[t])continue;let{correct:e,applyTo:i}=D[t],n="none"===r.transform?o[t]:e(o[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?tR(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(nx),this.root.sharedNodes.clear()}}}function ny(t){t.updateLayout()}function nT(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?rE(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=ru(r);r.min=e[t].min,r.max=r.min+n}):nI(n,i.layoutBox,e)&&rE(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=ru(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=rP();rc(o,e,i.layoutBox);let a=rP();s?rc(a,t.applyTransform(r,!0),i.measuredBox):rc(a,e,i.layoutBox);let l=!ns(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=rx();rm(o,i.layoutBox,n.layoutBox);let a=rx();rm(a,e,s.layoutBox),no(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nb(t){nm.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 nP(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nw(t){t.clearSnapshot()}function nx(t){t.clearMeasurements()}function nE(t){t.isLayoutDirty=!1}function nS(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nC(t){t.resolveTargetDelta()}function nM(t){t.calcProjection()}
1function nk(t){t.resetSkewAndRotation()}function nV(t){t.removeLeadSnapshot()}function nL(t,e,i){t.translate=iT(e.translate,0,i),t.scale=iT(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nR(t,e,i,r){t.min=iT(e.min,i.min,r),t.max=iT(e.max,i.max,r)}function nD(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nF={duration:.45,ease:[.4,0,.1,1]},nj=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nO=nj("applewebkit/")&&!nj("chrome/")?Math.round:tQ.l;function nB(t){t.min=nO(t.min),t.max=nO(t.max)}function nI(t,e,i){return"position"===t||"preserve-aspect"===t&&!rh(na(e),na(i),.2)}let nN=ng({attachResizeListener:(t,e)=>tB(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nU={current:void 0},nW=ng({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nU.current){let t=new nN({});t.mount(window),t.setOptions({layoutScroll:!0}),nU.current=t}return nU.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),n$={current:null},nK={current:!1},nH=new WeakMap,nG=[...ex,eB,eG],n_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nz=w.length;class nY{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.resolveKeyframes=(t,e,i,r)=>new this.KeyframeResolver(t,e,i,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eV,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=()=>tF.Gt.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=x(e),this.isVariantNode=E(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&B(e)&&(e.set(a[t],!1),iX(u)&&u.add(t))}}mount(t){this.current=t,nH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nK.current||function(){if(nK.current=!0,M.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n$.current=t.matches;t.addListener(e),e()}else n$.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n$.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nH.delete(this.current),this.projection&&this.projection.unmount(),(0,tF.WG)(this.notifyUpdate),(0,tF.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i=j.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tF.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in C){let e=C[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];
1e.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):rx()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=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<n_.length;e++){let i=n_[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],o=i[n];if(B(s))t.addValue(n,s),iX(r)&&r.add(n);else if(B(o))t.addValue(n,i1(s,{owner:t})),iX(r)&&r.remove(n);else if(o!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,i1(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),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<nz;t++){let i=w[t],r=this.props[i];(T(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){let i=this.values.get(t);e!==i&&(i&&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=i1(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){if("string"==typeof r&&(ep(r)||ed(r)))r=parseFloat(r);else{let i;i=r,!nG.find(ew(i))&&eG.test(e)&&(r=eZ(t,e))}this.setBaseTarget(t,B(r)?r.get():r)}return B(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=tM(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||B(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new iZ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nX extends nY{constructor(){super(...arguments),this.KeyframeResolver=e0}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]}}class nq extends nX{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(j.has(e)){let t=eJ(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(W(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rN(t,e)}
1build(t,e,i,r){th(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tS(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;B(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){tw(t,e,i,r)}}class nJ extends nX{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){let t=eJ(e);return t&&t.default||0}return e=tx.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return rx()}scrapeMotionValuesFromProps(t,e,i){return tA(t,e,i)}build(t,e,i,r){tT(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){tE(t,e,i,r)}mount(t){this.isSVGTag=tP(t.tagName),super.mount(t)}}let nZ=(t,e)=>R(t)?new nJ(e,{enableHardwareAcceleration:!1}):new nq(e,{allowProjection:t!==s.Fragment,enableHardwareAcceleration:!0}),nQ={animation:{Feature:rt},exit:{Feature:ri},inView:{Feature:t9},tap:{Feature:t1},focus:{Feature:tJ},hover:{Feature:tq},pan:{Feature:r_},drag:{Feature:rH,ProjectionNode:nW,MeasureLayout:rJ},layout:{ProjectionNode:nW,MeasureLayout:rJ}},n0=function(t){function e(i,r={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:d}){t&&function(t){for(let e in t)C[e]={...C[e],...t[e]}}(t);let f=(0,s.forwardRef)(function(t,f){var b;let P,w={...(0,s.useContext)(o.Q),...t,layoutId:function({layoutId:t}){let e=(0,s.useContext)(k.L).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:E}=w,A=function(t){let{initial:e,animate:i}=function(t,e){if(x(t)){let{initial:e,animate:i}=t;return{initial:!1===e||T(e)?e:void 0,animate:T(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:e,animate:i}),[S(e),S(i)])}(t),V=r(t,E);if(!E&&M.B){(0,s.useContext)(h).strict;let t=function(t){let{drag:e,layout:i}=C;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(w);P=t.MeasureLayout,A.visualElement=function(t,e,i,r,n){let{visualElement:d}=(0,s.useContext)(a),f=(0,s.useContext)(h),T=(0,s.useContext)(l.t),b=(0,s.useContext)(o.Q).reducedMotion,P=(0,s.useRef)();r=r||f.renderer,!P.current&&r&&(P.current=r(t,{visualState:e,parent:d,props:i,presenceContext:T,blockInitialAnimation:!!T&&!1===T.initial,reducedMotionConfig:b}));let w=P.current,x=(0,s.useContext)(v);w&&!w.projection&&n&&("html"===w.type||"svg"===w.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&m(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(P.current,i,n,x),(0,s.useInsertionEffect)(()=>{w&&w.update(i,T)});let E=(0,s.useRef)(!!(i[c]&&!window.HandoffComplete));return(0,u.E)(()=>{w&&(w.updateFeatures(),p.render(w.render),E.current&&w.animationState&&w.animationState.animateChanges())}),(0,s.useEffect)(()=>{w&&(!E.current&&w.animationState&&w.animationState.animateChanges(),E.current&&(E.current=!1,g||(g=!0,queueMicrotask(y))))}),w}(d,V,w,e,t.ProjectionNode)}return(0,n.jsxs)(a.Provider,{value:A,children:[P&&A.visualElement?(0,n.jsx)(P,{visualElement:A.visualElement,...w}):null,i(d,t,(b=A.visualElement,(0,s.useCallback)(t=>{t&&V.mount&&V.mount(t),b&&(t?b.mount(t):b.unmount()),f&&("function"==typeof f?f(t):m(f)&&(f.current=t))},[b])),V,E,A.visualElement)]})});return f[V]=d,f}(t(i,r))}if("undefined"==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))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,r){return{...R(t)?tj:tO,preloadedFeatures:i,useRender:function(t=!1){return(e,i,r,{latestValues:n},o)=>
1{let a=(R(e)?function(t,e,i,r){let n=(0,s.useMemo)(()=>{let i=tb();return tT(i,e,{enableHardwareAcceleration:!1},tP(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tc(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,i){let r={},n=function(t,e,i){let r=t.style||{},n={};return tc(n,r,t),Object.assign(n,function({transformTemplate:t},e,i){return(0,s.useMemo)(()=>{let r=td();return th(r,e,{enableHardwareAcceleration:!i},t),Object.assign({},r.vars,r.style)},[e])}(t,e,i)),n}(t,e,i);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(i,n,o,e),l=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(tm(n)||!0===i&&tf(n)||!e&&!tf(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),u=e!==s.Fragment?{...l,...a,ref:r}:{},{children:h}=i,d=(0,s.useMemo)(()=>B(h)?h.get():h,[h]);return(0,s.createElement)(e,{...u,children:d})}}(e),createVisualElement:r,Component:t}})(t,e,nQ,nZ))}}]);
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.