tia-chatbot 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,7 @@ Check the render method of %s.`,rn(zi)||"Unknown"));var N=kd(y,E);N.payload={ele
162
162
 
163
163
  let root = createRoot(domContainer);
164
164
  root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(h=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var E=VI(e,xw,null,s,c,h,y);Y(E.current,e);var A=e.nodeType===di?e.parentNode:e;return gu(A),new cA(E)}function DS(e){this._internalRoot=e}function Sq(e){e&&lu(e)}DS.prototype.unstable_scheduleHydration=Sq;function Eq(e,t,s){if(!NS(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");o4(e),t===void 0&&g("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,h=s!=null&&s.hydratedSources||null,y=!1,E=!1,A="",N=a4;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(A=s.identifierPrefix),s.onRecoverableError!==void 0&&(N=s.onRecoverableError));var U=_I(t,null,e,xw,c,y,E,A,N);if(Y(U.current,e),gu(e),h)for(var P=0;P<h.length;P++){var re=h[P];CH(U,re)}return new DS(U)}function NS(e){return!!(e&&(e.nodeType===la||e.nodeType===hi||e.nodeType===Lu))}function U0(e){return!!(e&&(e.nodeType===la||e.nodeType===hi||e.nodeType===Lu||e.nodeType===di&&e.nodeValue===" react-mount-point-unstable "))}function o4(e){e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&g("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),se(e)&&(e._reactRootContainer?g("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):g("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var xq=u.ReactCurrentOwner,s4;s4=function(e){if(e._reactRootContainer&&e.nodeType!==di){var t=FI(e._reactRootContainer.current);t&&t.parentNode!==e&&g("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=fA(e),h=!!(c&&Ve(c));h&&!s&&g("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&g("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function fA(e){return e?e.nodeType===hi?e.documentElement:e.firstChild:null}function l4(){}function Tq(e,t,s,c,h){if(h){if(typeof c=="function"){var y=c;c=function(){var ne=AS(E);y.call(ne)}}var E=_I(t,c,e,Xh,null,!1,!1,"",l4);e._reactRootContainer=E,Y(E.current,e);var A=e.nodeType===di?e.parentNode:e;return gu(A),Id(),E}else{for(var N;N=e.lastChild;)e.removeChild(N);if(typeof c=="function"){var U=c;c=function(){var ne=AS(P);U.call(ne)}}var P=VI(e,Xh,null,!1,!1,"",l4);e._reactRootContainer=P,Y(P.current,e);var re=e.nodeType===di?e.parentNode:e;return gu(re),Id(function(){j0(t,P,s,c)}),P}}function bq(e,t){e!==null&&typeof e!="function"&&g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function RS(e,t,s,c,h){s4(s),bq(h===void 0?null:h,"render");var y=s._reactRootContainer,E;if(!y)E=Tq(s,t,e,h,c);else{if(E=y,typeof h=="function"){var A=h;h=function(){var N=AS(E);A.call(N)}}j0(t,E,e,h)}return AS(E)}var u4=!1;function Cq(e){{u4||(u4=!0,g("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=xq.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||g("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Pn(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===la?e:cq(e,"findDOMNode")}function Aq(e,t,s){if(g("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!U0(t))throw new Error("Target container is not a DOM element.");{var c=se(t)&&t._reactRootContainer===void 0;c&&g("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return RS(null,e,t,!0,s)}function Dq(e,t,s){if(g("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!U0(t))throw new Error("Target container is not a DOM element.");{var c=se(t)&&t._reactRootContainer===void 0;c&&g("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return RS(null,e,t,!1,s)}function Nq(e,t,s,c){if(g("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!U0(s))throw new Error("Target container is not a DOM element.");if(e==null||!Ds(e))throw new Error("parentComponent must be a valid React Component");return RS(e,t,s,!1,c)}var c4=!1;function Rq(e){if(c4||(c4=!0,g("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!U0(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=se(e)&&e._reactRootContainer===void 0;t&&g("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=fA(e),c=s&&!Ve(s);c&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Id(function(){RS(null,null,e,!1,function(){e._reactRootContainer=null,Z(e)})}),!0}else{{var h=fA(e),y=!!(h&&Ve(h)),E=e.nodeType===la&&U0(e.parentNode)&&!!e.parentNode._reactRootContainer;y&&g("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Na(fq),cd(dq),vy(hq),fd(oo),Rv(Qp),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&g("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Bl(KT),Mv(BC,EW,Id);function kq(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!NS(t))throw new Error("Target container is not a DOM element.");return uq(e,t,null,s)}function Oq(e,t,s,c){return Nq(e,t,s,c)}var dA={usingClientEntryPoint:!1,Events:[Ve,Pe,ut,qf,Pu,BC]};function zq(e,t){return dA.usingClientEntryPoint||g('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),wq(e,t)}function Lq(e,t,s){return dA.usingClientEntryPoint||g('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),Eq(e,t,s)}function Iq(e){return gI()&&g("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Id(e)}var jq=Mq({findFiberByHostInstance:Ue,bundleType:1,version:aA,rendererPackageName:"react-dom"});if(!jq&&Vt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var f4=window.location.protocol;/^(https?|file):$/.test(f4)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(f4==="file:"?`
165
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dA,vs.createPortal=kq,vs.createRoot=zq,vs.findDOMNode=Cq,vs.flushSync=Iq,vs.hydrate=Aq,vs.hydrateRoot=Lq,vs.render=Dq,vs.unmountComponentAtNode=Rq,vs.unstable_batchedUpdates=BC,vs.unstable_renderSubtreeIntoContainer=Oq,vs.version=aA,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})(),vs}var CA;function AA(){if(CA)return B0.exports;CA=1;var n={env:{}};function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(n.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(a){console.error(a)}}}return n.env.NODE_ENV==="production"?(r(),B0.exports=w4()):B0.exports=S4(),B0.exports}var DA;function E4(){if(DA)return km;DA=1;var n={env:{}},r=AA();if(n.env.NODE_ENV==="production")km.createRoot=r.createRoot,km.hydrateRoot=r.hydrateRoot;else{var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;km.createRoot=function(u,p){a.usingClientEntryPoint=!0;try{return r.createRoot(u,p)}finally{a.usingClientEntryPoint=!1}},km.hydrateRoot=function(u,p,M){a.usingClientEntryPoint=!0;try{return r.hydrateRoot(u,p,M)}finally{a.usingClientEntryPoint=!1}}}return km}var x4=E4();const T4='@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-14{right:calc(var(--spacing)*14)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-16{bottom:calc(var(--spacing)*16)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:30rem){.container{max-width:30rem}}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}@media(min-width:120rem){.container{max-width:120rem}}@media(min-width:160rem){.container{max-width:160rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-4{margin-right:calc(var(--spacing)*4)}.flex{display:flex}.inline{display:inline}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\\[50vh\\]{height:50vh}.h-\\[200px\\]{height:200px}.h-\\[500px\\]{height:500px}.h-full{height:100%}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-\\[100\\%\\]{width:100%}.w-\\[200px\\]{width:200px}.w-full{width:100%}.max-w-\\[70\\%\\]{max-width:70%}.max-w-full{max-width:100%}.min-w-\\[70\\%\\]{min-width:70%}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.bg-\\[\\#EFF1FF\\]{background-color:#eff1ff}.bg-\\[\\#F3F3F3\\]{background-color:#f3f3f3}.bg-\\[\\#F5605724\\]{background-color:#f5605724}.bg-\\[\\#FFFFFF\\]{background-color:#fff}.bg-gray-200{background-color:var(--color-gray-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#0D082C\\]{color:#0d082c}.text-\\[\\#283068\\]{color:#283068}.text-black{color:var(--color-black)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.italic{font-style:italic}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.placeholder\\:text-gray-500::placeholder{color:var(--color-gray-500)}@media(hover:hover){.hover\\:bg-\\[\\#283068\\]:hover{background-color:#283068}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:opacity-80:hover{opacity:.8}}@media(min-width:40rem){.sm\\:max-w-none{max-width:none}}@media(min-width:48rem){.md\\:h-\\[60vh\\]{height:60vh}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.lg\\:h-\\[65vh\\]{height:65vh}}@media(min-width:96rem){.\\32xl\\:right-20{right:calc(var(--spacing)*20)}.\\32xl\\:bottom-18{bottom:calc(var(--spacing)*18)}.\\32xl\\:bottom-24{bottom:calc(var(--spacing)*24)}.\\32xl\\:h-8{height:calc(var(--spacing)*8)}.\\32xl\\:h-10{height:calc(var(--spacing)*10)}.\\32xl\\:h-12{height:calc(var(--spacing)*12)}.\\32xl\\:w-8{width:calc(var(--spacing)*8)}.\\32xl\\:w-10{width:calc(var(--spacing)*10)}.\\32xl\\:w-12{width:calc(var(--spacing)*12)}}.custom-scrollbar::-webkit-scrollbar{width:4px;height:px}.custom-scrollbar::-webkit-scrollbar-track{background:0 0}.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(#21294c,#61b872);border-radius:8px;transition:background .3s,width .3s}.custom-scrollbar:hover::-webkit-scrollbar-thumb{background:linear-gradient(#283950,#4ae48b);width:8px}.custom-scrollbar::-webkit-scrollbar-thumb:active{background:linear-gradient(#1b2124,#2ecc71)}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#21294c #f3f3f3}.custom-scrollbar:after{content:"";pointer-events:none;background:linear-gradient(#0000,#fff);width:100%;height:20px;position:absolute;bottom:0;left:0}.inputHeight{height:40px}@media(min-width:48rem){.inputHeight{height:36px}}@media(min-width:64rem){.inputHeight{height:38px}}@media(min-width:80rem){.inputHeight{height:42px}}@media(min-width:96rem){.inputHeight{height:46px}}@media(min-width:120rem){.inputHeight{height:50px}}@media(min-width:160rem){.inputHeight{height:54px}}.fs32{font-family:Manrope,sans-serif;font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}@media(min-width:48rem){.fs32{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:64rem){.fs32{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.fs32{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:96rem){.fs32{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media(min-width:120rem){.fs32{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}}.fs28{font-family:Manrope,sans-serif;font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}@media(min-width:48rem){.fs28{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:64rem){.fs28{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:80rem){.fs28{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:96rem){.fs28{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:120rem){.fs28{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}.fs24{font-family:Manrope,sans-serif;font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}@media(min-width:48rem){.fs24{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.fs24{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:80rem){.fs24{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:96rem){.fs24{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:120rem){.fs24{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}.fs22{font-family:Manrope,sans-serif;font-size:22px}@media(min-width:48rem){.fs22{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:64rem){.fs22{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:80rem){.fs22{font-size:22px}}@media(min-width:96rem){.fs22{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:120rem){.fs22{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:160rem){.fs22{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}.fs20{font-family:Manrope,sans-serif;font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}@media(min-width:48rem){.fs20{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:64rem){.fs20{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:80rem){.fs20{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:96rem){.fs20{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:120rem){.fs20{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:160rem){.fs20{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}.fs18{font-family:Manrope,sans-serif;font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}@media(min-width:48rem){.fs18{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:64rem){.fs18{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:80rem){.fs18{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:96rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:120rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:160rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}.fs16{font-family:Manrope,sans-serif;font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}@media(min-width:48rem){.fs16{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:64rem){.fs16{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:80rem){.fs16{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:96rem){.fs16{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:120rem){.fs16{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:160rem){.fs16{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}.fs14{font-family:Manrope,sans-serif;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}@media(min-width:48rem){.fs14{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:64rem){.fs14{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:80rem){.fs14{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:96rem){.fs14{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:120rem){.fs14{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:160rem){.fs14{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}.fs12{font-family:Manrope,sans-serif;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}@media(min-width:48rem){.fs12{font-size:8px}}@media(min-width:64rem){.fs12{font-size:10px}}@media(min-width:80rem){.fs12{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:96rem){.fs12{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:120rem){.fs12{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:160rem){.fs12{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}.fs10{font-family:Manrope,sans-serif;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}@media(min-width:48rem){.fs10{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));font-size:7px}}@media(min-width:64rem){.fs10{font-size:9px}}@media(min-width:96rem){.fs10{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:120rem){.fs10{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:160rem){.fs10{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}}:host{color:#000;--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;font-family:Manrope,sans-serif;font-size:16px;line-height:1.5}:host *,:host :before,:host :after{box-sizing:border-box}.chat-main-gradient{background:linear-gradient(270deg,#ffe6e4,#ffe6e4,#fdaca7b3)}.greeting-text-gradient{color:#0000;background:linear-gradient(270deg,#f56057,#a03f39,#283068);-webkit-background-clip:text;background-clip:text}.user-msg-gradient{background:linear-gradient(90deg,#4f5fce,#2d3776)}.chat-header-gradient{background:linear-gradient(90deg,#283068,#49507f,#49507f)}.header{top:calc(var(--spacing)*0);right:calc(var(--spacing)*0);left:calc(var(--spacing)*0);z-index:10;background-color:#fff;position:fixed}.appHeader{border-bottom-style:var(--tw-border-style);vertical-align:middle;border-color:#f3f3f3;border-bottom-width:1px;justify-content:space-between;align-items:center;height:72px;display:flex}@media(min-width:48rem){.appHeader{height:45px}}@media(min-width:64rem){.appHeader{height:54px}}@media(min-width:80rem){.appHeader{height:62px}}@media(min-width:96rem){.appHeader{height:65px}}@media(min-width:120rem){.appHeader{height:72px}}@media(min-width:160rem){.appHeader{height:75px}}.sidebar{bottom:calc(var(--spacing)*0);z-index:5;border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px;background-color:#fff;border-color:#f3f3f3;position:fixed;top:72px;overflow-y:auto}@media(min-width:48rem){.sidebar{top:45px}}@media(min-width:64rem){.sidebar{top:54px}}@media(min-width:80rem){.sidebar{top:62px}}@media(min-width:96rem){.sidebar{top:65px}}@media(min-width:120rem){.sidebar{top:72px}}@media(min-width:160rem){.sidebar{top:75px}}.sidebar{width:220px}@media(min-width:48rem){.sidebar{width:190px}}@media(min-width:64rem){.sidebar{width:210px}}@media(min-width:80rem){.sidebar{width:260px}}@media(min-width:96rem){.sidebar{width:280px}}@media(min-width:120rem){.sidebar{width:300px}}@media(min-width:160rem){.sidebar{width:280px}}.layoutBodyWithSidebar{right:calc(var(--spacing)*0);z-index:0;padding-top:calc(var(--spacing)*6);padding-right:calc(var(--spacing)*6);padding-bottom:calc(var(--spacing)*4);padding-left:calc(var(--spacing)*6);position:absolute;left:220px}@media(min-width:48rem){.layoutBodyWithSidebar{left:190px}}@media(min-width:64rem){.layoutBodyWithSidebar{left:210px}}@media(min-width:80rem){.layoutBodyWithSidebar{left:260px}}@media(min-width:96rem){.layoutBodyWithSidebar{left:280px}}@media(min-width:120rem){.layoutBodyWithSidebar{left:300px}}@media(min-width:160rem){.layoutBodyWithSidebar{left:280px}}.layoutBodyWithSidebar{top:72px}@media(min-width:48rem){.layoutBodyWithSidebar{top:45px}}@media(min-width:64rem){.layoutBodyWithSidebar{top:54px}}@media(min-width:80rem){.layoutBodyWithSidebar{top:62px}}@media(min-width:96rem){.layoutBodyWithSidebar{top:65px}}@media(min-width:120rem){.layoutBodyWithSidebar{top:72px}}@media(min-width:160rem){.layoutBodyWithSidebar{top:75px}}.layoutBodyWithSidebar{min-height:calc(100vh - 72px)}@media(min-width:48rem){.layoutBodyWithSidebar{min-height:calc(100vh - 45px)}}@media(min-width:64rem){.layoutBodyWithSidebar{min-height:calc(100vh - 54px)}}@media(min-width:80rem){.layoutBodyWithSidebar{min-height:calc(100vh - 62px)}}@media(min-width:96rem){.layoutBodyWithSidebar{min-height:calc(100vh - 65px)}}@media(min-width:120rem){.layoutBodyWithSidebar{min-height:calc(100vh - 72px)}}@media(min-width:160rem){.layoutBodyWithSidebar{min-height:calc(100vh - 75px)}}.layoutBodyWithoutSidebar{right:calc(var(--spacing)*0);left:calc(var(--spacing)*0);padding-inline-start:calc(var(--spacing)*6);padding-inline-end:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*3);padding-bottom:calc(var(--spacing)*4);flex:1;top:72px}@media(min-width:48rem){.layoutBodyWithoutSidebar{top:45px}}@media(min-width:64rem){.layoutBodyWithoutSidebar{top:54px}}@media(min-width:80rem){.layoutBodyWithoutSidebar{top:62px}}@media(min-width:96rem){.layoutBodyWithoutSidebar{top:65px}}@media(min-width:120rem){.layoutBodyWithoutSidebar{top:72px}}@media(min-width:160rem){.layoutBodyWithoutSidebar{top:75px}}.inputWrapper{align-items:center;width:100%;display:flex;position:relative}.input{appearance:none;border-style:var(--tw-border-style);border-width:1.5px;border-color:var(--color-gray-200);color:#21294c;border-radius:.25rem;flex-grow:1;width:100%}.input::placeholder{color:#666}.input:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style:none;box-shadow:none;outline-style:none}.input:focus:disabled{cursor:not-allowed;background-color:#666}.leftIcon{left:calc(var(--spacing)*3);color:#21294c;position:absolute}.leftIcon+.input{padding-left:calc(var(--spacing)*10)}.rightIcon{right:calc(var(--spacing)*3);color:#21294c;position:absolute}.rightIcon+.input{padding-right:calc(var(--spacing)*10)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}';var Ae=fp();const Qe=hA(Ae),b4="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2013.5997%202.37562%2015.1116%203.04346%2016.4525C3.22094%2016.8088%203.28001%2017.2161%203.17712%2017.6006L2.58151%2019.8267C2.32295%2020.793%203.20701%2021.677%204.17335%2021.4185L6.39939%2020.8229C6.78393%2020.72%207.19121%2020.7791%207.54753%2020.9565C8.88837%2021.6244%2010.4003%2022%2012%2022Z'%20fill='%23262D7B'/%3e%3c/svg%3e",LS=Ae.createContext({});function IS(n){const r=Ae.useRef(null);return r.current===null&&(r.current=n()),r.current}const jS=typeof window<"u",NA=jS?Ae.useLayoutEffect:Ae.useEffect,Y0=Ae.createContext(null);function US(n,r){n.indexOf(r)===-1&&n.push(r)}function VS(n,r){const a=n.indexOf(r);a>-1&&n.splice(a,1)}const Cf=(n,r,a)=>a>r?r:a<n?n:a;function _S(n,r){return r?`${n}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${r}`:n}var C4={env:{}};let Om=()=>{},Af=()=>{};C4.env.NODE_ENV!=="production"&&(Om=(n,r,a)=>{!n&&typeof console<"u"&&console.warn(_S(r,a))},Af=(n,r,a)=>{if(!n)throw new Error(_S(r,a))});const Df={},RA=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function kA(n){return typeof n=="object"&&n!==null}const OA=n=>/^0[^.\s]+$/u.test(n);function PS(n){let r;return()=>(r===void 0&&(r=n()),r)}const wl=n=>n,A4=(n,r)=>a=>r(n(a)),Rg=(...n)=>n.reduce(A4),kg=(n,r,a)=>{const u=r-n;return u===0?1:(a-n)/u};class FS{constructor(){this.subscriptions=[]}add(r){return US(this.subscriptions,r),()=>VS(this.subscriptions,r)}notify(r,a,u){const p=this.subscriptions.length;if(p)if(p===1)this.subscriptions[0](r,a,u);else for(let M=0;M<p;M++){const w=this.subscriptions[M];w&&w(r,a,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bu=n=>n*1e3,Sl=n=>n/1e3;function zA(n,r){return r?n*(1e3/r):0}const LA=new Set;function BS(n,r,a){n||LA.has(r)||(console.warn(_S(r,a)),LA.add(r))}const IA=(n,r,a)=>(((1-3*a+3*r)*n+(3*a-6*r))*n+3*r)*n,D4=1e-7,N4=12;function R4(n,r,a,u,p){let M,w,g=0;do w=r+(a-r)/2,M=IA(w,u,p)-n,M>0?a=w:r=w;while(Math.abs(M)>D4&&++g<N4);return w}function Og(n,r,a,u){if(n===r&&a===u)return wl;const p=M=>R4(M,0,1,n,a);return M=>M===0||M===1?M:IA(p(M),r,u)}const jA=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,UA=n=>r=>1-n(1-r),VA=Og(.33,1.53,.69,.99),QS=UA(VA),_A=jA(QS),PA=n=>(n*=2)<1?.5*QS(n):.5*(2-Math.pow(2,-10*(n-1))),YS=n=>1-Math.sin(Math.acos(n)),FA=UA(YS),BA=jA(YS),k4=Og(.42,0,1,1),O4=Og(0,0,.58,1),QA=Og(.42,0,.58,1),z4=n=>Array.isArray(n)&&typeof n[0]!="number",YA=n=>Array.isArray(n)&&typeof n[0]=="number",HA={linear:wl,easeIn:k4,easeInOut:QA,easeOut:O4,circIn:YS,circInOut:BA,circOut:FA,backIn:QS,backInOut:_A,backOut:VA,anticipate:PA},L4=n=>typeof n=="string",WA=n=>{if(YA(n)){Af(n.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[r,a,u,p]=n;return Og(r,a,u,p)}else if(L4(n))return Af(HA[n]!==void 0,`Invalid easing type '${n}'`,"invalid-easing-type"),HA[n];return n},H0=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function I4(n,r){let a=new Set,u=new Set,p=!1,M=!1;const w=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function b(D){w.has(D)&&(C.schedule(D),n()),D(g)}const C={schedule:(D,k=!1,I=!1)=>{const F=I&&p?a:u;return k&&w.add(D),F.has(D)||F.add(D),D},cancel:D=>{u.delete(D),w.delete(D)},process:D=>{if(g=D,p){M=!0;return}p=!0,[a,u]=[u,a],a.forEach(b),a.clear(),p=!1,M&&(M=!1,C.process(D))}};return C}const j4=40;function qA(n,r){let a=!1,u=!0;const p={delta:0,timestamp:0,isProcessing:!1},M=()=>a=!0,w=H0.reduce(($,be)=>($[be]=I4(M),$),{}),{setup:g,read:b,resolveKeyframes:C,preUpdate:D,update:k,preRender:I,render:L,postRender:F}=w,Q=()=>{const $=Df.useManualTiming?p.timestamp:performance.now();a=!1,Df.useManualTiming||(p.delta=u?1e3/60:Math.max(Math.min($-p.timestamp,j4),1)),p.timestamp=$,p.isProcessing=!0,g.process(p),b.process(p),C.process(p),D.process(p),k.process(p),I.process(p),L.process(p),F.process(p),p.isProcessing=!1,a&&r&&(u=!1,n(Q))},ue=()=>{a=!0,u=!0,p.isProcessing||n(Q)};return{schedule:H0.reduce(($,be)=>{const pe=w[be];return $[be]=(ve,Ne=!1,xe=!1)=>(a||ue(),pe.schedule(ve,Ne,xe)),$},{}),cancel:$=>{for(let be=0;be<H0.length;be++)w[H0[be]].cancel($)},state:p,steps:w}}const{schedule:Mi,cancel:Vd,state:Ga,steps:HS}=qA(typeof requestAnimationFrame<"u"?requestAnimationFrame:wl,!0);let W0;function U4(){W0=void 0}const gs={now:()=>(W0===void 0&&gs.set(Ga.isProcessing||Df.useManualTiming?Ga.timestamp:performance.now()),W0),set:n=>{W0=n,queueMicrotask(U4)}},KA=n=>r=>typeof r=="string"&&r.startsWith(n),WS=KA("--"),V4=KA("var(--"),qS=n=>V4(n)?_4.test(n.split("/*")[0].trim()):!1,_4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zm={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},zg={...zm,transform:n=>Cf(0,1,n)},q0={...zm,default:1},Lg=n=>Math.round(n*1e5)/1e5,KS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P4(n){return n==null}const F4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,GS=(n,r)=>a=>!!(typeof a=="string"&&F4.test(a)&&a.startsWith(n)||r&&!P4(a)&&Object.prototype.hasOwnProperty.call(a,r)),GA=(n,r,a)=>u=>{if(typeof u!="string")return u;const[p,M,w,g]=u.match(KS);return{[n]:parseFloat(p),[r]:parseFloat(M),[a]:parseFloat(w),alpha:g!==void 0?parseFloat(g):1}},B4=n=>Cf(0,255,n),JS={...zm,transform:n=>Math.round(B4(n))},dp={test:GS("rgb","red"),parse:GA("red","green","blue"),transform:({red:n,green:r,blue:a,alpha:u=1})=>"rgba("+JS.transform(n)+", "+JS.transform(r)+", "+JS.transform(a)+", "+Lg(zg.transform(u))+")"};function Q4(n){let r="",a="",u="",p="";return n.length>5?(r=n.substring(1,3),a=n.substring(3,5),u=n.substring(5,7),p=n.substring(7,9)):(r=n.substring(1,2),a=n.substring(2,3),u=n.substring(3,4),p=n.substring(4,5),r+=r,a+=a,u+=u,p+=p),{red:parseInt(r,16),green:parseInt(a,16),blue:parseInt(u,16),alpha:p?parseInt(p,16)/255:1}}const XS={test:GS("#"),parse:Q4,transform:dp.transform},Ig=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),_d=Ig("deg"),wc=Ig("%"),hn=Ig("px"),Y4=Ig("vh"),H4=Ig("vw"),JA={...wc,parse:n=>wc.parse(n)/100,transform:n=>wc.transform(n*100)},Lm={test:GS("hsl","hue"),parse:GA("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:a,alpha:u=1})=>"hsla("+Math.round(n)+", "+wc.transform(Lg(r))+", "+wc.transform(Lg(a))+", "+Lg(zg.transform(u))+")"},aa={test:n=>dp.test(n)||XS.test(n)||Lm.test(n),parse:n=>dp.test(n)?dp.parse(n):Lm.test(n)?Lm.parse(n):XS.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?dp.transform(n):Lm.transform(n),getAnimatableNone:n=>{const r=aa.parse(n);return r.alpha=0,aa.transform(r)}},W4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q4(n){return isNaN(n)&&typeof n=="string"&&(n.match(KS)?.length||0)+(n.match(W4)?.length||0)>0}const XA="number",ZA="color",K4="var",G4="var(",$A="${}",J4=/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 jg(n){const r=n.toString(),a=[],u={color:[],number:[],var:[]},p=[];let M=0;const g=r.replace(J4,b=>(aa.test(b)?(u.color.push(M),p.push(ZA),a.push(aa.parse(b))):b.startsWith(G4)?(u.var.push(M),p.push(K4),a.push(b)):(u.number.push(M),p.push(XA),a.push(parseFloat(b))),++M,$A)).split($A);return{values:a,split:g,indexes:u,types:p}}function eD(n){return jg(n).values}function tD(n){const{split:r,types:a}=jg(n),u=r.length;return p=>{let M="";for(let w=0;w<u;w++)if(M+=r[w],p[w]!==void 0){const g=a[w];g===XA?M+=Lg(p[w]):g===ZA?M+=aa.transform(p[w]):M+=p[w]}return M}}const X4=n=>typeof n=="number"?0:aa.test(n)?aa.getAnimatableNone(n):n;function Z4(n){const r=eD(n);return tD(n)(r.map(X4))}const Pd={test:q4,parse:eD,createTransformer:tD,getAnimatableNone:Z4};function ZS(n,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<.16666666666666666?n+(r-n)*6*a:a<.5?r:a<.6666666666666666?n+(r-n)*(.6666666666666666-a)*6:n}function $4({hue:n,saturation:r,lightness:a,alpha:u}){n/=360,r/=100,a/=100;let p=0,M=0,w=0;if(!r)p=M=w=a;else{const g=a<.5?a*(1+r):a+r-a*r,b=2*a-g;p=ZS(b,g,n+.3333333333333333),M=ZS(b,g,n),w=ZS(b,g,n-.3333333333333333)}return{red:Math.round(p*255),green:Math.round(M*255),blue:Math.round(w*255),alpha:u}}function K0(n,r){return a=>a>0?r:n}const Ni=(n,r,a)=>n+(r-n)*a,$S=(n,r,a)=>{const u=n*n,p=a*(r*r-u)+u;return p<0?0:Math.sqrt(p)},ej=[XS,dp,Lm],tj=n=>ej.find(r=>r.test(n));function nD(n){const r=tj(n);if(Om(!!r,`'${n}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!r)return!1;let a=r.parse(n);return r===Lm&&(a=$4(a)),a}const rD=(n,r)=>{const a=nD(n),u=nD(r);if(!a||!u)return K0(n,r);const p={...a};return M=>(p.red=$S(a.red,u.red,M),p.green=$S(a.green,u.green,M),p.blue=$S(a.blue,u.blue,M),p.alpha=Ni(a.alpha,u.alpha,M),dp.transform(p))},eE=new Set(["none","hidden"]);function nj(n,r){return eE.has(n)?a=>a<=0?n:r:a=>a>=1?r:n}function rj(n,r){return a=>Ni(n,r,a)}function tE(n){return typeof n=="number"?rj:typeof n=="string"?qS(n)?K0:aa.test(n)?rD:oj:Array.isArray(n)?iD:typeof n=="object"?aa.test(n)?rD:ij:K0}function iD(n,r){const a=[...n],u=a.length,p=n.map((M,w)=>tE(M)(M,r[w]));return M=>{for(let w=0;w<u;w++)a[w]=p[w](M);return a}}function ij(n,r){const a={...n,...r},u={};for(const p in a)n[p]!==void 0&&r[p]!==void 0&&(u[p]=tE(n[p])(n[p],r[p]));return p=>{for(const M in u)a[M]=u[M](p);return a}}function aj(n,r){const a=[],u={color:0,var:0,number:0};for(let p=0;p<r.values.length;p++){const M=r.types[p],w=n.indexes[M][u[M]],g=n.values[w]??0;a[p]=g,u[M]++}return a}const oj=(n,r)=>{const a=Pd.createTransformer(r),u=jg(n),p=jg(r);return u.indexes.var.length===p.indexes.var.length&&u.indexes.color.length===p.indexes.color.length&&u.indexes.number.length>=p.indexes.number.length?eE.has(n)&&!p.values.length||eE.has(r)&&!u.values.length?nj(n,r):Rg(iD(aj(u,p),p.values),a):(Om(!0,`Complex values '${n}' and '${r}' 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.`,"complex-values-different"),K0(n,r))};function aD(n,r,a){return typeof n=="number"&&typeof r=="number"&&typeof a=="number"?Ni(n,r,a):tE(n)(n,r)}const sj=n=>{const r=({timestamp:a})=>n(a);return{start:(a=!0)=>Mi.update(r,a),stop:()=>Vd(r),now:()=>Ga.isProcessing?Ga.timestamp:gs.now()}},oD=(n,r,a=10)=>{let u="";const p=Math.max(Math.round(r/a),2);for(let M=0;M<p;M++)u+=Math.round(n(M/(p-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},G0=2e4;function nE(n){let r=0;const a=50;let u=n.next(r);for(;!u.done&&r<G0;)r+=a,u=n.next(r);return r>=G0?1/0:r}function lj(n,r=100,a){const u=a({...n,keyframes:[0,r]}),p=Math.min(nE(u),G0);return{type:"keyframes",ease:M=>u.next(p*M).value/r,duration:Sl(p)}}const uj=5;function sD(n,r,a){const u=Math.max(r-uj,0);return zA(a-n(u),r-u)}const Ri={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},rE=.001;function cj({duration:n=Ri.duration,bounce:r=Ri.bounce,velocity:a=Ri.velocity,mass:u=Ri.mass}){let p,M;Om(n<=bu(Ri.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let w=1-r;w=Cf(Ri.minDamping,Ri.maxDamping,w),n=Cf(Ri.minDuration,Ri.maxDuration,Sl(n)),w<1?(p=C=>{const D=C*w,k=D*n,I=D-a,L=iE(C,w),F=Math.exp(-k);return rE-I/L*F},M=C=>{const k=C*w*n,I=k*a+a,L=Math.pow(w,2)*Math.pow(C,2)*n,F=Math.exp(-k),Q=iE(Math.pow(C,2),w);return(-p(C)+rE>0?-1:1)*((I-L)*F)/Q}):(p=C=>{const D=Math.exp(-C*n),k=(C-a)*n+1;return-rE+D*k},M=C=>{const D=Math.exp(-C*n),k=(a-C)*(n*n);return D*k});const g=5/n,b=dj(p,M,g);if(n=bu(n),isNaN(b))return{stiffness:Ri.stiffness,damping:Ri.damping,duration:n};{const C=Math.pow(b,2)*u;return{stiffness:C,damping:w*2*Math.sqrt(u*C),duration:n}}}const fj=12;function dj(n,r,a){let u=a;for(let p=1;p<fj;p++)u=u-n(u)/r(u);return u}function iE(n,r){return n*Math.sqrt(1-r*r)}const hj=["duration","bounce"],pj=["stiffness","damping","mass"];function lD(n,r){return r.some(a=>n[a]!==void 0)}function mj(n){let r={velocity:Ri.velocity,stiffness:Ri.stiffness,damping:Ri.damping,mass:Ri.mass,isResolvedFromDuration:!1,...n};if(!lD(n,pj)&&lD(n,hj))if(n.visualDuration){const a=n.visualDuration,u=2*Math.PI/(a*1.2),p=u*u,M=2*Cf(.05,1,1-(n.bounce||0))*Math.sqrt(p);r={...r,mass:Ri.mass,stiffness:p,damping:M}}else{const a=cj(n);r={...r,...a,mass:Ri.mass},r.isResolvedFromDuration=!0}return r}function J0(n=Ri.visualDuration,r=Ri.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:u,restDelta:p}=a;const M=a.keyframes[0],w=a.keyframes[a.keyframes.length-1],g={done:!1,value:M},{stiffness:b,damping:C,mass:D,duration:k,velocity:I,isResolvedFromDuration:L}=mj({...a,velocity:-Sl(a.velocity||0)}),F=I||0,Q=C/(2*Math.sqrt(b*D)),ue=w-M,le=Sl(Math.sqrt(b/D)),ee=Math.abs(ue)<5;u||(u=ee?Ri.restSpeed.granular:Ri.restSpeed.default),p||(p=ee?Ri.restDelta.granular:Ri.restDelta.default);let $;if(Q<1){const pe=iE(le,Q);$=ve=>{const Ne=Math.exp(-Q*le*ve);return w-Ne*((F+Q*le*ue)/pe*Math.sin(pe*ve)+ue*Math.cos(pe*ve))}}else if(Q===1)$=pe=>w-Math.exp(-le*pe)*(ue+(F+le*ue)*pe);else{const pe=le*Math.sqrt(Q*Q-1);$=ve=>{const Ne=Math.exp(-Q*le*ve),xe=Math.min(pe*ve,300);return w-Ne*((F+Q*le*ue)*Math.sinh(xe)+pe*ue*Math.cosh(xe))/pe}}const be={calculatedDuration:L&&k||null,next:pe=>{const ve=$(pe);if(L)g.done=pe>=k;else{let Ne=pe===0?F:0;Q<1&&(Ne=pe===0?bu(F):sD($,pe,ve));const xe=Math.abs(Ne)<=u,dt=Math.abs(w-ve)<=p;g.done=xe&&dt}return g.value=g.done?w:ve,g},toString:()=>{const pe=Math.min(nE(be),G0),ve=oD(Ne=>be.next(pe*Ne).value,pe,30);return pe+"ms "+ve},toTransition:()=>{}};return be}J0.applyToOptions=n=>{const r=lj(n,100,J0);return n.ease=r.ease,n.duration=bu(r.duration),n.type="keyframes",n};function aE({keyframes:n,velocity:r=0,power:a=.8,timeConstant:u=325,bounceDamping:p=10,bounceStiffness:M=500,modifyTarget:w,min:g,max:b,restDelta:C=.5,restSpeed:D}){const k=n[0],I={done:!1,value:k},L=xe=>g!==void 0&&xe<g||b!==void 0&&xe>b,F=xe=>g===void 0?b:b===void 0||Math.abs(g-xe)<Math.abs(b-xe)?g:b;let Q=a*r;const ue=k+Q,le=w===void 0?ue:w(ue);le!==ue&&(Q=le-k);const ee=xe=>-Q*Math.exp(-xe/u),$=xe=>le+ee(xe),be=xe=>{const dt=ee(xe),tt=$(xe);I.done=Math.abs(dt)<=C,I.value=I.done?le:tt};let pe,ve;const Ne=xe=>{L(I.value)&&(pe=xe,ve=J0({keyframes:[I.value,F(I.value)],velocity:sD($,xe,I.value),damping:p,stiffness:M,restDelta:C,restSpeed:D}))};return Ne(0),{calculatedDuration:null,next:xe=>{let dt=!1;return!ve&&pe===void 0&&(dt=!0,be(xe),Ne(xe)),pe!==void 0&&xe>=pe?ve.next(xe-pe):(!dt&&be(xe),I)}}}function vj(n,r,a){const u=[],p=a||Df.mix||aD,M=n.length-1;for(let w=0;w<M;w++){let g=p(n[w],n[w+1]);if(r){const b=Array.isArray(r)?r[w]||wl:r;g=Rg(b,g)}u.push(g)}return u}function gj(n,r,{clamp:a=!0,ease:u,mixer:p}={}){const M=n.length;if(Af(M===r.length,"Both input and output ranges must be the same length","range-length"),M===1)return()=>r[0];if(M===2&&r[0]===r[1])return()=>r[1];const w=n[0]===n[1];n[0]>n[M-1]&&(n=[...n].reverse(),r=[...r].reverse());const g=vj(r,u,p),b=g.length,C=D=>{if(w&&D<n[0])return r[0];let k=0;if(b>1)for(;k<n.length-2&&!(D<n[k+1]);k++);const I=kg(n[k],n[k+1],D);return g[k](I)};return a?D=>C(Cf(n[0],n[M-1],D)):C}function yj(n,r){const a=n[n.length-1];for(let u=1;u<=r;u++){const p=kg(0,r,u);n.push(Ni(a,1,p))}}function Mj(n){const r=[0];return yj(r,n.length-1),r}function wj(n,r){return n.map(a=>a*r)}function Sj(n,r){return n.map(()=>r||QA).splice(0,n.length-1)}function Im({duration:n=300,keyframes:r,times:a,ease:u="easeInOut"}){const p=z4(u)?u.map(WA):WA(u),M={done:!1,value:r[0]},w=wj(a&&a.length===r.length?a:Mj(r),n),g=gj(w,r,{ease:Array.isArray(p)?p:Sj(r,p)});return{calculatedDuration:n,next:b=>(M.value=g(b),M.done=b>=n,M)}}const Ej=n=>n!==null;function oE(n,{repeat:r,repeatType:a="loop"},u,p=1){const M=n.filter(Ej),g=p<0||r&&a!=="loop"&&r%2===1?0:M.length-1;return!g||u===void 0?M[g]:u}const xj={decay:aE,inertia:aE,tween:Im,keyframes:Im,spring:J0};function uD(n){typeof n.type=="string"&&(n.type=xj[n.type])}class sE{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,a){return this.finished.then(r,a)}}var Tj={env:{}};const bj=n=>n/100;class lE extends sE{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==gs.now()&&this.tick(gs.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;uD(r);const{type:a=Im,repeat:u=0,repeatDelay:p=0,repeatType:M,velocity:w=0}=r;let{keyframes:g}=r;const b=a||Im;Tj.env.NODE_ENV!=="production"&&b!==Im&&Af(g.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${g}`,"spring-two-frames"),b!==Im&&typeof g[0]!="number"&&(this.mixKeyframes=Rg(bj,aD(g[0],g[1])),g=[0,100]);const C=b({...r,keyframes:g});M==="mirror"&&(this.mirroredGenerator=b({...r,keyframes:[...g].reverse(),velocity:-w})),C.calculatedDuration===null&&(C.calculatedDuration=nE(C));const{calculatedDuration:D}=C;this.calculatedDuration=D,this.resolvedDuration=D+p,this.totalDuration=this.resolvedDuration*(u+1)-p,this.generator=C}updateTime(r){const a=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(r,a=!1){const{generator:u,totalDuration:p,mixKeyframes:M,mirroredGenerator:w,resolvedDuration:g,calculatedDuration:b}=this;if(this.startTime===null)return u.next(0);const{delay:C=0,keyframes:D,repeat:k,repeatType:I,repeatDelay:L,type:F,onUpdate:Q,finalKeyframe:ue}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-p/this.speed,this.startTime)),a?this.currentTime=r:this.updateTime(r);const le=this.currentTime-C*(this.playbackSpeed>=0?1:-1),ee=this.playbackSpeed>=0?le<0:le>p;this.currentTime=Math.max(le,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let $=this.currentTime,be=u;if(k){const xe=Math.min(this.currentTime,p)/g;let dt=Math.floor(xe),tt=xe%1;!tt&&xe>=1&&(tt=1),tt===1&&dt--,dt=Math.min(dt,k+1),!!(dt%2)&&(I==="reverse"?(tt=1-tt,L&&(tt-=L/g)):I==="mirror"&&(be=w)),$=Cf(0,1,tt)*g}const pe=ee?{done:!1,value:D[0]}:be.next($);M&&(pe.value=M(pe.value));let{done:ve}=pe;!ee&&b!==null&&(ve=this.playbackSpeed>=0?this.currentTime>=p:this.currentTime<=0);const Ne=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ve);return Ne&&F!==aE&&(pe.value=oE(D,this.options,ue,this.speed)),Q&&Q(pe.value),Ne&&this.finish(),pe}then(r,a){return this.finished.then(r,a)}get duration(){return Sl(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Sl(r)}get time(){return Sl(this.currentTime)}set time(r){r=bu(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(gs.now());const a=this.playbackSpeed!==r;this.playbackSpeed=r,a&&(this.time=Sl(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=sj,startTime:a}=this.options;this.driver||(this.driver=r(p=>this.tick(p))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=a??u),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gs.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function Cj(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const hp=n=>n*180/Math.PI,uE=n=>{const r=hp(Math.atan2(n[1],n[0]));return cE(r)},Aj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:uE,rotateZ:uE,skewX:n=>hp(Math.atan(n[1])),skewY:n=>hp(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},cE=n=>(n=n%360,n<0&&(n+=360),n),cD=uE,fD=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),dD=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Dj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fD,scaleY:dD,scale:n=>(fD(n)+dD(n))/2,rotateX:n=>cE(hp(Math.atan2(n[6],n[5]))),rotateY:n=>cE(hp(Math.atan2(-n[2],n[0]))),rotateZ:cD,rotate:cD,skewX:n=>hp(Math.atan(n[4])),skewY:n=>hp(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function fE(n){return n.includes("scale")?1:0}function dE(n,r){if(!n||n==="none")return fE(r);const a=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,p;if(a)u=Dj,p=a;else{const g=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Aj,p=g}if(!p)return fE(r);const M=u[r],w=p[1].split(",").map(Rj);return typeof M=="function"?M(w):w[M]}const Nj=(n,r)=>{const{transform:a="none"}=getComputedStyle(n);return dE(a,r)};function Rj(n){return parseFloat(n.trim())}const jm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Um=new Set(jm),hD=n=>n===zm||n===hn,kj=new Set(["x","y","z"]),Oj=jm.filter(n=>!kj.has(n));function zj(n){const r=[];return Oj.forEach(a=>{const u=n.getValue(a);u!==void 0&&(r.push([a,u.get()]),u.set(a.startsWith("scale")?1:0))}),r}const pp={width:({x:n},{paddingLeft:r="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),height:({y:n},{paddingTop:r="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>dE(r,"x"),y:(n,{transform:r})=>dE(r,"y")};pp.translateX=pp.x,pp.translateY=pp.y;const mp=new Set;let hE=!1,pE=!1,mE=!1;function pD(){if(pE){const n=Array.from(mp).filter(u=>u.needsMeasurement),r=new Set(n.map(u=>u.element)),a=new Map;r.forEach(u=>{const p=zj(u);p.length&&(a.set(u,p),u.render())}),n.forEach(u=>u.measureInitialState()),r.forEach(u=>{u.render();const p=a.get(u);p&&p.forEach(([M,w])=>{u.getValue(M)?.set(w)})}),n.forEach(u=>u.measureEndState()),n.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}pE=!1,hE=!1,mp.forEach(n=>n.complete(mE)),mp.clear()}function mD(){mp.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(pE=!0)})}function Lj(){mE=!0,mD(),pD(),mE=!1}class vE{constructor(r,a,u,p,M,w=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=a,this.name=u,this.motionValue=p,this.element=M,this.isAsync=w}scheduleResolve(){this.state="scheduled",this.isAsync?(mp.add(this),hE||(hE=!0,Mi.read(mD),Mi.resolveKeyframes(pD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:a,element:u,motionValue:p}=this;if(r[0]===null){const M=p?.get(),w=r[r.length-1];if(M!==void 0)r[0]=M;else if(u&&a){const g=u.readValue(a,w);g!=null&&(r[0]=g)}r[0]===void 0&&(r[0]=w),p&&M===void 0&&p.set(r[0])}Cj(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),mp.delete(this)}cancel(){this.state==="scheduled"&&(mp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ij=n=>n.startsWith("--");function jj(n,r,a){Ij(r)?n.style.setProperty(r,a):n.style[r]=a}const Uj=PS(()=>window.ScrollTimeline!==void 0),Vj={};function _j(n,r){const a=PS(n);return()=>Vj[r]??a()}const vD=_j(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ug=([n,r,a,u])=>`cubic-bezier(${n}, ${r}, ${a}, ${u})`,gD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ug([0,.65,.55,1]),circOut:Ug([.55,0,1,.45]),backIn:Ug([.31,.01,.66,-.59]),backOut:Ug([.33,1.53,.69,.99])};function yD(n,r){if(n)return typeof n=="function"?vD()?oD(n,r):"ease-out":YA(n)?Ug(n):Array.isArray(n)?n.map(a=>yD(a,r)||gD.easeOut):gD[n]}function Pj(n,r,a,{delay:u=0,duration:p=300,repeat:M=0,repeatType:w="loop",ease:g="easeOut",times:b}={},C=void 0){const D={[r]:a};b&&(D.offset=b);const k=yD(g,p);Array.isArray(k)&&(D.easing=k);const I={delay:u,duration:p,easing:Array.isArray(k)?"linear":k,fill:"both",iterations:M+1,direction:w==="reverse"?"alternate":"normal"};return C&&(I.pseudoElement=C),n.animate(D,I)}function MD(n){return typeof n=="function"&&"applyToOptions"in n}function Fj({type:n,...r}){return MD(n)&&vD()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class Bj extends sE{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:a,name:u,keyframes:p,pseudoElement:M,allowFlatten:w=!1,finalKeyframe:g,onComplete:b}=r;this.isPseudoElement=!!M,this.allowFlatten=w,this.options=r,Af(typeof r.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const C=Fj(r);this.animation=Pj(a,u,p,C,M),C.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!M){const D=oE(p,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(D):jj(a,u,D),this.animation.cancel()}b?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Sl(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Sl(r)}get time(){return Sl(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=bu(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&Uj()?(this.animation.timeline=r,wl):a(this)}}const wD={anticipate:PA,backInOut:_A,circInOut:BA};function Qj(n){return n in wD}function Yj(n){typeof n.ease=="string"&&Qj(n.ease)&&(n.ease=wD[n.ease])}const SD=10;class Hj extends Bj{constructor(r){Yj(r),uD(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:a,onUpdate:u,onComplete:p,element:M,...w}=this.options;if(!a)return;if(r!==void 0){a.set(r);return}const g=new lE({...w,autoplay:!1}),b=bu(this.finishedTime??this.time);a.setWithVelocity(g.sample(b-SD).value,g.sample(b).value,SD),g.stop()}}const ED=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Pd.test(n)||n==="0")&&!n.startsWith("url("));function Wj(n){const r=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==r)return!0}function qj(n,r,a,u){const p=n[0];if(p===null)return!1;if(r==="display"||r==="visibility")return!0;const M=n[n.length-1],w=ED(p,r),g=ED(M,r);return Om(w===g,`You are trying to animate ${r} from "${p}" to "${M}". "${w?M:p}" is not an animatable value.`,"value-not-animatable"),!w||!g?!1:Wj(n)||(a==="spring"||MD(a))&&u}function gE(n){n.duration=0,n.type="keyframes"}const Kj=new Set(["opacity","clipPath","filter","transform"]),Gj=PS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jj(n){const{motionValue:r,name:a,repeatDelay:u,repeatType:p,damping:M,type:w}=n;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:b,transformTemplate:C}=r.owner.getProps();return Gj()&&a&&Kj.has(a)&&(a!=="transform"||!C)&&!b&&!u&&p!=="mirror"&&M!==0&&w!=="inertia"}const Xj=40;class Zj extends sE{constructor({autoplay:r=!0,delay:a=0,type:u="keyframes",repeat:p=0,repeatDelay:M=0,repeatType:w="loop",keyframes:g,name:b,motionValue:C,element:D,...k}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gs.now();const I={autoplay:r,delay:a,type:u,repeat:p,repeatDelay:M,repeatType:w,name:b,motionValue:C,element:D,...k},L=D?.KeyframeResolver||vE;this.keyframeResolver=new L(g,(F,Q,ue)=>this.onKeyframesResolved(F,Q,I,!ue),b,C,D),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,a,u,p){this.keyframeResolver=void 0;const{name:M,type:w,velocity:g,delay:b,isHandoff:C,onUpdate:D}=u;this.resolvedAt=gs.now(),qj(r,M,w,g)||((Df.instantAnimations||!b)&&D?.(oE(r,u,a)),r[0]=r[r.length-1],gE(u),u.repeat=0);const I={startTime:p?this.resolvedAt?this.resolvedAt-this.createdAt>Xj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...u,keyframes:r},L=!C&&Jj(I)?new Hj({...I,element:I.motionValue.owner.current}):new lE(I);L.finished.then(()=>this.notifyFinished()).catch(wl),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(r,a){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Lj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const $j=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eU(n){const r=$j.exec(n);if(!r)return[,];const[,a,u,p]=r;return[`--${a??u}`,p]}const tU=4;function xD(n,r,a=1){Af(a<=tU,`Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[u,p]=eU(n);if(!u)return;const M=window.getComputedStyle(r).getPropertyValue(u);if(M){const w=M.trim();return RA(w)?parseFloat(w):w}return qS(p)?xD(p,r,a+1):p}function yE(n,r){return n?.[r]??n?.default??n}const TD=new Set(["width","height","top","left","right","bottom",...jm]),nU={test:n=>n==="auto",parse:n=>n},bD=n=>r=>r.test(n),CD=[zm,hn,wc,_d,H4,Y4,nU],AD=n=>CD.find(bD(n));function rU(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||OA(n):!0}const iU=new Set(["brightness","contrast","saturate","opacity"]);function aU(n){const[r,a]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[u]=a.match(KS)||[];if(!u)return n;const p=a.replace(u,"");let M=iU.has(r)?1:0;return u!==a&&(M*=100),r+"("+M+p+")"}const oU=/\b([a-z-]*)\(.*?\)/gu,ME={...Pd,getAnimatableNone:n=>{const r=n.match(oU);return r?r.map(aU).join(" "):n}},DD={...zm,transform:Math.round},wE={borderWidth:hn,borderTopWidth:hn,borderRightWidth:hn,borderBottomWidth:hn,borderLeftWidth:hn,borderRadius:hn,radius:hn,borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomRightRadius:hn,borderBottomLeftRadius:hn,width:hn,maxWidth:hn,height:hn,maxHeight:hn,top:hn,right:hn,bottom:hn,left:hn,padding:hn,paddingTop:hn,paddingRight:hn,paddingBottom:hn,paddingLeft:hn,margin:hn,marginTop:hn,marginRight:hn,marginBottom:hn,marginLeft:hn,backgroundPositionX:hn,backgroundPositionY:hn,...{rotate:_d,rotateX:_d,rotateY:_d,rotateZ:_d,scale:q0,scaleX:q0,scaleY:q0,scaleZ:q0,skew:_d,skewX:_d,skewY:_d,distance:hn,translateX:hn,translateY:hn,translateZ:hn,x:hn,y:hn,z:hn,perspective:hn,transformPerspective:hn,opacity:zg,originX:JA,originY:JA,originZ:hn},zIndex:DD,fillOpacity:zg,strokeOpacity:zg,numOctaves:DD},sU={...wE,color:aa,backgroundColor:aa,outlineColor:aa,fill:aa,stroke:aa,borderColor:aa,borderTopColor:aa,borderRightColor:aa,borderBottomColor:aa,borderLeftColor:aa,filter:ME,WebkitFilter:ME},ND=n=>sU[n];function RD(n,r){let a=ND(n);return a!==ME&&(a=Pd),a.getAnimatableNone?a.getAnimatableNone(r):void 0}const lU=new Set(["auto","none","0"]);function uU(n,r,a){let u=0,p;for(;u<n.length&&!p;){const M=n[u];typeof M=="string"&&!lU.has(M)&&jg(M).values.length&&(p=n[u]),u++}if(p&&a)for(const M of r)n[M]=RD(a,p)}class cU extends vE{constructor(r,a,u,p,M){super(r,a,u,p,M,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:a,name:u}=this;if(!a||!a.current)return;super.readKeyframes();for(let b=0;b<r.length;b++){let C=r[b];if(typeof C=="string"&&(C=C.trim(),qS(C))){const D=xD(C,a.current);D!==void 0&&(r[b]=D),b===r.length-1&&(this.finalKeyframe=C)}}if(this.resolveNoneKeyframes(),!TD.has(u)||r.length!==2)return;const[p,M]=r,w=AD(p),g=AD(M);if(w!==g)if(hD(w)&&hD(g))for(let b=0;b<r.length;b++){const C=r[b];typeof C=="string"&&(r[b]=parseFloat(C))}else pp[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:a}=this,u=[];for(let p=0;p<r.length;p++)(r[p]===null||rU(r[p]))&&u.push(p);u.length&&uU(r,u,a)}measureInitialState(){const{element:r,unresolvedKeyframes:a,name:u}=this;if(!r||!r.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pp[u](r.measureViewportBox(),window.getComputedStyle(r.current)),a[0]=this.measuredOrigin;const p=a[a.length-1];p!==void 0&&r.getValue(u,p).jump(p,!1)}measureEndState(){const{element:r,name:a,unresolvedKeyframes:u}=this;if(!r||!r.current)return;const p=r.getValue(a);p&&p.jump(this.measuredOrigin,!1);const M=u.length-1,w=u[M];u[M]=pp[a](r.measureViewportBox(),window.getComputedStyle(r.current)),w!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=w),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,b])=>{r.getValue(g).set(b)}),this.resolveNoneKeyframes()}}function fU(n,r,a){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const p=a?.[n]??u.querySelectorAll(n);return p?Array.from(p):[]}return Array.from(n)}const kD=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function OD(n){return kA(n)&&"offsetHeight"in n}var dU={env:{}};const zD=30,hU=n=>!isNaN(parseFloat(n));class pU{constructor(r,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const p=gs.now();if(this.updatedAt!==p&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const M of this.dependents)M.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=a.owner}setCurrent(r){this.current=r,this.updatedAt=gs.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=hU(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return dU.env.NODE_ENV!=="production"&&BS(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",r)}on(r,a){this.events[r]||(this.events[r]=new FS);const u=this.events[r].add(a);return r==="change"?()=>{u(),Mi.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,a){this.passiveEffect=r,this.stopPassiveEffect=a}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,a,u){this.set(a),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-u}jump(r,a=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=gs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>zD)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,zD);return zA(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(r){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=r(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vm(n,r){return new pU(n,r)}const{schedule:SE}=qA(queueMicrotask,!1),Cu={x:!1,y:!1};function LD(){return Cu.x||Cu.y}function mU(n){return n==="x"||n==="y"?Cu[n]?null:(Cu[n]=!0,()=>{Cu[n]=!1}):Cu.x||Cu.y?null:(Cu.x=Cu.y=!0,()=>{Cu.x=Cu.y=!1})}function ID(n,r){const a=fU(n),u=new AbortController,p={passive:!0,...r,signal:u.signal};return[a,p,()=>u.abort()]}function jD(n){return!(n.pointerType==="touch"||LD())}function vU(n,r,a={}){const[u,p,M]=ID(n,a),w=g=>{if(!jD(g))return;const{target:b}=g,C=r(b,g);if(typeof C!="function"||!b)return;const D=k=>{jD(k)&&(C(k),b.removeEventListener("pointerleave",D))};b.addEventListener("pointerleave",D,p)};return u.forEach(g=>{g.addEventListener("pointerenter",w,p)}),M}const UD=(n,r)=>r?n===r?!0:UD(n,r.parentElement):!1,EE=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,gU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yU(n){return gU.has(n.tagName)||n.tabIndex!==-1}const X0=new WeakSet;function VD(n){return r=>{r.key==="Enter"&&n(r)}}function xE(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const MU=(n,r)=>{const a=n.currentTarget;if(!a)return;const u=VD(()=>{if(X0.has(a))return;xE(a,"down");const p=VD(()=>{xE(a,"up")}),M=()=>xE(a,"cancel");a.addEventListener("keyup",p,r),a.addEventListener("blur",M,r)});a.addEventListener("keydown",u,r),a.addEventListener("blur",()=>a.removeEventListener("keydown",u),r)};function _D(n){return EE(n)&&!LD()}function wU(n,r,a={}){const[u,p,M]=ID(n,a),w=g=>{const b=g.currentTarget;if(!_D(g))return;X0.add(b);const C=r(b,g),D=(L,F)=>{window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",I),X0.has(b)&&X0.delete(b),_D(L)&&typeof C=="function"&&C(L,{success:F})},k=L=>{D(L,b===window||b===document||a.useGlobalTarget||UD(b,L.target))},I=L=>{D(L,!1)};window.addEventListener("pointerup",k,p),window.addEventListener("pointercancel",I,p)};return u.forEach(g=>{(a.useGlobalTarget?window:g).addEventListener("pointerdown",w,p),OD(g)&&(g.addEventListener("focus",C=>MU(C,p)),!yU(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),M}function PD(n){return kA(n)&&"ownerSVGElement"in n}function SU(n){return PD(n)&&n.tagName==="svg"}const Eo=n=>!!(n&&n.getVelocity),EU=[...CD,aa,Pd],xU=n=>EU.find(bD(n)),TE=Ae.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function FD(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function TU(...n){return r=>{let a=!1;const u=n.map(p=>{const M=FD(p,r);return!a&&typeof M=="function"&&(a=!0),M});if(a)return()=>{for(let p=0;p<u.length;p++){const M=u[p];typeof M=="function"?M():FD(n[p],null)}}}}function bU(...n){return Ae.useCallback(TU(...n),n)}class CU extends Ae.Component{getSnapshotBeforeUpdate(r){const a=this.props.childRef.current;if(a&&r.isPresent&&!this.props.isPresent){const u=a.offsetParent,p=OD(u)&&u.offsetWidth||0,M=this.props.sizeRef.current;M.height=a.offsetHeight||0,M.width=a.offsetWidth||0,M.top=a.offsetTop,M.left=a.offsetLeft,M.right=p-M.width-M.left}return null}componentDidUpdate(){}render(){return this.props.children}}function AU({children:n,isPresent:r,anchorX:a,root:u}){const p=Ae.useId(),M=Ae.useRef(null),w=Ae.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=Ae.useContext(TE),b=bU(M,n?.ref);return Ae.useInsertionEffect(()=>{const{width:C,height:D,top:k,left:I,right:L}=w.current;if(r||!M.current||!C||!D)return;const F=a==="left"?`left: ${I}`:`right: ${L}`;M.current.dataset.motionPopId=p;const Q=document.createElement("style");g&&(Q.nonce=g);const ue=u??document.head;return ue.appendChild(Q),Q.sheet&&Q.sheet.insertRule(`
165
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dA,vs.createPortal=kq,vs.createRoot=zq,vs.findDOMNode=Cq,vs.flushSync=Iq,vs.hydrate=Aq,vs.hydrateRoot=Lq,vs.render=Dq,vs.unmountComponentAtNode=Rq,vs.unstable_batchedUpdates=BC,vs.unstable_renderSubtreeIntoContainer=Oq,vs.version=aA,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})(),vs}var CA;function AA(){if(CA)return B0.exports;CA=1;var n={env:{}};function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(n.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(a){console.error(a)}}}return n.env.NODE_ENV==="production"?(r(),B0.exports=w4()):B0.exports=S4(),B0.exports}var DA;function E4(){if(DA)return km;DA=1;var n={env:{}},r=AA();if(n.env.NODE_ENV==="production")km.createRoot=r.createRoot,km.hydrateRoot=r.hydrateRoot;else{var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;km.createRoot=function(u,p){a.usingClientEntryPoint=!0;try{return r.createRoot(u,p)}finally{a.usingClientEntryPoint=!1}},km.hydrateRoot=function(u,p,M){a.usingClientEntryPoint=!0;try{return r.hydrateRoot(u,p,M)}finally{a.usingClientEntryPoint=!1}}}return km}var x4=E4();const T4='@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-14{right:calc(var(--spacing)*14)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-16{bottom:calc(var(--spacing)*16)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:30rem){.container{max-width:30rem}}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}@media(min-width:120rem){.container{max-width:120rem}}@media(min-width:160rem){.container{max-width:160rem}}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.flex{display:flex}.inline{display:inline}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\\[50vh\\]{height:50vh}.h-\\[200px\\]{height:200px}.h-\\[500px\\]{height:500px}.h-full{height:100%}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-\\[100\\%\\]{width:100%}.w-\\[200px\\]{width:200px}.w-full{width:100%}.max-w-\\[70\\%\\]{max-width:70%}.max-w-full{max-width:100%}.min-w-\\[70\\%\\]{min-width:70%}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.bg-\\[\\#EFF1FF\\]{background-color:#eff1ff}.bg-\\[\\#F3F3F3\\]{background-color:#f3f3f3}.bg-\\[\\#F5605724\\]{background-color:#f5605724}.bg-\\[\\#FFFFFF\\]{background-color:#fff}.bg-gray-200{background-color:var(--color-gray-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#0D082C\\]{color:#0d082c}.text-\\[\\#283068\\]{color:#283068}.text-black{color:var(--color-black)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.italic{font-style:italic}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.placeholder\\:text-gray-500::placeholder{color:var(--color-gray-500)}@media(hover:hover){.hover\\:bg-\\[\\#283068\\]:hover{background-color:#283068}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:opacity-80:hover{opacity:.8}}@media(min-width:40rem){.sm\\:max-w-none{max-width:none}}@media(min-width:48rem){.md\\:h-\\[60vh\\]{height:60vh}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.lg\\:h-\\[65vh\\]{height:65vh}}@media(min-width:96rem){.\\32xl\\:right-20{right:calc(var(--spacing)*20)}.\\32xl\\:bottom-18{bottom:calc(var(--spacing)*18)}.\\32xl\\:bottom-24{bottom:calc(var(--spacing)*24)}.\\32xl\\:h-8{height:calc(var(--spacing)*8)}.\\32xl\\:h-10{height:calc(var(--spacing)*10)}.\\32xl\\:h-12{height:calc(var(--spacing)*12)}.\\32xl\\:w-8{width:calc(var(--spacing)*8)}.\\32xl\\:w-10{width:calc(var(--spacing)*10)}.\\32xl\\:w-12{width:calc(var(--spacing)*12)}}.custom-scrollbar::-webkit-scrollbar{width:4px;height:px}.custom-scrollbar::-webkit-scrollbar-track{background:0 0}.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(#21294c,#61b872);border-radius:8px;transition:background .3s,width .3s}.custom-scrollbar:hover::-webkit-scrollbar-thumb{background:linear-gradient(#283950,#4ae48b);width:8px}.custom-scrollbar::-webkit-scrollbar-thumb:active{background:linear-gradient(#1b2124,#2ecc71)}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#21294c #f3f3f3}.custom-scrollbar:after{content:"";pointer-events:none;background:linear-gradient(#0000,#fff);width:100%;height:20px;position:absolute;bottom:0;left:0}.inputHeight{height:40px}@media(min-width:48rem){.inputHeight{height:36px}}@media(min-width:64rem){.inputHeight{height:38px}}@media(min-width:80rem){.inputHeight{height:42px}}@media(min-width:96rem){.inputHeight{height:46px}}@media(min-width:120rem){.inputHeight{height:50px}}@media(min-width:160rem){.inputHeight{height:54px}}.fs32{font-family:Manrope,sans-serif;font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}@media(min-width:48rem){.fs32{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:64rem){.fs32{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:80rem){.fs32{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:96rem){.fs32{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media(min-width:120rem){.fs32{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}}.fs28{font-family:Manrope,sans-serif;font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}@media(min-width:48rem){.fs28{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:64rem){.fs28{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:80rem){.fs28{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:96rem){.fs28{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}@media(min-width:120rem){.fs28{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}.fs24{font-family:Manrope,sans-serif;font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}@media(min-width:48rem){.fs24{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.fs24{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:80rem){.fs24{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:96rem){.fs24{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:120rem){.fs24{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}.fs22{font-family:Manrope,sans-serif;font-size:22px}@media(min-width:48rem){.fs22{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:64rem){.fs22{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:80rem){.fs22{font-size:22px}}@media(min-width:96rem){.fs22{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:120rem){.fs22{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:160rem){.fs22{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}.fs20{font-family:Manrope,sans-serif;font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}@media(min-width:48rem){.fs20{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:64rem){.fs20{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:80rem){.fs20{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:96rem){.fs20{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:120rem){.fs20{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:160rem){.fs20{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}.fs18{font-family:Manrope,sans-serif;font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}@media(min-width:48rem){.fs18{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:64rem){.fs18{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:80rem){.fs18{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:96rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:120rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}@media(min-width:160rem){.fs18{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}.fs16{font-family:Manrope,sans-serif;font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}@media(min-width:48rem){.fs16{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:64rem){.fs16{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:80rem){.fs16{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:96rem){.fs16{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:120rem){.fs16{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:160rem){.fs16{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}}.fs14{font-family:Manrope,sans-serif;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}@media(min-width:48rem){.fs14{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:64rem){.fs14{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:80rem){.fs14{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:96rem){.fs14{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:120rem){.fs14{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media(min-width:160rem){.fs14{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}.fs12{font-family:Manrope,sans-serif;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}@media(min-width:48rem){.fs12{font-size:8px}}@media(min-width:64rem){.fs12{font-size:10px}}@media(min-width:80rem){.fs12{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:96rem){.fs12{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:120rem){.fs12{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:160rem){.fs12{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}.fs10{font-family:Manrope,sans-serif;font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}@media(min-width:48rem){.fs10{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));font-size:7px}}@media(min-width:64rem){.fs10{font-size:9px}}@media(min-width:96rem){.fs10{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:120rem){.fs10{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:160rem){.fs10{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}}:host{color:#000;--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;font-family:Manrope,sans-serif;font-size:16px;line-height:1.5}:host *,:host :before,:host :after{box-sizing:border-box}.chat-main-gradient{background:linear-gradient(270deg,#ffe6e4,#ffe6e4,#fdaca7b3)}.greeting-text-gradient{color:#0000;background:linear-gradient(270deg,#f56057,#a03f39,#283068);-webkit-background-clip:text;background-clip:text}.user-msg-gradient{background:linear-gradient(90deg,#4f5fce,#2d3776)}.chat-header-gradient{background:linear-gradient(90deg,#283068,#49507f,#49507f)}.header{top:calc(var(--spacing)*0);right:calc(var(--spacing)*0);left:calc(var(--spacing)*0);z-index:10;background-color:#fff;position:fixed}.appHeader{border-bottom-style:var(--tw-border-style);vertical-align:middle;border-color:#f3f3f3;border-bottom-width:1px;justify-content:space-between;align-items:center;height:72px;display:flex}@media(min-width:48rem){.appHeader{height:45px}}@media(min-width:64rem){.appHeader{height:54px}}@media(min-width:80rem){.appHeader{height:62px}}@media(min-width:96rem){.appHeader{height:65px}}@media(min-width:120rem){.appHeader{height:72px}}@media(min-width:160rem){.appHeader{height:75px}}.sidebar{bottom:calc(var(--spacing)*0);z-index:5;border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px;background-color:#fff;border-color:#f3f3f3;position:fixed;top:72px;overflow-y:auto}@media(min-width:48rem){.sidebar{top:45px}}@media(min-width:64rem){.sidebar{top:54px}}@media(min-width:80rem){.sidebar{top:62px}}@media(min-width:96rem){.sidebar{top:65px}}@media(min-width:120rem){.sidebar{top:72px}}@media(min-width:160rem){.sidebar{top:75px}}.sidebar{width:220px}@media(min-width:48rem){.sidebar{width:190px}}@media(min-width:64rem){.sidebar{width:210px}}@media(min-width:80rem){.sidebar{width:260px}}@media(min-width:96rem){.sidebar{width:280px}}@media(min-width:120rem){.sidebar{width:300px}}@media(min-width:160rem){.sidebar{width:280px}}.layoutBodyWithSidebar{right:calc(var(--spacing)*0);z-index:0;padding-top:calc(var(--spacing)*6);padding-right:calc(var(--spacing)*6);padding-bottom:calc(var(--spacing)*4);padding-left:calc(var(--spacing)*6);position:absolute;left:220px}@media(min-width:48rem){.layoutBodyWithSidebar{left:190px}}@media(min-width:64rem){.layoutBodyWithSidebar{left:210px}}@media(min-width:80rem){.layoutBodyWithSidebar{left:260px}}@media(min-width:96rem){.layoutBodyWithSidebar{left:280px}}@media(min-width:120rem){.layoutBodyWithSidebar{left:300px}}@media(min-width:160rem){.layoutBodyWithSidebar{left:280px}}.layoutBodyWithSidebar{top:72px}@media(min-width:48rem){.layoutBodyWithSidebar{top:45px}}@media(min-width:64rem){.layoutBodyWithSidebar{top:54px}}@media(min-width:80rem){.layoutBodyWithSidebar{top:62px}}@media(min-width:96rem){.layoutBodyWithSidebar{top:65px}}@media(min-width:120rem){.layoutBodyWithSidebar{top:72px}}@media(min-width:160rem){.layoutBodyWithSidebar{top:75px}}.layoutBodyWithSidebar{min-height:calc(100vh - 72px)}@media(min-width:48rem){.layoutBodyWithSidebar{min-height:calc(100vh - 45px)}}@media(min-width:64rem){.layoutBodyWithSidebar{min-height:calc(100vh - 54px)}}@media(min-width:80rem){.layoutBodyWithSidebar{min-height:calc(100vh - 62px)}}@media(min-width:96rem){.layoutBodyWithSidebar{min-height:calc(100vh - 65px)}}@media(min-width:120rem){.layoutBodyWithSidebar{min-height:calc(100vh - 72px)}}@media(min-width:160rem){.layoutBodyWithSidebar{min-height:calc(100vh - 75px)}}.layoutBodyWithoutSidebar{right:calc(var(--spacing)*0);left:calc(var(--spacing)*0);padding-inline-start:calc(var(--spacing)*6);padding-inline-end:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*3);padding-bottom:calc(var(--spacing)*4);flex:1;top:72px}@media(min-width:48rem){.layoutBodyWithoutSidebar{top:45px}}@media(min-width:64rem){.layoutBodyWithoutSidebar{top:54px}}@media(min-width:80rem){.layoutBodyWithoutSidebar{top:62px}}@media(min-width:96rem){.layoutBodyWithoutSidebar{top:65px}}@media(min-width:120rem){.layoutBodyWithoutSidebar{top:72px}}@media(min-width:160rem){.layoutBodyWithoutSidebar{top:75px}}.inputWrapper{align-items:center;width:100%;display:flex;position:relative}.input{appearance:none;border-style:var(--tw-border-style);border-width:1.5px;border-color:var(--color-gray-200);color:#21294c;border-radius:.25rem;flex-grow:1;width:100%}.input::placeholder{color:#666}.input:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style:none;box-shadow:none;outline-style:none}.input:focus:disabled{cursor:not-allowed;background-color:#666}.leftIcon{left:calc(var(--spacing)*3);color:#21294c;position:absolute}.leftIcon+.input{padding-left:calc(var(--spacing)*10)}.rightIcon{right:calc(var(--spacing)*3);color:#21294c;position:absolute}.rightIcon+.input{padding-right:calc(var(--spacing)*10)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}';var Ae=fp();const Qe=hA(Ae),b4="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2013.5997%202.37562%2015.1116%203.04346%2016.4525C3.22094%2016.8088%203.28001%2017.2161%203.17712%2017.6006L2.58151%2019.8267C2.32295%2020.793%203.20701%2021.677%204.17335%2021.4185L6.39939%2020.8229C6.78393%2020.72%207.19121%2020.7791%207.54753%2020.9565C8.88837%2021.6244%2010.4003%2022%2012%2022Z'%20fill='%23262D7B'/%3e%3c/svg%3e",LS=Ae.createContext({});function IS(n){const r=Ae.useRef(null);return r.current===null&&(r.current=n()),r.current}const jS=typeof window<"u",NA=jS?Ae.useLayoutEffect:Ae.useEffect,Y0=Ae.createContext(null);function US(n,r){n.indexOf(r)===-1&&n.push(r)}function VS(n,r){const a=n.indexOf(r);a>-1&&n.splice(a,1)}const Cf=(n,r,a)=>a>r?r:a<n?n:a;function _S(n,r){return r?`${n}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${r}`:n}var C4={env:{}};let Om=()=>{},Af=()=>{};C4.env.NODE_ENV!=="production"&&(Om=(n,r,a)=>{!n&&typeof console<"u"&&console.warn(_S(r,a))},Af=(n,r,a)=>{if(!n)throw new Error(_S(r,a))});const Df={},RA=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function kA(n){return typeof n=="object"&&n!==null}const OA=n=>/^0[^.\s]+$/u.test(n);function PS(n){let r;return()=>(r===void 0&&(r=n()),r)}const wl=n=>n,A4=(n,r)=>a=>r(n(a)),Rg=(...n)=>n.reduce(A4),kg=(n,r,a)=>{const u=r-n;return u===0?1:(a-n)/u};class FS{constructor(){this.subscriptions=[]}add(r){return US(this.subscriptions,r),()=>VS(this.subscriptions,r)}notify(r,a,u){const p=this.subscriptions.length;if(p)if(p===1)this.subscriptions[0](r,a,u);else for(let M=0;M<p;M++){const w=this.subscriptions[M];w&&w(r,a,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bu=n=>n*1e3,Sl=n=>n/1e3;function zA(n,r){return r?n*(1e3/r):0}const LA=new Set;function BS(n,r,a){n||LA.has(r)||(console.warn(_S(r,a)),LA.add(r))}const IA=(n,r,a)=>(((1-3*a+3*r)*n+(3*a-6*r))*n+3*r)*n,D4=1e-7,N4=12;function R4(n,r,a,u,p){let M,w,g=0;do w=r+(a-r)/2,M=IA(w,u,p)-n,M>0?a=w:r=w;while(Math.abs(M)>D4&&++g<N4);return w}function Og(n,r,a,u){if(n===r&&a===u)return wl;const p=M=>R4(M,0,1,n,a);return M=>M===0||M===1?M:IA(p(M),r,u)}const jA=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,UA=n=>r=>1-n(1-r),VA=Og(.33,1.53,.69,.99),QS=UA(VA),_A=jA(QS),PA=n=>(n*=2)<1?.5*QS(n):.5*(2-Math.pow(2,-10*(n-1))),YS=n=>1-Math.sin(Math.acos(n)),FA=UA(YS),BA=jA(YS),k4=Og(.42,0,1,1),O4=Og(0,0,.58,1),QA=Og(.42,0,.58,1),z4=n=>Array.isArray(n)&&typeof n[0]!="number",YA=n=>Array.isArray(n)&&typeof n[0]=="number",HA={linear:wl,easeIn:k4,easeInOut:QA,easeOut:O4,circIn:YS,circInOut:BA,circOut:FA,backIn:QS,backInOut:_A,backOut:VA,anticipate:PA},L4=n=>typeof n=="string",WA=n=>{if(YA(n)){Af(n.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[r,a,u,p]=n;return Og(r,a,u,p)}else if(L4(n))return Af(HA[n]!==void 0,`Invalid easing type '${n}'`,"invalid-easing-type"),HA[n];return n},H0=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function I4(n,r){let a=new Set,u=new Set,p=!1,M=!1;const w=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function b(D){w.has(D)&&(C.schedule(D),n()),D(g)}const C={schedule:(D,k=!1,I=!1)=>{const F=I&&p?a:u;return k&&w.add(D),F.has(D)||F.add(D),D},cancel:D=>{u.delete(D),w.delete(D)},process:D=>{if(g=D,p){M=!0;return}p=!0,[a,u]=[u,a],a.forEach(b),a.clear(),p=!1,M&&(M=!1,C.process(D))}};return C}const j4=40;function qA(n,r){let a=!1,u=!0;const p={delta:0,timestamp:0,isProcessing:!1},M=()=>a=!0,w=H0.reduce(($,be)=>($[be]=I4(M),$),{}),{setup:g,read:b,resolveKeyframes:C,preUpdate:D,update:k,preRender:I,render:L,postRender:F}=w,Q=()=>{const $=Df.useManualTiming?p.timestamp:performance.now();a=!1,Df.useManualTiming||(p.delta=u?1e3/60:Math.max(Math.min($-p.timestamp,j4),1)),p.timestamp=$,p.isProcessing=!0,g.process(p),b.process(p),C.process(p),D.process(p),k.process(p),I.process(p),L.process(p),F.process(p),p.isProcessing=!1,a&&r&&(u=!1,n(Q))},ue=()=>{a=!0,u=!0,p.isProcessing||n(Q)};return{schedule:H0.reduce(($,be)=>{const pe=w[be];return $[be]=(ve,Ne=!1,xe=!1)=>(a||ue(),pe.schedule(ve,Ne,xe)),$},{}),cancel:$=>{for(let be=0;be<H0.length;be++)w[H0[be]].cancel($)},state:p,steps:w}}const{schedule:Mi,cancel:Vd,state:Ga,steps:HS}=qA(typeof requestAnimationFrame<"u"?requestAnimationFrame:wl,!0);let W0;function U4(){W0=void 0}const gs={now:()=>(W0===void 0&&gs.set(Ga.isProcessing||Df.useManualTiming?Ga.timestamp:performance.now()),W0),set:n=>{W0=n,queueMicrotask(U4)}},KA=n=>r=>typeof r=="string"&&r.startsWith(n),WS=KA("--"),V4=KA("var(--"),qS=n=>V4(n)?_4.test(n.split("/*")[0].trim()):!1,_4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zm={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},zg={...zm,transform:n=>Cf(0,1,n)},q0={...zm,default:1},Lg=n=>Math.round(n*1e5)/1e5,KS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P4(n){return n==null}const F4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,GS=(n,r)=>a=>!!(typeof a=="string"&&F4.test(a)&&a.startsWith(n)||r&&!P4(a)&&Object.prototype.hasOwnProperty.call(a,r)),GA=(n,r,a)=>u=>{if(typeof u!="string")return u;const[p,M,w,g]=u.match(KS);return{[n]:parseFloat(p),[r]:parseFloat(M),[a]:parseFloat(w),alpha:g!==void 0?parseFloat(g):1}},B4=n=>Cf(0,255,n),JS={...zm,transform:n=>Math.round(B4(n))},dp={test:GS("rgb","red"),parse:GA("red","green","blue"),transform:({red:n,green:r,blue:a,alpha:u=1})=>"rgba("+JS.transform(n)+", "+JS.transform(r)+", "+JS.transform(a)+", "+Lg(zg.transform(u))+")"};function Q4(n){let r="",a="",u="",p="";return n.length>5?(r=n.substring(1,3),a=n.substring(3,5),u=n.substring(5,7),p=n.substring(7,9)):(r=n.substring(1,2),a=n.substring(2,3),u=n.substring(3,4),p=n.substring(4,5),r+=r,a+=a,u+=u,p+=p),{red:parseInt(r,16),green:parseInt(a,16),blue:parseInt(u,16),alpha:p?parseInt(p,16)/255:1}}const XS={test:GS("#"),parse:Q4,transform:dp.transform},Ig=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),_d=Ig("deg"),wc=Ig("%"),hn=Ig("px"),Y4=Ig("vh"),H4=Ig("vw"),JA={...wc,parse:n=>wc.parse(n)/100,transform:n=>wc.transform(n*100)},Lm={test:GS("hsl","hue"),parse:GA("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:a,alpha:u=1})=>"hsla("+Math.round(n)+", "+wc.transform(Lg(r))+", "+wc.transform(Lg(a))+", "+Lg(zg.transform(u))+")"},aa={test:n=>dp.test(n)||XS.test(n)||Lm.test(n),parse:n=>dp.test(n)?dp.parse(n):Lm.test(n)?Lm.parse(n):XS.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?dp.transform(n):Lm.transform(n),getAnimatableNone:n=>{const r=aa.parse(n);return r.alpha=0,aa.transform(r)}},W4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q4(n){return isNaN(n)&&typeof n=="string"&&(n.match(KS)?.length||0)+(n.match(W4)?.length||0)>0}const XA="number",ZA="color",K4="var",G4="var(",$A="${}",J4=/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 jg(n){const r=n.toString(),a=[],u={color:[],number:[],var:[]},p=[];let M=0;const g=r.replace(J4,b=>(aa.test(b)?(u.color.push(M),p.push(ZA),a.push(aa.parse(b))):b.startsWith(G4)?(u.var.push(M),p.push(K4),a.push(b)):(u.number.push(M),p.push(XA),a.push(parseFloat(b))),++M,$A)).split($A);return{values:a,split:g,indexes:u,types:p}}function eD(n){return jg(n).values}function tD(n){const{split:r,types:a}=jg(n),u=r.length;return p=>{let M="";for(let w=0;w<u;w++)if(M+=r[w],p[w]!==void 0){const g=a[w];g===XA?M+=Lg(p[w]):g===ZA?M+=aa.transform(p[w]):M+=p[w]}return M}}const X4=n=>typeof n=="number"?0:aa.test(n)?aa.getAnimatableNone(n):n;function Z4(n){const r=eD(n);return tD(n)(r.map(X4))}const Pd={test:q4,parse:eD,createTransformer:tD,getAnimatableNone:Z4};function ZS(n,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<.16666666666666666?n+(r-n)*6*a:a<.5?r:a<.6666666666666666?n+(r-n)*(.6666666666666666-a)*6:n}function $4({hue:n,saturation:r,lightness:a,alpha:u}){n/=360,r/=100,a/=100;let p=0,M=0,w=0;if(!r)p=M=w=a;else{const g=a<.5?a*(1+r):a+r-a*r,b=2*a-g;p=ZS(b,g,n+.3333333333333333),M=ZS(b,g,n),w=ZS(b,g,n-.3333333333333333)}return{red:Math.round(p*255),green:Math.round(M*255),blue:Math.round(w*255),alpha:u}}function K0(n,r){return a=>a>0?r:n}const Ni=(n,r,a)=>n+(r-n)*a,$S=(n,r,a)=>{const u=n*n,p=a*(r*r-u)+u;return p<0?0:Math.sqrt(p)},ej=[XS,dp,Lm],tj=n=>ej.find(r=>r.test(n));function nD(n){const r=tj(n);if(Om(!!r,`'${n}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!r)return!1;let a=r.parse(n);return r===Lm&&(a=$4(a)),a}const rD=(n,r)=>{const a=nD(n),u=nD(r);if(!a||!u)return K0(n,r);const p={...a};return M=>(p.red=$S(a.red,u.red,M),p.green=$S(a.green,u.green,M),p.blue=$S(a.blue,u.blue,M),p.alpha=Ni(a.alpha,u.alpha,M),dp.transform(p))},eE=new Set(["none","hidden"]);function nj(n,r){return eE.has(n)?a=>a<=0?n:r:a=>a>=1?r:n}function rj(n,r){return a=>Ni(n,r,a)}function tE(n){return typeof n=="number"?rj:typeof n=="string"?qS(n)?K0:aa.test(n)?rD:oj:Array.isArray(n)?iD:typeof n=="object"?aa.test(n)?rD:ij:K0}function iD(n,r){const a=[...n],u=a.length,p=n.map((M,w)=>tE(M)(M,r[w]));return M=>{for(let w=0;w<u;w++)a[w]=p[w](M);return a}}function ij(n,r){const a={...n,...r},u={};for(const p in a)n[p]!==void 0&&r[p]!==void 0&&(u[p]=tE(n[p])(n[p],r[p]));return p=>{for(const M in u)a[M]=u[M](p);return a}}function aj(n,r){const a=[],u={color:0,var:0,number:0};for(let p=0;p<r.values.length;p++){const M=r.types[p],w=n.indexes[M][u[M]],g=n.values[w]??0;a[p]=g,u[M]++}return a}const oj=(n,r)=>{const a=Pd.createTransformer(r),u=jg(n),p=jg(r);return u.indexes.var.length===p.indexes.var.length&&u.indexes.color.length===p.indexes.color.length&&u.indexes.number.length>=p.indexes.number.length?eE.has(n)&&!p.values.length||eE.has(r)&&!u.values.length?nj(n,r):Rg(iD(aj(u,p),p.values),a):(Om(!0,`Complex values '${n}' and '${r}' 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.`,"complex-values-different"),K0(n,r))};function aD(n,r,a){return typeof n=="number"&&typeof r=="number"&&typeof a=="number"?Ni(n,r,a):tE(n)(n,r)}const sj=n=>{const r=({timestamp:a})=>n(a);return{start:(a=!0)=>Mi.update(r,a),stop:()=>Vd(r),now:()=>Ga.isProcessing?Ga.timestamp:gs.now()}},oD=(n,r,a=10)=>{let u="";const p=Math.max(Math.round(r/a),2);for(let M=0;M<p;M++)u+=Math.round(n(M/(p-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},G0=2e4;function nE(n){let r=0;const a=50;let u=n.next(r);for(;!u.done&&r<G0;)r+=a,u=n.next(r);return r>=G0?1/0:r}function lj(n,r=100,a){const u=a({...n,keyframes:[0,r]}),p=Math.min(nE(u),G0);return{type:"keyframes",ease:M=>u.next(p*M).value/r,duration:Sl(p)}}const uj=5;function sD(n,r,a){const u=Math.max(r-uj,0);return zA(a-n(u),r-u)}const Ri={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},rE=.001;function cj({duration:n=Ri.duration,bounce:r=Ri.bounce,velocity:a=Ri.velocity,mass:u=Ri.mass}){let p,M;Om(n<=bu(Ri.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let w=1-r;w=Cf(Ri.minDamping,Ri.maxDamping,w),n=Cf(Ri.minDuration,Ri.maxDuration,Sl(n)),w<1?(p=C=>{const D=C*w,k=D*n,I=D-a,L=iE(C,w),F=Math.exp(-k);return rE-I/L*F},M=C=>{const k=C*w*n,I=k*a+a,L=Math.pow(w,2)*Math.pow(C,2)*n,F=Math.exp(-k),Q=iE(Math.pow(C,2),w);return(-p(C)+rE>0?-1:1)*((I-L)*F)/Q}):(p=C=>{const D=Math.exp(-C*n),k=(C-a)*n+1;return-rE+D*k},M=C=>{const D=Math.exp(-C*n),k=(a-C)*(n*n);return D*k});const g=5/n,b=dj(p,M,g);if(n=bu(n),isNaN(b))return{stiffness:Ri.stiffness,damping:Ri.damping,duration:n};{const C=Math.pow(b,2)*u;return{stiffness:C,damping:w*2*Math.sqrt(u*C),duration:n}}}const fj=12;function dj(n,r,a){let u=a;for(let p=1;p<fj;p++)u=u-n(u)/r(u);return u}function iE(n,r){return n*Math.sqrt(1-r*r)}const hj=["duration","bounce"],pj=["stiffness","damping","mass"];function lD(n,r){return r.some(a=>n[a]!==void 0)}function mj(n){let r={velocity:Ri.velocity,stiffness:Ri.stiffness,damping:Ri.damping,mass:Ri.mass,isResolvedFromDuration:!1,...n};if(!lD(n,pj)&&lD(n,hj))if(n.visualDuration){const a=n.visualDuration,u=2*Math.PI/(a*1.2),p=u*u,M=2*Cf(.05,1,1-(n.bounce||0))*Math.sqrt(p);r={...r,mass:Ri.mass,stiffness:p,damping:M}}else{const a=cj(n);r={...r,...a,mass:Ri.mass},r.isResolvedFromDuration=!0}return r}function J0(n=Ri.visualDuration,r=Ri.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:u,restDelta:p}=a;const M=a.keyframes[0],w=a.keyframes[a.keyframes.length-1],g={done:!1,value:M},{stiffness:b,damping:C,mass:D,duration:k,velocity:I,isResolvedFromDuration:L}=mj({...a,velocity:-Sl(a.velocity||0)}),F=I||0,Q=C/(2*Math.sqrt(b*D)),ue=w-M,le=Sl(Math.sqrt(b/D)),ee=Math.abs(ue)<5;u||(u=ee?Ri.restSpeed.granular:Ri.restSpeed.default),p||(p=ee?Ri.restDelta.granular:Ri.restDelta.default);let $;if(Q<1){const pe=iE(le,Q);$=ve=>{const Ne=Math.exp(-Q*le*ve);return w-Ne*((F+Q*le*ue)/pe*Math.sin(pe*ve)+ue*Math.cos(pe*ve))}}else if(Q===1)$=pe=>w-Math.exp(-le*pe)*(ue+(F+le*ue)*pe);else{const pe=le*Math.sqrt(Q*Q-1);$=ve=>{const Ne=Math.exp(-Q*le*ve),xe=Math.min(pe*ve,300);return w-Ne*((F+Q*le*ue)*Math.sinh(xe)+pe*ue*Math.cosh(xe))/pe}}const be={calculatedDuration:L&&k||null,next:pe=>{const ve=$(pe);if(L)g.done=pe>=k;else{let Ne=pe===0?F:0;Q<1&&(Ne=pe===0?bu(F):sD($,pe,ve));const xe=Math.abs(Ne)<=u,dt=Math.abs(w-ve)<=p;g.done=xe&&dt}return g.value=g.done?w:ve,g},toString:()=>{const pe=Math.min(nE(be),G0),ve=oD(Ne=>be.next(pe*Ne).value,pe,30);return pe+"ms "+ve},toTransition:()=>{}};return be}J0.applyToOptions=n=>{const r=lj(n,100,J0);return n.ease=r.ease,n.duration=bu(r.duration),n.type="keyframes",n};function aE({keyframes:n,velocity:r=0,power:a=.8,timeConstant:u=325,bounceDamping:p=10,bounceStiffness:M=500,modifyTarget:w,min:g,max:b,restDelta:C=.5,restSpeed:D}){const k=n[0],I={done:!1,value:k},L=xe=>g!==void 0&&xe<g||b!==void 0&&xe>b,F=xe=>g===void 0?b:b===void 0||Math.abs(g-xe)<Math.abs(b-xe)?g:b;let Q=a*r;const ue=k+Q,le=w===void 0?ue:w(ue);le!==ue&&(Q=le-k);const ee=xe=>-Q*Math.exp(-xe/u),$=xe=>le+ee(xe),be=xe=>{const dt=ee(xe),tt=$(xe);I.done=Math.abs(dt)<=C,I.value=I.done?le:tt};let pe,ve;const Ne=xe=>{L(I.value)&&(pe=xe,ve=J0({keyframes:[I.value,F(I.value)],velocity:sD($,xe,I.value),damping:p,stiffness:M,restDelta:C,restSpeed:D}))};return Ne(0),{calculatedDuration:null,next:xe=>{let dt=!1;return!ve&&pe===void 0&&(dt=!0,be(xe),Ne(xe)),pe!==void 0&&xe>=pe?ve.next(xe-pe):(!dt&&be(xe),I)}}}function vj(n,r,a){const u=[],p=a||Df.mix||aD,M=n.length-1;for(let w=0;w<M;w++){let g=p(n[w],n[w+1]);if(r){const b=Array.isArray(r)?r[w]||wl:r;g=Rg(b,g)}u.push(g)}return u}function gj(n,r,{clamp:a=!0,ease:u,mixer:p}={}){const M=n.length;if(Af(M===r.length,"Both input and output ranges must be the same length","range-length"),M===1)return()=>r[0];if(M===2&&r[0]===r[1])return()=>r[1];const w=n[0]===n[1];n[0]>n[M-1]&&(n=[...n].reverse(),r=[...r].reverse());const g=vj(r,u,p),b=g.length,C=D=>{if(w&&D<n[0])return r[0];let k=0;if(b>1)for(;k<n.length-2&&!(D<n[k+1]);k++);const I=kg(n[k],n[k+1],D);return g[k](I)};return a?D=>C(Cf(n[0],n[M-1],D)):C}function yj(n,r){const a=n[n.length-1];for(let u=1;u<=r;u++){const p=kg(0,r,u);n.push(Ni(a,1,p))}}function Mj(n){const r=[0];return yj(r,n.length-1),r}function wj(n,r){return n.map(a=>a*r)}function Sj(n,r){return n.map(()=>r||QA).splice(0,n.length-1)}function Im({duration:n=300,keyframes:r,times:a,ease:u="easeInOut"}){const p=z4(u)?u.map(WA):WA(u),M={done:!1,value:r[0]},w=wj(a&&a.length===r.length?a:Mj(r),n),g=gj(w,r,{ease:Array.isArray(p)?p:Sj(r,p)});return{calculatedDuration:n,next:b=>(M.value=g(b),M.done=b>=n,M)}}const Ej=n=>n!==null;function oE(n,{repeat:r,repeatType:a="loop"},u,p=1){const M=n.filter(Ej),g=p<0||r&&a!=="loop"&&r%2===1?0:M.length-1;return!g||u===void 0?M[g]:u}const xj={decay:aE,inertia:aE,tween:Im,keyframes:Im,spring:J0};function uD(n){typeof n.type=="string"&&(n.type=xj[n.type])}class sE{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,a){return this.finished.then(r,a)}}var Tj={env:{}};const bj=n=>n/100;class lE extends sE{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==gs.now()&&this.tick(gs.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;uD(r);const{type:a=Im,repeat:u=0,repeatDelay:p=0,repeatType:M,velocity:w=0}=r;let{keyframes:g}=r;const b=a||Im;Tj.env.NODE_ENV!=="production"&&b!==Im&&Af(g.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${g}`,"spring-two-frames"),b!==Im&&typeof g[0]!="number"&&(this.mixKeyframes=Rg(bj,aD(g[0],g[1])),g=[0,100]);const C=b({...r,keyframes:g});M==="mirror"&&(this.mirroredGenerator=b({...r,keyframes:[...g].reverse(),velocity:-w})),C.calculatedDuration===null&&(C.calculatedDuration=nE(C));const{calculatedDuration:D}=C;this.calculatedDuration=D,this.resolvedDuration=D+p,this.totalDuration=this.resolvedDuration*(u+1)-p,this.generator=C}updateTime(r){const a=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(r,a=!1){const{generator:u,totalDuration:p,mixKeyframes:M,mirroredGenerator:w,resolvedDuration:g,calculatedDuration:b}=this;if(this.startTime===null)return u.next(0);const{delay:C=0,keyframes:D,repeat:k,repeatType:I,repeatDelay:L,type:F,onUpdate:Q,finalKeyframe:ue}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-p/this.speed,this.startTime)),a?this.currentTime=r:this.updateTime(r);const le=this.currentTime-C*(this.playbackSpeed>=0?1:-1),ee=this.playbackSpeed>=0?le<0:le>p;this.currentTime=Math.max(le,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let $=this.currentTime,be=u;if(k){const xe=Math.min(this.currentTime,p)/g;let dt=Math.floor(xe),tt=xe%1;!tt&&xe>=1&&(tt=1),tt===1&&dt--,dt=Math.min(dt,k+1),!!(dt%2)&&(I==="reverse"?(tt=1-tt,L&&(tt-=L/g)):I==="mirror"&&(be=w)),$=Cf(0,1,tt)*g}const pe=ee?{done:!1,value:D[0]}:be.next($);M&&(pe.value=M(pe.value));let{done:ve}=pe;!ee&&b!==null&&(ve=this.playbackSpeed>=0?this.currentTime>=p:this.currentTime<=0);const Ne=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ve);return Ne&&F!==aE&&(pe.value=oE(D,this.options,ue,this.speed)),Q&&Q(pe.value),Ne&&this.finish(),pe}then(r,a){return this.finished.then(r,a)}get duration(){return Sl(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Sl(r)}get time(){return Sl(this.currentTime)}set time(r){r=bu(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(gs.now());const a=this.playbackSpeed!==r;this.playbackSpeed=r,a&&(this.time=Sl(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=sj,startTime:a}=this.options;this.driver||(this.driver=r(p=>this.tick(p))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=a??u),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gs.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function Cj(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const hp=n=>n*180/Math.PI,uE=n=>{const r=hp(Math.atan2(n[1],n[0]));return cE(r)},Aj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:uE,rotateZ:uE,skewX:n=>hp(Math.atan(n[1])),skewY:n=>hp(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},cE=n=>(n=n%360,n<0&&(n+=360),n),cD=uE,fD=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),dD=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Dj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fD,scaleY:dD,scale:n=>(fD(n)+dD(n))/2,rotateX:n=>cE(hp(Math.atan2(n[6],n[5]))),rotateY:n=>cE(hp(Math.atan2(-n[2],n[0]))),rotateZ:cD,rotate:cD,skewX:n=>hp(Math.atan(n[4])),skewY:n=>hp(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function fE(n){return n.includes("scale")?1:0}function dE(n,r){if(!n||n==="none")return fE(r);const a=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,p;if(a)u=Dj,p=a;else{const g=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Aj,p=g}if(!p)return fE(r);const M=u[r],w=p[1].split(",").map(Rj);return typeof M=="function"?M(w):w[M]}const Nj=(n,r)=>{const{transform:a="none"}=getComputedStyle(n);return dE(a,r)};function Rj(n){return parseFloat(n.trim())}const jm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Um=new Set(jm),hD=n=>n===zm||n===hn,kj=new Set(["x","y","z"]),Oj=jm.filter(n=>!kj.has(n));function zj(n){const r=[];return Oj.forEach(a=>{const u=n.getValue(a);u!==void 0&&(r.push([a,u.get()]),u.set(a.startsWith("scale")?1:0))}),r}const pp={width:({x:n},{paddingLeft:r="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),height:({y:n},{paddingTop:r="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>dE(r,"x"),y:(n,{transform:r})=>dE(r,"y")};pp.translateX=pp.x,pp.translateY=pp.y;const mp=new Set;let hE=!1,pE=!1,mE=!1;function pD(){if(pE){const n=Array.from(mp).filter(u=>u.needsMeasurement),r=new Set(n.map(u=>u.element)),a=new Map;r.forEach(u=>{const p=zj(u);p.length&&(a.set(u,p),u.render())}),n.forEach(u=>u.measureInitialState()),r.forEach(u=>{u.render();const p=a.get(u);p&&p.forEach(([M,w])=>{u.getValue(M)?.set(w)})}),n.forEach(u=>u.measureEndState()),n.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}pE=!1,hE=!1,mp.forEach(n=>n.complete(mE)),mp.clear()}function mD(){mp.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(pE=!0)})}function Lj(){mE=!0,mD(),pD(),mE=!1}class vE{constructor(r,a,u,p,M,w=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=a,this.name=u,this.motionValue=p,this.element=M,this.isAsync=w}scheduleResolve(){this.state="scheduled",this.isAsync?(mp.add(this),hE||(hE=!0,Mi.read(mD),Mi.resolveKeyframes(pD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:a,element:u,motionValue:p}=this;if(r[0]===null){const M=p?.get(),w=r[r.length-1];if(M!==void 0)r[0]=M;else if(u&&a){const g=u.readValue(a,w);g!=null&&(r[0]=g)}r[0]===void 0&&(r[0]=w),p&&M===void 0&&p.set(r[0])}Cj(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),mp.delete(this)}cancel(){this.state==="scheduled"&&(mp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ij=n=>n.startsWith("--");function jj(n,r,a){Ij(r)?n.style.setProperty(r,a):n.style[r]=a}const Uj=PS(()=>window.ScrollTimeline!==void 0),Vj={};function _j(n,r){const a=PS(n);return()=>Vj[r]??a()}const vD=_j(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ug=([n,r,a,u])=>`cubic-bezier(${n}, ${r}, ${a}, ${u})`,gD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ug([0,.65,.55,1]),circOut:Ug([.55,0,1,.45]),backIn:Ug([.31,.01,.66,-.59]),backOut:Ug([.33,1.53,.69,.99])};function yD(n,r){if(n)return typeof n=="function"?vD()?oD(n,r):"ease-out":YA(n)?Ug(n):Array.isArray(n)?n.map(a=>yD(a,r)||gD.easeOut):gD[n]}function Pj(n,r,a,{delay:u=0,duration:p=300,repeat:M=0,repeatType:w="loop",ease:g="easeOut",times:b}={},C=void 0){const D={[r]:a};b&&(D.offset=b);const k=yD(g,p);Array.isArray(k)&&(D.easing=k);const I={delay:u,duration:p,easing:Array.isArray(k)?"linear":k,fill:"both",iterations:M+1,direction:w==="reverse"?"alternate":"normal"};return C&&(I.pseudoElement=C),n.animate(D,I)}function MD(n){return typeof n=="function"&&"applyToOptions"in n}function Fj({type:n,...r}){return MD(n)&&vD()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class Bj extends sE{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:a,name:u,keyframes:p,pseudoElement:M,allowFlatten:w=!1,finalKeyframe:g,onComplete:b}=r;this.isPseudoElement=!!M,this.allowFlatten=w,this.options=r,Af(typeof r.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const C=Fj(r);this.animation=Pj(a,u,p,C,M),C.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!M){const D=oE(p,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(D):jj(a,u,D),this.animation.cancel()}b?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Sl(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Sl(r)}get time(){return Sl(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=bu(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&Uj()?(this.animation.timeline=r,wl):a(this)}}const wD={anticipate:PA,backInOut:_A,circInOut:BA};function Qj(n){return n in wD}function Yj(n){typeof n.ease=="string"&&Qj(n.ease)&&(n.ease=wD[n.ease])}const SD=10;class Hj extends Bj{constructor(r){Yj(r),uD(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:a,onUpdate:u,onComplete:p,element:M,...w}=this.options;if(!a)return;if(r!==void 0){a.set(r);return}const g=new lE({...w,autoplay:!1}),b=bu(this.finishedTime??this.time);a.setWithVelocity(g.sample(b-SD).value,g.sample(b).value,SD),g.stop()}}const ED=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Pd.test(n)||n==="0")&&!n.startsWith("url("));function Wj(n){const r=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==r)return!0}function qj(n,r,a,u){const p=n[0];if(p===null)return!1;if(r==="display"||r==="visibility")return!0;const M=n[n.length-1],w=ED(p,r),g=ED(M,r);return Om(w===g,`You are trying to animate ${r} from "${p}" to "${M}". "${w?M:p}" is not an animatable value.`,"value-not-animatable"),!w||!g?!1:Wj(n)||(a==="spring"||MD(a))&&u}function gE(n){n.duration=0,n.type="keyframes"}const Kj=new Set(["opacity","clipPath","filter","transform"]),Gj=PS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jj(n){const{motionValue:r,name:a,repeatDelay:u,repeatType:p,damping:M,type:w}=n;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:b,transformTemplate:C}=r.owner.getProps();return Gj()&&a&&Kj.has(a)&&(a!=="transform"||!C)&&!b&&!u&&p!=="mirror"&&M!==0&&w!=="inertia"}const Xj=40;class Zj extends sE{constructor({autoplay:r=!0,delay:a=0,type:u="keyframes",repeat:p=0,repeatDelay:M=0,repeatType:w="loop",keyframes:g,name:b,motionValue:C,element:D,...k}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gs.now();const I={autoplay:r,delay:a,type:u,repeat:p,repeatDelay:M,repeatType:w,name:b,motionValue:C,element:D,...k},L=D?.KeyframeResolver||vE;this.keyframeResolver=new L(g,(F,Q,ue)=>this.onKeyframesResolved(F,Q,I,!ue),b,C,D),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,a,u,p){this.keyframeResolver=void 0;const{name:M,type:w,velocity:g,delay:b,isHandoff:C,onUpdate:D}=u;this.resolvedAt=gs.now(),qj(r,M,w,g)||((Df.instantAnimations||!b)&&D?.(oE(r,u,a)),r[0]=r[r.length-1],gE(u),u.repeat=0);const I={startTime:p?this.resolvedAt?this.resolvedAt-this.createdAt>Xj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...u,keyframes:r},L=!C&&Jj(I)?new Hj({...I,element:I.motionValue.owner.current}):new lE(I);L.finished.then(()=>this.notifyFinished()).catch(wl),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(r,a){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Lj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const $j=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eU(n){const r=$j.exec(n);if(!r)return[,];const[,a,u,p]=r;return[`--${a??u}`,p]}const tU=4;function xD(n,r,a=1){Af(a<=tU,`Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[u,p]=eU(n);if(!u)return;const M=window.getComputedStyle(r).getPropertyValue(u);if(M){const w=M.trim();return RA(w)?parseFloat(w):w}return qS(p)?xD(p,r,a+1):p}function yE(n,r){return n?.[r]??n?.default??n}const TD=new Set(["width","height","top","left","right","bottom",...jm]),nU={test:n=>n==="auto",parse:n=>n},bD=n=>r=>r.test(n),CD=[zm,hn,wc,_d,H4,Y4,nU],AD=n=>CD.find(bD(n));function rU(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||OA(n):!0}const iU=new Set(["brightness","contrast","saturate","opacity"]);function aU(n){const[r,a]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[u]=a.match(KS)||[];if(!u)return n;const p=a.replace(u,"");let M=iU.has(r)?1:0;return u!==a&&(M*=100),r+"("+M+p+")"}const oU=/\b([a-z-]*)\(.*?\)/gu,ME={...Pd,getAnimatableNone:n=>{const r=n.match(oU);return r?r.map(aU).join(" "):n}},DD={...zm,transform:Math.round},wE={borderWidth:hn,borderTopWidth:hn,borderRightWidth:hn,borderBottomWidth:hn,borderLeftWidth:hn,borderRadius:hn,radius:hn,borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomRightRadius:hn,borderBottomLeftRadius:hn,width:hn,maxWidth:hn,height:hn,maxHeight:hn,top:hn,right:hn,bottom:hn,left:hn,padding:hn,paddingTop:hn,paddingRight:hn,paddingBottom:hn,paddingLeft:hn,margin:hn,marginTop:hn,marginRight:hn,marginBottom:hn,marginLeft:hn,backgroundPositionX:hn,backgroundPositionY:hn,...{rotate:_d,rotateX:_d,rotateY:_d,rotateZ:_d,scale:q0,scaleX:q0,scaleY:q0,scaleZ:q0,skew:_d,skewX:_d,skewY:_d,distance:hn,translateX:hn,translateY:hn,translateZ:hn,x:hn,y:hn,z:hn,perspective:hn,transformPerspective:hn,opacity:zg,originX:JA,originY:JA,originZ:hn},zIndex:DD,fillOpacity:zg,strokeOpacity:zg,numOctaves:DD},sU={...wE,color:aa,backgroundColor:aa,outlineColor:aa,fill:aa,stroke:aa,borderColor:aa,borderTopColor:aa,borderRightColor:aa,borderBottomColor:aa,borderLeftColor:aa,filter:ME,WebkitFilter:ME},ND=n=>sU[n];function RD(n,r){let a=ND(n);return a!==ME&&(a=Pd),a.getAnimatableNone?a.getAnimatableNone(r):void 0}const lU=new Set(["auto","none","0"]);function uU(n,r,a){let u=0,p;for(;u<n.length&&!p;){const M=n[u];typeof M=="string"&&!lU.has(M)&&jg(M).values.length&&(p=n[u]),u++}if(p&&a)for(const M of r)n[M]=RD(a,p)}class cU extends vE{constructor(r,a,u,p,M){super(r,a,u,p,M,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:a,name:u}=this;if(!a||!a.current)return;super.readKeyframes();for(let b=0;b<r.length;b++){let C=r[b];if(typeof C=="string"&&(C=C.trim(),qS(C))){const D=xD(C,a.current);D!==void 0&&(r[b]=D),b===r.length-1&&(this.finalKeyframe=C)}}if(this.resolveNoneKeyframes(),!TD.has(u)||r.length!==2)return;const[p,M]=r,w=AD(p),g=AD(M);if(w!==g)if(hD(w)&&hD(g))for(let b=0;b<r.length;b++){const C=r[b];typeof C=="string"&&(r[b]=parseFloat(C))}else pp[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:a}=this,u=[];for(let p=0;p<r.length;p++)(r[p]===null||rU(r[p]))&&u.push(p);u.length&&uU(r,u,a)}measureInitialState(){const{element:r,unresolvedKeyframes:a,name:u}=this;if(!r||!r.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pp[u](r.measureViewportBox(),window.getComputedStyle(r.current)),a[0]=this.measuredOrigin;const p=a[a.length-1];p!==void 0&&r.getValue(u,p).jump(p,!1)}measureEndState(){const{element:r,name:a,unresolvedKeyframes:u}=this;if(!r||!r.current)return;const p=r.getValue(a);p&&p.jump(this.measuredOrigin,!1);const M=u.length-1,w=u[M];u[M]=pp[a](r.measureViewportBox(),window.getComputedStyle(r.current)),w!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=w),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,b])=>{r.getValue(g).set(b)}),this.resolveNoneKeyframes()}}function fU(n,r,a){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const p=a?.[n]??u.querySelectorAll(n);return p?Array.from(p):[]}return Array.from(n)}const kD=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function OD(n){return kA(n)&&"offsetHeight"in n}var dU={env:{}};const zD=30,hU=n=>!isNaN(parseFloat(n));class pU{constructor(r,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const p=gs.now();if(this.updatedAt!==p&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const M of this.dependents)M.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=a.owner}setCurrent(r){this.current=r,this.updatedAt=gs.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=hU(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return dU.env.NODE_ENV!=="production"&&BS(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",r)}on(r,a){this.events[r]||(this.events[r]=new FS);const u=this.events[r].add(a);return r==="change"?()=>{u(),Mi.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,a){this.passiveEffect=r,this.stopPassiveEffect=a}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,a,u){this.set(a),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-u}jump(r,a=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=gs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>zD)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,zD);return zA(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(r){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=r(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vm(n,r){return new pU(n,r)}const{schedule:SE}=qA(queueMicrotask,!1),Cu={x:!1,y:!1};function LD(){return Cu.x||Cu.y}function mU(n){return n==="x"||n==="y"?Cu[n]?null:(Cu[n]=!0,()=>{Cu[n]=!1}):Cu.x||Cu.y?null:(Cu.x=Cu.y=!0,()=>{Cu.x=Cu.y=!1})}function ID(n,r){const a=fU(n),u=new AbortController,p={passive:!0,...r,signal:u.signal};return[a,p,()=>u.abort()]}function jD(n){return!(n.pointerType==="touch"||LD())}function vU(n,r,a={}){const[u,p,M]=ID(n,a),w=g=>{if(!jD(g))return;const{target:b}=g,C=r(b,g);if(typeof C!="function"||!b)return;const D=k=>{jD(k)&&(C(k),b.removeEventListener("pointerleave",D))};b.addEventListener("pointerleave",D,p)};return u.forEach(g=>{g.addEventListener("pointerenter",w,p)}),M}const UD=(n,r)=>r?n===r?!0:UD(n,r.parentElement):!1,EE=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,gU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yU(n){return gU.has(n.tagName)||n.tabIndex!==-1}const X0=new WeakSet;function VD(n){return r=>{r.key==="Enter"&&n(r)}}function xE(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const MU=(n,r)=>{const a=n.currentTarget;if(!a)return;const u=VD(()=>{if(X0.has(a))return;xE(a,"down");const p=VD(()=>{xE(a,"up")}),M=()=>xE(a,"cancel");a.addEventListener("keyup",p,r),a.addEventListener("blur",M,r)});a.addEventListener("keydown",u,r),a.addEventListener("blur",()=>a.removeEventListener("keydown",u),r)};function _D(n){return EE(n)&&!LD()}function wU(n,r,a={}){const[u,p,M]=ID(n,a),w=g=>{const b=g.currentTarget;if(!_D(g))return;X0.add(b);const C=r(b,g),D=(L,F)=>{window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",I),X0.has(b)&&X0.delete(b),_D(L)&&typeof C=="function"&&C(L,{success:F})},k=L=>{D(L,b===window||b===document||a.useGlobalTarget||UD(b,L.target))},I=L=>{D(L,!1)};window.addEventListener("pointerup",k,p),window.addEventListener("pointercancel",I,p)};return u.forEach(g=>{(a.useGlobalTarget?window:g).addEventListener("pointerdown",w,p),OD(g)&&(g.addEventListener("focus",C=>MU(C,p)),!yU(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),M}function PD(n){return kA(n)&&"ownerSVGElement"in n}function SU(n){return PD(n)&&n.tagName==="svg"}const Eo=n=>!!(n&&n.getVelocity),EU=[...CD,aa,Pd],xU=n=>EU.find(bD(n)),TE=Ae.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function FD(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function TU(...n){return r=>{let a=!1;const u=n.map(p=>{const M=FD(p,r);return!a&&typeof M=="function"&&(a=!0),M});if(a)return()=>{for(let p=0;p<u.length;p++){const M=u[p];typeof M=="function"?M():FD(n[p],null)}}}}function bU(...n){return Ae.useCallback(TU(...n),n)}class CU extends Ae.Component{getSnapshotBeforeUpdate(r){const a=this.props.childRef.current;if(a&&r.isPresent&&!this.props.isPresent){const u=a.offsetParent,p=OD(u)&&u.offsetWidth||0,M=this.props.sizeRef.current;M.height=a.offsetHeight||0,M.width=a.offsetWidth||0,M.top=a.offsetTop,M.left=a.offsetLeft,M.right=p-M.width-M.left}return null}componentDidUpdate(){}render(){return this.props.children}}function AU({children:n,isPresent:r,anchorX:a,root:u}){const p=Ae.useId(),M=Ae.useRef(null),w=Ae.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=Ae.useContext(TE),b=bU(M,n?.ref);return Ae.useInsertionEffect(()=>{const{width:C,height:D,top:k,left:I,right:L}=w.current;if(r||!M.current||!C||!D)return;const F=a==="left"?`left: ${I}`:`right: ${L}`;M.current.dataset.motionPopId=p;const Q=document.createElement("style");g&&(Q.nonce=g);const ue=u??document.head;return ue.appendChild(Q),Q.sheet&&Q.sheet.insertRule(`
166
166
  [data-motion-pop-id="${p}"] {
167
167
  position: absolute !important;
168
168
  width: ${C}px !important;