function Zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var p0,g0,Ku={exports:{}},gl={};
/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function sx(){if(p0)return gl;p0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:i,ref:void 0!==n?n:null,props:r}}return gl.Fragment=t,gl.jsx=n,gl.jsxs=n,gl}function ox(){return g0||(g0=1,Ku.exports=sx()),Ku.exports}var y0,v0,y=ox(),Qu={exports:{}},rt={};
/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function rx(){if(y0)return rt;y0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=v.prototype=new y;b.constructor=v,p(b,g.prototype),b.isPureReactComponent=!0;var x=Array.isArray;function w(){}var k={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function T(t,n,r){var i=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==i?i:null,props:r}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(n,r,i,a,o){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"bigint":case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0;break;case c:return P((l=n._init)(n._payload),r,i,a,o)}}if(l)return o=o(n),l=""===a?"."+j(n,0):a,x(o)?(i="",null!=l&&(i=l.replace(C,"$&/")+"/"),P(o,r,i,"",function(e){return e})):null!=o&&(E(o)&&(o=function(e,t){return T(e.type,t,e.props)}(o,i+(null==o.key||n&&n.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+l)),r.push(o)),1;l=0;var u=""===a?".":a+":";if(x(n))for(var d=0;d<n.length;d++)l+=P(a=n[d],r,i,s=u+j(a,d),o);else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof d)for(n=d.call(n),d=0;!(a=n.next()).done;)l+=P(a=a.value,r,i,s=u+j(a,d++),o);else if("object"===s){if("function"==typeof n.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,i,a,o);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return l}function N(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",function(e){return t.call(n,e,i++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},L={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return rt.Activity=d,rt.Children=L,rt.Component=g,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=v,rt.StrictMode=r,rt.Suspense=l,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,rt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},rt.cache=function(e){return function(){return e.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=p({},e.props),i=e.key;if(null!=t)for(a in void 0!==t.key&&(i=""+t.key),t)!S.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(r[a]=t[a]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},rt.createContext=function(e){return(e={$$typeof:o,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},rt.createElement=function(e,t,n){var r,i={},a=null;if(null!=t)for(r in void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var o=arguments.length-2;if(1===o)i.children=n;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===i[r]&&(i[r]=o[r]);return T(e,a,i)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(e){return{$$typeof:s,render:e}},rt.isValidElement=E,rt.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:M}},rt.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},rt.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),i=k.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(w,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(e){return k.H.use(e)},rt.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},rt.useCallback=function(e,t){return k.H.useCallback(e,t)},rt.useContext=function(e){return k.H.useContext(e)},rt.useDebugValue=function(){},rt.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},rt.useEffect=function(e,t){return k.H.useEffect(e,t)},rt.useEffectEvent=function(e){return k.H.useEffectEvent(e)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},rt.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},rt.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},rt.useMemo=function(e,t){return k.H.useMemo(e,t)},rt.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},rt.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},rt.useRef=function(e){return k.H.useRef(e)},rt.useState=function(e){return k.H.useState(e)},rt.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.7",rt}function Hc(){return v0||(v0=1,Qu.exports=rx()),Qu.exports}var H=Hc();const Jp=Zp(H);var x0,b0,Zu={exports:{}},yl={},Ju={exports:{}},Fu={};
/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function ux(){return x0||(x0=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<a&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function x(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function w(e){if(m=!1,x(e),!p)if(null!==n(l))p=!0,S||(S=!0,k());else{var t=n(u);null!==t&&A(w,t.startTime-e)}}var k,S=!1,T=-1,E=5,C=-1;function j(){return!(!g&&e.unstable_now()-C<E)}function P(){if(g=!1,S){var t=e.unstable_now();C=t;var i=!0;try{e:{p=!1,m&&(m=!1,v(T),T=-1),h=!0;var a=f;try{t:{for(x(t),d=n(l);null!==d&&!(d.expirationTime>t&&j());){var o=d.callback;if("function"==typeof o){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,x(t),i=!0;break t}d===n(l)&&r(l),x(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var c=n(u);null!==c&&A(w,c.startTime-t),i=!1}}break e}finally{d=null,f=a,h=!1}i=void 0}}finally{i?k():S=!1}}}if("function"==typeof b)k=function(){b(P)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,M=N.port2;N.port1.onmessage=P,k=function(){M.postMessage(null)}}else k=function(){y(P,0)};function A(t,n){T=y(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(r.sortIndex=a,t(u,r),null===n(l)&&r===n(u)&&(m?(v(T),T=-1):m=!0,A(w,a-o))):(r.sortIndex=s,t(l,r),p||h||(p=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(Fu)),Fu}function cx(){return b0||(b0=1,Ju.exports=ux()),Ju.exports}var S0,T0,A0,E0,Wu={exports:{}},fe={};
/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function fx(){if(S0)return fe;S0=1;var e=Hc();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fe.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},fe.flushSync=function(e){var t=a.T,n=r.p;try{if(a.T=null,r.p=2,e)return e()}finally{a.T=t,r.p=n,r.d.f()}},fe.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},fe.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},fe.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,i=o(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},fe.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=o(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},fe.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,i=o(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},fe.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=o(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},fe.requestFormReset=function(e){r.d.r(e)},fe.unstable_batchedUpdates=function(e,t){return e(t)},fe.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},fe.useFormStatus=function(){return a.H.useHostTransitionStatus()},fe.version="19.2.7",fe}function dx(){return T0||(T0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Wu.exports=fx()),Wu.exports}
/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function hx(){if(A0)return yl;A0=1;var e=cx(),t=Hc(),n=dx();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function o(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function l(e){if(a(e)!==e)throw Error(r(188))}function u(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=u(e)))return t;e=e.sibling}return null}var c=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),C=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=C&&e[C]||e["@@iterator"])?e:null}var P=Symbol.for("react.client.reference");function N(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===P?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case v:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case b:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:N(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var M=Array.isArray,A=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},D=[],R=-1;function I(e){return{current:e}}function F(e){0>R||(e.current=D[R],D[R]=null,R--)}function _(e,t){R++,D[R]=e.current,e.current=t}var O,V,B=I(null),H=I(null),U=I(null),$=I(null);function W(e,t){switch(_(U,t),_(H,e),_(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=gd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(B),_(B,e)}function K(){F(B),F(H),F(U)}function X(e){null!==e.memoizedState&&_($,e);var t=B.current,n=yd(t,e.type);t!==n&&(_(H,e),_(B,n))}function q(e){H.current===e&&(F(B),F(H)),$.current===e&&(F($),cf._currentValue=z)}function Q(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||"",V=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+O+e+V}var Y=!1;function G(e,t){if(!e||Y)return"";Y=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{Y=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function Z(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 1:return G(e.type,!0);case 31:return Q("Activity");default:return""}}function J(e){try{var t="",n=null;do{t+=Z(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ee=Object.prototype.hasOwnProperty,te=e.unstable_scheduleCallback,ne=e.unstable_cancelCallback,re=e.unstable_shouldYield,ie=e.unstable_requestPaint,ae=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,le=e.unstable_UserBlockingPriority,ue=e.unstable_NormalPriority,ce=e.unstable_LowPriority,de=e.unstable_IdlePriority,fe=e.log,he=e.unstable_setDisableYieldValue,pe=null,me=null;function ge(e){if("function"==typeof fe&&he(e),me&&"function"==typeof me.setStrictMode)try{me.setStrictMode(pe,e)}catch{}}var ye=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ve(e)/be|0)|0},ve=Math.log,be=Math.LN2,xe=256,we=262144,ke=4194304;function Se(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~a)?i=Se(r):0!==(o&=s)?i=Se(o):n||0!==(n=s&~e)&&(i=Se(n)):0!==(s=r&~a)?i=Se(s):0!==o?i=Se(o):n||0!==(n=r&~e)&&(i=Se(n)),0===i?0:0!==t&&t!==i&&0===(t&a)&&((a=i&-i)>=(n=t&-t)||32===a&&4194048&n)?t:i}function Ee(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ce(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function je(){var e=ke;return!(62914560&(ke<<=1))&&(ke=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ne(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ye(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Le(e,t){var n=t&-t;return 0!==((n=42&n?1:ze(n))&(e.suspendedLanes|t))?0:n}function ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function De(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Re(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:Cf(e.type)}function Ie(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Fe=Math.random().toString(36).slice(2),_e="__reactFiber$"+Fe,Oe="__reactProps$"+Fe,Ve="__reactContainer$"+Fe,Be="__reactEvents$"+Fe,He="__reactListeners$"+Fe,Ue="__reactHandles$"+Fe,$e="__reactResources$"+Fe,We="__reactMarker$"+Fe;function Ke(e){delete e[_e],delete e[Oe],delete e[Be],delete e[He],delete e[Ue]}function Xe(e){var t=e[_e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ve]||n[_e]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Rd(e);null!==e;){if(n=e[_e])return n;e=Rd(e)}return t}n=(e=n).parentNode}return null}function qe(e){if(e=e[_e]||e[Ve]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ye(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[We]=!0}var Ze=new Set,Je={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Je[e]=t,e=0;e<t.length;e++)Ze.add(t[e])}var nt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rt={},it={};function at(e,t,n){if(function(e){return!!ee.call(it,e)||!ee.call(rt,e)&&(nt.test(e)?it[e]=!0:(rt[e]=!0,!1))}(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function st(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ut(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ct(e){if(!e._valueTracker){var t=ut(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ut(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ht=/[\n"\\]/g;function pt(e){return e.replace(ht,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function mt(e,t,n,r,i,a,o,s){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+lt(t)):e.value!==""+lt(t)&&(e.value=""+lt(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?yt(e,o,lt(t)):null!=n?yt(e,o,lt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=a&&(e.defaultChecked=!!a),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+lt(s):e.removeAttribute("name")}function gt(e,t,n,r,i,a,o,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return void ct(e);n=null!=n?""+lt(n):"",t=null!=t?""+lt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=r??i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o),ct(e)}function yt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function bt(e,t,n){null==t||((t=""+lt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+lt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,i){if(null==t){if(null!=i){if(null!=n)throw Error(r(92));if(M(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}null==n&&(n=""),t=n}n=lt(t),e.defaultValue=n,(i=e.textContent)===n&&""!==i&&null!==i&&(e.value=i),ct(e)}function wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var i in n)!n.hasOwnProperty(i)||null!=t&&t.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&St(e,a,i)}else for(var o in t)t.hasOwnProperty(o)&&St(e,o,t[o])}function Et(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return jt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nt(){}var Mt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lt=null,zt=null;function Dt(e){var t=qe(e);if(t&&(e=t.stateNode)){var n=e[Oe]||null;e:switch(e=t.stateNode,t.type){case"input":if(mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Oe]||null;if(!a)throw Error(r(90));mt(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(i=n[t]).form===e.form&&dt(i)}break e;case"textarea":bt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&vt(e,!!n.multiple,t,!1)}}}var Rt=!1;function It(e,t,n){if(Rt)return e(t,n);Rt=!0;try{return e(t)}finally{if(Rt=!1,(null!==Lt||null!==zt)&&(Gu(),Lt&&(t=Lt,e=zt,zt=Lt=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var i=n[Oe]||null;if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ot=!1;if(_t)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Ot=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch{Ot=!1}var Bt=null,Ht=null,Ut=null;function $t(){if(Ut)return Ut;var e,t,n=Ht,r=n.length,i="value"in Bt?Bt.value:Bt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Ut=i.slice(e,1<t?1-t:void 0)}function Wt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Xt(){return!1}function qt(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Kt:Xt,this.isPropagationStopped=Xt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Qt,Yt,Gt,Zt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jt=qt(Zt),en=c({},Zt,{view:0,detail:0}),tn=qt(en),nn=c({},en,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gt&&(Gt&&"mousemove"===e.type?(Qt=e.screenX-Gt.screenX,Yt=e.screenY-Gt.screenY):Yt=Qt=0,Gt=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Yt}}),rn=qt(nn),an=qt(c({},nn,{dataTransfer:0})),on=qt(c({},en,{relatedTarget:0})),sn=qt(c({},Zt,{animationName:0,elapsedTime:0,pseudoElement:0})),ln=qt(c({},Zt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),un=qt(c({},Zt,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fn[e])&&!!t[e]}function pn(){return hn}var mn=qt(c({},en,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?Wt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),gn=qt(c({},nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),yn=qt(c({},en,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),vn=qt(c({},Zt,{propertyName:0,elapsedTime:0,pseudoElement:0})),bn=qt(c({},nn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xn=qt(c({},Zt,{newState:0,oldState:0})),wn=[9,13,27,32],kn=_t&&"CompositionEvent"in window,Sn=null;_t&&"documentMode"in document&&(Sn=document.documentMode);var Tn=_t&&"TextEvent"in window&&!Sn,En=_t&&(!kn||Sn&&8<Sn&&11>=Sn),Cn=" ",jn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Mn=!1,An={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function zn(e,t,n,r){Lt?zt?zt.push(r):zt=[r]:Lt=r,0<(t=nd(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Rn=null;function In(e){qc(e,0)}function Fn(e){if(dt(Qe(e)))return e}function _n(e,t){if("change"===e)return t}var On=!1;if(_t){var Vn;if(_t){var Bn="oninput"in document;if(!Bn){var Hn=document.createElement("div");Hn.setAttribute("oninput","return;"),Bn="function"==typeof Hn.oninput}Vn=Bn}else Vn=!1;On=Vn&&(!document.documentMode||9<document.documentMode)}function Un(){Dn&&(Dn.detachEvent("onpropertychange",$n),Rn=Dn=null)}function $n(e){if("value"===e.propertyName&&Fn(Rn)){var t=[];zn(t,Rn,e,At(e)),It(In,t)}}function Wn(e,t,n){"focusin"===e?(Un(),Rn=n,(Dn=t).attachEvent("onpropertychange",$n)):"focusout"===e&&Un()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(Rn)}function Xn(e,t){if("click"===e)return Fn(t)}function qn(e,t){if("input"===e||"change"===e)return Fn(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Yn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ee.call(t,i)||!Qn(e[i],t[i]))return!1}return!0}function Gn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zn(e,t){var n,r=Gn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function er(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nr=_t&&"documentMode"in document&&11>=document.documentMode,rr=null,ir=null,ar=null,or=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;or||null==rr||rr!==ft(r)||(r="selectionStart"in(r=rr)&&tr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Yn(ar,r)||(ar=r,0<(r=nd(ir,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},cr={},dr={};function fr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return cr[e]=n[t];return e}_t&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var hr=fr("animationend"),pr=fr("animationiteration"),mr=fr("animationstart"),gr=fr("transitionrun"),yr=fr("transitionstart"),vr=fr("transitioncancel"),br=fr("transitionend"),xr=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){xr.set(e,t),et(t,[e])}wr.push("scrollEnd");var Sr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Er=0,Cr=0;function jr(){for(var e=Er,t=Cr=Er=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var i=Tr[t];Tr[t++]=null;var a=Tr[t];if(Tr[t++]=null,null!==r&&null!==i){var o=r.pending;null===o?i.next=i:(i.next=o.next,o.next=i),r.pending=i}0!==a&&Ar(n,i,a)}}function Pr(e,t,n,r){Tr[Er++]=e,Tr[Er++]=t,Tr[Er++]=n,Tr[Er++]=r,Cr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Nr(e,t,n,r){return Pr(e,t,n,r),Lr(e)}function Mr(e,t){return Pr(e,null,null,t),Lr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(i=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,i&&null!==t&&(i=31-ye(n),null===(r=(e=a.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),a):null}function Lr(e){if(50<Hu)throw Hu=0,Uu=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var zr={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rr(e,t,n,r){return new Dr(e,t,n,r)}function Ir(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=Rr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _r(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Or(e,t,n,i,a,o){var s=0;if(i=e,"function"==typeof e)Ir(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Rr(31,n,t,a)).elementType=T,e.lanes=o,e;case p:return Vr(n.children,a,o,t);case m:s=8,a|=24;break;case g:return(e=Rr(12,n,t,2|a)).elementType=g,e.lanes=o,e;case x:return(e=Rr(13,n,t,a)).elementType=x,e.lanes=o,e;case w:return(e=Rr(19,n,t,a)).elementType=w,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:s=10;break e;case y:s=9;break e;case b:s=11;break e;case k:s=14;break e;case S:s=16,i=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),i=null}return(t=Rr(s,n,t,a)).elementType=e,t.type=i,t.lanes=o,t}function Vr(e,t,n,r){return(e=Rr(7,e,r,t)).lanes=n,e}function Br(e,t,n){return(e=Rr(6,e,null,t)).lanes=n,e}function Hr(e){var t=Rr(18,null,null,0);return t.stateNode=e,t}function Ur(e,t,n){return(t=Rr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $r=new WeakMap;function Wr(e,t){if("object"==typeof e&&null!==e){var n=$r.get(e);return void 0!==n?n:(t={value:e,source:t,stack:J(t)},$r.set(e,t),t)}return{value:e,source:t,stack:J(t)}}var Kr=[],Xr=0,qr=null,Qr=0,Yr=[],Gr=0,Zr=null,Jr=1,ei="";function ti(e,t){Kr[Xr++]=Qr,Kr[Xr++]=qr,qr=e,Qr=t}function ni(e,t,n){Yr[Gr++]=Jr,Yr[Gr++]=ei,Yr[Gr++]=Zr,Zr=e;var r=Jr;e=ei;var i=32-ye(r)-1;r&=~(1<<i),n+=1;var a=32-ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Jr=1<<32-ye(t)+i|n<<i|r,ei=a+e}else Jr=1<<a|n<<i|r,ei=e}function ri(e){null!==e.return&&(ti(e,1),ni(e,1,0))}function ii(e){for(;e===qr;)qr=Kr[--Xr],Kr[Xr]=null,Qr=Kr[--Xr],Kr[Xr]=null;for(;e===Zr;)Zr=Yr[--Gr],Yr[Gr]=null,ei=Yr[--Gr],Yr[Gr]=null,Jr=Yr[--Gr],Yr[Gr]=null}function ai(e,t){Yr[Gr++]=Jr,Yr[Gr++]=ei,Yr[Gr++]=Zr,Jr=t.id,ei=t.overflow,Zr=e}var oi=null,si=null,li=!1,ui=null,ci=!1,di=Error(r(519));function fi(e){throw vi(Wr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),di}function hi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_e]=e,t[Oe]=r,n){case"dialog":Qc("cancel",t),Qc("close",t);break;case"iframe":case"object":case"embed":Qc("load",t);break;case"video":case"audio":for(n=0;n<Kc.length;n++)Qc(Kc[n],t);break;case"source":Qc("error",t);break;case"img":case"image":case"link":Qc("error",t),Qc("load",t);break;case"details":Qc("toggle",t);break;case"input":Qc("invalid",t),gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Qc("invalid",t);break;case"textarea":Qc("invalid",t),xt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ld(t.textContent,n)?(null!=r.popover&&(Qc("beforetoggle",t),Qc("toggle",t)),null!=r.onScroll&&Qc("scroll",t),null!=r.onScrollEnd&&Qc("scrollend",t),null!=r.onClick&&(t.onclick=Nt),t=!0):t=!1,t||fi(e,!0)}function pi(e){for(oi=e.return;oi;)switch(oi.tag){case 5:case 31:case 13:return void(ci=!1);case 27:case 3:return void(ci=!0);default:oi=oi.return}}function mi(e){if(e!==oi)return!1;if(!li)return pi(e),li=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||vd(e.type,e.memoizedProps)),t=!t),t&&si&&fi(e),pi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));si=Dd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));si=Dd(e)}else 27===n?(n=si,Ed(e.type)?(e=zd,zd=null,si=e):si=n):si=oi?Ld(e.stateNode.nextSibling):null;return!0}function gi(){si=oi=null,li=!1}function yi(){var e=ui;return null!==e&&(null===Pu?Pu=e:Pu.push.apply(Pu,e),ui=null),e}function vi(e){null===ui?ui=[e]:ui.push(e)}var bi=I(null),xi=null,wi=null;function ki(e,t,n){_(bi,t._currentValue),t._currentValue=n}function Si(e){e._currentValue=bi.current,F(bi)}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t,n,i){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var o=a.dependencies;if(null!==o){var s=a.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=a;for(var u=0;u<t.length;u++)if(l.context===t[u]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Ti(o.return,n,e),i||(s=null);break e}o=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),Ti(s,n,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function Ci(e,t,n,i){e=null;for(var a=t,o=!1;null!==a;){if(!o)if(524288&a.flags)o=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=a.type;Qn(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===$.current){if(null===(s=a.alternate))throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(cf):e=[cf])}a=a.return}null!==e&&Ei(t,e,n,i),t.flags|=262144}function ji(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pi(e){xi=e,wi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ni(e){return Ai(xi,e)}function Mi(e,t){return null===xi&&Pi(e),Ai(e,t)}function Ai(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===wi){if(null===e)throw Error(r(308));wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wi=wi.next=t;return n}var Li=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},zi=e.unstable_scheduleCallback,Di=e.unstable_NormalPriority,Ri={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ii(){return{controller:new Li,data:new Map,refCount:0}}function Fi(e){e.refCount--,0===e.refCount&&zi(Di,function(){e.controller.abort()})}var _i=null,Oi=0,Vi=0,Bi=null;function Hi(){if(0===--Oi&&null!==_i){null!==Bi&&(Bi.status="fulfilled");var e=_i;_i=null,Vi=0,Bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ui=A.S;A.S=function(e,t){Au=ae(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===_i){var n=_i=[];Oi=0,Vi=Vc(),Bi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Oi++,t.then(Hi,Hi)}(0,t),null!==Ui&&Ui(e,t)};var $i=I(null);function Wi(){var e=$i.current;return null!==e?e:fu.pooledCache}function Ki(e,t){_($i,null===t?$i.current:t.pool)}function Xi(){var e=Wi();return null===e?null:{parent:Ri._currentValue,pool:e}}var qi=Error(r(460)),Qi=Error(r(474)),Yi=Error(r(542)),Gi={then:function(){}};function Zi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Ji(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Nt,Nt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e;default:if("string"==typeof t.status)t.then(Nt,Nt);else{if(null!==(e=fu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e}throw ta=t,qi}}function ea(e){try{return(0,e._init)(e._payload)}catch(e){throw null!==e&&"object"==typeof e&&"function"==typeof e.then?(ta=e,qi):e}}var ta=null;function na(){if(null===ta)throw Error(r(459));var e=ta;return ta=null,e}function ra(e){if(e===qi||e===Yi)throw Error(r(483))}var ia=null,aa=0;function oa(e){var t=aa;return aa+=1,null===ia&&(ia=[]),Ji(ia,e,t)}function sa(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function la(e,t){throw t.$$typeof===d?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ua(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Br(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===p?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===S&&ea(i)===t.type)?(sa(t=a(t,n.props),n),t.return=e,t):(sa(t=Or(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ur(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Vr(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Br(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return sa(n=Or(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Ur(t,e.mode,n)).return=e,t;case S:return m(e,t=ea(t),n)}if(M(t)||j(t))return(t=Vr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,oa(t),n);if(t.$$typeof===v)return m(e,Mi(e,t),n);la(e,t)}return null}function g(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===i?u(e,t,n,r):null;case h:return n.key===i?c(e,t,n,r):null;case S:return g(e,t,n=ea(n),r)}if(M(n)||j(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,oa(n),r);if(n.$$typeof===v)return g(e,t,Mi(e,n),r);la(e,n)}return null}function y(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case h:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return y(e,t,n,r=ea(r),i)}if(M(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return y(e,t,n,oa(r),i);if(r.$$typeof===v)return y(e,t,n,Mi(t,r),i);la(t,r)}return null}function b(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===p&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case f:e:{for(var x=c.key;null!==u;){if(u.key===x){if((x=c.type)===p){if(7===u.tag){n(l,u.sibling),(d=a(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===S&&ea(x)===u.type){n(l,u.sibling),sa(d=a(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===p?((d=Vr(c.props.children,l.mode,d,c.key)).return=l,l=d):(sa(d=Or(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case h:e:{for(x=c.key;null!==u;){if(u.key===x){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=a(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Ur(c,l.mode,d)).return=l,l=d}return s(l);case S:return b(l,u,c=ea(c),d)}if(M(c))return function(r,a,s,l){for(var u=null,c=null,d=a,f=a=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var p=g(r,d,s[f],l);if(null===p){null===d&&(d=h);break}e&&d&&null===p.alternate&&t(r,d),a=o(p,a,f),null===c?u=p:c.sibling=p,c=p,d=h}if(f===s.length)return n(r,d),li&&ti(r,f),u;if(null===d){for(;f<s.length;f++)null!==(d=m(r,s[f],l))&&(a=o(d,a,f),null===c?u=d:c.sibling=d,c=d);return li&&ti(r,f),u}for(d=i(d);f<s.length;f++)null!==(h=y(d,r,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),a=o(h,a,f),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach(function(e){return t(r,e)}),li&&ti(r,f),u}(l,u,c,d);if(j(c)){if("function"!=typeof(x=j(c)))throw Error(r(150));return function(a,s,l,u){if(null==l)throw Error(r(151));for(var c=null,d=null,f=s,h=s=0,p=null,v=l.next();null!==f&&!v.done;h++,v=l.next()){f.index>h?(p=f,f=null):p=f.sibling;var b=g(a,f,v.value,u);if(null===b){null===f&&(f=p);break}e&&f&&null===b.alternate&&t(a,f),s=o(b,s,h),null===d?c=b:d.sibling=b,d=b,f=p}if(v.done)return n(a,f),li&&ti(a,h),c;if(null===f){for(;!v.done;h++,v=l.next())null!==(v=m(a,v.value,u))&&(s=o(v,s,h),null===d?c=v:d.sibling=v,d=v);return li&&ti(a,h),c}for(f=i(f);!v.done;h++,v=l.next())null!==(v=y(f,a,h,v.value,u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),s=o(v,s,h),null===d?c=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(a,e)}),li&&ti(a,h),c}(l,u,c=x.call(c),d)}if("function"==typeof c.then)return b(l,u,oa(c),d);if(c.$$typeof===v)return b(l,u,Mi(l,c),d);la(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=a(u,c)).return=l,l=d):(n(l,u),(d=Br(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{aa=0;var i=b(e,t,n,r);return ia=null,i}catch(t){if(t===qi||t===Yi)throw t;var a=Rr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ca=ua(!0),da=ua(!1),fa=!1;function ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ga(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&du){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Lr(e),Ar(e,null,n),t}return Pr(e,r,t,n),Lr(e)}function ya(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}function va(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ba=!1;function xa(){if(ba&&null!==Bi)throw Bi}function wa(e,t,n,r){ba=!1;var i=e.updateQueue;fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==o&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==a){var f=i.baseState;for(o=0,d=u=l=null,s=a;;){var h=-536870913&s.lane,p=h!==s.lane;if(p?(pu&h)===h:(r&h)===h){0!==h&&h===Vi&&(ba=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;h=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(y,f,h);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(h="function"==typeof(m=g.payload)?m.call(y,f,h):m))break e;f=c({},f,h);break e;case 2:fa=!0}}null!==(h=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=i.callbacks)?i.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=p,l=f):d=d.next=p,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===a&&(i.shared.lanes=0),ku|=o,e.lanes=o,e.memoizedState=f}}function ka(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Sa(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ka(n[e],t)}var Ta=I(null),Ea=I(0);function Ca(e,t){_(Ea,e=xu),_(Ta,t),xu=e|t.baseLanes}function ja(){_(Ea,xu),_(Ta,Ta.current)}function Pa(){xu=Ea.current,F(Ta),F(Ea)}var Na=I(null),Ma=null;function Aa(e){var t=e.alternate;_(Ia,1&Ia.current),_(Na,e),null===Ma&&(null===t||null!==Ta.current||null!==t.memoizedState)&&(Ma=e)}function La(e){_(Ia,Ia.current),_(Na,e),null===Ma&&(Ma=e)}function za(e){22===e.tag?(_(Ia,Ia.current),_(Na,e),null===Ma&&(Ma=e)):Da()}function Da(){_(Ia,Ia.current),_(Na,Na.current)}function Ra(e){F(Na),Ma===e&&(Ma=null),F(Ia)}var Ia=I(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Md(n)||Ad(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _a=0,Oa=null,Va=null,Ba=null,Ha=!1,Ua=!1,$a=!1,Wa=0,Ka=0,Xa=null,qa=0;function Qa(){throw Error(r(321))}function Ya(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function Ga(e,t,n,r,i,a){return _a=a,Oa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?hs:ps,$a=!1,a=n(r,i),$a=!1,Ua&&(a=Ja(t,n,r,i)),Za(e),a}function Za(e){A.H=fs;var t=null!==Va&&null!==Va.next;if(_a=0,Ba=Va=Oa=null,Ha=!1,Ka=0,Xa=null,t)throw Error(r(300));null===e||Ms||null!==(e=e.dependencies)&&ji(e)&&(Ms=!0)}function Ja(e,t,n,i){Oa=e;var a=0;do{if(Ua&&(Xa=null),Ka=0,Ua=!1,25<=a)throw Error(r(301));if(a+=1,Ba=Va=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}A.H=ms,o=t(n,i)}while(Ua);return o}function eo(){var e=A.H,t=e.useState()[0];return t="function"==typeof t.then?oo(t):t,e=e.useState()[0],(null!==Va?Va.memoizedState:null)!==e&&(Oa.flags|=1024),t}function to(){var e=0!==Wa;return Wa=0,e}function no(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ro(e){if(Ha){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ha=!1}_a=0,Ba=Va=Oa=null,Ua=!1,Ka=Wa=0,Xa=null}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ba?Oa.memoizedState=Ba=e:Ba=Ba.next=e,Ba}function ao(){if(null===Va){var e=Oa.alternate;e=null!==e?e.memoizedState:null}else e=Va.next;var t=null===Ba?Oa.memoizedState:Ba.next;if(null!==t)Ba=t,Va=e;else{if(null===e)throw null===Oa.alternate?Error(r(467)):Error(r(310));e={memoizedState:(Va=e).memoizedState,baseState:Va.baseState,baseQueue:Va.baseQueue,queue:Va.queue,next:null},null===Ba?Oa.memoizedState=Ba=e:Ba=Ba.next=e}return Ba}function oo(e){var t=Ka;return Ka+=1,null===Xa&&(Xa=[]),e=Ji(Xa,e,t),t=Oa,null===(null===Ba?t.memoizedState:Ba.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?hs:ps),e}function so(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return oo(e);if(e.$$typeof===v)return Ni(e)}throw Error(r(438,String(e)))}function lo(e){var t=null,n=Oa.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Oa.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Oa.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function uo(e,t){return"function"==typeof t?t(e):t}function co(e){return fo(ao(),Va,e)}function fo(e,t,n){var i=e.queue;if(null===i)throw Error(r(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,null===a)e.memoizedState=o;else{var l=s=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(pu&f)===f:(_a&f)===f){var h=c.revertLane;if(0===h)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Vi&&(d=!0);else{if((_a&h)===h){c=c.next,h===Vi&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=o):u=u.next=f,Oa.lanes|=h,ku|=h}f=c.action,$a&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else h={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,s=o):u=u.next=h,Oa.lanes|=f,ku|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=o:u.next=l,!Qn(o,e.memoizedState)&&(Ms=!0,d&&null!==(n=Bi)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=u,i.lastRenderedState=o}return null===a&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ho(e){var t=ao(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);Qn(o,t.memoizedState)||(Ms=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function po(e,t,n){var i=Oa,a=ao(),o=li;if(o){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Qn((Va||a).memoizedState,n);if(s&&(a.memoizedState=n,Ms=!0),a=a.queue,Oo(yo.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||null!==Ba&&1&Ba.memoizedState.tag){if(i.flags|=2048,Do(9,{destroy:void 0},go.bind(null,i,a,n,t),null),null===fu)throw Error(r(349));o||127&_a||mo(i,t,n)}return n}function mo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Oa.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Oa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function go(e,t,n,r){t.value=n,t.getSnapshot=r,vo(t)&&bo(e)}function yo(e,t,n){return n(function(){vo(t)&&bo(e)})}function vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function bo(e){var t=Mr(e,2);null!==t&&Ku(t,0,2)}function xo(e){var t=io();if("function"==typeof e){var n=e;if(e=n(),$a){ge(!0);try{n()}finally{ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:e},t}function wo(e,t,n,r){return e.baseState=n,fo(e,Va,"function"==typeof r?r:uo)}function ko(e,t,n,i,a){if(us(e))throw Error(r(485));if(null!==(e=t.action)){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==A.T?n(!0):o.isTransition=!1,i(o),null===(n=t.pending)?(o.next=t.pending=o,So(t,o)):(o.next=n.next,t.pending=n.next=o)}}function So(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),l=A.S;null!==l&&l(o,s),To(e,t,s)}catch(n){Co(e,t,n)}finally{null!==a&&null!==o.types&&(a.types=o.types),A.T=a}}else try{To(e,t,a=n(i,r))}catch(n){Co(e,t,n)}}function To(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Eo(e,t,n)},function(n){return Co(e,t,n)}):Eo(e,t,n)}function Eo(e,t,n){t.status="fulfilled",t.value=n,jo(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,So(e,n)))}function Co(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,jo(t),t=t.next}while(t!==r)}e.action=null}function jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Po(e,t){return t}function No(e,t){if(li){var n=fu.formState;if(null!==n){e:{var r=Oa;if(li){if(si){t:{for(var i=si,a=ci;8!==i.nodeType;){if(!a){i=null;break t}if(null===(i=Ld(i.nextSibling))){i=null;break t}}i="F!"===(a=i.data)||"F"===a?i:null}if(i){si=Ld(i.nextSibling),r="F!"===i.data;break e}}fi(r)}r=!1}r&&(t=n[0])}}return(n=io()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:t},n.queue=r,n=os.bind(null,Oa,r),r.dispatch=n,r=xo(!1),a=ls.bind(null,Oa,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=io()).queue=i,n=ko.bind(null,Oa,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Mo(e){return Ao(ao(),Va,e)}function Ao(e,t,n){if(t=fo(e,t,Po)[0],e=co(uo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=oo(t)}catch(e){throw e===qi?Yi:e}else r=t;var i=(t=ao()).queue,a=i.dispatch;return n!==t.memoizedState&&(Oa.flags|=2048,Do(9,{destroy:void 0},Lo.bind(null,i,n),null)),[r,a,e]}function Lo(e,t){e.action=t}function zo(e){var t=ao(),n=Va;if(null!==n)return Ao(t,n,e);ao(),t=t.memoizedState;var r=(n=ao()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Do(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Oa.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Oa.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ro(){return ao().memoizedState}function Io(e,t,n,r){var i=io();Oa.flags|=e,i.memoizedState=Do(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fo(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=i.memoizedState.inst;null!==Va&&null!==r&&Ya(r,Va.memoizedState.deps)?i.memoizedState=Do(t,a,n,r):(Oa.flags|=e,i.memoizedState=Do(1|t,a,n,r))}function _o(e,t){Io(8390656,8,e,t)}function Oo(e,t){Fo(2048,8,e,t)}function Vo(e){var t=ao().memoizedState;return function(e){Oa.flags|=4;var t=Oa.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Oa.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&du)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Bo(e,t){return Fo(4,2,e,t)}function Ho(e,t){return Fo(4,4,e,t)}function Uo(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function $o(e,t,n){n=null!=n?n.concat([e]):null,Fo(4,4,Uo.bind(null,t,e),n)}function Wo(){}function Ko(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ya(t,r[1]))return r[0];if(r=e(),$a){ge(!0);try{e()}finally{ge(!1)}}return n.memoizedState=[r,t],r}function qo(e,t,n){return void 0===n||1073741824&_a&&!(261930&pu)?e.memoizedState=t:(e.memoizedState=n,e=Wu(),Oa.lanes|=e,ku|=e,n)}function Qo(e,t,n,r){return Qn(n,t)?n:null!==Ta.current?(e=qo(e,n,r),Qn(e,t)||(Ms=!0),e):42&_a&&(!(1073741824&_a)||261930&pu)?(e=Wu(),Oa.lanes|=e,ku|=e,t):(Ms=!0,e.memoizedState=n)}function Yo(e,t,n,r,i){var a=L.p;L.p=0!==a&&8>a?a:8;var o=A.T,s={};A.T=s,ls(e,!1,t,n);try{var l=i(),u=A.S;if(null!==u&&u(s,l),null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r);ss(e,t,c,$u())}else ss(e,t,r,$u())}catch(n){ss(e,t,{then:function(){},status:"rejected",reason:n},$u())}finally{L.p=a,null!==o&&null!==s.types&&(o.types=s.types),A.T=o}}function Go(){}function Zo(e,t,n,i){if(5!==e.tag)throw Error(r(476));var a=Jo(e).queue;Yo(e,a,t,z,null===n?Go:function(){return es(e),n(i)})}function Jo(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:z},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function es(e){var t=Jo(e);null===t.next&&(t=e.alternate.memoizedState),ss(e,t.next.queue,{},$u())}function ts(){return Ni(cf)}function ns(){return ao().memoizedState}function rs(){return ao().memoizedState}function is(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=$u(),r=ga(t,e=ma(n),n);return null!==r&&(Ku(r,0,n),ya(r,t,n)),t={cache:Ii()},void(e.payload=t)}t=t.return}}function as(e,t,n){var r=$u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},us(e)?cs(t,n):null!==(n=Nr(e,t,n,r))&&(Ku(n,0,r),ds(n,t,r))}function os(e,t,n){ss(e,t,n,$u())}function ss(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(us(e))cs(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Qn(s,o))return Pr(e,t,i,0),null===fu&&jr(),!1}catch{}if(null!==(n=Nr(e,t,i,r)))return Ku(n,0,r),ds(n,t,r),!0}return!1}function ls(e,t,n,i){if(i={lane:2,revertLane:Vc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},us(e)){if(t)throw Error(r(479))}else null!==(t=Nr(e,n,i,2))&&Ku(t,0,2)}function us(e){var t=e.alternate;return e===Oa||null!==t&&t===Oa}function cs(e,t){Ua=Ha=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ds(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ae(e,n)}}var fs={readContext:Ni,use:so,useCallback:Qa,useContext:Qa,useEffect:Qa,useImperativeHandle:Qa,useLayoutEffect:Qa,useInsertionEffect:Qa,useMemo:Qa,useReducer:Qa,useRef:Qa,useState:Qa,useDebugValue:Qa,useDeferredValue:Qa,useTransition:Qa,useSyncExternalStore:Qa,useId:Qa,useHostTransitionStatus:Qa,useFormState:Qa,useActionState:Qa,useOptimistic:Qa,useMemoCache:Qa,useCacheRefresh:Qa};fs.useEffectEvent=Qa;var hs={readContext:Ni,use:so,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:_o,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Io(4194308,4,Uo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){Io(4,2,e,t)},useMemo:function(e,t){var n=io();t=void 0===t?null:t;var r=e();if($a){ge(!0);try{e()}finally{ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=io();if(void 0!==n){var i=n(t);if($a){ge(!0);try{n(t)}finally{ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=as.bind(null,Oa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},io().memoizedState=e},useState:function(e){var t=(e=xo(e)).queue,n=os.bind(null,Oa,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Wo,useDeferredValue:function(e,t){return qo(io(),e,t)},useTransition:function(){var e=xo(!1);return e=Yo.bind(null,Oa,e.queue,!0,!1),io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Oa,a=io();if(li){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===fu)throw Error(r(349));127&pu||mo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,_o(yo.bind(null,i,o,e),[e]),i.flags|=2048,Do(9,{destroy:void 0},go.bind(null,i,o,n,t),null),n},useId:function(){var e=io(),t=fu.identifierPrefix;if(li){var n=ei;t="_"+t+"R_"+(n=(Jr&~(1<<32-ye(Jr)-1)).toString(32)+n),0<(n=Wa++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=qa++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ts,useFormState:No,useActionState:No,useOptimistic:function(e){var t=io();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ls.bind(null,Oa,!0,n),n.dispatch=t,[e,t]},useMemoCache:lo,useCacheRefresh:function(){return io().memoizedState=is.bind(null,Oa)},useEffectEvent:function(e){var t=io(),n={impl:e};return t.memoizedState=n,function(){if(2&du)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ps={readContext:Ni,use:so,useCallback:Ko,useContext:Ni,useEffect:Oo,useImperativeHandle:$o,useInsertionEffect:Bo,useLayoutEffect:Ho,useMemo:Xo,useReducer:co,useRef:Ro,useState:function(){return co(uo)},useDebugValue:Wo,useDeferredValue:function(e,t){return Qo(ao(),Va.memoizedState,e,t)},useTransition:function(){var e=co(uo)[0],t=ao().memoizedState;return["boolean"==typeof e?e:oo(e),t]},useSyncExternalStore:po,useId:ns,useHostTransitionStatus:ts,useFormState:Mo,useActionState:Mo,useOptimistic:function(e,t){return wo(ao(),0,e,t)},useMemoCache:lo,useCacheRefresh:rs};ps.useEffectEvent=Vo;var ms={readContext:Ni,use:so,useCallback:Ko,useContext:Ni,useEffect:Oo,useImperativeHandle:$o,useInsertionEffect:Bo,useLayoutEffect:Ho,useMemo:Xo,useReducer:ho,useRef:Ro,useState:function(){return ho(uo)},useDebugValue:Wo,useDeferredValue:function(e,t){var n=ao();return null===Va?qo(n,e,t):Qo(n,Va.memoizedState,e,t)},useTransition:function(){var e=ho(uo)[0],t=ao().memoizedState;return["boolean"==typeof e?e:oo(e),t]},useSyncExternalStore:po,useId:ns,useHostTransitionStatus:ts,useFormState:zo,useActionState:zo,useOptimistic:function(e,t){var n=ao();return null!==Va?wo(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:lo,useCacheRefresh:rs};function gs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ms.useEffectEvent=Vo;var ys={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$u(),i=ma(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=ga(e,i,r))&&(Ku(t,0,r),ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$u(),i=ma(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ga(e,i,r))&&(Ku(t,0,r),ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$u(),r=ma(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ga(e,r,n))&&(Ku(t,0,n),ya(t,e,n))}};function vs(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&Yn(n,r)&&Yn(i,a))}function bs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function xs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=c({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function ws(e){Sr(e)}function ks(e){console.error(e)}function Ss(e){Sr(e)}function Ts(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Es(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Cs(e,t,n){return(n=ma(n)).tag=3,n.payload={element:null},n.callback=function(){Ts(e,t)},n}function js(e){return(e=ma(e)).tag=3,e}function Ps(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Es(t,n,r)}}var o=n.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){Es(t,n,r),"function"!=typeof i&&(null===Du?Du=new Set([this]):Du.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ns=Error(r(461)),Ms=!1;function As(e,t,n,r){t.child=null===e?da(t,null,n,r):ca(t,e.child,n,r)}function Ls(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var o={};for(var s in r)"ref"!==s&&(o[s]=r[s])}else o=r;return Pi(t),r=Ga(e,t,n,o,a,i),s=to(),null===e||Ms?(li&&s&&ri(t),t.flags|=1,As(e,t,r,i),t.child):(no(e,t,i),tl(e,t,i))}function zs(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Ir(a)||void 0!==a.defaultProps||null!==n.compare?((e=Or(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ds(e,t,a,r,i))}if(a=e.child,!nl(e,i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:Yn)(o,r)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,(e=Fr(a,r)).ref=t.ref,e.return=t,t.child=e}function Ds(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(Yn(a,r)&&e.ref===t.ref){if(Ms=!1,t.pendingProps=r=a,!nl(e,i))return t.lanes=e.lanes,tl(e,t,i);131072&e.flags&&(Ms=!0)}}return Bs(e,t,n,r,i)}function Rs(e,t,n,r){var i=r.children,a=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(a=null!==a?a.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Fs(e,t,a,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==a?a.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ki(0,null!==a?a.cachePool:null),null!==a?Ca(t,a):ja(),za(t)}else null!==a?(Ki(0,a.cachePool),Ca(t,a),Da(),t.memoizedState=null):(null!==e&&Ki(0,null),ja(),Da());return As(e,t,i,n),t.child}function Is(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fs(e,t,n,r,i){var a=Wi();return a=null===a?null:{parent:Ri._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Ki(0,null),ja(),za(t),null!==e&&Ci(e,t,r,!0),t.childLanes=i,null}function _s(e,t){return(t=Ys({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Os(e,t,n){return ca(t,e.child,null,n),(e=_s(t,t.pendingProps)).flags|=2,Ra(t),t.memoizedState=null,e}function Vs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function Bs(e,t,n,r,i){return Pi(t),n=Ga(e,t,n,r,void 0,i),r=to(),null===e||Ms?(li&&r&&ri(t),t.flags|=1,As(e,t,n,i),t.child):(no(e,t,i),tl(e,t,i))}function Hs(e,t,n,r,i,a){return Pi(t),t.updateQueue=null,n=Ja(t,r,n,i),Za(e),r=to(),null===e||Ms?(li&&r&&ri(t),t.flags|=1,As(e,t,n,a),t.child):(no(e,t,a),tl(e,t,a))}function Us(e,t,n,r,i){if(Pi(t),null===t.stateNode){var a=zr,o=n.contextType;"object"==typeof o&&null!==o&&(a=Ni(o)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ys,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},ha(t),o=n.contextType,a.context="object"==typeof o&&null!==o?Ni(o):zr,a.state=t.memoizedState,"function"==typeof(o=n.getDerivedStateFromProps)&&(gs(t,n,o,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&ys.enqueueReplaceState(a,a.state,null),wa(t,r,a,i),xa(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=xs(n,s);a.props=l;var u=a.context,c=n.contextType;o=zr,"object"==typeof c&&null!==c&&(o=Ni(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||u!==o)&&bs(t,a,r,o),fa=!1;var f=t.memoizedState;a.state=f,wa(t,r,a,i),xa(),u=t.memoizedState,s||f!==u||fa?("function"==typeof d&&(gs(t,n,d,r),u=t.memoizedState),(l=fa||vs(t,n,l,r,f,u,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=o,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,pa(e,t),c=xs(n,o=t.memoizedProps),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=zr,"object"==typeof u&&null!==u&&(l=Ni(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==d||f!==l)&&bs(t,a,r,l),fa=!1,f=t.memoizedState,a.state=f,wa(t,r,a,i),xa();var h=t.memoizedState;o!==d||f!==h||fa||null!==e&&null!==e.dependencies&&ji(e.dependencies)?("function"==typeof s&&(gs(t,n,s,r),h=t.memoizedState),(c=fa||vs(t,n,c,r,f,h,l)||null!==e&&null!==e.dependencies&&ji(e.dependencies))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Vs(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=ca(t,e.child,null,i),t.child=ca(t,null,n,i)):As(e,t,n,i),t.memoizedState=a.state,e=t.child):e=tl(e,t,i),e}function $s(e,t,n,r){return gi(),t.flags|=256,As(e,t,n,r),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ks(e){return{baseLanes:e,cachePool:Xi()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Eu),e}function qs(e,t,n){var i,a=t.pendingProps,o=!1,s=!!(128&t.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&Ia.current)),i&&(o=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(li){if(o?Aa(t):Da(),(e=si)?null!==(e=null!==(e=Nd(e,ci))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==Zr?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},(n=Hr(e)).return=t,t.child=n,oi=t,si=null):e=null,null===e)throw fi(t);return Ad(e)?t.lanes=32:t.lanes=536870912,null}var l=a.children;return a=a.fallback,o?(Da(),l=Ys({mode:"hidden",children:l},o=t.mode),a=Vr(a,o,n,null),l.return=t,a.return=t,l.sibling=a,t.child=l,(a=t.child).memoizedState=Ks(n),a.childLanes=Xs(e,i,n),t.memoizedState=Ws,Is(null,a)):(Aa(t),Qs(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Aa(t),t.flags&=-257,t=Gs(e,t,n)):null!==t.memoizedState?(Da(),t.child=e.child,t.flags|=128,t=null):(Da(),l=a.fallback,o=t.mode,a=Ys({mode:"visible",children:a.children},o),(l=Vr(l,o,n,null)).flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,ca(t,e.child,null,n),(a=t.child).memoizedState=Ks(n),a.childLanes=Xs(e,i,n),t.memoizedState=Ws,t=Is(null,a));else if(Aa(t),Ad(l)){if(i=l.nextSibling&&l.nextSibling.dataset)var c=i.dgst;i=c,(a=Error(r(419))).stack="",a.digest=i,vi({value:a,source:null,stack:null}),t=Gs(e,t,n)}else if(Ms||Ci(e,t,n,!1),i=0!==(n&e.childLanes),Ms||i){if(null!==(i=fu)&&0!==(a=Le(i,n))&&a!==u.retryLane)throw u.retryLane=a,Mr(e,a),Ku(i,0,a),Ns;Md(l)||ic(),t=Gs(e,t,n)}else Md(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,si=Ld(l.nextSibling),oi=t,li=!0,ui=null,ci=!1,null!==e&&ai(t,e),(t=Qs(t,a.children)).flags|=4096);return t}return o?(Da(),l=a.fallback,o=t.mode,c=(u=e.child).sibling,(a=Fr(u,{mode:"hidden",children:a.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Fr(c,l):(l=Vr(l,o,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,Is(null,a),a=t.child,null===(l=e.child.memoizedState)?l=Ks(n):(null!==(o=l.cachePool)?(u=Ri._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Xi(),l={baseLanes:l.baseLanes|n,cachePool:o}),a.memoizedState=l,a.childLanes=Xs(e,i,n),t.memoizedState=Ws,Is(e.child,a)):(Aa(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(i=t.deletions)?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function Qs(e,t){return(t=Ys({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ys(e,t){return(e=Rr(22,e,null,t)).lanes=0,e}function Gs(e,t,n){return ca(t,e.child,null,n),(e=Qs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function Js(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function el(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ia.current,s=!!(2&o);if(s?(o=1&o|2,t.flags|=128):o&=1,_(Ia,o),As(e,t,r,n),r=li?Qr:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zs(e,n,t);else if(19===e.tag)Zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Js(t,!1,i,n,a,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Js(t,!0,n,null,a,r);break;case"together":Js(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function tl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ku|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ci(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function nl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ji(e))}function rl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ms=!0;else{if(!(nl(e,n)||128&t.flags))return Ms=!1,function(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),ki(0,Ri,e.memoizedState.cache),gi();break;case 27:case 5:X(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:ki(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,La(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Aa(t),t.flags|=128,null):0!==(n&t.child.childLanes)?qs(e,t,n):(Aa(t),null!==(e=tl(e,t,n))?e.sibling:null);Aa(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ci(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return el(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),_(Ia,Ia.current),r)break;return null;case 22:return t.lanes=0,Rs(e,t,n,t.pendingProps);case 24:ki(0,Ri,e.memoizedState.cache)}return tl(e,t,n)}(e,t,n);Ms=!!(131072&e.flags)}else Ms=!1,li&&1048576&t.flags&&ni(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ea(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===b){t.tag=11,t=Ls(null,t,e,i,n);break e}if(a===k){t.tag=14,t=zs(null,t,e,i,n);break e}}throw t=N(e)||e,Error(r(306,t,""))}Ir(e)?(i=xs(e,i),t.tag=1,t=Us(null,t,e,i,n)):(t.tag=0,t=Bs(null,t,e,i,n))}return t;case 0:return Bs(e,t,t.type,t.pendingProps,n);case 1:return Us(e,t,i=t.type,a=xs(i,t.pendingProps),n);case 3:e:{if(W(t,t.stateNode.containerInfo),null===e)throw Error(r(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,pa(e,t),wa(t,i,null,n);var s=t.memoizedState;if(i=s.cache,ki(0,Ri,i),i!==o.cache&&Ei(t,[Ri],n,!0),xa(),i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=$s(e,t,i,n);break e}if(i!==a){vi(a=Wr(Error(r(424)),t)),t=$s(e,t,i,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,si=Ld(e.firstChild),oi=t,li=!0,ui=null,ci=!0,n=da(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(gi(),i===a){t=tl(e,t,n);break e}As(e,t,i,n)}t=t.child}return t;case 26:return Vs(e,t),null===e?(n=$d(t.type,null,t.pendingProps,null))?t.memoizedState=n:li||(n=t.type,e=t.pendingProps,(i=md(U.current).createElement(n))[_e]=t,i[Oe]=e,dd(i,n,e),Ge(i),t.stateNode=i):t.memoizedState=$d(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&li&&(i=t.stateNode=Id(t.type,t.pendingProps,U.current),oi=t,ci=!0,a=si,Ed(t.type)?(zd=a,si=Ld(i.firstChild)):si=a),As(e,t,t.pendingProps.children,n),Vs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&li&&((a=i=si)&&(i=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[We])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===a)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(i,t.type,t.pendingProps,ci),null!==i?(t.stateNode=i,oi=t,si=Ld(i.firstChild),ci=!1,a=!0):a=!1),a||fi(t)),X(t),a=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,i=o.children,vd(a,o)?i=null:null!==s&&vd(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=Ga(e,t,eo,null,null,n),cf._currentValue=a),Vs(e,t),As(e,t,i,n),t.child;case 6:return null===e&&li&&((e=n=si)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=Ld(e.nextSibling)))return null;return e}(n,t.pendingProps,ci),null!==n?(t.stateNode=n,oi=t,si=null,e=!0):e=!1),e||fi(t)),null;case 13:return qs(e,t,n);case 4:return W(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ca(t,null,i,n):As(e,t,i,n),t.child;case 11:return Ls(e,t,t.type,t.pendingProps,n);case 7:return As(e,t,t.pendingProps,n),t.child;case 8:case 12:return As(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ki(0,t.type,i.value),As(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,Pi(t),i=i(a=Ni(a)),t.flags|=1,As(e,t,i,n),t.child;case 14:return zs(e,t,t.type,t.pendingProps,n);case 15:return Ds(e,t,t.type,t.pendingProps,n);case 19:return el(e,t,n);case 31:return function(e,t,n){var i=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(li){if("hidden"===i.mode)return e=_s(t,i),t.lanes=536870912,Is(null,e);if(La(t),(e=si)?null!==(e=null!==(e=Nd(e,ci))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==Zr?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},(n=Hr(e)).return=t,t.child=n,oi=t,si=null):e=null,null===e)throw fi(t);return t.lanes=536870912,null}return _s(t,i)}var o=e.memoizedState;if(null!==o){var s=o.dehydrated;if(La(t),a)if(256&t.flags)t.flags&=-257,t=Os(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Ms||Ci(e,t,n,!1),a=0!==(n&e.childLanes),Ms||a){if(null!==(i=fu)&&0!==(s=Le(i,n))&&s!==o.retryLane)throw o.retryLane=s,Mr(e,s),Ku(i,0,s),Ns;ic(),t=Os(e,t,n)}else e=o.treeContext,si=Ld(s.nextSibling),oi=t,li=!0,ui=null,ci=!1,null!==e&&ai(t,e),(t=_s(t,i)).flags|=4096;return t}return(e=Fr(e.child,{mode:i.mode,children:i.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Rs(e,t,n,t.pendingProps);case 24:return Pi(t),i=Ni(Ri),null===e?(null===(a=Wi())&&(a=fu,o=Ii(),a.pooledCache=o,o.refCount++,null!==o&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},ha(t),ki(0,Ri,a)):(0!==(e.lanes&n)&&(pa(e,t),wa(t,null,null,n),xa()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),ki(0,Ri,i)):(i=o.cache,ki(0,Ri,i),i!==a.cache&&Ei(t,[Ri],n,!0))),As(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function il(e){e.flags|=4}function al(e,t,n,r,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!tc())throw ta=Gi,Qi;e.flags|=8192}}else e.flags&=-16777217}function ol(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!rf(t)){if(!tc())throw ta=Gi,Qi;e.flags|=8192}}function sl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?je():536870912,e.lanes|=t,Cu|=t)}function ll(e,t){if(!li)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cl(e,t,n){var i=t.pendingProps;switch(ii(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ul(t),null;case 3:return n=t.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Si(Ri),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(mi(t)?il(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,yi())),ul(t),null;case 26:var a=t.type,o=t.memoizedState;return null===e?(il(t),null!==o?(ul(t),ol(t,o)):(ul(t),al(t,a,0,0,n))):o?o!==e.memoizedState?(il(t),ul(t),ol(t,o)):(ul(t),t.flags&=-16777217):((e=e.memoizedProps)!==i&&il(t),ul(t),al(t,a,0,0,n)),null;case 27:if(q(t),n=U.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&il(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return ul(t),null}e=B.current,mi(t)?hi(t):(e=Id(a,i,n),t.stateNode=e,il(t))}return ul(t),null;case 5:if(q(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&il(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return ul(t),null}if(o=B.current,mi(t))hi(t);else{var s=md(U.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(o=s.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof i.is?s.createElement("select",{is:i.is}):s.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o="string"==typeof i.is?s.createElement(a,{is:i.is}):s.createElement(a)}}o[_e]=t,o[Oe]=i;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)o.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(dd(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&il(t)}}return ul(t),al(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==i&&il(t);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(e=U.current,mi(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,null!==(a=oi))switch(a.tag){case 27:case 5:i=a.memoizedProps}e[_e]=t,(e=!!(e.nodeValue===n||null!==i&&!0===i.suppressHydrationWarning||ld(e.nodeValue,n)))||fi(t,!0)}else(e=md(e).createTextNode(i))[_e]=t,t.stateNode=e}return ul(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(i=mi(t),null!==n){if(null===e){if(!i)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[_e]=t}else gi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ul(t),e=!1}else n=yi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ra(t),t):(Ra(t),null);if(128&t.flags)throw Error(r(558))}return ul(t),null;case 13:if(i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=mi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[_e]=t}else gi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ul(t),a=!1}else a=yi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Ra(t),t):(Ra(t),null)}return Ra(t),128&t.flags?(t.lanes=n,t):(n=null!==i,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(i=t.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(a=i.alternate.memoizedState.cachePool.pool),o=null,null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),sl(t,t.updateQueue),ul(t),null);case 4:return K(),null===e&&Zc(t.stateNode.containerInfo),ul(t),null;case 10:return Si(t.type),ul(t),null;case 19:if(F(Ia),null===(i=t.memoizedState))return ul(t),null;if(a=!!(128&t.flags),null===(o=i.rendering))if(a)ll(i,!1);else{if(0!==wu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Fa(e))){for(t.flags|=128,ll(i,!1),e=o.updateQueue,t.updateQueue=e,sl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)_r(n,e),n=n.sibling;return _(Ia,1&Ia.current|2),li&&ti(t,i.treeForkCount),t.child}e=e.sibling}null!==i.tail&&ae()>Lu&&(t.flags|=128,a=!0,ll(i,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Fa(o))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,sl(t,e),ll(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!li)return ul(t),null}else 2*ae()-i.renderingStartTime>Lu&&536870912!==n&&(t.flags|=128,a=!0,ll(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ae(),e.sibling=null,n=Ia.current,_(Ia,a?1&n|2:1&n),li&&ti(t,i.treeForkCount),e):(ul(t),null);case 22:case 23:return Ra(t),Pa(),i=null!==t.memoizedState,null!==e?null!==e.memoizedState!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?!!(536870912&n)&&!(128&t.flags)&&(ul(t),6&t.subtreeFlags&&(t.flags|=8192)):ul(t),null!==(n=t.updateQueue)&&sl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),i=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),null!==e&&F($i),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Si(Ri),ul(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function dl(e,t){switch(ii(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Si(Ri),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return q(t),null;case 31:if(null!==t.memoizedState){if(Ra(t),null===t.alternate)throw Error(r(340));gi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ra(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));gi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Ia),null;case 4:return K(),null;case 10:return Si(t.type),null;case 22:case 23:return Ra(t),Pa(),null!==e&&F($i),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Si(Ri),null;default:return null}}function fl(e,t){switch(ii(t),t.tag){case 3:Si(Ri),K();break;case 26:case 27:case 5:q(t);break;case 4:K();break;case 31:null!==t.memoizedState&&Ra(t);break;case 13:Ra(t);break;case 19:F(Ia);break;case 10:Si(t.type);break;case 22:case 23:Ra(t),Pa(),null!==e&&F($i);break;case 24:Si(Ri)}}function hl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){wc(t,t.return,e)}}function pl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(void 0!==s){o.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(e){wc(i,l,e)}}}r=r.next}while(r!==a)}}catch(e){wc(t,t.return,e)}}function ml(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Sa(t,n)}catch(t){wc(e,e.return,t)}}}function gl(e,t,n){n.props=xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){wc(e,t,n)}}function vl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){wc(e,t,n)}}function bl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){wc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){wc(e,t,n)}else n.current=null}function xl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){wc(e,e.return,t)}}function wl(e,t,n){try{var i=e.stateNode;(function(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,s=null,l=null,u=null,c=null,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&null!=f)switch(p){case"checked":case"value":break;case"defaultValue":u=f;default:i.hasOwnProperty(p)||ud(e,t,p,null,i,f)}}for(var h in i){var p=i[h];if(f=n[h],i.hasOwnProperty(h)&&(null!=p||null!=f))switch(h){case"type":o=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":d=p;break;case"value":s=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:p!==f&&ud(e,t,h,p,i,f)}}return void mt(e,s,l,u,c,d,o,a);case"select":for(o in p=s=l=h=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":p=u;default:i.hasOwnProperty(o)||ud(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(null!=o||null!=u))switch(a){case"value":h=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==u&&ud(e,t,a,o,i,u)}return t=l,n=s,i=p,void(null!=h?vt(e,!!n,h,!1):!!i!=!!n&&(null!=t?vt(e,!!n,t,!0):vt(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=h=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,i,a)}for(s in i)if(a=i[s],o=n[s],i.hasOwnProperty(s)&&(null!=a||null!=o))switch(s){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==o&&ud(e,t,s,a,i,o)}return void bt(e,h,p);case"option":for(var m in n)h=n[m],n.hasOwnProperty(m)&&null!=h&&!i.hasOwnProperty(m)&&("selected"===m?e.selected=!1:ud(e,t,m,null,i,h));for(u in i)h=i[u],p=n[u],!i.hasOwnProperty(u)||h===p||null==h&&null==p||("selected"===u?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:ud(e,t,u,h,i,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)h=n[g],n.hasOwnProperty(g)&&null!=h&&!i.hasOwnProperty(g)&&ud(e,t,g,null,i,h);for(c in i)if(h=i[c],p=n[c],i.hasOwnProperty(c)&&h!==p&&(null!=h||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:ud(e,t,c,h,i,p)}return;default:if(Et(t)){for(var y in n)h=n[y],n.hasOwnProperty(y)&&void 0!==h&&!i.hasOwnProperty(y)&&cd(e,t,y,void 0,i,h);for(d in i)h=i[d],p=n[d],!i.hasOwnProperty(d)||h===p||void 0===h&&void 0===p||cd(e,t,d,h,i,p);return}}for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!i.hasOwnProperty(v)&&ud(e,t,v,null,i,h);for(f in i)h=i[f],p=n[f],!i.hasOwnProperty(f)||h===p||null==h&&null==p||ud(e,t,f,h,i,p)})(i,e.type,n,t),i[Oe]=t}catch(t){wc(e,e.return,t)}}function kl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Ed(e.type)||4===e.tag}function Sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Ed(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Nt));else if(4!==r&&(27===r&&Ed(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Ed(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function Cl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dd(t,r,n),t[_e]=e,t[Oe]=n}catch(t){wc(e,e.return,t)}}var jl=!1,Pl=!1,Nl=!1,Ml="function"==typeof WeakSet?WeakSet:Set,Al=null;function Ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&hl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){wc(n,n.return,e)}else{var i=xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){wc(n,n.return,e)}}64&r&&ml(n),512&r&&vl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Sa(e,t)}catch(e){wc(n,n.return,e)}}break;case 27:null===t&&4&r&&Cl(n);case 26:case 5:Kl(e,n),null===t&&4&r&&xl(n),512&r&&vl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&_l(e,n);break;case 13:Kl(e,n),4&r&&Ol(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Ec.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||jl)){t=null!==t&&null!==t.memoizedState||Pl,i=jl;var a=Pl;jl=r,(Pl=t)&&!a?ql(e,n,!!(8772&n.subtreeFlags)):Kl(e,n),jl=i,Pl=a}break;case 30:break;default:Kl(e,n)}}function zl(e){var t=e.alternate;null!==t&&(e.alternate=null,zl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ke(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Rl=!1;function Il(e,t,n){for(n=n.child;null!==n;)Fl(e,t,n),n=n.sibling}function Fl(e,t,n){if(me&&"function"==typeof me.onCommitFiberUnmount)try{me.onCommitFiberUnmount(pe,n)}catch{}switch(n.tag){case 26:Pl||bl(n,t),Il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Pl||bl(n,t);var r=Dl,i=Rl;Ed(n.type)&&(Dl=n.stateNode,Rl=!1),Il(e,t,n),Fd(n.stateNode),Dl=r,Rl=i;break;case 5:Pl||bl(n,t);case 6:if(r=Dl,i=Rl,Dl=null,Il(e,t,n),Rl=i,null!==(Dl=r))if(Rl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(e){wc(n,t,e)}else try{Dl.removeChild(n.stateNode)}catch(e){wc(n,t,e)}break;case 18:null!==Dl&&(Rl?(Cd(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),$f(e)):Cd(Dl,n.stateNode));break;case 4:r=Dl,i=Rl,Dl=n.stateNode.containerInfo,Rl=!0,Il(e,t,n),Dl=r,Rl=i;break;case 0:case 11:case 14:case 15:pl(2,n,t),Pl||pl(4,n,t),Il(e,t,n);break;case 1:Pl||(bl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&gl(n,t,r)),Il(e,t,n);break;case 21:Il(e,t,n);break;case 22:Pl=(r=Pl)||null!==n.memoizedState,Il(e,t,n),Pl=r;break;default:Il(e,t,n)}}function _l(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{$f(e)}catch(e){wc(t,t.return,e)}}}function Ol(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{$f(e)}catch(e){wc(t,t.return,e)}}function Vl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ml),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ml),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cc.bind(null,e,t);t.then(r,r)}})}function Bl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Ed(l.type)){Dl=l.stateNode,Rl=!1;break e}break;case 5:Dl=l.stateNode,Rl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Rl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Fl(o,s,a),Dl=null,Rl=!1,null!==(o=a.alternate)&&(o.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Ul(t,e),t=t.sibling}var Hl=null;function Ul(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bl(t,e),$l(e),4&i&&(pl(3,e,e.return),hl(3,e),pl(5,e,e.return));break;case 1:Bl(t,e),$l(e),512&i&&(Pl||null===n||bl(n,n.return)),64&i&&jl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?i:n.concat(i));break;case 26:var a=Hl;if(Bl(t,e),$l(e),512&i&&(Pl||null===n||bl(n,n.return)),4&i){var o=null!==n?n.memoizedState:null;if(i=e.memoizedState,null===n)if(null===i)if(null===e.stateNode){e:{i=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":(!(o=a.getElementsByTagName("title")[0])||o[We]||o[_e]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=a.createElement(i),a.head.insertBefore(o,a.querySelector("head > title"))),dd(o,i,n),o[_e]=e,Ge(o),i=o;break e;case"link":var s=tf("link","href",a).get(i+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}dd(o=a.createElement(i),i,n),a.head.appendChild(o);break;case"meta":if(s=tf("meta","content",a).get(i+(n.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}dd(o=a.createElement(i),i,n),a.head.appendChild(o);break;default:throw Error(r(468,i))}o[_e]=e,Ge(o),i=o}e.stateNode=i}else nf(a,e.type,e.stateNode);else e.stateNode=Yd(a,i,e.memoizedProps);else o!==i?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===i?nf(a,e.type,e.stateNode):Yd(a,i,e.memoizedProps)):null===i&&null!==e.stateNode&&wl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Bl(t,e),$l(e),512&i&&(Pl||null===n||bl(n,n.return)),null!==n&&4&i&&wl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Bl(t,e),$l(e),512&i&&(Pl||null===n||bl(n,n.return)),32&e.flags){a=e.stateNode;try{wt(a,"")}catch(t){wc(e,e.return,t)}}4&i&&null!=e.stateNode&&wl(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&i&&(Nl=!0);break;case 6:if(Bl(t,e),$l(e),4&i){if(null===e.stateNode)throw Error(r(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(t){wc(e,e.return,t)}}break;case 3:if(ef=null,a=Hl,Hl=Vd(t.containerInfo),Bl(t,e),Hl=a,$l(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{$f(t.containerInfo)}catch(t){wc(e,e.return,t)}Nl&&(Nl=!1,Wl(e));break;case 4:i=Hl,Hl=Vd(e.stateNode.containerInfo),Bl(t,e),$l(e),Hl=i;break;case 12:default:Bl(t,e),$l(e);break;case 31:case 19:Bl(t,e),$l(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Vl(e,i));break;case 13:Bl(t,e),$l(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Mu=ae()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Vl(e,i));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=jl,d=Pl;if(jl=c||a,Pl=d||u,Bl(t,e),Pl=d,jl=c,$l(e),8192&i)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||jl||Pl||Xl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,a)"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,h=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(e){wc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){wc(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var p=u.stateNode;a?jd(p,!0):jd(u.stateNode,!1)}catch(e){wc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(n=i.retryQueue)&&(i.retryQueue=null,Vl(e,n));case 30:case 21:}}function $l(e){var t=e.flags;if(2&t){try{for(var n,i=e.return;null!==i;){if(kl(i)){n=i;break}i=i.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;El(e,Sl(e),a);break;case 5:var o=n.stateNode;32&n.flags&&(wt(o,""),n.flags&=-33),El(e,Sl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Tl(e,Sl(e),s);break;default:throw Error(r(161))}}catch(t){wc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Wl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Wl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Kl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ll(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pl(4,t,t.return),Xl(t);break;case 1:bl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&gl(t,t.return,n),Xl(t);break;case 27:Fd(t.stateNode);case 26:case 5:bl(t,t.return),Xl(t);break;case 22:null===t.memoizedState&&Xl(t);break;default:Xl(t)}e=e.sibling}}function ql(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:ql(i,a,n),hl(4,a);break;case 1:if(ql(i,a,n),"function"==typeof(i=(r=a).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){wc(r,r.return,e)}if(null!==(i=(r=a).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ka(l[i],s)}catch(e){wc(r,r.return,e)}}n&&64&o&&ml(a),vl(a,a.return);break;case 27:Cl(a);case 26:case 5:ql(i,a,n),n&&null===r&&4&o&&xl(a),vl(a,a.return);break;case 12:ql(i,a,n);break;case 31:ql(i,a,n),n&&4&o&&_l(i,a);break;case 13:ql(i,a,n),n&&4&o&&Ol(i,a);break;case 22:null===a.memoizedState&&ql(i,a,n),vl(a,a.return);break;case 30:break;default:ql(i,a,n)}t=t.sibling}}function Ql(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Fi(n))}function Yl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Fi(e))}function Gl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Zl(e,t,n,r),t=t.sibling}function Zl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Gl(e,t,n,r),2048&i&&hl(9,t);break;case 1:case 31:case 13:default:Gl(e,t,n,r);break;case 3:Gl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Fi(e)));break;case 12:if(2048&i){Gl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;"function"==typeof s&&s(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){wc(t,t.return,e)}}else Gl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,null!==t.memoizedState?2&a._visibility?Gl(e,t,n,r):eu(e,t):2&a._visibility?Gl(e,t,n,r):(a._visibility|=2,Jl(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&i&&Ql(o,t);break;case 24:Gl(e,t,n,r),2048&i&&Yl(t.alternate,t)}}function Jl(e,t,n,r,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var a=e,o=t,s=n,l=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:Jl(a,o,s,l,i),hl(8,o);break;case 23:break;case 22:var c=o.stateNode;null!==o.memoizedState?2&c._visibility?Jl(a,o,s,l,i):eu(a,o):(c._visibility|=2,Jl(a,o,s,l,i)),i&&2048&u&&Ql(o.alternate,o);break;case 24:Jl(a,o,s,l,i),i&&2048&u&&Yl(o.alternate,o);break;default:Jl(a,o,s,l,i)}t=t.sibling}}function eu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:eu(n,r),2048&i&&Ql(r.alternate,r);break;case 24:eu(n,r),2048&i&&Yl(r.alternate,r);break;default:eu(n,r)}t=t.sibling}}var tu=8192;function nu(e,t,n){if(e.subtreeFlags&tu)for(e=e.child;null!==e;)ru(e,t,n),e=e.sibling}function ru(e,t,n){switch(e.tag){case 26:nu(e,t,n),e.flags&tu&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var i=Wd(r.href),a=t.querySelector(Kd(i));if(a)return null!==(t=a._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=of.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,void Ge(a);a=t.ownerDocument||t,r=Xd(r),(i=_d.get(i))&&Zd(r,i),Ge(a=a.createElement("link"));var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),dd(a,"link",r),n.instance=a}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=of.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:nu(e,t,n);break;case 3:case 4:var r=Hl;Hl=Vd(e.stateNode.containerInfo),nu(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=tu,tu=16777216,nu(e,t,n),tu=r):nu(e,t,n))}}function iu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function au(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Al=r,lu(r,e)}iu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ou(e),e=e.sibling}function ou(e){switch(e.tag){case 0:case 11:case 15:au(e),2048&e.flags&&pl(9,e,e.return);break;case 3:case 12:default:au(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,su(e)):au(e)}}function su(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Al=r,lu(r,e)}iu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:pl(8,t,t.return),su(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,su(t));break;default:su(t)}e=e.sibling}}function lu(e,t){for(;null!==Al;){var n=Al;switch(n.tag){case 0:case 11:case 15:pl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Fi(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Al=r;else e:for(n=e;null!==Al;){var i=(r=Al).sibling,a=r.return;if(zl(r),r===n){Al=null;break e}if(null!==i){i.return=a,Al=i;break e}Al=a}}}var uu={getCacheForType:function(e){var t=Ni(Ri),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ni(Ri).controller.signal}},cu="function"==typeof WeakMap?WeakMap:Map,du=0,fu=null,hu=null,pu=0,mu=0,gu=null,yu=!1,vu=!1,bu=!1,xu=0,wu=0,ku=0,Su=0,Tu=0,Eu=0,Cu=0,ju=null,Pu=null,Nu=!1,Mu=0,Au=0,Lu=1/0,zu=null,Du=null,Ru=0,Iu=null,Fu=null,_u=0,Ou=0,Vu=null,Bu=null,Hu=0,Uu=null;function $u(){return 2&du&&0!==pu?pu&-pu:null!==A.T?Vc():Re()}function Wu(){if(0===Eu)if(536870912&pu&&!li)Eu=536870912;else{var e=we;!(3932160&(we<<=1))&&(we=262144),Eu=e}return null!==(e=Na.current)&&(e.flags|=32),Eu}function Ku(e,t,n){(e===fu&&(2===mu||9===mu)||null!==e.cancelPendingCommit)&&(Ju(e,0),Yu(e,pu,Eu,!1)),Ne(e,n),(!(2&du)||e!==fu)&&(e===fu&&(!(2&du)&&(Su|=n),4===wu&&Yu(e,pu,Eu,!1)),zc(e))}function Xu(e,t,n){if(6&du)throw Error(r(327));for(var i=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ee(e,t),a=i?function(e,t){var n=du;du|=2;var i=nc(),a=rc();fu!==e||pu!==t?(zu=null,Lu=ae()+500,Ju(e,t)):vu=Ee(e,t);e:for(;;)try{if(0!==mu&&null!==hu){t=hu;var o=gu;t:switch(mu){case 1:mu=0,gu=null,cc(e,t,o,1);break;case 2:case 9:if(Zi(o)){mu=0,gu=null,uc(t);break}t=function(){2!==mu&&9!==mu||fu!==e||(mu=7),zc(e)},o.then(t,t);break e;case 3:mu=7;break e;case 4:mu=5;break e;case 7:Zi(o)?(mu=0,gu=null,uc(t)):(mu=0,gu=null,cc(e,t,o,7));break;case 5:var s=null;switch(hu.tag){case 26:s=hu.memoizedState;case 5:case 27:var l=hu;if(s?rf(s):l.stateNode.complete){mu=0,gu=null;var u=l.sibling;if(null!==u)hu=u;else{var c=l.return;null!==c?(hu=c,dc(c)):hu=null}break t}}mu=0,gu=null,cc(e,t,o,5);break;case 6:mu=0,gu=null,cc(e,t,o,6);break;case 8:Zu(),wu=6;break e;default:throw Error(r(462))}}sc();break}catch(t){ec(e,t)}return wi=xi=null,A.H=i,A.A=a,du=n,null!==hu?0:(fu=null,pu=0,jr(),wu)}(e,t):ac(e,t,!0),o=i;;){if(0===a){vu&&!i&&Yu(e,t,0,!1);break}if(n=e.current.alternate,!o||Qu(n)){if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=ju;var u=l.current.memoizedState.isDehydrated;if(u&&(Ju(l,s).flags|=256),2!==(s=ac(l,s,!1))){if(bu&&!u){l.errorRecoveryDisabledLanes|=o,Su|=o,a=4;break e}o=Pu,Pu=a,null!==o&&(null===Pu?Pu=o:Pu.push.apply(Pu,o))}a=s}if(o=!1,2!==a)continue}}if(1===a){Ju(e,0),Yu(e,t,0,!0);break}e:{switch(i=e,o=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Yu(i,t,Eu,!yu);break e;case 2:Pu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Mu+300-ae())){if(Yu(i,t,Eu,!yu),0!==Te(i,0,!0))break e;_u=t,i.timeoutHandle=xd(qu.bind(null,i,n,Pu,zu,Nu,t,Eu,Su,Cu,yu,o,"Throttled",-0,0),a)}else qu(i,n,Pu,zu,Nu,t,Eu,Su,Cu,yu,o,null,-0,0)}break}a=ac(e,t,!1),o=!1}zc(e)}function qu(e,t,n,r,i,a,o,s,l,u,c,d,f,h){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ru(t,a,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nt});var p=(62914560&a)===a?Mu-ae():(4194048&a)===a?Au-ae():0;if(p=function(e,t){return e.stylesheets&&0===e.count&&lf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===af&&(af=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&fd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&fd(d)&&(o+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(a+o)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,p),null!==p)return _u=a,e.cancelPendingCommit=p(hc.bind(null,e,t,a,n,r,i,o,s,l,c,d,null,f,h)),void Yu(e,a,o,!u)}hc(e,t,a,n,r,i,o,s,l)}function Qu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Qn(a(),i))return!1}catch{return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yu(e,t,n,r){t&=~Tu,t&=~Su,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ye(i),o=1<<a;r[a]=-1,i&=~o}0!==n&&Me(e,n,t)}function Gu(){return!!(6&du)||(Dc(0),!1)}function Zu(){if(null!==hu){if(0===mu)var e=hu.return;else wi=xi=null,ro(e=hu),ia=null,aa=0,e=hu;for(;null!==e;)fl(e.alternate,e),e=e.return;hu=null}}function Ju(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,wd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),_u=0,Zu(),fu=e,hu=n=Fr(e.current,null),pu=t,mu=0,gu=null,yu=!1,vu=Ee(e,t),bu=!1,Cu=Eu=Tu=Su=ku=wu=0,Pu=ju=null,Nu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-ye(r),a=1<<i;t|=e[i],r&=~a}return xu=t,jr(),n}function ec(e,t){Oa=null,A.H=fs,t===qi||t===Yi?(t=na(),mu=3):t===Qi?(t=na(),mu=4):mu=t===Ns?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,gu=t,null===hu&&(wu=1,Ts(e,Wr(t,e.current)))}function tc(){var e=Na.current;return null===e||((4194048&pu)===pu?null===Ma:!!((62914560&pu)===pu||536870912&pu)&&e===Ma)}function nc(){var e=A.H;return A.H=fs,null===e?fs:e}function rc(){var e=A.A;return A.A=uu,e}function ic(){wu=4,yu||(4194048&pu)!==pu&&null!==Na.current||(vu=!0),!(134217727&ku)&&!(134217727&Su)||null===fu||Yu(fu,pu,Eu,!1)}function ac(e,t,n){var r=du;du|=2;var i=nc(),a=rc();(fu!==e||pu!==t)&&(zu=null,Ju(e,t)),t=!1;var o=wu;e:for(;;)try{if(0!==mu&&null!==hu){var s=hu,l=gu;switch(mu){case 8:Zu(),o=6;break e;case 3:case 2:case 9:case 6:null===Na.current&&(t=!0);var u=mu;if(mu=0,gu=null,cc(e,s,l,u),n&&vu){o=0;break e}break;default:u=mu,mu=0,gu=null,cc(e,s,l,u)}}oc(),o=wu;break}catch(t){ec(e,t)}return t&&e.shellSuspendCounter++,wi=xi=null,du=r,A.H=i,A.A=a,null===hu&&(fu=null,pu=0,jr()),o}function oc(){for(;null!==hu;)lc(hu)}function sc(){for(;null!==hu&&!re();)lc(hu)}function lc(e){var t=rl(e.alternate,e,xu);e.memoizedProps=e.pendingProps,null===t?dc(e):hu=t}function uc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hs(n,t,t.pendingProps,t.type,void 0,pu);break;case 11:t=Hs(n,t,t.pendingProps,t.type.render,t.ref,pu);break;case 5:ro(t);default:fl(n,t),t=rl(n,t=hu=_r(t,xu),xu)}e.memoizedProps=e.pendingProps,null===t?dc(e):hu=t}function cc(e,t,n,i){wi=xi=null,ro(t),ia=null,aa=0;var a=t.return;try{if(function(e,t,n,i,a){if(n.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(t=n.alternate)&&Ci(t,n,a,!0),null!==(n=Na.current)){switch(n.tag){case 31:case 13:return null===Ma?ic():null===n.alternate&&0===wu&&(wu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Gi?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([i]):t.add(i),kc(e,i,a)),!1;case 22:return n.flags|=65536,i===Gi?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([i]):n.add(i),kc(e,i,a)),!1}throw Error(r(435,n.tag))}return kc(e,i,a),ic(),!1}if(li)return null!==(t=Na.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==di&&vi(Wr(e=Error(r(422),{cause:i}),n))):(i!==di&&vi(Wr(t=Error(r(423),{cause:i}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,i=Wr(i,n),va(e,a=Cs(e.stateNode,i,a)),4!==wu&&(wu=2)),!1;var o=Error(r(520),{cause:i});if(o=Wr(o,n),null===ju?ju=[o]:ju.push(o),4!==wu&&(wu=2),null===t)return!0;i=Wr(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,va(n,e=Cs(n.stateNode,i,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Du&&Du.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,Ps(a=js(a),e,n,i),va(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,pu))return wu=1,Ts(e,Wr(n,e.current)),void(hu=null)}catch(t){if(null!==a)throw hu=a,t;return wu=1,Ts(e,Wr(n,e.current)),void(hu=null)}32768&t.flags?(li||1===i?e=!0:vu||536870912&pu?e=!1:(yu=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=Na.current)&&13===i.tag&&(i.flags|=16384)),fc(t,e)):dc(t)}function dc(e){var t=e;do{if(32768&t.flags)return void fc(t,yu);e=t.return;var n=cl(t.alternate,t,xu);if(null!==n)return void(hu=n);if(null!==(t=t.sibling))return void(hu=t);hu=t=e}while(null!==t);0===wu&&(wu=5)}function fc(e,t){do{var n=dl(e.alternate,e);if(null!==n)return n.flags&=32767,void(hu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(hu=e);hu=e=n}while(null!==e);wu=6,hu=null}function hc(e,t,n,i,a,o,s,l,u){e.cancelPendingCommit=null;do{vc()}while(0!==Ru);if(6&du)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var c=31-ye(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];null!==h&&(h.lane&=-536870913)}n&=~d}0!==r&&Me(e,r,0),0!==a&&0===i&&0!==e.tag&&(e.suspendedLanes|=a&~(o&~t))}(e,n,o|=Cr,s,l,u),e===fu&&(hu=fu=null,pu=0),Fu=t,Iu=e,_u=n,Ou=o,Vu=a,Bu=i,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,function(e){te(e,function(){return bc(),null})}(ue)):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&t.flags),13878&t.subtreeFlags||i){i=A.T,A.T=null,a=L.p,L.p=2,s=du,du|=4;try{!function(e,t){if(e=e.containerInfo,hd=bf,tr(e=er(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==o||0!==i&&3!==f.nodeType||(u=s+i),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===a&&(l=s),h===o&&++d===i&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(pd={focusedElem:e,selectionRange:n},bf=!1,Al=t;null!==Al;)if(e=(t=Al).child,1028&t.subtreeFlags&&null!==e)e.return=t,Al=e;else for(;null!==Al;){switch(o=(t=Al).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var m=xs(n.type,a);e=i.getSnapshotBeforeUpdate(m,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(e){wc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Pd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Al=e;break}Al=t.return}}(e,t)}finally{du=s,L.p=a,A.T=i}}Ru=1,pc(),mc(),gc()}}function pc(){if(1===Ru){Ru=0;var e=Iu,t=Fu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=A.T,A.T=null;var r=L.p;L.p=2;var i=du;du|=4;try{Ul(t,e);var a=pd,o=er(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Jn(s.ownerDocument.documentElement,s)){if(null!==l&&tr(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),p=s.textContent.length,m=Math.min(l.start,p),g=void 0===l.end?m:Math.min(l.end,p);!h.extend&&m>g&&(o=g,g=m,m=o);var y=Zn(s,m),v=Zn(s,g);if(y&&v&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),h.removeAllRanges(),m>g?(h.addRange(b),h.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),h.addRange(b))}}}}for(d=[],h=s;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}bf=!!hd,pd=hd=null}finally{du=i,L.p=r,A.T=n}}e.current=t,Ru=2}}function mc(){if(2===Ru){Ru=0;var e=Iu,t=Fu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=A.T,A.T=null;var r=L.p;L.p=2;var i=du;du|=4;try{Ll(e,t.alternate,t)}finally{du=i,L.p=r,A.T=n}}Ru=3}}function gc(){if(4===Ru||3===Ru){Ru=0,ie();var e=Iu,t=Fu,n=_u,r=Bu;10256&t.subtreeFlags||10256&t.flags?Ru=5:(Ru=0,Fu=Iu=null,yc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Du=null),De(n),t=t.stateNode,me&&"function"==typeof me.onCommitFiberRoot)try{me.onCommitFiberRoot(pe,t,void 0,!(128&~t.current.flags))}catch{}if(null!==r){t=A.T,i=L.p,L.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,L.p=i}}!!(3&_u)&&vc(),zc(e),i=e.pendingLanes,261930&n&&42&i?e===Uu?Hu++:(Hu=0,Uu=e):Hu=0,Dc(0)}}function yc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Fi(t))}function vc(){return pc(),mc(),gc(),bc()}function bc(){if(5!==Ru)return!1;var e=Iu,t=Ou;Ou=0;var n=De(_u),i=A.T,a=L.p;try{L.p=32>n?32:n,A.T=null,n=Vu,Vu=null;var o=Iu,s=_u;if(Ru=0,Fu=Iu=null,_u=0,6&du)throw Error(r(331));var l=du;if(du|=4,ou(o.current),Zl(o,o.current,s,n),du=l,Dc(0),me&&"function"==typeof me.onPostCommitFiberRoot)try{me.onPostCommitFiberRoot(pe,o)}catch{}return!0}finally{L.p=a,A.T=i,yc(e,t)}}function xc(e,t,n){t=Wr(n,t),null!==(e=ga(e,t=Cs(e.stateNode,t,2),2))&&(Ne(e,2),zc(e))}function wc(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Du||!Du.has(r))){e=Wr(n,e),null!==(r=ga(t,n=js(2),2))&&(Ps(n,r,t,e),Ne(r,2),zc(r));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(bu=!0,i.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,fu===e&&(pu&n)===n&&(4===wu||3===wu&&(62914560&pu)===pu&&300>ae()-Mu?!(2&du)&&Ju(e,0):Tu|=n,Cu===pu&&(Cu=0)),zc(e)}function Tc(e,t){0===t&&(t=je()),null!==(e=Mr(e,t))&&(Ne(e,t),zc(e))}function Ec(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Cc(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==i&&i.delete(t),Tc(e,n)}var jc=null,Pc=null,Nc=!1,Mc=!1,Ac=!1,Lc=0;function zc(e){e!==Pc&&null===e.next&&(null===Pc?jc=Pc=e:Pc=Pc.next=e),Mc=!0,Nc||(Nc=!0,Sd(function(){6&du?te(se,Rc):Ic()}))}function Dc(e,t){if(!Ac&&Mc){Ac=!0;do{for(var n=!1,r=jc;null!==r;){if(0!==e){var i=r.pendingLanes;if(0===i)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ye(42|e)+1)-1,a=201326741&(a&=i&~(o&~s))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Oc(r,a))}else a=pu,!(3&(a=Te(r,r===fu?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ee(r,a)||(n=!0,Oc(r,a));r=r.next}}while(n);Ac=!1}}function Rc(){Ic()}function Ic(){Mc=Nc=!1;var e=0;0!==Lc&&function(){var e=window.event;return e&&"popstate"===e.type?e!==bd&&(bd=e,!0):(bd=null,!1)}()&&(e=Lc);for(var t=ae(),n=null,r=jc;null!==r;){var i=r.next,a=Fc(r,t);0===a?(r.next=null,null===n?jc=i:n.next=i,null===i&&(Pc=n)):(n=r,(0!==e||!!(3&a))&&(Mc=!0)),r=i}0!==Ru&&5!==Ru||Dc(e),0!==Lc&&(Lc=0)}function Fc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ye(a),s=1<<o,l=i[o];-1===l?(0===(s&n)||0!==(s&r))&&(i[o]=Ce(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(n=pu,n=Te(e,e===(t=fu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===mu||9===mu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ee(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ne(r),De(n)){case 2:case 8:n=le;break;case 32:default:n=ue;break;case 268435456:n=de}return r=_c.bind(null,e),n=te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ne(r),e.callbackPriority=2,e.callbackNode=null,2}function _c(e,t){if(0!==Ru&&5!==Ru)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(vc()&&e.callbackNode!==n)return null;var r=pu;return 0===(r=Te(e,e===fu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Xu(e,r,t),Fc(e,ae()),null!=e.callbackNode&&e.callbackNode===n?_c.bind(null,e):null)}function Oc(e,t){if(vc())return null;Xu(e,t,!0)}function Vc(){if(0===Lc){var e=Vi;0===e&&(e=xe,!(261888&(xe<<=1))&&(xe=256)),Lc=e}return Lc}function Bc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Uc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var $c=0;$c<wr.length;$c++){var Wc=wr[$c];kr(Wc.toLowerCase(),"on"+(Wc[0].toUpperCase()+Wc.slice(1)))}kr(hr,"onAnimationEnd"),kr(pr,"onAnimationIteration"),kr(mr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(gr,"onTransitionRun"),kr(yr,"onTransitionStart"),kr(vr,"onTransitionCancel"),kr(br,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kc));function qc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(e){Sr(e)}i.currentTarget=null,a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(e){Sr(e)}i.currentTarget=null,a=l}}}}function Qc(e,t){var n=t[Be];void 0===n&&(n=t[Be]=new Set);var r=e+"__bubble";n.has(r)||(Jc(t,e,2,!1),n.add(r))}function Yc(e,t,n){var r=0;t&&(r|=4),Jc(n,e,r,t)}var Gc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Gc]){e[Gc]=!0,Ze.forEach(function(t){"selectionchange"!==t&&(Xc.has(t)||Yc(t,!1,e),Yc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Gc]||(t[Gc]=!0,Yc("selectionchange",!1,t))}}function Jc(e,t,n,r){switch(Cf(t)){case 2:var i=xf;break;case 8:i=wf;break;default:i=kf}n=i.bind(null,t,n,e),i=void 0,!Ot||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ed(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=o=s;continue e}l=l.parentNode}}r=r.return}It(function(){var r=o,i=At(n),s=[];e:{var l=xr.get(e);if(void 0!==l){var u=Jt,c=e;switch(e){case"keypress":if(0===Wt(n))break e;case"keydown":case"keyup":u=mn;break;case"focusin":c="focus",u=on;break;case"focusout":c="blur",u=on;break;case"beforeblur":case"afterblur":u=on;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=rn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=yn;break;case hr:case pr:case mr:u=sn;break;case br:u=vn;break;case"scroll":case"scrollend":u=tn;break;case"wheel":u=bn;break;case"copy":case"cut":case"paste":u=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=gn;break;case"toggle":case"beforetoggle":u=xn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),h=d?null!==l?l+"Capture":null:l;d=[];for(var p,m=r;null!==m;){var g=m;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===h||null!=(g=Ft(m,h))&&d.push(td(m,g,p)),f)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Mt||!(c=n.relatedTarget||n.fromElement)||!Xe(c)&&!c[Ve])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Xe(c):null)&&(f=a(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=rn,g="onMouseLeave",h="onMouseEnter",m="mouse",("pointerout"===e||"pointerover"===e)&&(d=gn,g="onPointerLeave",h="onPointerEnter",m="pointer"),f=null==u?l:Qe(u),p=null==c?l:Qe(c),(l=new d(g,m+"leave",u,n,i)).target=f,l.relatedTarget=p,g=null,Xe(i)===r&&((d=new d(h,m+"enter",c,n,i)).target=p,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=rd,m=c,p=0,g=h=u;g;g=d(g))p++;g=0;for(var y=m;y;y=d(y))g++;for(;0<p-g;)h=d(h),p--;for(;0<g-p;)m=d(m),g--;for(;p--;){if(h===m||null!==m&&h===m.alternate){d=h;break e}h=d(h),m=d(m)}d=null}else d=null;null!==u&&id(s,l,u,d,!1),null!==c&&null!==f&&id(s,f,c,d,!0)}if("select"===(u=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=_n;else if(Ln(l))if(On)v=qn;else{v=Kn;var b=Wn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Et(r.elementType)&&(v=_n):v=Xn;switch(v&&(v=v(e,r))?zn(s,v,n,i):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&yt(l,"number",l.value)),b=r?Qe(r):window,e){case"focusin":(Ln(b)||"true"===b.contentEditable)&&(rr=b,ir=r,ar=null);break;case"focusout":ar=ir=rr=null;break;case"mousedown":or=!0;break;case"contextmenu":case"mouseup":case"dragend":or=!1,sr(s,n,i);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":sr(s,n,i)}var x;if(kn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Mn?Pn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(En&&"ko"!==n.locale&&(Mn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Mn&&(x=$t()):(Ht="value"in(Bt=i)?Bt.value:Bt.textContent,Mn=!0)),0<(b=nd(r,w)).length&&(w=new un(w,e,null,n,i),s.push({event:w,listeners:b}),(x||null!==(x=Nn(n)))&&(w.data=x))),(x=Tn?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:(jn=!0,Cn);case"textInput":return(e=t.data)===Cn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Mn)return"compositionend"===e||!kn&&Pn(e,t)?(e=$t(),Ut=Ht=Bt=null,Mn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return En&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=nd(r,"onBeforeInput")).length&&(b=new un("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:w}),b.data=x),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var a=Bc((i[Oe]||null).action),o=r.submitter;o&&null!==(t=(t=o[Oe]||null)?Bc(t.formAction):o.getAttribute("formAction"))&&(a=t,o=null);var s=new Jt("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Lc){var e=o?Uc(i,o):new FormData(i);Zo(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=o?Uc(i,o):new FormData(i),Zo(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(s,e,r,n,i)}qc(s,t)})}function td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===a||(null!=(i=Ft(e,n))&&r.unshift(td(e,i,a)),null!=(i=Ft(e,t))&&r.push(td(e,i,a))),3===e.tag)return r;e=e.return}return[]}function rd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=Ft(n,a))&&o.unshift(td(n,u,l)):i||null!=(u=Ft(n,a))&&o.push(td(n,u,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var ad=/\r\n?/g,od=/\u0000|\uFFFD/g;function sd(e){return("string"==typeof e?e:""+e).replace(ad,"\n").replace(od,"")}function ld(e,t){return t=sd(t),sd(e)===t}function ud(e,t,n,i,a,o){switch(n){case"children":"string"==typeof i?"body"===t||"textarea"===t&&""===i||wt(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==t&&wt(e,""+i);break;case"className":ot(e,"class",i);break;case"tabIndex":ot(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,i);break;case"style":Tt(e,i,o);break;case"data":if("object"!==t){ot(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=Pt(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&ud(e,t,"name",a.name,a,null),ud(e,t,"formEncType",a.formEncType,a,null),ud(e,t,"formMethod",a.formMethod,a,null),ud(e,t,"formTarget",a.formTarget,a,null)):(ud(e,t,"encType",a.encType,a,null),ud(e,t,"method",a.method,a,null),ud(e,t,"target",a.target,a,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=Pt(""+i),e.setAttribute(n,i);break;case"onClick":null!=i&&(e.onclick=Nt);break;case"onScroll":null!=i&&Qc("scroll",e);break;case"onScrollEnd":null!=i&&Qc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}n=Pt(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===i?e.setAttribute(n,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Qc("beforetoggle",e),Qc("toggle",e),at(e,"popover",i);break;case"xlinkActuate":st(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":st(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":st(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":st(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":st(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":st(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":st(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":st(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":st(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":at(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&at(e,n=Ct.get(n)||n,i)}}function cd(e,t,n,i,a,o){switch(n){case"style":Tt(e,i,o);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof i?wt(e,i):("number"==typeof i||"bigint"==typeof i)&&wt(e,""+i);break;case"onScroll":null!=i&&Qc("scroll",e);break;case"onScrollEnd":null!=i&&Qc("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Je.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Oe]||null)?o[n]:null)&&e.removeEventListener(t,o,a),"function"!=typeof i)?n in e?e[n]=i:!0===i?e.setAttribute(n,""):at(e,n,i):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,a)))}}function dd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qc("error",e),Qc("load",e);var i,a=!1,o=!1;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(null!=s)switch(i){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ud(e,t,i,s,n,null)}}return o&&ud(e,t,"srcSet",n.srcSet,n,null),void(a&&ud(e,t,"src",n.src,n,null));case"input":Qc("invalid",e);var l=i=s=o=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":o=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ud(e,t,a,d,n,null)}}return void gt(e,i,l,u,c,s,o,!1);case"select":for(o in Qc("invalid",e),a=s=i=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:ud(e,t,o,l,n,null)}return t=i,n=s,e.multiple=!!a,void(null!=t?vt(e,!!a,t,!1):null!=n&&vt(e,!!a,n,!0));case"textarea":for(s in Qc("invalid",e),i=o=a=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":a=l;break;case"defaultValue":o=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ud(e,t,s,l,n,null)}return void xt(e,a,o,i);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(a=n[u])&&("selected"===u?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:ud(e,t,u,a,n,null));return;case"dialog":Qc("beforetoggle",e),Qc("toggle",e),Qc("cancel",e),Qc("close",e);break;case"iframe":case"object":Qc("load",e);break;case"video":case"audio":for(a=0;a<Kc.length;a++)Qc(Kc[a],e);break;case"image":Qc("error",e),Qc("load",e);break;case"details":Qc("toggle",e);break;case"embed":case"source":case"link":Qc("error",e),Qc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ud(e,t,c,a,n,null)}return;default:if(Et(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(a=n[d])&&cd(e,t,d,a,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(a=n[l])&&ud(e,t,l,a,n,null)}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,pd=null;function md(e){return 9===e.nodeType?e:e.ownerDocument}function gd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function vd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bd=null,xd="function"==typeof setTimeout?setTimeout:void 0,wd="function"==typeof clearTimeout?clearTimeout:void 0,kd="function"==typeof Promise?Promise:void 0,Sd="function"==typeof queueMicrotask?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(Td)}:xd;function Td(e){setTimeout(function(){throw e})}function Ed(e){return"head"===e}function Cd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void $f(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[We]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=o}}else"body"===n&&Fd(e.ownerDocument.body);n=i}while(n);$f(t)}function jd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Pd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Pd(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Nd(e,t){for(;8!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=Ld(e.nextSibling)))return null;return e}function Md(e){return"$?"===e.data||"$~"===e.data}function Ad(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var zd=null;function Dd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Rd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Id(e,t,n){switch(t=md(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ke(e)}var _d=new Map,Od=new Set;function Vd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=L.d;L.d={f:function(){var e=Bd.f(),t=Gu();return e||t},r:function(e){var t=qe(e);null!==t&&5===t.tag&&"form"===t.type?es(t):Bd.r(e)},D:function(e){Bd.D(e),Ud("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Ud("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=Hd;if(r&&e&&t){var i='link[rel="preload"][as="'+pt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+pt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+pt(n.imageSizes)+'"]')):i+='[href="'+pt(e)+'"]';var a=i;switch(t){case"style":a=Wd(e);break;case"script":a=qd(e)}_d.has(a)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),_d.set(a,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Kd(a))||"script"===t&&r.querySelector(Qd(a))||(dd(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+pt(r)+'"][href="'+pt(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=qd(e)}if(!_d.has(a)&&(e=c({rel:"modulepreload",href:e},t),_d.set(a,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qd(a)))return}dd(r=n.createElement("link"),"link",e),Ge(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=Hd;if(n&&e){var r=Ye(n).hoistableScripts,i=qd(e),a=r.get(i);a||((a=n.querySelector(Qd(i)))||(e=c({src:e,async:!0},t),(t=_d.get(i))&&Jd(e,t),Ge(a=n.createElement("script")),dd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){Bd.S(e,t,n);var r=Hd;if(r&&e){var i=Ye(r).hoistableStyles,a=Wd(e);t=t||"default";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Kd(a)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=_d.get(a))&&Zd(e,n);var l=o=r.createElement("link");Ge(l),dd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Gd(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){Bd.M(e,t);var n=Hd;if(n&&e){var r=Ye(n).hoistableScripts,i=qd(e),a=r.get(i);a||((a=n.querySelector(Qd(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=_d.get(i))&&Jd(e,t),Ge(a=n.createElement("script")),dd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}};var Hd=typeof document>"u"?null:document;function Ud(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var i=pt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),Od.has(i)||(Od.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(dd(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}}function $d(e,t,n,i){var a=(a=U.current)?Vd(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Wd(n.href),(i=(n=Ye(a).hoistableStyles).get(t))||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Wd(n.href);var o=Ye(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Kd(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_d.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_d.set(e,n),o||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),dd(t,"link",n),Ge(t),e.head.appendChild(t))}(a,e,n,s.state))),t&&null===i)throw Error(r(528,""));return s}if(t&&null!==i)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=qd(n),(i=(n=Ye(a).hoistableScripts).get(t))||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Wd(e){return'href="'+pt(e)+'"'}function Kd(e){return'link[rel="stylesheet"]['+e+"]"}function Xd(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function qd(e){return'[src="'+pt(e)+'"]'}function Qd(e){return"script[async]"+e}function Yd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pt(n.href)+'"]');if(i)return t.instance=i,Ge(i),i;var a=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ge(i=(e.ownerDocument||e).createElement("style")),dd(i,"style",a),Gd(i,n.precedence,e),t.instance=i;case"stylesheet":a=Wd(n.href);var o=e.querySelector(Kd(a));if(o)return t.state.loading|=4,t.instance=o,Ge(o),o;i=Xd(n),(a=_d.get(a))&&Zd(i,a),Ge(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),dd(o,"link",i),t.state.loading|=4,Gd(o,n.precedence,e),t.instance=o;case"script":return o=qd(n.src),(a=e.querySelector(Qd(o)))?(t.instance=a,Ge(a),a):(i=n,(a=_d.get(o))&&Jd(i=c({},n),a),Ge(a=(e=e.ownerDocument||e).createElement("script")),dd(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(i=t.instance,t.state.loading|=4,Gd(i,n.precedence,e));return t.instance}function Gd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var ef=null;function tf(e,t,n){if(null===ef){var r=new Map,i=ef=new Map;i.set(n,r)}else(r=(i=ef).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[We]||a[_e]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(t)||"";o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function nf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function rf(e){return!("stylesheet"===e.type&&!(3&e.state.loading))}var af=0;function of(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sf=null;function lf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sf=new Map,t.forEach(uf,e),sf=null,of.call(e))}function uf(e,t){if(!(4&t.state.loading)){var n=sf.get(e);if(n)var r=n.get(null);else{n=new Map,sf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];("LINK"===o.nodeName||"not all"!==o.getAttribute("media"))&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(i=t.instance).getAttribute("data-precedence"),(a=n.get(o)||r)===r&&n.set(null,i),n.set(o,i),this.count++,r=of.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var cf={$$typeof:v,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function df(e,t,n,r,i,a,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function ff(e,t,n,r,i,a,o,s,l,u,c,d){return e=new df(e,t,n,o,l,u,c,d,s),t=1,!0===a&&(t|=24),a=Rr(3,null,null,t),e.current=a,a.stateNode=e,(t=Ii()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ha(a),e}function hf(e){return e?e=zr:zr}function pf(e,t,n,r,i,a){i=hf(i),null===r.context?r.context=i:r.pendingContext=i,(r=ma(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=ga(e,r,t))&&(Ku(n,0,t),ya(n,e,t))}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gf(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function yf(e){if(13===e.tag||31===e.tag){var t=Mr(e,67108864);null!==t&&Ku(t,0,67108864),gf(e,67108864)}}function vf(e){if(13===e.tag||31===e.tag){var t=$u(),n=Mr(e,t=ze(t));null!==n&&Ku(n,0,t),gf(e,t)}}var bf=!0;function xf(e,t,n,r){var i=A.T;A.T=null;var a=L.p;try{L.p=2,kf(e,t,n,r)}finally{L.p=a,A.T=i}}function wf(e,t,n,r){var i=A.T;A.T=null;var a=L.p;try{L.p=8,kf(e,t,n,r)}finally{L.p=a,A.T=i}}function kf(e,t,n,r){if(bf){var i=Sf(r);if(null===i)ed(e,t,r,Tf,n),Rf(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Pf=If(Pf,e,t,n,r,i),!0;case"dragenter":return Nf=If(Nf,e,t,n,r,i),!0;case"mouseover":return Mf=If(Mf,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Af.set(a,If(Af.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Lf.set(a,If(Lf.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Rf(e,r),4&t&&-1<Df.indexOf(e)){for(;null!==i;){var a=qe(i);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var o=Se(a.pendingLanes);if(0!==o){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-ye(o);s.entanglements[1]|=l,o&=~l}zc(a),!(6&du)&&(Lu=ae()+500,Dc(0))}}break;case 31:case 13:null!==(s=Mr(a,2))&&Ku(s,0,2),Gu(),gf(a,2)}if(null===(a=Sf(r))&&ed(e,t,r,Tf,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else ed(e,t,r,null,n)}}function Sf(e){return Ef(e=At(e))}var Tf=null;function Ef(e){if(Tf=null,null!==(e=Xe(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=o(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tf=e,null}function Cf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case se:return 2;case le:return 8;case ue:case ce:return 32;case de:return 268435456;default:return 32}default:return 32}}var jf=!1,Pf=null,Nf=null,Mf=null,Af=new Map,Lf=new Map,zf=[],Df="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Rf(e,t){switch(e){case"focusin":case"focusout":Pf=null;break;case"dragenter":case"dragleave":Nf=null;break;case"mouseover":case"mouseout":Mf=null;break;case"pointerover":case"pointerout":Af.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function If(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=qe(t))&&yf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ff(e){var t=Xe(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=o(n)))return e.blockedOn=t,void Ie(e.priority,function(){vf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ie(e.priority,function(){vf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _f(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sf(e.nativeEvent);if(null!==n)return null!==(t=qe(n))&&yf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Mt=r,n.target.dispatchEvent(r),Mt=null,t.shift()}return!0}function Of(e,t,n){_f(e)&&n.delete(t)}function Vf(){jf=!1,null!==Pf&&_f(Pf)&&(Pf=null),null!==Nf&&_f(Nf)&&(Nf=null),null!==Mf&&_f(Mf)&&(Mf=null),Af.forEach(Of),Lf.forEach(Of)}function Bf(t,n){t.blockedOn===n&&(t.blockedOn=null,jf||(jf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Vf)))}var Hf=null;function Uf(t){Hf!==t&&(Hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hf===t&&(Hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if("function"!=typeof r){if(null===Ef(r||n))continue;break}var a=qe(n);null!==a&&(t.splice(e,3),e-=3,Zo(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function $f(e){function t(t){return Bf(t,e)}null!==Pf&&Bf(Pf,e),null!==Nf&&Bf(Nf,e),null!==Mf&&Bf(Mf,e),Af.forEach(t),Lf.forEach(t);for(var n=0;n<zf.length;n++){var r=zf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<zf.length&&null===(n=zf[0]).blockedOn;)Ff(n),null===n.blockedOn&&zf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Oe]||null;if("function"==typeof a)o||Uf(n);else if(o){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[Oe]||null)s=o.formAction;else if(null!==Ef(i))continue}else s=o.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Uf(n)}}}function Wf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Kf(e){this._internalRoot=e}function Xf(e){this._internalRoot=e}Xf.prototype.render=Kf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));pf(t.current,$u(),e,t,null,null)},Xf.prototype.unmount=Kf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pf(e.current,2,null,e,null,null),Gu(),t[Ve]=null}},Xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Re();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zf.length&&0!==t&&t<zf[n].priority;n++);zf.splice(n,0,e),0===n&&Ff(e)}};var qf=t.version;if("19.2.7"!==qf)throw Error(r(527,qf,"19.2.7"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(i=o.return)){n=i;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return l(o),e;if(s===i)return l(o),t;s=s.sibling}throw Error(r(188))}if(n.return!==i.return)n=o,i=s;else{for(var u=!1,c=o.child;c;){if(c===n){u=!0,n=o,i=s;break}if(c===i){u=!0,i=o,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,i=o;break}if(c===i){u=!0,i=s,n=o;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?u(e):null)?null:e.stateNode};var Qf={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{pe=Yf.inject(Qf),me=Yf}catch{}}return yl.createRoot=function(e,t){if(!i(e))throw Error(r(299));var n=!1,a="",o=ws,s=ks,l=Ss;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=ff(e,1,!1,null,0,n,a,null,o,s,l,Wf),e[Ve]=t.current,Zc(e),new Kf(t)},yl.hydrateRoot=function(e,t,n){if(!i(e))throw Error(r(299));var a=!1,o="",s=ws,l=ks,u=Ss,c=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=ff(e,1,!0,t,0,a,o,c,s,l,u,Wf)).context=hf(null),n=t.current,(o=ma(a=ze(a=$u()))).callback=null,ga(n,o,a),n=a,t.current.lanes=n,Ne(t,n),zc(t),e[Ve]=t.current,Zc(e),new Xf(t)},yl.version="19.2.7",yl}function mx(){return E0||(E0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Zu.exports=hx()),Zu.exports}var px=mx();const gx=Zp(px),qc=H.createContext({});function Di(e){const t=H.useRef(null);return null===t.current&&(t.current=e()),t.current}const yx=typeof window<"u",To=yx?H.useLayoutEffect:H.useEffect,Ao=H.createContext(null);function Gc(e,t){-1===e.indexOf(t)&&e.push(t)}function fo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const on=(e,t,n)=>n>t?t:n<e?e:n;let Yc=()=>{};const ii={},Fp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Wp=e=>"object"==typeof e&&null!==e,Pp=e=>/^0[^.\s]+$/u.test(e);function $p(e){let t;return()=>(void 0===t&&(t=e()),t)}const Ke=e=>e,zl=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ml=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Xc{constructor(){this.subscriptions=[]}add(e){return Gc(this.subscriptions,e),()=>fo(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Re=e=>1e3*e,Xe=e=>e/1e3,Ip=(e,t)=>t?e*(1e3/t):0,tg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vx=1e-7,xx=12;function bx(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=tg(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>vx&&++s<12);return o}function Nl(e,t,n,r){return e===t&&n===r?Ke:i=>0===i||1===i?i:tg((t=>bx(t,0,1,e,n))(i),t,r)}const eg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ng=e=>t=>1-e(1-t),ig=Nl(.33,1.53,.69,.99),Kc=ng(ig),ag=eg(Kc),lg=e=>e>=1?1:(e*=2)<1?.5*Kc(e):.5*(2-Math.pow(2,-10*(e-1))),Qc=e=>1-Math.sin(Math.acos(e)),sg=ng(Qc),og=eg(Qc),Sx=Nl(.42,0,1,1),Tx=Nl(0,0,.58,1),rg=Nl(.42,0,.58,1),Ax=e=>Array.isArray(e)&&"number"!=typeof e[0],ug=e=>Array.isArray(e)&&"number"==typeof e[0],Ex={linear:Ke,easeIn:Sx,easeInOut:rg,easeOut:Tx,circIn:Qc,circInOut:og,circOut:sg,backIn:Kc,backInOut:ag,backOut:ig,anticipate:lg},Mx=e=>"string"==typeof e,M0=e=>{if(ug(e)){Yc(4===e.length);const[t,n,r,i]=e;return Nl(t,n,r,i)}return Mx(e)?Ex[e]:e},$s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jx(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}const l={schedule:(e,i=!1,o=!1)=>{const s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r)return void(i=!0);r=!0;const a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}const wx=40;function cg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=$s.reduce((e,t)=>(e[t]=jx(a),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:p}=o,m=()=>{const a=ii.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:$s.reduce((t,a)=>{const s=o[a];return t[a]=(t,a=!1,o=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<$s.length;t++)o[$s[t]].cancel(e)},state:i,steps:o}}const{schedule:zt,cancel:Cn,state:ce,steps:Pu}=cg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);let io;function Cx(){io=void 0}const he={now:()=>(void 0===io&&he.set(ce.isProcessing||ii.useManualTiming?ce.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(Cx)}},fg=e=>t=>"string"==typeof t&&t.startsWith(e),dg=fg("--"),Dx=fg("var(--"),Zc=e=>!!Dx(e)&&zx.test(e.split("/*")[0].trim()),zx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function j0(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}const Sa={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},jl={...Sa,transform:e=>on(0,1,e)},Is={...Sa,default:1},bl=e=>Math.round(1e5*e)/1e5,Jc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nx(e){return null==e}const Rx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fc=(e,t)=>n=>!!("string"==typeof n&&Rx.test(n)&&n.startsWith(e)||t&&!Nx(n)&&Object.prototype.hasOwnProperty.call(n,t)),hg=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,a,o,s]=r.match(Jc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},Ox=e=>on(0,255,e),$u={...Sa,transform:e=>Math.round(Ox(e))},Mi={test:Fc("rgb","red"),parse:hg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$u.transform(e)+", "+$u.transform(t)+", "+$u.transform(n)+", "+bl(jl.transform(r))+")"};function Vx(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const pc={test:Fc("#"),parse:Vx,transform:Mi.transform},Rl=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),wn=Rl("deg"),sn=Rl("%"),I=Rl("px"),Bx=Rl("vh"),_x=Rl("vw"),w0={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(100*e)},ga={test:Fc("hsl","hue"),parse:hg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sn.transform(bl(t))+", "+sn.transform(bl(n))+", "+bl(jl.transform(r))+")"},$t={test:e=>Mi.test(e)||pc.test(e)||ga.test(e),parse:e=>Mi.test(e)?Mi.parse(e):ga.test(e)?ga.parse(e):pc.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Mi.transform(e):ga.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},Lx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ux(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(Jc))?void 0:t.length)||0)+((null==(n=e.match(Lx))?void 0:n.length)||0)>0}const mg="number",pg="color",kx="var",Hx="var(",C0="${}",qx=/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 xa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(qx,e=>($t.test(e)?(r.color.push(a),i.push(pg),n.push($t.parse(e))):e.startsWith(Hx)?(r.var.push(a),i.push(kx),n.push(e)):(r.number.push(a),i.push(mg),n.push(parseFloat(e))),++a,C0)).split(C0);return{values:n,split:o,indexes:r,types:i}}function Gx(e){return xa(e).values}function gg({split:e,types:t}){const n=e.length;return r=>{let i="";for(let a=0;a<n;a++)if(i+=e[a],void 0!==r[a]){const e=t[a];i+=e===mg?bl(r[a]):e===pg?$t.transform(r[a]):r[a]}return i}}function Yx(e){return gg(xa(e))}const Xx=e=>"number"==typeof e?0:$t.test(e)?$t.getAnimatableNone(e):e,Kx=(e,t)=>"number"==typeof e?null!=t&&t.trim().endsWith("/")?e:0:Xx(e);function Qx(e){const t=xa(e);return gg(t)(t.values.map((e,n)=>Kx(e,t.split[n])))}const Pe={test:Ux,parse:Gx,createTransformer:Yx,getAnimatableNone:Qx};function Iu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Iu(s,r,e+1/3),a=Iu(s,r,e),o=Iu(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}function ho(e,t){return n=>n>0?t:e}const Bt=(e,t,n)=>e+(t-e)*n,tc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Jx=[pc,Mi,ga],Fx=e=>Jx.find(t=>t.test(e));function D0(e){const t=Fx(e);if(!t)return!1;let n=t.parse(e);return t===ga&&(n=Zx(n)),n}const z0=(e,t)=>{const n=D0(e),r=D0(t);if(!n||!r)return ho(e,t);const i={...n};return e=>(i.red=tc(n.red,r.red,e),i.green=tc(n.green,r.green,e),i.blue=tc(n.blue,r.blue,e),i.alpha=Bt(n.alpha,r.alpha,e),Mi.transform(i))},gc=new Set(["none","hidden"]);function Wx(e,t){return gc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Px(e,t){return n=>Bt(e,t,n)}function Wc(e){return"number"==typeof e?Px:"string"==typeof e?Zc(e)?ho:$t.test(e)?z0:t2:Array.isArray(e)?yg:"object"==typeof e?$t.test(e)?z0:$x:ho}function yg(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>Wc(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function $x(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Wc(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}function Ix(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const t2=(e,t)=>{const n=Pe.createTransformer(t),r=xa(e),i=xa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gc.has(e)&&!i.values.length||gc.has(t)&&!r.values.length?Wx(e,t):zl(yg(Ix(r,i),i.values),n):ho(e,t)};function vg(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Bt(e,t,n):Wc(e)(e,t)}const e2=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>zt.update(t,e),stop:()=>Cn(t),now:()=>ce.isProcessing?ce.timestamp:he.now()}},xg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mo=2e4;function Pc(e){let t=0,n=e.next(t);for(;!n.done&&t<mo;)t+=50,n=e.next(t);return t>=mo?1/0:t}function n2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Pc(r),mo);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:Xe(i)}}const Xt={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};function yc(e,t){return e*Math.sqrt(1-t*t)}const i2=12;function a2(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}const ec=.001;function l2({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,a,o=1-t;o=on(Xt.minDamping,Xt.maxDamping,o),e=on(Xt.minDuration,Xt.maxDuration,Xe(e)),o<1?(i=t=>{const r=t*o,i=r*e,a=r-n,s=yc(t,o),l=Math.exp(-i);return ec-a/s*l},a=t=>{const r=t*o*e,a=r*n+n,s=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=yc(Math.pow(t,2),o);return(-i(t)+ec>0?-1:1)*((a-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-ec,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=a2(i,a,5/e);if(e=Re(e),isNaN(s))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}const s2=["duration","bounce"],o2=["stiffness","damping","mass"];function N0(e,t){return t.some(t=>void 0!==e[t])}function r2(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,o2)&&N0(e,s2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,a=2*on(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:a}}else{const n=l2({...e,velocity:0});t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function po(e=Xt.visualDuration,t=Xt.bounce){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=r2({...n,velocity:-Xe(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),g=o-a,y=Xe(Math.sqrt(l/c)),v=Math.abs(g)<5;let b,x,w,k,S,T;if(r||(r=v?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=v?Xt.restDelta.granular:Xt.restDelta.default),m<1)w=yc(y,m),k=(p+m*y*g)/w,b=e=>{const t=Math.exp(-m*y*e);return o-t*(k*Math.sin(w*e)+g*Math.cos(w*e))},S=m*y*k+g*w,T=m*y*g-k*w,x=e=>Math.exp(-m*y*e)*(S*Math.sin(w*e)+T*Math.cos(w*e));else if(1===m){b=e=>o-Math.exp(-y*e)*(g+(p+y*g)*e);const e=p+y*g;x=t=>Math.exp(-y*t)*(y*e*t-p)}else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return o-n*((p+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};const t=(p+m*y*g)/e,n=m*y*t-g*e,r=m*y*g-t*e;x=t=>{const i=Math.exp(-m*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}const E={calculatedDuration:h&&d||null,velocity:e=>Re(x(e)),next:e=>{if(!h&&m<1){const t=Math.exp(-m*y*e),n=Math.sin(w*e),a=Math.cos(w*e),l=o-t*(k*n+g*a),u=Re(t*(S*n+T*a));return s.done=Math.abs(u)<=r&&Math.abs(o-l)<=i,s.value=s.done?o:l,s}const t=b(e);if(h)s.done=e>=d;else{const n=Re(x(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{const e=Math.min(Pc(E),mo),t=xg(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}po.applyToOptions=e=>{const t=n2(e,100,po);return e.ease=t.ease,e.duration=Re(t.duration),e.type="keyframes",e};const u2=5;function bg(e,t,n){const r=Math.max(t-5,0);return Ip(n-e(r),t-r)}function vc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const m=d+p,g=void 0===o?m:o(m);g!==m&&(p=g-d);const y=e=>-p*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);f.done=Math.abs(t)<=u,f.value=f.done?g:n};let x,w;const k=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(x=e,w=po({keyframes:[f.value,h(f.value)],velocity:bg(v,e,f.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return!w&&void 0===x&&(t=!0,b(e),k(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),f)}}}function c2(e,t,n){const r=[],i=n||ii.mix||vg,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Ke:t;a=zl(e,a)}r.push(a)}return r}function Sg(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Yc(a===t.length),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=c2(t,r,i),l=s.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=Ml(e[r],e[r+1],n);return s[r](i)};return n?t=>u(on(e[0],e[a-1],t)):u}function f2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ml(0,t,r);e.push(Bt(n,1,i))}}function d2(e){const t=[0];return f2(t,e.length-1),t}function h2(e,t){return e.map(e=>e*t)}function m2(e,t){return e.map(()=>t||rg).splice(0,e.length-1)}function Sl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ax(r)?r.map(M0):M0(r),a={done:!1,value:t[0]},o=Sg(h2(n&&n.length===t.length?n:d2(t),e),t,{ease:Array.isArray(i)?i:m2(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}const p2=e=>null!==e;function Eo(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(p2),o=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return o&&void 0!==r?r:a[o]}const g2={decay:vc,inertia:vc,tween:Sl,keyframes:Sl,spring:po};function Tg(e){"string"==typeof e.type&&(e.type=g2[e.type])}class $c{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const y2=e=>e/100;class wl extends $c{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==he.now()&&this.tick(he.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;Tg(e);const{type:t=Sl,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e;let{keyframes:o}=e;const s=t||Sl;s!==Sl&&"number"!=typeof o[0]&&(this.mixKeyframes=zl(y2,vg(o[0],o[1])),o=[0,100]);const l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=Pc(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:h,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v,b=this.currentTime,x=n;if(c){const e=Math.min(this.currentTime,r)/o;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,c+1),!!(t%2)&&("reverse"===d?(n=1-n,f&&(n-=f/o)):"mirror"===d&&(x=a)),b=on(0,1,n)*o}y?(this.delayState.value=u[0],v=this.delayState):v=x.next(b),i&&!y&&(v.value=i(v.value));let{done:w}=v;!y&&null!==s&&(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&h!==vc&&(v.value=Eo(u,this.options,m,this.speed)),p&&p(v.value),k&&this.finish(),v}then(e,t){return this.finished.then(e,t)}get duration(){return Xe(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Xe(e)}get time(){return Xe(this.currentTime)}set time(e){e=Re(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):bg(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(he.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Xe(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=e2,startTime:r}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),null==(t=(e=this.options).onPlay)||t.call(e);const i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=r??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(he.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}function v2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ji=e=>180*e/Math.PI,xc=e=>{const t=ji(Math.atan2(e[1],e[0]));return bc(t)},x2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xc,rotateZ:xc,skewX:e=>ji(Math.atan(e[1])),skewY:e=>ji(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bc=e=>((e%=360)<0&&(e+=360),e),R0=xc,O0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),V0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:O0,scaleY:V0,scale:e=>(O0(e)+V0(e))/2,rotateX:e=>bc(ji(Math.atan2(e[6],e[5]))),rotateY:e=>bc(ji(Math.atan2(-e[2],e[0]))),rotateZ:xc,rotate:xc,skewX:e=>ji(Math.atan(e[4])),skewY:e=>ji(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Sc(e){return e.includes("scale")?1:0}function Tc(e,t){if(!e||"none"===e)return Sc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=b2,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=x2,i=t}if(!i)return Sc(t);const a=r[t],o=i[1].split(",").map(T2);return"function"==typeof a?a(o):o[a]}const S2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tc(n,t)};function T2(e){return parseFloat(e.trim())}const Ta=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Aa=new Set([...Ta,"pathRotation"]),B0=e=>e===Sa||e===I,A2=new Set(["x","y","z"]),E2=Ta.filter(e=>!A2.has(e));function M2(e){const t=[];return E2.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ni={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tc(t,"x"),y:(e,{transform:t})=>Tc(t,"y")};ni.translateX=ni.x,ni.translateY=ni.y;const wi=new Set;let Ac=!1,Ec=!1,Mc=!1;function Ag(){if(Ec){const e=Array.from(wi).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=M2(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Ec=!1,Ac=!1,wi.forEach(e=>e.complete(Mc)),wi.clear()}function Eg(){wi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ec=!0)})}function j2(){Mc=!0,Eg(),Ag(),Mc=!1}class Ic{constructor(e,t,n,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(wi.add(this),Ac||(Ac=!0,zt.read(Eg),zt.resolveKeyframes(Ag))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const i=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}v2(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wi.delete(this)}cancel(){"scheduled"===this.state&&(wi.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const w2=e=>e.startsWith("--");function Mg(e,t,n){w2(t)?e.style.setProperty(t,n):e.style[t]=n}const C2={};function jg(e,t){const n=$p(e);return()=>C2[t]??n()}const D2=jg(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),wg=jg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xl([0,.65,.55,1]),circOut:xl([.55,0,1,.45]),backIn:xl([.31,.01,.66,-.59]),backOut:xl([.33,1.53,.69,.99])};function Cg(e,t){if(e)return"function"==typeof e?wg()?xg(e,t):"ease-out":ug(e)?xl(e):Array.isArray(e)?e.map(e=>Cg(e,t)||_0.easeOut):_0[e]}function z2(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Cg(s,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Dg(e){return"function"==typeof e&&"applyToOptions"in e}function N2({type:e,...t}){return Dg(e)&&wg()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zg extends $c{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,Yc("string"!=typeof e.type);const l=N2(e);this.animation=z2(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=Eo(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Mg(t,n,e),this.animation.cancel()}null==s||s(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"===e||"finished"===e||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t,n;const r=null==(e=this.options)?void 0:e.element;!this.isPseudoElement&&null!=r&&r.isConnected&&(null==(n=(t=this.animation).commitStyles)||n.call(t))}get duration(){var e,t;const n=(null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0;return Xe(Number(n))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Xe(e)}get time(){return Xe(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Re(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){var i;return this.allowFlatten&&(null==(i=this.animation.effect)||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&D2()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ke):r(this)}}const Ng={anticipate:lg,backInOut:ag,circInOut:og};function R2(e){return e in Ng}function O2(e){"string"==typeof e.ease&&R2(e.ease)&&(e.ease=Ng[e.ease])}const nc=10;class V2 extends zg{constructor(e){O2(e),Tg(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const o=new wl({...a,autoplay:!1}),s=Math.max(10,he.now()-this.startTime),l=on(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;i&&c&&Mg(i,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}const L0=(e,t)=>"zIndex"!==t&&!("number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Pe.test(e)&&"0"!==e||e.startsWith("url(")));function B2(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function _2(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],o=L0(i,t),s=L0(a,t);return!(!o||!s)&&(B2(e)||("spring"===n||Dg(n))&&r)}function jc(e){e.duration=0,e.type="keyframes"}const Rg=new Set(["opacity","clipPath","filter","transform"]),L2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function U2(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&L2.test(e[t]))return!0;return!1}const k2=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),H2=$p(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function q2(e){var t;const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:s,keyframes:l}=e;if(!((null==(t=null==n?void 0:n.owner)?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return H2()&&r&&(Rg.has(r)||k2.has(r)&&U2(l))&&("transform"!==r||!c)&&!u&&!i&&"mirror"!==a&&0!==o&&"inertia"!==s}const G2=40;class Y2 extends $c{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=he.now();const f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},h=(null==u?void 0:u.KeyframeResolver)||Ic;this.keyframeResolver=new h(o,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),s,l,u),null==(d=this.keyframeResolver)||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){var i,a;this.keyframeResolver=void 0;const{name:o,type:s,velocity:l,delay:u,isHandoff:c,onUpdate:d}=n;this.resolvedAt=he.now();let f=!0;_2(e,o,s,l)||(f=!1,(ii.instantAnimations||!u)&&(null==d||d(Eo(e,n,t))),e[0]=e[e.length-1],jc(n),n.repeat=0);const h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=f&&!c&&q2(h),m=null==(a=null==(i=h.motionValue)?void 0:i.owner)?void 0:a.current;let g;if(p)try{g=new V2({...h,element:m})}catch{g=new wl(h)}else g=new wl(h);g.finished.then(()=>{this.notifyFinished()}).catch(Ke),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),j2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}function Og(e,t,n,r=0,i=1){const a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return"function"==typeof n?n(a,o):1===i?a*r:s-a*r}const U0=30,X2=e=>!isNaN(parseFloat(e)),Tl={current:void 0};class K2{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;const n=he.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(t=this.events.change)||t.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=he.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=X2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Xc);const n=this.events[e].add(t);return"change"===e?()=>{n(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Tl.current&&Tl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=he.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zi(e,t){return new K2(e,t)}function Vg(e,t){if(null!=e&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function tf(e,t){const n=(null==e?void 0:e[t])??(null==e?void 0:e.default)??e;return n!==e?Vg(n,e):n}const Q2={type:"spring",stiffness:500,damping:25,restSpeed:10},Z2=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),J2={type:"keyframes",duration:.8},F2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W2=(e,{keyframes:t})=>t.length>2?J2:Aa.has(e)?e.startsWith("scale")?Z2(t[1]):Q2:F2,P2=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $2(e){for(const t in e)if(!P2.has(t))return!0;return!1}const ef=(e,t,n,r={},i,a)=>o=>{const s=tf(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=Re(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$2(s)||Object.assign(c,W2(e,c)),c.duration&&(c.duration=Re(c.duration)),c.repeatDelay&&(c.repeatDelay=Re(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(jc(c),0===c.delay&&(d=!0)),(ii.instantAnimations||ii.skipAnimations||null!=i&&i.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jc(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){const e=Eo(c.keyframes,s);if(void 0!==e)return void zt.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new wl(c):new Y2(c)},I2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tb(e){const t=I2.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Bg(e,t,n=1){const[r,i]=tb(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return Fp(e)?parseFloat(e):e}return Zc(i)?Bg(i,t,n+1):i}function k0(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function nf(e,t,n,r){if("function"==typeof t){const[i,a]=k0(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,a]=k0(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function Ci(e,t,n){const r=e.getProps();return nf(r,t,void 0!==n?n:r.custom,e)}const _g=new Set(["width","height","top","left","right","bottom",...Ta]),wc=e=>Array.isArray(e);function eb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zi(n))}function nb(e){return wc(e)?e[e.length-1]||0:e}function ib(e,t){const n=Ci(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const t in a)eb(e,t,nb(a[t]))}const ee=e=>!(!e||!e.getVelocity);function ab(e){return!(!ee(e)||!e.add)}function Cc(e,t){const n=e.getValue("willChange");if(ab(n))return n.add(t);if(!n&&ii.WillChange){const n=new ii.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function af(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const lb="framerAppearId",Lg="data-"+af(lb);function Ug(e){return e.props[Lg]}function sb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function kg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t;const l=e.getDefaultTransition();a=a?Vg(a,l):l;const u=null==a?void 0:a.reduceMotion,c=null==a?void 0:a.skipAnimations;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i],h=null==a?void 0:a.path;h&&h.animateVisualElement(e,s,a,n,d);for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||f&&sb(f,t))continue;const o={delay:n,...tf(a||{},t)};c&&(o.skipAnimations=!0);const l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){zt.update(()=>r.set(i));continue}let h=!1;if(window.MotionHandoffAnimation){const n=Ug(e);if(n){const e=window.MotionHandoffAnimation(n,t,zt);null!==e&&(o.startTime=e,h=!0)}}Cc(e,t);const p=u??e.shouldReduceMotion;r.start(ef(t,r,i,p&&_g.has(t)?{type:!1}:o,e,h));const m=r.animation;m&&d.push(m)}if(o){const t=()=>zt.update(()=>{o&&ib(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Dc(e,t,n={}){var r;const i=Ci(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(kg(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return ob(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function ob(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(Dc(l,t,{...o,delay:n+("function"==typeof r?0:r)+Og(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function rb(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Dc(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Dc(e,t,n);else{const i="function"==typeof t?Ci(e,t,n.custom):t;r=Promise.all(kg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ub={test:e=>"auto"===e,parse:e=>e},Hg=e=>t=>t.test(e),qg=[Sa,I,sn,wn,_x,Bx,ub],H0=e=>qg.find(Hg(e));function cb(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||Pp(e)}const fb=new Set(["brightness","contrast","saturate","opacity"]);function db(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Jc)||[];if(!r)return e;const i=n.replace(r,"");let a=fb.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const hb=/\b([a-z-]*)\(.*?\)/gu,zc={...Pe,getAnimatableNone:e=>{const t=e.match(hb);return t?t.map(db).join(" "):e}},Nc={...Pe,getAnimatableNone:e=>{const t=Pe.parse(e);return Pe.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},q0={...Sa,transform:Math.round},mb={rotate:wn,pathRotation:wn,rotateX:wn,rotateY:wn,rotateZ:wn,scale:Is,scaleX:Is,scaleY:Is,scaleZ:Is,skew:wn,skewX:wn,skewY:wn,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:jl,originX:w0,originY:w0,originZ:I},go={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...mb,zIndex:q0,fillOpacity:jl,strokeOpacity:jl,numOctaves:q0},pb={...go,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:zc,WebkitFilter:zc,mask:Nc,WebkitMask:Nc},Gg=e=>pb[e],gb=new Set([zc,Nc]);function Yg(e,t){let n=Gg(e);return gb.has(n)||(n=Pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yb=new Set(["auto","none","0"]);function vb(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!yb.has(t)&&xa(t).values.length&&(r=e[i]),i++}if(r&&n)for(const i of t)e[i]=Yg(n,r)}class xb extends Ic{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Zc(r))){const i=Bg(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!_g.has(n)||2!==e.length)return;const[r,i]=e,a=H0(r),o=H0(i);if(j0(r)!==j0(i)&&ni[n])this.needsMeasurement=!0;else if(a!==o)if(B0(a)&&B0(o))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else ni[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||cb(e[t]))&&n.push(t);n.length&&vb(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ni[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=ni[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),null!=(e=this.removedTransforms)&&e.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const lf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Xg(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const r=(null==n?void 0:n[e])??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}const Rc=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function ao(e){return Wp(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:sf}=cg(queueMicrotask,!1),We={x:!1,y:!1};function Kg(){return We.x||We.y}function bb(e){return"x"===e||"y"===e?We[e]?null:(We[e]=!0,()=>{We[e]=!1}):We.x||We.y?null:(We.x=We.y=!0,()=>{We.x=We.y=!1})}function Qg(e,t){const n=Xg(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Sb(e){return!("touch"===e.pointerType||Kg())}function Tb(e,t,n={}){const[r,i,a]=Qg(e,n);return r.forEach(e=>{let n,r=!1,a=!1;const o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r)return void(a=!0);o(e)}};e.addEventListener("pointerenter",r=>{if(!Sb(r))return;a=!1;const o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}const Zg=(e,t)=>!!t&&(e===t||Zg(e,t.parentElement)),of=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Ab=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Eb(e){return Ab.has(e.tagName)||!0===e.isContentEditable}const Mb=new Set(["INPUT","SELECT","TEXTAREA"]);function jb(e){return Mb.has(e.tagName)||!0===e.isContentEditable}const lo=new WeakSet;function G0(e){return t=>{"Enter"===t.key&&e(t)}}function ic(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wb=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=G0(()=>{if(lo.has(n))return;ic(n,"down");const e=G0(()=>{ic(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ic(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Y0(e){return of(e)&&!Kg()}const X0=new WeakSet;function Cb(e,t,n={}){const[r,i,a]=Qg(e,n),o=e=>{const r=e.currentTarget;if(!Y0(e)||X0.has(e))return;lo.add(r),n.stopPropagation&&X0.add(e);const a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),lo.has(r)&&lo.delete(r),Y0(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{s(e,r===window||r===document||n.useGlobalTarget||Zg(r,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),ao(e)&&(e.addEventListener("focus",e=>wb(e,i)),!Eb(e)&&!e.hasAttribute("tabindex")&&(e.tabIndex=0))}),a}function rf(e){return Wp(e)&&"ownerSVGElement"in e}const so=new WeakMap;let ei;const Jg=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:rf(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Db=Jg("inline","width","offsetWidth"),zb=Jg("block","height","offsetHeight");function Nb({target:e,borderBoxSize:t}){var n;null==(n=so.get(e))||n.forEach(n=>{n(e,{get width(){return Db(e,t)},get height(){return zb(e,t)}})})}function Rb(e){e.forEach(Nb)}function Ob(){typeof ResizeObserver>"u"||(ei=new ResizeObserver(Rb))}function Vb(e,t){ei||Ob();const n=Xg(e);return n.forEach(e=>{let n=so.get(e);n||(n=new Set,so.set(e,n)),n.add(t),null==ei||ei.observe(e)}),()=>{n.forEach(e=>{const n=so.get(e);null==n||n.delete(t),null!=n&&n.size||null==ei||ei.unobserve(e)})}}const oo=new Set;let ya;function Bb(){ya=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oo.forEach(t=>t(e))},window.addEventListener("resize",ya)}function _b(e){return oo.add(e),ya||Bb(),()=>{oo.delete(e),!oo.size&&"function"==typeof ya&&(window.removeEventListener("resize",ya),ya=void 0)}}function K0(e,t){return"function"==typeof e?_b(e):Vb(e,t)}function Lb(e){return rf(e)&&"svg"===e.tagName}function Ub(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=Sg(e[1+n],e[2+n],e[3+n]);return t?i(r):i}function kb(e,t,n={}){const r=e.get();let i,a=null,o=r;const s="string"==typeof r?r.replace(/[\d.-]/g,""):void 0,l=()=>{a&&(a.stop(),a=null),e.animation=void 0},u=()=>{var t;(()=>{const t=Q0(e.get()),r=Q0(o);if(t===r)return void l();const s=a?a.getGeneratorVelocity():e.getVelocity();l(),a=new wl({keyframes:[t,r],velocity:s,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})})(),e.animation=a??void 0,null==(t=e.events.animationStart)||t.notify(),null==a||a.then(()=>{var t;e.animation=void 0,null==(t=e.events.animationComplete)||t.notify()})};if(e.attach((e,t)=>{o=e,i=e=>t(ac(e,s)),zt.postRender(u)},l),ee(t)){let r=!0===n.skipInitialAnimation;const i=t.on("change",t=>{r?(r=!1,e.jump(ac(t,s),!1)):e.set(ac(t,s))}),a=e.on("destroy",i);return()=>{i(),a()}}return l}function ac(e,t){return t?e+t:e}function Q0(e){return"number"==typeof e?e:parseFloat(e)}const Hb=[...qg,$t,Pe],qb=e=>Hb.find(Hg(e)),Z0=()=>({translate:0,scale:1,origin:0,originPoint:0}),va=()=>({x:Z0(),y:Z0()}),J0=()=>({min:0,max:0}),te=()=>({x:J0(),y:J0()}),Gb=new WeakMap;function Mo(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function Cl(e){return"string"==typeof e||Array.isArray(e)}const uf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cf=["initial",...uf];function jo(e){return Mo(e.animate)||cf.some(t=>Cl(e[t]))}function Fg(e){return!(!jo(e)&&!e.variants)}function Yb(e,t,n){for(const r in t){const i=t[r],a=n[r];if(ee(i))e.addValue(r,i);else if(ee(a))e.addValue(r,zi(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,zi(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}const Oc={current:null},Wg={current:!1},Xb=typeof window<"u";function Kb(){if(Wg.current=!0,Xb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Oc.current=e.matches;e.addEventListener("change",t),t()}else Oc.current=!1}const F0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yo={};function Pg(e){yo=e}function Qb(){return yo}class Zb{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ic,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=he.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,zt.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=jo(t),this.isVariantNode=Fg(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!(!e||!e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&ee(t)&&t.set(l[e])}}mount(e){var t,n;if(this.hasBeenMounted)for(const e in this.initialValues)null==(t=this.values.get(e))||t.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Gb.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Wg.current||Kb(),this.shouldReduceMotion=Oc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,null==(n=this.parent)||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Cn(this.notifyUpdate),Cn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(e=this.parent)||e.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Rg.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new zg({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Re(o)}),l=n(s);return void this.valueSubscriptions.set(e,()=>{l(),s.cancel()})}const n=Aa.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&zt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in yo){const t=yo[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<F0.length;t++){const n=F0[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Yb(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=zi(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Fp(n)||Pp(n))?n=parseFloat(n):!qb(n)&&Pe.test(t)&&(n=Yg(e,t)),this.setBaseTarget(e,ee(n)?n.get():n)),ee(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=nf(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||ee(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new Xc),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){sf.render(this.render)}}class $g extends Zb{constructor(){super(...arguments),this.KeyframeResolver=xb}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ee(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class ai{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ig({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function lc(e){return void 0===e||1===e}function Vc({scale:e,scaleX:t,scaleY:n}){return!lc(e)||!lc(t)||!lc(n)}function Ei(e){return Vc(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return W0(e.x)||W0(e.y)}function W0(e){return e&&"0%"!==e}function vo(e,t,n){return n+t*(e-n)}function P0(e,t,n,r,i){return void 0!==i&&(e=vo(e,i,r)),vo(e,n,r)+t}function Bc(e,t=0,n=1,r,i){e.min=P0(e.min,t,n,r,i),e.max=P0(e.max,t,n,r,i)}function ey(e,{x:t,y:n}){Bc(e.x,t.translate,t.scale,t.originPoint),Bc(e.y,n.translate,n.scale,n.originPoint)}const $0=.999999999999,I0=1.0000000000001;function Wb(e,t,n,r=!1){var i;const a=n.length;if(!a)return;let o,s;t.x=t.y=1;for(let l=0;l<a;l++){o=n[l],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&"contents"===a.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(ln(e.x,-o.scroll.offset.x),ln(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ey(e,s)),r&&Ei(o.latestValues)&&ro(e,o.latestValues,null==(i=o.layout)?void 0:i.layoutBox))}t.x<I0&&t.x>$0&&(t.x=1),t.y<I0&&t.y>$0&&(t.y=1)}function ln(e,t){e.min+=t,e.max+=t}function tp(e,t,n,r,i=.5){Bc(e,t,n,Bt(e.min,e.max,i),r)}function ep(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function ro(e,t,n){const r=n??e;tp(e.x,ep(t.x,r.x),t.scaleX,t.scale,t.originX),tp(e.y,ep(t.y,r.y),t.scaleY,t.scale,t.originY)}function ny(e,t){return Ig(Fb(e.getBoundingClientRect(),t))}function Pb(e,t,n){const r=ny(e,n),{scroll:i}=t;return i&&(ln(r.x,i.offset.x),ln(r.y,i.offset.y)),r}const $b={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ib=Ta.length;function t5(e,t,n){let r="",i=!0;for(let a=0;a<Ib;a++){const o=Ta[a],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===(o.startsWith("scale")?1:0);else{const e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||n){const e=Rc(s,go[o]);l||(i=!1,r+=`${$b[o]||o}(${e}) `),n&&(t[o]=e)}}const a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Rc(a,go.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ff(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const e in t){const n=t[e];if(Aa.has(e))o=!0;else if(dg(e))i[e]=n;else{const t=Rc(n,go[e]);e.startsWith("origin")?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=t5(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function iy(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];for(o in null==i||i.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function np(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vl={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!I.test(e))return e;e=parseFloat(e)}return`${np(e,t.target.x)}% ${np(e,t.target.y)}%`}},e5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Pe.parse(e);if(i.length>5)return r;const a=Pe.createTransformer(e),o="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const u=Bt(s,l,.5);return"number"==typeof i[2+o]&&(i[2+o]/=u),"number"==typeof i[3+o]&&(i[3+o]/=u),a(i)}},_c={borderRadius:{...vl,applyTo:[...lf]},borderTopLeftRadius:vl,borderTopRightRadius:vl,borderBottomLeftRadius:vl,borderBottomRightRadius:vl,boxShadow:e5};function ay(e,{layout:t,layoutId:n}){return Aa.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!_c[e]||"opacity"===e)}function df(e,t,n){var r;const i=e.style,a=null==t?void 0:t.style,o={};if(!i)return o;for(const t in i)(ee(i[t])||a&&ee(a[t])||ay(t,e)||void 0!==(null==(r=null==n?void 0:n.getValue(t))?void 0:r.liveStyle))&&(o[t]=i[t]);return o}function n5(e){return window.getComputedStyle(e)}class i5 extends $g{constructor(){super(...arguments),this.type="html",this.renderInstance=iy}readValueFromInstance(e,t){var n;if(Aa.has(t))return null!=(n=this.projection)&&n.isProjecting?Sc(t):S2(e,t);{const n=n5(e),r=(dg(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ny(e,t)}build(e,t,n){ff(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return df(e,t,n)}}const a5={offset:"stroke-dashoffset",array:"stroke-dasharray"},l5={offset:"strokeDashoffset",array:"strokeDasharray"};function s5(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?a5:l5;e[a.offset]=""+-r,e[a.array]=`${t} ${n}`}const o5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ly(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(ff(e,s,u),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(null==c?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const e of o5)void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&s5(d,i,a,o,!1)}const sy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),oy=e=>"string"==typeof e&&"svg"===e.toLowerCase();function r5(e,t,n,r){iy(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(sy.has(n)?n:af(n),t.attrs[n])}function ry(e,t,n){const r=df(e,t,n);for(const n in e)(ee(e[n])||ee(t[n]))&&(r[-1!==Ta.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class u5 extends $g{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Aa.has(t)){const e=Gg(t);return e&&e.default||0}return t=sy.has(t)?t:af(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ry(e,t,n)}build(e,t,n){ly(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){r5(e,t,n,r)}mount(e){this.isSVGTag=oy(e.tagName),super.mount(e)}}const c5=cf.length;function uy(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&uy(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<c5;n++){const r=cf[n],i=e.props[r];(Cl(i)||!1===i)&&(t[r]=i)}return t}function cy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const f5=[...uf].reverse(),d5=uf.length;function h5(e){return t=>Promise.all(t.map(({animation:t,options:n})=>rb(e,t,n)))}function m5(e){let t=h5(e),n=ip(),r=!0,i=!1;const a=t=>(n,r)=>{var i;const a=Ci(e,r,"exit"===t?null==(i=e.presenceContext)?void 0:i.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(o){const{props:s}=e,l=uy(e.parent)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<d5;t++){const h=f5[t],p=n[h],m=void 0!==s[h]?s[h]:l[h],g=Cl(m),y=h===o?p.isActive:null;!1===y&&(f=t);let v=m===l[h]&&m!==s[h]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...d},!p.isActive&&null===y||!m&&!p.prevProp||Mo(m)||"boolean"==typeof m)continue;if("exit"===h&&p.isActive&&!0!==y){p.prevResolvedValues&&(d={...d,...p.prevResolvedValues});continue}const b=p5(p.prevProp,m);let x=b||h===o&&p.isActive&&!v&&g||t>f&&g,w=!1;const k=Array.isArray(m)?m:[m];let S=k.reduce(a(h),{});!1===y&&(S={});const{prevResolvedValues:T={}}=p,E={...T,...S},C=t=>{x=!0,c.has(t)&&(w=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=S[e],n=T[e];if(d.hasOwnProperty(e))continue;let r=!1;r=wc(t)&&wc(n)?!cy(t,n)||b:t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(d={...d,...S}),(r||i)&&e.blockInitialAnimation&&(x=!1);const j=v&&b;x&&(!j||w)&&u.push(...k.map(t=>{const n={type:h};if("string"==typeof t&&(r||i)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,i=Ci(r,t);if(r.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=Og(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!=typeof s.initial){const n=Ci(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let h=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,i=!1,h?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null==(i=e.variantChildren)||i.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ip(),i=!0}}}function p5(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!cy(t,e)}function Ai(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ip(){return{animate:Ai(!0),whileInView:Ai(),whileHover:Ai(),whileTap:Ai(),whileDrag:Ai(),whileFocus:Ai(),exit:Ai()}}function Lc(e,t){e.min=t.min,e.max=t.max}function Fe(e,t){Lc(e.x,t.x),Lc(e.y,t.y)}function ap(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const fy=1e-4,g5=1-fy,y5=1+fy,dy=.01,v5=0-dy,x5=.01;function me(e){return e.max-e.min}function b5(e,t,n){return Math.abs(e-t)<=n}function lp(e,t,n,r=.5){e.origin=r,e.originPoint=Bt(t.min,t.max,e.origin),e.scale=me(n)/me(t),e.translate=Bt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=g5&&e.scale<=y5||isNaN(e.scale))&&(e.scale=1),(e.translate>=v5&&e.translate<=x5||isNaN(e.translate))&&(e.translate=0)}function Al(e,t,n,r){lp(e.x,t.x,n.x,r?r.originX:void 0),lp(e.y,t.y,n.y,r?r.originY:void 0)}function sp(e,t,n,r=0){const i=r?Bt(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+me(t)}function S5(e,t,n,r){sp(e.x,t.x,n.x,null==r?void 0:r.x),sp(e.y,t.y,n.y,null==r?void 0:r.y)}function op(e,t,n,r=0){const i=r?Bt(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+me(t)}function xo(e,t,n,r){op(e.x,t.x,n.x,null==r?void 0:r.x),op(e.y,t.y,n.y,null==r?void 0:r.y)}function rp(e,t,n,r,i){return e=vo(e-=t,1/n,r),void 0!==i&&(e=vo(e,1/i,r)),e}function T5(e,t=0,n=1,r=.5,i,a=e,o=e){if(sn.test(t)&&(t=parseFloat(t),t=Bt(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=Bt(a.min,a.max,r);e===a&&(s-=t),e.min=rp(e.min,t,n,s,i),e.max=rp(e.max,t,n,s,i)}function up(e,t,[n,r,i],a,o){T5(e,t[n],t[r],t[i],t.scale,a,o)}const A5=["x","scaleX","originX"],E5=["y","scaleY","originY"];function cp(e,t,n,r){up(e.x,t,A5,n?n.x:void 0,r?r.x:void 0),up(e.y,t,E5,n?n.y:void 0,r?r.y:void 0)}function fp(e){return 0===e.translate&&1===e.scale}function hy(e){return fp(e.x)&&fp(e.y)}function dp(e,t){return e.min===t.min&&e.max===t.max}function M5(e,t){return dp(e.x,t.x)&&dp(e.y,t.y)}function hp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function my(e,t){return hp(e.x,t.x)&&hp(e.y,t.y)}function mp(e){return me(e.x)/me(e.y)}function pp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function an(e){return[e("x"),e("y")]}function j5(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(null==n?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}const w5=lf.length,gp=e=>"string"==typeof e?parseFloat(e):e,yp=e=>"number"==typeof e||I.test(e);function C5(e,t,n,r,i,a){i?(e.opacity=Bt(0,n.opacity??1,D5(r)),e.opacityExit=Bt(t.opacity??1,0,z5(r))):a&&(e.opacity=Bt(t.opacity??1,n.opacity??1,r));for(let i=0;i<w5;i++){const a=lf[i];let o=vp(t,a),s=vp(n,a);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||yp(o)===yp(s)?(e[a]=Math.max(Bt(gp(o),gp(s),r),0),(sn.test(s)||sn.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Bt(t.rotate||0,n.rotate||0,r))}function vp(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const D5=py(0,.5,sg),z5=py(.5,.95,Ke);function py(e,t,n){return r=>r<e?0:r>t?1:n(Ml(e,t,r))}function N5(e,t,n){const r=ee(e)?e:zi(e);return r.start(ef("",r,t,n)),r.animation}function Dl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const R5=(e,t)=>e.depth-t.depth;class O5{constructor(){this.children=[],this.isDirty=!1}add(e){Gc(this.children,e),this.isDirty=!0}remove(e){fo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(R5),this.isDirty=!1,this.children.forEach(e)}}function V5(e,t){const n=he.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cn(r),e(a-t))};return zt.setup(r,!0),()=>Cn(r)}function uo(e){return ee(e)?e.get():e}class B5{constructor(){this.members=[]}add(e){Gc(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;(!r||!1===r.isConnected)&&!n.snapshot&&(fo(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(fo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){var t;for(let n=this.members.indexOf(e)-1;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent&&!1!==(null==(t=e.instance)?void 0:t.isConnected))return this.promote(e),!0}return!1}promote(e,t){var n;const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:a}=e.options;(void 0===i||i!==a)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),null!=(n=e.root)&&n.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,a;null==(n=(t=e.options).onExitComplete)||n.call(t),null==(a=null==(r=e.resumingFrom)?void 0:(i=r.options).onExitComplete)||a.call(i)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;null!=(e=this.lead)&&e.snapshot&&(this.lead.snapshot=void 0)}}const co={hasAnimatedSinceResize:!0,hasEverUpdated:!1},sc=["","X","Y","Z"],_5=1e3;let L5=0;function oc(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ug(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",zt,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gy(r)}function yy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=L5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(H5),this.nodes.forEach(Q5),this.nodes.forEach(Z5),this.nodes.forEach(q5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new O5)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Xc),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rf(t)&&!Lb(t),this.instance=t;const{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0;const i=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=V5(i,250),co.hasAnimatedSinceResize&&(co.hasAnimatedSinceResize=!1,this.nodes.forEach(Sp)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||i.getDefaultTransition()||$5,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!my(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...tf(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||Sp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(J5),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Y5),void this.nodes.forEach(xp)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(bp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(X5),this.nodes.forEach(K5),this.nodes.forEach(U5),this.nodes.forEach(k5)):this.nodes.forEach(bp),this.clearAllSnapshots();const e=he.now();ce.delta=on(0,1e3/60,e-ce.timestamp),ce.timestamp=e,ce.isProcessing=!0,Pu.update.process(ce),Pu.preRender.process(ce),Pu.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(G5),this.sharedNodes.forEach(F5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!me(this.snapshot.measuredBox.x)&&!me(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=te()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!(!this.options.layoutScroll||!this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!hy(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ei(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),I5(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return te();const n=t.measureViewportBox();if(!(null==(e=this.scroll)?void 0:e.wasRoot)&&!this.path.some(tS)){const{scroll:e}=this.root;e&&(ln(n.x,e.offset.x),ln(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=te();if(Fe(n,e),null!=(t=this.scroll)&&t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Fe(n,e),ln(n.x,i.offset.x),ln(n.y,i.offset.y))}return n}applyTransform(e,t=!1,n){var r,i;const a=n||te();Fe(a,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ln(a.x,-n.scroll.offset.x),ln(a.y,-n.scroll.offset.y)),Ei(n.latestValues)&&ro(a,n.latestValues,null==(r=n.layout)?void 0:r.layoutBox)}return Ei(this.latestValues)&&ro(a,this.latestValues,null==(i=this.layout)?void 0:i.layoutBox),a}removeTransform(e){var t;const n=te();Fe(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!Ei(r.latestValues))continue;let i;r.instance&&(Vc(r.latestValues)&&r.updateSnapshot(),i=te(),Fe(i,r.measurePageBox())),cp(n,r.latestValues,null==(t=r.snapshot)?void 0:t.layoutBox,i)}return Ei(this.latestValues)&&cp(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=!!this.resumingFrom||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||null!=(t=this.parent)&&t.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:a}=this.options;if(!this.layout||!i&&!a)return;this.resolvedRelativeTargetAt=ce.timestamp;const o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),S5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Fe(this.target,this.layout.layoutBox),ey(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(this.parent&&!Vc(this.parent.latestValues)&&!ty(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!(!(this.relativeTarget||this.targetDelta||this.options.layoutRoot)||!this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),xo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Fe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var e;const t=this.getLead(),n=!!this.resumingFrom||this!==t;let r=!0;if((this.isProjectionDirty||null!=(e=this.parent)&&e.isProjectionDirty)&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(r=!1),r)return;const{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!a)return;Fe(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;Wb(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=te());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(ap(this.prevProjectionDelta.x,this.projectionDelta.x),ap(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Al(this.projectionDelta,this.layoutCorrected,l,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==s||!pp(this.projectionDelta.x,this.prevProjectionDelta.x)||!pp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=va(),this.projectionDelta=va(),this.projectionDeltaWithTransform=va()}setAnimationOrigin(e,t=!1,n){const r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=va();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=te(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!(!l||c||!0!==this.options.crossfade||this.path.some(P5));let f;this.animationProgress=0;const h=null==n?void 0:n.interpolateProjection(e);this.mixTargetDelta=t=>{const n=t/1e3,r=null==h?void 0:h(n);r?(o.x.translate=r.x,o.x.scale=Bt(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=Bt(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Tp(o.x,e.x,n),Tp(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),W5(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&M5(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||(f=te()),Fe(f,this.relativeTarget)),l&&(this.animationValues=a,C5(a,i,this.latestValues,n,d,c)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,r;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(r=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||r.stop(),this.pendingAnimation&&(Cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{co.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zi(0)),this.motionValue.jump(0,!1),this.currentAnimation=N5(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&vy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||te();const t=me(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=me(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Fe(t,n),ro(t,i),Al(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new B5),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&oc("z",e,r,this.animationValues);for(let t=0;t<sc.length;t++)oc(`rotate${sc[t]}`,e,r,this.animationValues),oc(`skew${sc[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=uo(null==t?void 0:t.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=uo(null==t?void 0:t.pointerEvents)||""),void(this.hasProjected&&!Ei(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=j5(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;const{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const t in _c){if(void 0===i[t])continue;const{correct:n,applyTo:o,isCSSVariable:s}=_c[t],l="none"===a?i[t]:n(i[t],r);if(o){const t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?uo(null==t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(xp),this.root.sharedNodes.clear()}}}function U5(e){e.updateLayout()}function k5(e){var t;const n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;if("size"===i)an(e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],i=me(r);r.min=t[e].min,r.max=r.min+i});else if("x"===i||"y"===i){const e="x"===i?"y":"x";Lc(a?n.measuredBox[e]:n.layoutBox[e],t[e])}else vy(i,n.layoutBox,t)&&an(r=>{const i=a?n.measuredBox[r]:n.layoutBox[r],o=me(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});const o=va();Al(o,t,n.layoutBox);const s=va();a?Al(s,e.applyTransform(r,!0),n.measuredBox):Al(s,t,n.layoutBox);const l=!hy(o);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:a}=r;if(i&&a){const o=e.options.layoutAnchor||void 0,s=te();xo(s,n.layoutBox,i.layoutBox,o);const l=te();xo(l,t,a.layoutBox,o),my(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function H5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function q5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function G5(e){e.clearSnapshot()}function xp(e){e.clearMeasurements()}function Y5(e){e.isLayoutDirty=!0,e.updateLayout()}function bp(e){e.isLayoutDirty=!1}function X5(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function K5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Q5(e){e.resolveTargetDelta()}function Z5(e){e.calcProjection()}function J5(e){e.resetSkewAndRotation()}function F5(e){e.removeLeadSnapshot()}function Tp(e,t,n){e.translate=Bt(t.translate,0,n),e.scale=Bt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ap(e,t,n,r){e.min=Bt(t.min,n.min,r),e.max=Bt(t.max,n.max,r)}function W5(e,t,n,r){Ap(e.x,t.x,n.x,r),Ap(e.y,t.y,n.y,r)}function P5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const $5={duration:.45,ease:[.4,0,.1,1]},Ep=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mp=Ep("applewebkit/")&&!Ep("chrome/")?Math.round:Ke;function jp(e){e.min=Mp(e.min),e.max=Mp(e.max)}function I5(e){jp(e.x),jp(e.y)}function vy(e,t,n){return"position"===e||"preserve-aspect"===e&&!b5(mp(t),mp(n),.2)}function tS(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}const eS=yy({attachResizeListener:(e,t)=>Dl(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||(null==(e=document.body)?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(t=document.body)?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),rc={current:void 0},xy=yy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rc.current){const e=new eS({});e.mount(window),e.setOptions({layoutScroll:!0}),rc.current=e}return rc.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),Ol=H.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function wp(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function nS(...e){return t=>{let n=!1;const r=e.map(e=>{const r=wp(e,t);return!n&&"function"==typeof r&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():wp(e[t],null)}}}}function iS(...e){return H.useCallback(nS(...e),e)}class aS extends H.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(ao(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=ao(e)&&e.offsetWidth||0,r=ao(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function lS({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){var o;const s=H.useId(),l=H.useRef(null),u=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=H.useContext(Ol),d=(null==(o=e.props)?void 0:o.ref)??(null==e?void 0:e.ref),f=iS(l,d);return H.useInsertionEffect(()=>{const{width:e,height:o,top:d,left:f,right:h,bottom:p,direction:m}=u.current;if(t||!1===a||!l.current||!e||!o)return;const g="rtl"===m,y="left"===n?g?`right: ${h}`:`left: ${f}`:g?`left: ${f}`:`right: ${h}`,v="bottom"===r?`bottom: ${p}`:`top: ${d}`;l.current.dataset.motionPopId=s;const b=document.createElement("style");c&&(b.nonce=c);const x=i??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`\n          [data-motion-pop-id="${s}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${o}px !important;\n            ${y}px !important;\n            ${v}px !important;\n          }\n        `),()=>{var e;null==(e=l.current)||e.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[t]),y.jsx(aS,{isPresent:t,childRef:l,sizeRef:u,pop:a,children:!1===a?e:H.cloneElement(e,{ref:f})})}const sS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{const c=Di(oS),d=H.useId(),f=H.useRef(n),h=H.useRef(r);To(()=>{f.current=n,h.current=r});let p=!0,m=H.useMemo(()=>(p=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;r&&r()},register:e=>(c.set(e,!1),()=>{var t;c.delete(e),!f.current&&!c.size&&(null==(t=h.current)||t.call(h))})}),[n,c,r]);return a&&p&&(m={...m}),H.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),H.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=y.jsx(lS,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),y.jsx(Ao.Provider,{value:m,children:e})};function oS(){return new Map}function by(e=!0){const t=H.useContext(Ao);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=H.useId();H.useEffect(()=>{if(e)return i(a)},[e]);const o=H.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const to=e=>e.key||"";function Cp(e){const t=[];return H.Children.forEach(e,e=>{H.isValidElement(e)&&t.push(e)}),t}const ba=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{const[c,d]=by(o),f=H.useMemo(()=>Cp(e),[e]),h=o&&!c?[]:f.map(to),p=H.useRef(!0),m=H.useRef(f),g=Di(()=>new Map),v=H.useRef(new Set),[b,x]=H.useState(f),[w,k]=H.useState(f);To(()=>{p.current=!1,m.current=f;for(let e=0;e<w.length;e++){const t=to(w[e]);h.includes(t)?(g.delete(t),v.current.delete(t)):!0!==g.get(t)&&g.set(t,!1)}},[w,h.length,h.join("-")]);const S=[];if(f!==b){let e=[...f];for(let t=0;t<w.length;t++){const n=w[t],r=to(n);h.includes(r)||(e.splice(t,0,n),S.push(n))}return"wait"===a&&S.length&&(e=S),k(Cp(e)),x(f),null}const{forceRender:T}=H.useContext(qc);return y.jsx(y.Fragment,{children:w.map(e=>{const b=to(e),x=!(o&&!c)&&(f===w||h.includes(b));return y.jsx(sS,{isPresent:x,initial:!(p.current&&!n)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:x?void 0:()=>{if(v.current.has(b))return;if(!g.has(b))return;v.current.add(b),g.set(b,!0);let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(null==T||T(),k(m.current),o&&(null==d||d()),r&&r())},anchorX:s,anchorY:l,children:e},b)})})},Sy=H.createContext({strict:!1}),Dp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let zp=!1;function rS(){if(zp)return;const e={};for(const t in Dp)e[t]={isEnabled:e=>Dp[t].some(t=>!!e[t])};Pg(e),zp=!0}function Ty(){return rS(),Qb()}function uS(e){const t=Ty();for(const n in e)t[n]={...t[n],...e[n]};Pg(t)}const cS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function bo(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cS.has(e)}let Ay=e=>!bo(e);function fS(e){"function"==typeof e&&(Ay=t=>t.startsWith("on")?!bo(t):e(t))}try{fS(require("@emotion/is-prop-valid").default)}catch{}function dS(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||ee(e[i])||(Ay(i)||!0===n&&bo(i)||!t&&!bo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const wo=H.createContext({});function hS(e,t){if(jo(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Cl(t)?t:void 0,animate:Cl(n)?n:void 0}}return!1!==e.inherit?t:{}}function mS(e){const{initial:t,animate:n}=hS(e,H.useContext(wo));return H.useMemo(()=>({initial:t,animate:n}),[Np(t),Np(n)])}function Np(e){return Array.isArray(e)?e.join(" "):e}const hf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ey(e,t,n){for(const r in t)!ee(t[r])&&!ay(r,n)&&(e[r]=t[r])}function pS({transformTemplate:e},t){return H.useMemo(()=>{const n=hf();return ff(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gS(e,t){const n={};return Ey(n,e.style||{},e),Object.assign(n,pS(e,t)),n}function yS(e,t){const n={},r=gS(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const My=()=>({...hf(),attrs:{}});function vS(e,t,n,r){const i=H.useMemo(()=>{const n=My();return ly(n,t,oy(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Ey(t,e.style,e),i.style={...t,...i.style}}return i}const xS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function mf(e){return"string"==typeof e&&!e.includes("-")&&!!(xS.indexOf(e)>-1||/[A-Z]/u.test(e))}function bS(e,t,n,{latestValues:r},i,a=!1,o){const s=(o??mf(e)?vS:yS)(t,r,i,e),l=dS(t,"string"==typeof e,a),u=e!==H.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=H.useMemo(()=>ee(c)?c.get():c,[c]);return H.createElement(e,{...u,children:d})}function SS({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:TS(n,r,i,e),renderState:t()}}function TS(e,t,n,r){const i={},a=r(e,{});for(const e in a)i[e]=uo(a[e]);let{initial:o,animate:s}=e;const l=jo(e),u=Fg(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===o;const d=c?s:o;if(d&&"boolean"!=typeof d&&!Mo(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=nf(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(i[e]=t)}for(const t in e)i[t]=e[t]}}}return i}const jy=e=>(t,n)=>{const r=H.useContext(wo),i=H.useContext(Ao),a=()=>SS(e,t,r,i);return n?a():Di(a)},AS=jy({scrapeMotionValuesFromProps:df,createRenderState:hf}),ES=jy({scrapeMotionValuesFromProps:ry,createRenderState:My}),MS=Symbol.for("motionComponentSymbol");function jS(e,t,n){const r=H.useRef(n);H.useInsertionEffect(()=>{r.current=n});const i=H.useRef(null);return H.useCallback(n=>{var a;n&&(null==(a=e.onMount)||a.call(e,n)),t&&(n?t.mount(n):t.unmount());const o=r.current;if("function"==typeof o)if(n){const e=o(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n);else o&&(o.current=n)},[t])}const wy=H.createContext({});function pa(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function wS(e,t,n,r,i,a){var o,s;const{visualElement:l}=H.useContext(wo),u=H.useContext(Sy),c=H.useContext(Ao),d=H.useContext(Ol),f=d.reducedMotion,h=d.skipAnimations,p=H.useRef(null),m=H.useRef(!1);r=r||u.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:l,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:f,skipAnimations:h,isSVG:a}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const g=p.current,y=H.useContext(wy);g&&!g.projection&&i&&("html"===g.type||"svg"===g.type)&&CS(p.current,n,i,y);const v=H.useRef(!1);H.useInsertionEffect(()=>{g&&v.current&&g.update(n,c)});const b=n[Lg],x=H.useRef(!!b&&typeof window<"u"&&!(null!=(o=window.MotionHandoffIsComplete)&&o.call(window,b))&&(null==(s=window.MotionHasOptimisedAnimation)?void 0:s.call(window,b)));return To(()=>{m.current=!0,g&&(v.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),x.current&&g.animationState&&g.animationState.animateChanges())}),H.useEffect(()=>{g&&(!x.current&&g.animationState&&g.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,b)}),x.current=!1),g.enteringChildren=void 0)}),g}function CS(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cy(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&pa(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function Cy(e){if(e)return!1!==e.options.allowProjection?e.projection:Cy(e.parent)}function uc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&uS(r);const a=n?"svg"===n:mf(e),o=a?ES:AS;function s(n,r){let s;const l={...H.useContext(Ol),...n,layoutId:DS(n)},{isStatic:u}=l,c=mS(n),d=o(n,u);if(!u&&typeof window<"u"){zS();const t=NS(l);s=t.MeasureLayout,c.visualElement=wS(e,d,l,i,t.ProjectionNode,a)}return y.jsxs(wo.Provider,{value:c,children:[s&&c.visualElement?y.jsx(s,{visualElement:c.visualElement,...l}):null,bS(e,n,jS(d,c.visualElement,r),d,u,t,a)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const l=H.forwardRef(s);return l[MS]=e,l}function DS({layoutId:e}){const t=H.useContext(qc).id;return t&&void 0!==e?t+"-"+e:e}function zS(e,t){H.useContext(Sy).strict}function NS(e){const t=Ty(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:null!=n&&n.isEnabled(e)||null!=r&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function RS(e,t){if(typeof Proxy>"u")return uc;const n=new Map,r=(n,r)=>uc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>"create"===a?r:(n.has(a)||n.set(a,uc(a,void 0,e,t)),n.get(a))})}const OS=(e,t)=>t.isSVG??mf(e)?new u5(t):new i5(t,{allowProjection:e!==H.Fragment});class VS extends ai{constructor(e){super(e),e.animationState||(e.animationState=m5(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Mo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let BS=0;class _S extends ai{constructor(){super(...arguments),this.id=BS++,this.isExitComplete=!1}update(){var e;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&!1===r){if(this.isExitComplete){const{initial:t,custom:n}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){const r=Ci(this.node,t,n);if(r){const{transition:t,transitionEnd:n,...i}=r;for(const t in i)null==(e=this.node.getValue(t))||e.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const LS={animation:{Feature:VS},exit:{Feature:_S}};function Vl(e){return{point:{x:e.pageX,y:e.pageY}}}const US=e=>t=>of(t)&&e(t,Vl(t));function El(e,t,n,r){return Dl(e,t,US(n),r)}const Dy=({current:e})=>e?e.ownerDocument.defaultView:null,Rp=(e,t)=>Math.abs(e-t);function kS(e,t){const n=Rp(e.x,t.x),r=Rp(e.y,t.y);return Math.sqrt(n**2+r**2)}const Op=new Set(["auto","scroll"]);class zy{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=eo(this.lastRawMoveEventInfo,this.transformPagePoint));const e=cc(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=kS(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=ce;this.history.push({...r,timestamp:i});const{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=eo(t,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=cc("pointercancel"===e.type?this.lastMoveEventInfo:eo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!of(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const s=eo(Vl(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=ce;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,cc(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=zl(El(this.contextWindow,"pointermove",this.handlePointerMove,d),El(this.contextWindow,"pointerup",this.handlePointerUp,d),El(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(Op.has(e.overflowX)||Op.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i=r.x-t.x,a=r.y-t.y;0===i&&0===a||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i,this.lastMoveEventInfo.point.y+=a):this.history.length>0&&(this.history[0].x-=i,this.history[0].y-=a),this.scrollPositions.set(e,r),zt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Cn(this.updatePoint)}}function eo(e,t){return t?{point:t(e.point)}:e}function Vp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cc({point:e},t){return{point:e,delta:Vp(e,Ny(t)),offset:Vp(e,HS(t)),velocity:qS(t,.1)}}function HS(e){return e[0]}function Ny(e){return e[e.length-1]}function qS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ny(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Re(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*Re(t)&&(r=e[1]);const a=Xe(i.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function GS(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Bt(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Bt(n,e,r.max):Math.min(e,n)),e}function Bp(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function YS(e,{top:t,left:n,bottom:r,right:i}){return{x:Bp(e.x,n,i),y:Bp(e.y,t,r)}}function _p(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function XS(e,t){return{x:_p(e.x,t.x),y:_p(e.y,t.y)}}function KS(e,t){let n=.5;const r=me(e),i=me(t);return i>r?n=Ml(t.min,t.max-r,e.min):r>i&&(n=Ml(e.min,e.max-i,t.min)),on(0,1,n)}function QS(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}const Uc=.35;function ZS(e=Uc){return!1===e?e=0:!0===e&&(e=Uc),{x:Lp(e,"left","right"),y:Lp(e,"top","bottom")}}function Lp(e,t,n){return{min:Up(e,t),max:Up(e,n)}}function Up(e,t){return"number"==typeof e?e:e[t]||0}const JS=new WeakMap;class FS{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new zy(e,{onSessionStart:e=>{t&&this.snapToCursor(Vl(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bb(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(e=>{let t=this.getAxisMotionValue(e).get()||0;if(sn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=me(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&zt.update(()=>i(e,t),!1,!0),Cc(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:o}=t;if(r&&null===this.currentDirection)return this.currentDirection=PS(o),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&zt.update(()=>a(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:Dy(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&zt.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!no(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=GS(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&pa(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&YS(r.layoutBox,t),this.elastic=ZS(n),i!==this.constraints&&!pa(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&an(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=QS(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!pa(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const i=Pb(n,r.root,this.visualElement.getTransformPagePoint());let a=XS(r.layout.layoutBox,i);if(t){const e=t(Jb(a));this.hasMutatedConstraints=!!e,e&&(a=Ig(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},l=an(o=>{if(!no(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[o]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,d)});return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Cc(this.visualElement,e),n.start(ef(e,n,0,t,this.visualElement,!1))}stopAnimation(){an(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){an(t=>{const{drag:n}=this.getProps();if(!no(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Bt(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!pa(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};an(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=KS({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),an(t=>{if(!no(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Bt(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;JS.set(this.visualElement,this);const e=this.visualElement.current,t=El(e,"pointerdown",t=>{const{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&jb(i);n&&r&&!a&&this.start(t)});let n;const r=()=>{const{dragConstraints:t}=this.getProps();pa(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=WS(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),zt.read(r);const o=Dl(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(an(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Uc,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function kp(e){let t=!0;return()=>{t?t=!1:e()}}function WS(e,t,n){const r=K0(e,kp(n)),i=K0(t,kp(n));return()=>{r(),i()}}function no(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}function PS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $S extends ai{constructor(e){super(e),this.removeGroupControls=Ke,this.removeListeners=Ke,this.controls=new FS(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ke}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fc=e=>(t,n)=>{e&&zt.update(()=>e(t,n),!1,!0)};class IS extends ai{constructor(){super(...arguments),this.removePointerDownListener=Ke}onPointerDown(e){this.session=new zy(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dy(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:fc(e),onStart:fc(t),onMove:fc(n),onEnd:(e,t)=>{delete this.session,r&&zt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=El(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dc=!1;class tT extends H.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),dc&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),co.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),dc=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||zt.postRender(()=>{const e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),sf.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;dc=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ry(e){const[t,n]=by(),r=H.useContext(qc);return y.jsx(tT,{...e,layoutGroup:r,switchLayoutGroup:H.useContext(wy),isPresent:t,safeToRemove:n})}const eT={pan:{Feature:IS},drag:{Feature:$S,ProjectionNode:xy,MeasureLayout:Ry}};function Hp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&zt.postRender(()=>i(t,Vl(t)))}class nT extends ai{mount(){const{current:e}=this.node;e&&(this.unmount=Tb(e,(e,t)=>(Hp(this.node,t,"Start"),e=>Hp(this.node,e,"End"))))}unmount(){}}class iT extends ai{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=zl(Dl(this.node.current,"focus",()=>this.onFocus()),Dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qp(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&zt.postRender(()=>i(t,Vl(t)))}class aT extends ai{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Cb(e,(e,t)=>(qp(this.node,t,"Start"),(e,{success:t})=>qp(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===(null==n?void 0:n.tap)})}unmount(){}}const kc=new WeakMap,hc=new WeakMap,lT=e=>{const t=kc.get(e.target);t&&t(e)},sT=e=>{e.forEach(lT)};function oT({root:e,...t}){const n=e||document;hc.has(n)||hc.set(n,{});const r=hc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sT,{root:e,...t})),r[i]}function rT(e,t,n){const r=oT(t);return kc.set(e,n),r.observe(e),()=>{kc.delete(e),r.unobserve(e)}}const uT={some:0,all:1};class cT extends ai{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;null==(e=this.stopObserver)||e.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:uT[i]};this.stopObserver=rT(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(fT(e,t))&&this.startObserver()}unmount(){var e;null==(e=this.stopObserver)||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function fT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dT={inView:{Feature:cT},tap:{Feature:aT},focus:{Feature:iT},hover:{Feature:nT}},hT={layout:{ProjectionNode:xy,MeasureLayout:Ry}},mT={...LS,...dT,...eT,...hT},Mt=RS(mT,OS);function So(e){const t=Di(()=>zi(e)),{isStatic:n}=H.useContext(Ol);if(n){const[,n]=H.useState(e);H.useEffect(()=>t.on("change",n),[])}return t}function Oy(e,t){const n=So(t()),r=()=>n.set(t());return r(),To(()=>{const t=()=>zt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),Cn(r)}}),n}function pT(e){Tl.current=[],e();const t=Oy(Tl.current,e);return Tl.current=void 0,t}function Co(e,t,n,r){if("function"==typeof e)return pT(e);if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t)return gT(e,t,n,r);const i="function"==typeof t?t:Ub(t,n,r),a=Array.isArray(e)?Gp(e,i):Gp([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&!1!==(null==r?void 0:r.clamp)&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0}),a}function Gp(e,t){const n=Di(()=>[]);return Oy(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function gT(e,t,n,r){const i=Di(()=>Object.keys(n)),a=Di(()=>({}));for(const o of i)a[o]=Co(e,t,n[o],r);return a}function yT(e,t={}){const{isStatic:n}=H.useContext(Ol),r=()=>ee(e)?e.get():e;if(n)return Co(r);const i=So(r());return H.useInsertionEffect(()=>kb(i,e,t),[i,JSON.stringify(t)]),i}function vT(e,t={}){return yT(e,{type:"spring",...t})}function xT(){return y.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",style:{zIndex:0},children:[y.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"url('/bg.png')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),y.jsx(Mt.div,{className:"absolute rounded-full",style:{width:260,height:260,top:-50,left:-70,background:"radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0) 70%)",filter:"blur(55px)"},animate:{x:[0,20,-15,0],y:[0,-15,10,0],scale:[1,1.15,.9,1],opacity:[.5,.8,.4,.5]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),y.jsx(Mt.div,{className:"absolute rounded-full",style:{width:300,height:300,bottom:-80,right:-80,background:"radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%)",filter:"blur(60px)"},animate:{x:[0,-20,15,0],y:[0,15,-10,0],scale:[1,.9,1.12,1],opacity:[.4,.7,.35,.4]},transition:{duration:10,repeat:1/0,ease:"easeInOut"}}),y.jsx(Mt.div,{className:"absolute rounded-full",style:{width:200,height:200,top:"40%",left:"50%",transform:"translate(-50%, -50%)",background:"radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%)",filter:"blur(50px)"},animate:{scale:[1,1.2,.85,1],opacity:[.3,.6,.25,.3]},transition:{duration:7,repeat:1/0,ease:"easeInOut",delay:2}})]})}function bT({mode:e="user",onSettingsClick:t,onAccountClick:n,onFloatClick:r,user:i}){const a="dev"===e;return y.jsxs(Mt.div,{className:"relative flex items-center w-full mb-2",initial:{opacity:0,y:-12},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:200,damping:25,delay:0},children:[y.jsx(Mt.div,{className:"absolute pointer-events-none",style:{width:100,height:100,background:"radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%)",filter:"blur(14px)",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},animate:{scale:[1,1.15,1],opacity:[.5,.8,.5]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),a?y.jsxs("div",{className:"flex items-center justify-between w-full z-10",children:[y.jsxs("a",{href:"https://quizmate.xyz/",target:"_blank",rel:"noopener noreferrer",className:"relative flex items-center gap-3.5 cursor-pointer no-underline",children:[y.jsx("div",{className:"w-[54px] h-[54px] flex items-center justify-center overflow-hidden",children:y.jsx("img",{src:"/icon128.png",alt:"QuizMate",className:"w-full h-full object-contain"})}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"font-bold tracking-tight text-lg text-white",style:{letterSpacing:"-0.03em",textShadow:"0 0 20px rgba(255, 255, 255, 0.25)"},children:"QuizMate"}),y.jsx("div",{className:"text-[11px] font-medium tracking-wide text-indigo-400/90",children:"Developer Mode"})]})]}),y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx(Mt.button,{onClick:r,title:"Buka Panel Melayang di Halaman Web (Alt+Q)",className:"flex items-center justify-center cursor-pointer border-none outline-none",style:{width:34,height:34,borderRadius:10,background:"rgba(255, 255, 255, 0.03)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",boxShadow:"0 0 0 1px rgba(255,255,255,0.12), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.75)"},whileHover:{background:"rgba(99, 102, 241, 0.25)",color:"#ffffff",boxShadow:"0 0 0 1px rgba(99,102,241,0.5), 0 10px 25px rgba(0,0,0,0.3)"},whileTap:{scale:.9},children:y.jsxs("svg",{viewBox:"0 0 24 24",width:"17",height:"17",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),y.jsx("rect",{x:"12",y:"9",width:"8",height:"6",rx:"1"}),y.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),y.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]})}),y.jsx(Mt.button,{onClick:n,className:"flex items-center justify-center cursor-pointer border-none outline-none",style:{width:34,height:34,borderRadius:10,background:i?"rgba(99, 102, 241, 0.15)":"rgba(255, 255, 255, 0.03)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",boxShadow:i?"0 0 0 1px rgba(99,102,241,0.35), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1)":"0 0 0 1px rgba(255,255,255,0.12), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1)",color:i?"#a5b4fc":"rgba(255,255,255,0.75)"},whileHover:{background:i?"rgba(99, 102, 241, 0.25)":"rgba(255, 255, 255, 0.08)",color:"#ffffff",boxShadow:i?"0 0 0 1px rgba(99,102,241,0.5), 0 10px 25px rgba(0,0,0,0.3)":"0 0 0 1px rgba(255,255,255,0.25), 0 10px 25px rgba(0,0,0,0.3)"},whileTap:{scale:.9},children:i?y.jsxs("div",{className:"relative w-[18px] h-[18px] flex items-center justify-center",children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),y.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),y.jsx("span",{className:"absolute -top-1 -right-1 w-2 h-2 rounded-full bg-emerald-400 border border-indigo-950"})]}):y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),y.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}),y.jsx(Mt.button,{onClick:t,className:"flex items-center justify-center cursor-pointer border-none outline-none",style:{width:34,height:34,borderRadius:10,background:"rgba(255, 255, 255, 0.03)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1)",color:"rgba(255,255,255,0.75)"},whileHover:{background:"rgba(255, 255, 255, 0.08)",color:"#ffffff",boxShadow:"0 0 0 1px rgba(255,255,255,0.25), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15)"},whileTap:{scale:.9},children:y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("circle",{cx:"12",cy:"12",r:"3"}),y.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l-.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})})]})]}):y.jsxs("div",{className:"flex items-center justify-between w-full z-10",children:[y.jsx("div",{className:"w-[34px]"}),y.jsxs("a",{href:"https://quizmate.xyz/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3.5 flex-1 cursor-pointer no-underline",children:[y.jsx("div",{className:"w-[54px] h-[54px] flex items-center justify-center overflow-hidden",children:y.jsx("img",{src:"/icon128.png",alt:"QuizMate",className:"w-full h-full object-contain"})}),y.jsx("div",{className:"flex flex-col",children:y.jsx("div",{className:"font-bold tracking-tight text-2xl text-white",style:{letterSpacing:"-0.03em",textShadow:"0 0 20px rgba(255, 255, 255, 0.25)"},children:"QuizMate"})})]}),y.jsx("div",{className:"w-[34px] flex justify-end",children:y.jsx(Mt.button,{onClick:n,className:"flex items-center justify-center cursor-pointer border-none outline-none",style:{width:34,height:34,borderRadius:10,background:i?"rgba(99, 102, 241, 0.15)":"rgba(255, 255, 255, 0.03)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",boxShadow:i?"0 0 0 1px rgba(99,102,241,0.35), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1)":"0 0 0 1px rgba(255,255,255,0.12), 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1)",color:i?"#a5b4fc":"rgba(255,255,255,0.75)"},whileHover:{background:i?"rgba(99, 102, 241, 0.25)":"rgba(255, 255, 255, 0.08)",color:"#ffffff",boxShadow:i?"0 0 0 1px rgba(99,102,241,0.5), 0 10px 25px rgba(0,0,0,0.3)":"0 0 0 1px rgba(255,255,255,0.25), 0 10px 25px rgba(0,0,0,0.3)"},whileTap:{scale:.9},children:i?y.jsxs("div",{className:"relative w-[18px] h-[18px] flex items-center justify-center",children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),y.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),y.jsx("span",{className:"absolute -top-1 -right-1 w-2 h-2 rounded-full bg-emerald-400 border border-indigo-950"})]}):y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),y.jsx("circle",{cx:"12",cy:"7",r:"4"})]})})})]})]})}function rn({children:e,className:t="",delay:n=0,style:r={}}){const i=H.useRef(null),[a,o]=H.useState(!1),s=So(50),l=So(50),u=Co([s,l],([e,t])=>`radial-gradient(circle 80px at ${e}% ${t}%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 40%, transparent 100%)`);return y.jsxs(Mt.div,{ref:i,className:`relative overflow-hidden rounded-glass ${t}`,initial:{opacity:0,y:24,scale:.96},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:180,damping:22,delay:n},whileHover:{y:-2,transition:{type:"spring",stiffness:400,damping:20}},whileTap:{scale:.985},onMouseMove:e=>{if(!i.current)return;o(!0);const t=i.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*100,r=(e.clientY-t.top)/t.height*100;s.set(n),l.set(r)},onMouseLeave:()=>{o(!1),s.set(50),l.set(50)},style:{background:"rgba(20, 25, 45, 0.65)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 12px rgba(124, 58, 237, 0.12), 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.25)",...r},children:[y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.01) 50.1%, rgba(255,255,255,0) 100%)",zIndex:1}}),y.jsx("div",{className:"absolute top-0 left-0 right-0 pointer-events-none",style:{height:"1.5px",background:"linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.35) 30%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.35) 70%, transparent 95%)"}}),y.jsx("div",{className:"absolute top-0 left-0 bottom-0 pointer-events-none",style:{width:"1px",background:"linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 50%, transparent 100%)"}}),y.jsx(Mt.div,{className:"absolute inset-0 pointer-events-none",animate:{opacity:a?1:0},transition:{duration:.3,ease:"easeOut"},style:{background:u,borderRadius:"inherit",zIndex:1}}),y.jsx("div",{className:"relative",style:{zIndex:2},children:e})]})}function ST({visible:e,backendUrl:t,onBackendUrlChange:n,token:r,onTokenChange:i,delay:a=0}){return y.jsx(ba,{children:e&&y.jsx(Mt.div,{initial:{opacity:0,height:0,scale:.95},animate:{opacity:1,height:"auto",scale:1},exit:{opacity:0,height:0,scale:.95},transition:{type:"spring",stiffness:250,damping:25},style:{overflow:"hidden"},children:y.jsx(rn,{delay:0,style:{borderStyle:"dashed",borderWidth:1.5,borderColor:"rgba(99, 102, 241, 0.25)",background:"rgba(99, 102, 241, 0.02)"},children:y.jsxs("div",{className:"flex flex-col gap-2.5 p-4",children:[y.jsx("span",{className:"text-xs font-bold uppercase",style:{color:"#818cf8",letterSpacing:"0.05em"},children:"Backend URL Configuration"}),y.jsx("input",{type:"text",className:"glass-input",value:t,onChange:e=>n(e.target.value),placeholder:"https://api.quizmate.xyz",style:{textAlign:"left",letterSpacing:"normal",fontSize:"0.82rem"}}),y.jsx("span",{className:"text-xs font-bold uppercase mt-2",style:{color:"#818cf8",letterSpacing:"0.05em"},children:"Server Status Monitor"}),y.jsxs("div",{onClick:()=>{const e=t||"https://api.quizmate.xyz";typeof chrome<"u"&&chrome.tabs?chrome.tabs.create({url:e}):window.open(e,"_blank")},className:"cursor-pointer p-2.5 rounded-lg border border-indigo-500/20 flex items-center justify-between text-left transition-all duration-300 hover:border-indigo-500/50 hover:bg-indigo-500/10",style:{background:"rgba(99, 102, 241, 0.05)"},children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx("span",{className:"text-[11px] font-bold text-indigo-300",children:"🌐 Buka Link Server Render"}),y.jsx("span",{className:"text-[9px] text-white/55",children:"Klik untuk memonitor web server produksi Render secara langsung."})]}),y.jsx("div",{className:"text-white/40",children:y.jsxs("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("line",{x1:"7",y1:"17",x2:"17",y2:"7"}),y.jsx("polyline",{points:"7 7 17 7 17 17"})]})})]}),y.jsx("span",{className:"text-xs font-bold uppercase mt-2",style:{color:"#818cf8",letterSpacing:"0.05em"},children:"License Key / Token"}),y.jsx("input",{type:"password",className:"glass-input",value:r,onChange:e=>i(e.target.value),placeholder:"Masukkan License Key",style:{textAlign:"left",letterSpacing:"normal",fontSize:"0.82rem"}})]})})})})}const Yp={ready:{bg:"rgba(255, 255, 255, 0.1)",border:"rgba(255, 255, 255, 0.05)",text:"rgba(255, 255, 255, 0.4)"},active:{bg:"rgba(59, 130, 246, 0.2)",border:"rgba(59, 130, 246, 0.3)",text:"#3b82f6"},success:{bg:"rgba(168, 85, 247, 0.2)",border:"rgba(168, 85, 247, 0.3)",text:"#c084fc"},error:{bg:"rgba(239, 68, 68, 0.2)",border:"rgba(239, 68, 68, 0.3)",text:"#f87171"}};function Vy({text:e,status:t="ready"}){const n=Yp[t]||Yp.ready;return y.jsx(Mt.span,{className:"inline-flex items-center px-3.5 py-1 rounded-full text-xs font-bold tracking-wide",initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:300,damping:20},style:{background:n.bg,boxShadow:`0 0 0 1px ${n.border}, 0 4px 10px rgba(0, 0, 0, 0.2)`,color:n.text,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",textShadow:"0 1px 2px rgba(0,0,0,0.3)",letterSpacing:"0.02em"},children:e})}function TT({statusText:e,statusType:t,actionText:n,delay:r=0,mode:i="user"}){return y.jsx(rn,{delay:r,children:y.jsxs("div",{className:"flex flex-col gap-4 p-5",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-3 text-[0.92rem] font-medium",style:{color:"rgba(255,255,255,0.95)"},children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white opacity-80",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})]}),y.jsx("span",{children:"dev"===i?"Solver Status":"Status"})]}),y.jsx(Vy,{text:e,status:t})]}),y.jsx("div",{style:{height:"1px",background:"rgba(255,255,255,0.06)"}}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-3 text-[0.92rem] font-medium",style:{color:"rgba(255,255,255,0.95)"},children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white opacity-80",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("polyline",{points:"12 6 12 12 15.5 14"})]}),y.jsx("span",{children:"dev"===i?"Current Action":"Aktivitas"})]}),y.jsx("span",{className:"text-sm font-normal",style:{color:"rgba(255,255,255,0.45)"},children:n})]})]})})}function By({checked:e,onChange:t,disabled:n=!1}){const r=vT(e?1:0,{stiffness:300,damping:22});H.useEffect(()=>{r.set(e?1:0)},[e,r]);const i=Co(r,[0,1],[3,29]);return y.jsxs(Mt.div,{className:"relative "+(n?"cursor-not-allowed":"cursor-pointer"),style:{width:54,height:28,flexShrink:0},onClick:()=>{if(n)return;const i=!e;r.set(i?1:0),null==t||t(i)},whileTap:n?{}:{scale:.92},children:[y.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:"rgba(10, 14, 28, 0.75)",boxShadow:"inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08)"}}),y.jsx(Mt.div,{className:"absolute inset-0 rounded-full",style:{background:"linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%)",opacity:r,boxShadow:"0 0 16px rgba(139, 92, 246, 0.55), inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.5)"}}),y.jsx(Mt.div,{className:"absolute inset-0 rounded-full pointer-events-none",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%)",opacity:r}}),y.jsx(Mt.div,{className:"absolute rounded-full",style:{width:22,height:22,top:3,x:i,background:"linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%)",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 2px rgba(0, 0, 0, 0.1)"},children:y.jsx("div",{className:"absolute rounded-full",style:{width:10,height:6,top:3,left:"50%",transform:"translateX(-50%)",background:"radial-gradient(ellipse, rgba(255,255,255,0.9) 0%, transparent 100%)"}})})]})}function AT({checked:e,onChange:t,delay:n=0,mode:r="user",disabled:i=!1}){return y.jsx(rn,{delay:n,children:y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 "+(i?"opacity-60":""),children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(By,{checked:!i&&e,onChange:i?()=>{}:t,disabled:i}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs font-semibold text-white/90",children:"dev"===r?"Auto-Run / Auto-Next Page":"Auto-Run / Jawab Otomatis"}),i&&y.jsx("span",{className:"text-[10px] text-white/40 font-medium",children:"Khusus paket Lite & Pro"})]})]}),"dev"===r&&y.jsx("div",{style:{color:"rgba(255,255,255,0.4)"},children:y.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),y.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})]})})}function ET({enabled:e,onEnabledChange:t,seconds:n,onSecondsChange:r,delay:i=0,tier:a="Free",isDev:o=!1}){const s=!(o||"Free"!==a&&a),l=!!s||e,u=s?10:n||8;return y.jsx(rn,{delay:i,children:y.jsxs("div",{className:"px-4 py-3 flex flex-col gap-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(By,{checked:l,onChange:s?()=>{}:t,disabled:s}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs font-semibold text-white/90",children:"Delay Pengisian Jawaban"}),s&&y.jsx("span",{className:"text-[10px] text-white/40 font-medium",children:"Terkunci 10s untuk Free Plan"})]})]}),y.jsx("div",{className:"text-[11px] font-mono font-bold text-white/50 bg-white/5 px-2.5 py-0.5 rounded-md border border-white/10",children:l?`${u}s`:"OFF"})]}),y.jsx(ba,{children:l&&!s&&y.jsx(Mt.div,{initial:{opacity:0,height:0,marginTop:0},animate:{opacity:1,height:"auto",marginTop:4},exit:{opacity:0,height:0,marginTop:0},transition:{duration:.25,ease:[.4,0,.2,1]},className:"overflow-hidden",children:y.jsxs("div",{className:"pt-2.5 border-t border-white/10 flex items-center justify-between",children:[y.jsx("span",{className:"text-xs text-white/60",children:"Waktu Delay:"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("div",{className:"flex items-center gap-1 bg-black/40 border border-white/15 rounded-xl p-1 shadow-inner",children:[y.jsx("button",{type:"button",onClick:()=>r(Math.max(1,(parseInt(n)||1)-1)),className:"w-6 h-6 rounded-lg bg-white/10 hover:bg-white/20 active:scale-95 text-white/80 hover:text-white flex items-center justify-center transition-all cursor-pointer select-none",title:"Kurangi 1 detik",children:y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",children:y.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}),y.jsx("input",{type:"number",min:"1",max:"300",value:n,onChange:e=>{const t=Math.max(1,parseInt(e.target.value)||1);r(t)},className:"w-9 bg-transparent text-xs text-center text-white font-mono font-bold focus:outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),y.jsx("button",{type:"button",onClick:()=>r((parseInt(n)||1)+1),className:"w-6 h-6 rounded-lg bg-white/10 hover:bg-white/20 active:scale-95 text-white/80 hover:text-white flex items-center justify-center transition-all cursor-pointer select-none",title:"Tambah 1 detik",children:y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",children:[y.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),y.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),y.jsx("span",{className:"text-xs text-white/40",children:"detik"})]})]})})})]})})}function _y({children:e,onClick:t,delay:n=0,disabled:r=!1}){return y.jsxs(Mt.button,{onClick:t,disabled:r,className:"relative w-full cursor-pointer overflow-hidden border-none outline-none",initial:{opacity:0,y:24,scale:.96},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:180,damping:22,delay:n},whileHover:{y:-2,boxShadow:"0 0 0 1px rgba(139, 92, 246, 0.45), 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 20px rgba(124, 58, 237, 0.2), inset 0 1.5px 0 rgba(255, 255, 255, 0.35)",transition:{type:"spring",stiffness:400,damping:18}},whileTap:{scale:.98,y:1,boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.4)",transition:{type:"spring",stiffness:600,damping:15}},style:{height:48,borderRadius:9999,background:"rgba(20, 25, 45, 0.75)",backdropFilter:"blur(35px) saturate(220%)",WebkitBackdropFilter:"blur(35px) saturate(220%)",color:"#ffffff",fontWeight:700,fontSize:"0.92rem",fontFamily:"inherit",display:"flex",alignItems:"center",justifyContent:"center",gap:10,boxShadow:"0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 16px rgba(124, 58, 237, 0.15), 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.25)",zIndex:2},children:[y.jsx("div",{className:"absolute top-0 left-0 right-0 pointer-events-none",style:{height:"1.5px",background:"linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.3) 70%, transparent 95%)"}}),y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.01) 50.1%, rgba(255,255,255,0) 100%)"}}),y.jsx("span",{className:"relative flex items-center gap-2.5 text-white",style:{zIndex:2},children:e})]})}function MT({logs:e,delay:t=0,mode:n="user"}){const r=H.useRef(null);return H.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[e]),y.jsx(rn,{delay:t,children:y.jsxs("div",{className:"flex flex-col gap-2 p-4",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"#4ade80"},children:[y.jsx("polyline",{points:"4 17 10 11 4 5"}),y.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}),y.jsx("span",{className:"text-xs font-semibold",style:{color:"#4ade80",letterSpacing:"0.02em"},children:"Logs Aktivitas"})]}),y.jsx("div",{ref:r,className:"font-mono",style:{background:"rgba(0, 0, 0, 0.55)",border:"1px solid rgba(255,255,255,0.03)",borderRadius:12,padding:12,fontSize:"0.75rem",color:"rgba(255,255,255,0.65)",minHeight:54,maxHeight:75,overflowY:"auto",whiteSpace:"pre-wrap",lineHeight:1.45,boxShadow:"inset 0 2px 4px rgba(0,0,0,0.4)"},children:e})]})})}function jT({backendUrl:e,delay:t=0}){const[n,r]=H.useState(null);return H.useEffect(()=>{const t=async()=>{try{const t=e.replace(/\/+$/,""),n=new AbortController,i=setTimeout(()=>n.abort(),1800);await fetch(t,{method:"GET",mode:"no-cors",signal:n.signal}),clearTimeout(i),r(!0)}catch{r(!1)}};t();const n=setInterval(t,4e3);return()=>clearInterval(n)},[e]),y.jsx(rn,{delay:t,children:y.jsxs("div",{className:"flex items-center justify-between px-3.5 py-2.5",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"rgba(255,255,255,0.75)"},children:[y.jsxs("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"rgba(255,255,255,0.6)"},children:[y.jsx("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"}),y.jsx("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"}),y.jsx("line",{x1:"6",y1:"6",x2:"6.01",y2:"6"}),y.jsx("line",{x1:"6",y1:"18",x2:"6.01",y2:"18"})]}),y.jsxs("span",{children:["Local Backend:"," ",y.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"no-underline hover:underline",style:{color:"#818cf8"},children:e})]})]}),y.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[y.jsx(Mt.div,{className:"rounded-full",style:{width:7,height:7,background:null===n?"rgba(255,255,255,0.45)":n?"#34d399":"#ef4444",boxShadow:null===n?"none":n?"0 0 8px #34d399":"0 0 8px #ef4444"},animate:null!==n?{scale:[1,1.3,1]}:{},transition:{duration:1.5,repeat:1/0}}),y.jsx("span",{children:null===n?"Checking...":n?"Online":"Offline"})]})]})})}function wT({isOpen:e,onClose:t,user:n,quota:r,onLogin:i,onRegister:a,onLogout:o,onForgotPassword:s}){const[l,u]=H.useState("login"),[c,d]=H.useState(""),[f,h]=H.useState(""),[p,m]=H.useState(""),[g,v]=H.useState(""),[b,x]=H.useState(""),[w,k]=H.useState(!1);return y.jsx(ba,{children:e&&y.jsxs("div",{className:"fixed inset-0 z-50 flex items-end justify-center",children:[y.jsx(Mt.div,{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),y.jsxs(Mt.div,{className:"relative w-full rounded-t-glass-lg overflow-hidden border-t border-white/10",initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",stiffness:260,damping:26},style:{background:"rgba(15, 20, 38, 0.95)",backdropFilter:"blur(50px) saturate(210%)",WebkitBackdropFilter:"blur(50px) saturate(210%)",boxShadow:"0 -10px 40px rgba(0, 0, 0, 0.6)",maxHeight:"90%"},children:[y.jsx("div",{className:"absolute top-0 left-0 right-0 pointer-events-none",style:{height:"1.5px",background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent)"}}),y.jsx("div",{className:"w-12 h-1.5 bg-white/20 rounded-full mx-auto my-3.5 cursor-pointer",onClick:t}),y.jsx("div",{className:"px-5 pb-8 flex flex-col gap-4.5 overflow-y-auto",style:{maxHeight:"calc(80vh - 40px)"},children:n?y.jsxs("div",{className:"flex flex-col gap-5",children:[y.jsxs("div",{className:"text-center",children:[y.jsx("h2",{className:"text-lg font-bold text-white tracking-tight",children:"Akun Pengguna"}),y.jsx("p",{className:"text-xs text-white/50",children:n.email})]}),y.jsx(rn,{delay:.05,children:y.jsxs("div",{className:"flex flex-col gap-3.5 p-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm text-white/70",children:"Tipe Langganan"}),y.jsx(Vy,{text:n.tier||"Free",status:"Pro"===n.tier?"success":"Lite"===n.tier?"active":"ready"})]}),y.jsx("div",{className:"h-px bg-white/5"}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm text-white/70",children:"Masa Aktif"}),y.jsx("span",{className:"text-xs text-white/50",children:n.expiry?new Date(n.expiry).toLocaleDateString("id-ID",{day:"numeric",month:"long",year:"numeric"}):"Selamanya / Tidak terbatas"})]}),y.jsx("div",{className:"h-px bg-white/5"}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm text-white/70",children:"Sisa Kuota Hari Ini"}),y.jsx("span",{className:"text-xs text-white/50 font-semibold",style:{color:r&&r.remaining<=10?"#ef4444":"#34d399"},children:r?`${r.remaining} / ${r.limit} Soal`:"Belum sinkronisasi"})]})]})}),y.jsx("button",{onClick:o,className:"w-full h-11 rounded-xl text-sm font-semibold text-red-400 bg-red-500/10 hover:bg-red-500/20 border border-red-500/20 transition-all cursor-pointer",children:"Keluar dari Akun"})]}):y.jsxs("form",{onSubmit:async e=>{if(e.preventDefault(),v(""),x(""),k(!0),!c)return v("Email wajib diisi."),void k(!1);try{if("login"===l){if(!f)throw new Error("Password wajib diisi.");await i(c,f),d(""),h(""),m(""),v(""),x(""),t()}else if("register"===l){if(f.length<8)throw new Error("Password minimal 8 karakter.");if(f!==p)throw new Error("Konfirmasi password tidak cocok.");await a(c,f),x("Registrasi berhasil! Silakan masuk."),u("login"),h(""),m("")}else"forgot"===l&&(await s(c),x("Email reset sandi berhasil dikirim! Silakan periksa inbox Anda."))}catch(e){v(e.message||"Terjadi kesalahan.")}finally{k(!1)}},className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"text-center",children:[y.jsx("h2",{className:"text-lg font-bold text-white tracking-tight",children:"login"===l?"Masuk ke QuizMate":"register"===l?"Daftar Akun Baru":"Reset Kata Sandi"}),y.jsx("p",{className:"text-xs text-white/50 mt-1",children:"login"===l?"Masuk untuk sinkronisasi subscription lisensi Anda.":"register"===l?"Buat akun baru untuk mulai berlangganan QuizMate.":"Masukkan email terdaftar untuk reset kata sandi."})]}),g&&y.jsx(Mt.div,{className:"px-3.5 py-2.5 rounded-xl text-xs text-red-200 border border-red-500/25 text-center font-medium",style:{background:"rgba(239, 68, 68, 0.15)"},initial:{scale:.95},animate:{scale:1},children:g}),b&&y.jsx(Mt.div,{className:"px-3.5 py-2.5 rounded-xl text-xs text-emerald-200 border border-emerald-500/25 text-center font-medium",style:{background:"rgba(16, 185, 129, 0.15)"},initial:{scale:.95},animate:{scale:1},children:b}),y.jsxs("div",{className:"flex flex-col gap-3",children:[y.jsx("input",{type:"email",className:"glass-input",placeholder:"Alamat Email",value:c,onChange:e=>d(e.target.value),style:{textAlign:"left",letterSpacing:"normal"},disabled:w}),"forgot"!==l&&y.jsx("input",{type:"password",className:"glass-input",placeholder:"Kata Sandi",value:f,onChange:e=>h(e.target.value),style:{textAlign:"left",letterSpacing:"normal"},disabled:w}),"register"===l&&y.jsx("input",{type:"password",className:"glass-input",placeholder:"Ulangi Kata Sandi",value:p,onChange:e=>m(e.target.value),style:{textAlign:"left",letterSpacing:"normal"},disabled:w})]}),"login"===l&&y.jsx("div",{className:"text-right",children:y.jsx("span",{onClick:()=>{u("forgot"),v("")},className:"text-xs text-indigo-400 hover:text-indigo-300 cursor-pointer transition-colors",children:"Lupa Kata Sandi?"})}),y.jsx(_y,{disabled:w,children:y.jsx("span",{children:w?"Memproses...":"login"===l?"Masuk":"register"===l?"Daftar":"Kirim Link Reset"})}),y.jsx("div",{className:"text-center text-xs text-white/40 mt-1",children:"login"===l?y.jsxs(y.Fragment,{children:["Belum punya akun?"," ",y.jsx("span",{onClick:()=>{const e="https://quizmate.xyz/";typeof chrome<"u"&&chrome.tabs?chrome.tabs.create({url:e}):window.open(e,"_blank")},className:"text-indigo-400 hover:text-indigo-300 cursor-pointer font-medium",children:"Daftar Sekarang"})]}):y.jsxs(y.Fragment,{children:["Sudah punya akun?"," ",y.jsx("span",{onClick:()=>{u("login"),v("")},className:"text-indigo-400 hover:text-indigo-300 cursor-pointer font-medium",children:"Masuk"})]})})]})})]})]})})}function CT({installedVersion:e,latestVersion:t,delay:n=0}){return y.jsx(rn,{delay:n,children:y.jsxs(Mt.div,{className:"p-4 border border-amber-500/30 rounded-2xl bg-amber-500/10 flex flex-col gap-3 relative overflow-hidden",initial:{opacity:0,y:-10,scale:.96},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:260,damping:20},children:[y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/20 text-amber-400 flex items-center justify-center flex-shrink-0 border border-amber-500/30",children:y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:y.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx("h4",{className:"text-xs font-bold text-amber-300 uppercase tracking-wider",children:"Update Ekstensi Tersedia"}),y.jsxs("p",{className:"text-xs text-white/80 leading-relaxed",children:["Versi baru ",y.jsxs("strong",{className:"text-amber-300 font-semibold",children:["v",t]})," telah rilis (versi Anda: v",e,"). Dapatkan fitur & perbaikan terbaru!"]})]})]}),y.jsxs("button",{onClick:()=>{typeof chrome<"u"&&chrome.tabs?chrome.tabs.create({url:"https://quizmate.xyz/#instalasi"}):window.open("https://quizmate.xyz/#instalasi","_blank")},className:"w-full py-2 px-4 bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-400 hover:to-orange-400 text-black font-bold text-xs rounded-xl shadow-lg transition-all flex items-center justify-center gap-2 cursor-pointer",children:[y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),y.jsx("polyline",{points:"7 10 12 15 17 10"}),y.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),y.jsx("span",{children:"Unduh Update di quizmate.xyz"})]})]})})}const DT=[{id:"claude-opus-4.6",name:"Opus 5",desc:"Penalaran tingkat tinggi untuk soal rumit",iconType:"claude"},{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",desc:"Deteksi multimodal & ekstraksi diagram presisi",iconType:"gpt"},{id:"gemini-3.7-flash",name:"Gemini 3.7 Flash",desc:"Kecepatan ultra 2x & akurasi tinggi (Rekomendasi)",iconType:"gemini"},{id:"gemini-3.6-flash",name:"Gemini 3.6 Flash",desc:"Model stabil respon presisi",iconType:"gemini"},{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",desc:"Model standar responsif untuk kuis harian",iconType:"gemini"},{id:"gemini-3.5-flash-lite",name:"Gemini 3.5 Flash-Lite",desc:"Model ringan hemat kuota",iconType:"gemini"},{id:"gemini-3.1-flash-lite",name:"Gemini 3.1 Flash-Lite",desc:"Model dasar respons cepat",iconType:"gemini"}];function Xp({type:e}){return"claude"===e?y.jsx("img",{src:"./logo-claude.png",alt:"Claude",className:"w-3.5 h-3.5 object-contain",onError:e=>{e.target.style.display="none"}}):"gemini"===e?y.jsx("img",{src:"./logo-gemini.png",alt:"Gemini",className:"w-3.5 h-3.5 object-contain",onError:e=>{e.target.style.display="none"}}):"gpt"===e?y.jsx("img",{src:"./logo-gpt.png",alt:"GPT",className:"w-3.5 h-3.5 object-contain",onError:e=>{e.target.style.display="none"}}):"vision"===e?y.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-emerald-400",children:[y.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),y.jsx("circle",{cx:"12",cy:"12",r:"3"})]}):y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-blue-400",children:y.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}function zT({tier:e="Free",selectedModel:t,onSelectModel:n,delay:r=.2}){const[i,a]=H.useState(!1),[o,s]=H.useState("");let l=[];l="Pro"===e?["claude-opus-4.6","gpt-5.6-luna","gemini-3.7-flash","gemini-3.6-flash","gemini-3.5-flash-lite"]:"Lite"===e?["gemini-3.7-flash","gemini-3.6-flash","gemini-3.5-flash","gemini-3.5-flash-lite"]:["gemini-3.5-flash-lite","gemini-3.1-flash-lite"];const u=l.map(e=>DT.find(t=>t.id===e)).filter(Boolean),c=u.find(e=>e.id===t)||u[0];return y.jsx(rn,{delay:r,className:"relative z-20",children:y.jsxs("div",{className:"p-3.5 space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("span",{className:"text-xs font-semibold text-white/90",children:"Model AI"})}),y.jsxs("button",{onClick:()=>a(!i),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-white/5 border border-white/10 hover:bg-white/10 transition-all cursor-pointer text-left",children:[y.jsx(Xp,{type:c.iconType}),y.jsx("span",{className:"text-[11px] font-bold text-white/90 truncate max-w-[110px]",children:c.name}),y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"text-white/50 transition-transform duration-200 "+(i?"rotate-180":""),children:y.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),y.jsx(ba,{children:o&&y.jsx(Mt.div,{initial:{opacity:0,height:0,marginTop:0},animate:{opacity:1,height:"auto",marginTop:4},exit:{opacity:0,height:0,marginTop:0},transition:{duration:.25,ease:[.4,0,.2,1]},className:"overflow-hidden",children:y.jsxs("div",{className:"text-[10px] text-emerald-400 font-semibold flex items-center gap-1.5 px-1 pt-0.5",children:[y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})}),y.jsx("span",{children:o})]})})}),y.jsx(ba,{children:i&&y.jsx(Mt.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"pt-2 border-t border-white/10 space-y-1.5",children:u.map(e=>{const r=e.id===t;return y.jsxs("button",{onClick:()=>(e=>{n&&n(e.id),a(!1),s(`Model AI diubah ke ${e.name}`),setTimeout(()=>s(""),2500)})(e),className:"w-full text-left p-2 rounded-lg border transition-all flex items-center justify-between gap-2 cursor-pointer "+(r?"bg-indigo-500/20 border-indigo-500/50 shadow-sm":"bg-white/5 border-white/5 hover:bg-white/10 hover:border-white/15"),children:[y.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y.jsx("div",{className:"w-5 h-5 rounded-md bg-white/10 flex items-center justify-center flex-shrink-0",children:y.jsx(Xp,{type:e.iconType})}),y.jsx("span",{className:"text-[11px] font-bold text-white tracking-tight truncate",children:e.name})]}),r&&y.jsx("div",{className:"w-4 h-4 rounded-full bg-indigo-500 text-white flex items-center justify-center flex-shrink-0",children:y.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},e.id)})})})]})})}const mc=[{id:"auto",name:"Semua Mata Kuliah (AI Standar)",shortName:"Semua Mata Kuliah",tag:"AI Frontier",desc:"Menjawab otomatis menggunakan AI pilihan",iconType:"globe"},{id:"matlan_2",name:"Matematika Lanjut 2 (DB 345 Soal)",shortName:"Matematika Lanjut 2",tag:"345 Kunci Konsensus",desc:"Prioritas Bank Soal DB + AI Fallback",iconType:"database"},{id:"matdis_2",name:"Matematika Diskrit 2 (DB 400 Soal)",shortName:"Matematika Diskrit 2",tag:"400 Kunci Konsensus",desc:"Prioritas Bank Soal DB + AI Fallback",iconType:"database"}];function Kp({type:e}){return"database"===e?y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-violet-400",children:[y.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),y.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}),y.jsx("path",{d:"M3 12c0 1.66 4 3 9 3s9-1.34 9-3"})]}):y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-indigo-400",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),y.jsx("path",{d:"M2 12h20"})]})}function NT({examMode:e="standard",onChangeMode:t,selectedSubject:n="auto",onSubjectChange:r,delay:i=.16}){const a="um"===e,[o,s]=H.useState(!1),[l,u]=H.useState(""),c=mc.find(e=>e.id===n)||mc[0],d=n=>{n!==e&&(t&&t(n),u("um"===n?"Mode Ujian Mandiri (Anti-Pinalti) Aktif":"Mode Ujian Standar (Tanpa Pinalti) Aktif"),setTimeout(()=>u(""),2200))};return y.jsx(rn,{delay:i,className:"relative z-10",children:y.jsxs("div",{className:"p-3.5 space-y-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("span",{className:"text-xs font-semibold text-white/90",children:"Mode Ujian"})}),y.jsx("div",{className:"relative",children:y.jsx("span",{className:"inline-flex items-center text-[10px] font-bold px-2.5 py-0.5 rounded-full border transition-all duration-300 "+(a?"bg-violet-500/15 border-violet-500/30 text-violet-300":"bg-indigo-500/15 border-indigo-500/30 text-indigo-300"),children:a?"Anti-Pinalti":"Standar"})})]}),y.jsxs("div",{className:"relative grid grid-cols-2 p-1 bg-white/5 border border-white/10 rounded-xl",children:[y.jsxs("button",{type:"button",onClick:()=>d("standard"),className:"relative flex items-center justify-center gap-1.5 py-1.5 px-2 rounded-lg text-[11px] font-bold transition-colors duration-200 cursor-pointer z-10 "+(a?"text-white/60 hover:text-white":"text-white"),children:[!a&&y.jsx(Mt.div,{layoutId:"activeExamModePill",className:"absolute inset-0 bg-gradient-to-r from-indigo-600 to-blue-600 rounded-lg shadow-md shadow-indigo-600/30 border border-indigo-400/30 -z-10",transition:{type:"spring",stiffness:500,damping:35}}),y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:y.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),y.jsx("span",{children:"Standar"})]}),y.jsxs("button",{type:"button",onClick:()=>d("um"),className:"relative flex items-center justify-center gap-1.5 py-1.5 px-2 rounded-lg text-[11px] font-bold transition-colors duration-200 cursor-pointer z-10 "+(a?"text-white":"text-white/60 hover:text-white"),children:[a&&y.jsx(Mt.div,{layoutId:"activeExamModePill",className:"absolute inset-0 bg-gradient-to-r from-violet-600 to-indigo-600 rounded-lg shadow-md shadow-violet-600/30 border border-violet-400/30 -z-10",transition:{type:"spring",stiffness:500,damping:35}}),y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:y.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),y.jsx("span",{children:"Ujian Mandiri (UM)"})]})]}),y.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] "+(a?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0 pointer-events-none"),children:y.jsxs("div",{className:"min-h-0 overflow-hidden space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between text-[11px] px-0.5 pt-0.5",children:[y.jsxs("span",{className:"font-semibold text-white/80 flex items-center gap-1.5",children:[y.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",className:"text-violet-400",children:[y.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),y.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}),y.jsx("path",{d:"M3 12c0 1.66 4 3 9 3s9-1.34 9-3"})]}),"Bank Soal Matkul:"]}),y.jsx("span",{className:"text-[10px] text-violet-300/70 font-medium px-2 py-0.5 rounded-full bg-violet-500/10 border border-violet-500/20",children:c.tag})]}),y.jsxs("button",{type:"button",onClick:()=>s(!o),className:"w-full text-left p-2.5 rounded-xl bg-white/5 border border-white/10 hover:bg-white/10 hover:border-violet-500/30 transition-all flex items-center justify-between gap-2 cursor-pointer group",children:[y.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[y.jsx("div",{className:"w-6 h-6 rounded-lg bg-violet-500/15 border border-violet-500/25 flex items-center justify-center flex-shrink-0 group-hover:bg-violet-500/25 transition-colors",children:y.jsx(Kp,{type:c.iconType})}),y.jsx("div",{className:"min-w-0",children:y.jsx("div",{className:"text-[11px] font-bold text-white tracking-tight truncate",children:c.shortName})})]}),y.jsx("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"text-white/50 transition-transform duration-200 "+(o?"rotate-180 text-violet-400":"group-hover:text-white/80"),children:y.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),y.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] "+(o?"grid-rows-[1fr] opacity-100 pt-1":"grid-rows-[0fr] opacity-0 pointer-events-none pt-0"),children:y.jsx("div",{className:"min-h-0 overflow-hidden space-y-1.5",children:mc.map(e=>{const t=e.id===n;return y.jsxs("button",{type:"button",onClick:()=>(e=>{r&&r(e.id),s(!1);const t={matlan_2:"Bank Soal Matematika Lanjut 2 Terpilih",matdis_2:"Bank Soal Matematika Diskrit 2 Terpilih",auto:"Semua Mata Kuliah Terpilih"}[e.id]||`${e.shortName} Terpilih`;u(t),setTimeout(()=>u(""),2200)})(e),className:"w-full text-left p-2.5 rounded-xl border transition-all flex items-center justify-between gap-2 cursor-pointer "+(t?"bg-violet-500/20 border-violet-500/50 shadow-sm shadow-violet-500/10":"bg-white/5 border-white/5 hover:bg-white/10 hover:border-white/15"),children:[y.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[y.jsx("div",{className:"w-6 h-6 rounded-lg bg-white/10 flex items-center justify-center flex-shrink-0",children:y.jsx(Kp,{type:e.iconType})}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("div",{className:"text-[11px] font-bold text-white tracking-tight truncate",children:e.name}),y.jsx("div",{className:"text-[9.5px] text-white/50 truncate",children:e.desc})]})]}),t&&y.jsx("div",{className:"w-4 h-4 rounded-full bg-violet-500 text-white flex items-center justify-center flex-shrink-0",children:y.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},e.id)})})})]})}),y.jsx("div",{className:"relative rounded-xl bg-white/[0.03] border border-white/5 p-2.5 text-[10px] text-white/60 leading-relaxed transition-colors duration-300",children:y.jsxs("div",{className:"relative min-h-[34px] flex items-center",children:[y.jsxs("div",{className:"absolute inset-0 flex items-start gap-2 transition-all duration-300 "+(a?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-1 pointer-events-none"),children:[y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",className:"text-violet-400 flex-shrink-0 mt-0.5",children:y.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),y.jsxs("span",{className:"text-violet-200/80",children:[y.jsx("strong",{className:"text-violet-300 font-semibold",children:"Proteksi pinalti aktif:"})," AI otomatis memilih opsi Pass jika keyakinan < 75% untuk menghindari pengurangan nilai."]})]}),y.jsxs("div",{className:"absolute inset-0 flex items-start gap-2 transition-all duration-300 "+(a?"opacity-0 -translate-y-1 pointer-events-none":"opacity-100 translate-y-0 pointer-events-auto"),children:[y.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",className:"text-indigo-400 flex-shrink-0 mt-0.5",children:y.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),y.jsxs("span",{children:[y.jsx("strong",{className:"text-indigo-300 font-semibold",children:"Mode reguler:"})," AI menjawab seluruh soal secara agresif tanpa memilih Pass."]})]})]})}),y.jsx(ba,{children:l&&y.jsx(Mt.div,{initial:{opacity:0,y:-2,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-2,scale:.96},transition:{duration:.18,ease:"easeOut"},className:"overflow-hidden",children:y.jsxs("div",{className:"text-[10px] text-emerald-400 font-semibold flex items-center gap-1.5 px-1 pt-0.5",children:[y.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})}),y.jsx("span",{children:l})]})})})]})})}function nn(e,t){const[n,r]=H.useState(t),[i,a]=H.useState(!1);return H.useEffect(()=>{var t;if(typeof chrome<"u"&&null!=(t=chrome.storage)&&t.local)chrome.storage.local.get([e],t=>{void 0!==t[e]&&r(t[e]),a(!0)});else{const t=localStorage.getItem(e);if(null!==t)try{r(JSON.parse(t))}catch{r(t)}a(!0)}},[e]),[n,H.useCallback(t=>{var n;r(t),typeof chrome<"u"&&null!=(n=chrome.storage)&&n.local?chrome.storage.local.set({[e]:t}):localStorage.setItem(e,JSON.stringify(t))},[e]),i]}function RT(e,t){if(!e||!t)return!1;const n=e.split(".").map(Number),r=t.split(".").map(Number);for(let e=0;e<Math.max(n.length,r.length);e++){const t=n[e]||0,i=r[e]||0;if(t<i)return!0;if(t>i)return!1}return!1}function OT(){try{const e="user";if(e&&"undefined"!==e)return e}catch{}return"user"}const VT="https://api.quizmate.xyz";function BT(e,t){return{Scraping:{action:"Membaca Soal",detail:"Menemukan soal pada halaman ini."},"API Request":{action:"Mencari Jawaban",detail:"Menghubungkan ke AI untuk mencari jawaban terbaik..."},Confidence:{action:"Tingkat Keyakinan",detail:t},"Anti-Pinalti":{action:"Proteksi Pinalti",detail:t},Interaction:{action:"Mengisi Jawaban",detail:"Memilih pilihan jawaban pada soal..."},FileUpload:{action:"Mengunggah File",detail:"Membuat dan mengunggah berkas jawaban otomatis..."},Done:{action:"Selesai",detail:"Semua soal berhasil dijawab!"},Waiting:{action:"Menunggu Delay",detail:t},Navigating:{action:"Pindah Halaman",detail:"Membuka halaman quiz selanjutnya..."},Warning:{action:e,detail:t},Error:{action:(e=>{if(!e)return"Gagal Memproses";try{const t=e.match(/\{"error":.*?\}/);if(t){const e=JSON.parse(t[0]);if(e&&e.error)return e.error.includes("terikat pada perangkat lain")?"Terikat Perangkat Lain":e.error.includes("Batas kuota harian")?"Kuota Harian Habis":e.error.replace("Forbidden:","").trim()}}catch{}return e.includes("terikat pada perangkat lain")?"Terikat Perangkat Lain":e.includes("kuota harian")||e.includes("kuota anda telah habis")||e.includes("kuota")&&!e.includes("terlalu banyak")?"Kuota Harian Habis":e.includes("versi")||e.includes("usang")||e.includes("versi ekstensi")?"Wajib Update Ekstensi":e.includes("fetch")||e.includes("network")||e.includes("Failed to fetch")||e.includes("offline")?"Koneksi Terputus":e.includes("401")||e.includes("403")||e.includes("Forbidden")||e.includes("Invalid License")?"Lisensi Tidak Valid":"Gagal Memproses"})(t),detail:t}}[e]||{action:e,detail:t}}function Qp(e){if(!e)return"ready";const t=e.toLowerCase();return"active"===t||"bekerja"===t||"waiting"===t?"active":"idle"===t||"selesai"===t||"done"===t?"success":"error"===t||"gagal"===t?"error":"ready"}function _T(){var e;const t=OT(),n="dev"===t,[r,i]=nn("autoRunEnabled",!1),[a,o]=nn("delayEnabled",!1),[s,l]=nn("delaySeconds",8),[u,c]=nn("selectedAiModel","gemini-3.7-flash"),[d,f]=nn("examMode","standard"),[h,p]=nn("selectedSubject","auto"),[m,g]=nn("apiToken",""),[v,b]=nn("backendUrl",VT),[x,w]=H.useState(!1),[k,S]=H.useState(!1),[T,E]=nn("userSession",null),[C,j]=nn("currentQuota",null),[P,N]=H.useState(n?"Idle":"Ready"),[M,A]=H.useState("ready"),[L,z]=H.useState(n?"Waiting to start...":"Siap digunakan"),[D,R]=H.useState(n?"Logs will appear here...":"Menunggu perintah..."),[I,F]=H.useState(""),[_,O]=H.useState(!1),V=typeof chrome<"u"&&null!=(e=chrome.runtime)&&e.getManifest?chrome.runtime.getManifest().version:"1.1.4";H.useEffect(()=>{const e=v.replace(/\/+$/,"");fetch(`${e}/api/version`).then(e=>e.json()).then(e=>{e&&e.latestVersion&&F(e.latestVersion)}).catch(()=>{})},[v]);const B=H.useCallback(async(e,t)=>{const n=v.replace(/\/+$/,""),r=await fetch(`${n}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json","X-QuizMate-Client":"extension","X-QuizMate-Version":V},body:JSON.stringify({email:e,password:t})}),i=await r.json();if(!r.ok)throw new Error(i.error||"Gagal masuk.");E(i.user),i.user.licenseKey&&g(i.user.licenseKey)},[v,E,g]),U=H.useCallback(async(e,t)=>{const n=v.replace(/\/+$/,""),r=await fetch(`${n}/api/auth/register`,{method:"POST",headers:{"Content-Type":"application/json","X-QuizMate-Client":"extension","X-QuizMate-Version":V},body:JSON.stringify({email:e,password:t})}),i=await r.json();if(!r.ok)throw new Error(i.error||"Gagal mendaftar.")},[v]),$=H.useCallback(async e=>{const t=v.replace(/\/+$/,""),n=await fetch(`${t}/api/auth/forgot-password`,{method:"POST",headers:{"Content-Type":"application/json","X-QuizMate-Client":"extension","X-QuizMate-Version":V},body:JSON.stringify({email:e})}),r=await n.json();if(!n.ok)throw new Error(r.error||"Gagal mengirim email reset.")},[v]),W=H.useCallback(()=>{E(null),g("")},[E,g]);H.useEffect(()=>{if(T&&T.licenseKey){const e=v.replace(/\/+$/,"");fetch(`${e}/api/auth/me`,{credentials:"include",headers:{"X-QuizMate-Client":"extension",...T.licenseKey?{Authorization:`Bearer ${T.licenseKey}`}:{}}}).then(async e=>{const t=await e.json().catch(()=>({}));if(401===e.status||403===e.status&&t.error&&t.error.includes("Invalid License"))return E(null),g(""),void S(!0);!e.ok||!t.success||!t.user||(t.quota&&j(t.quota),(t.user.tier!==T.tier||t.user.expiry!==T.expiry||t.user.licenseKey!==T.licenseKey)&&(E(t.user),t.user.licenseKey&&t.user.licenseKey!==m&&g(t.user.licenseKey)))}).catch(()=>{})}},[null==T?void 0:T.licenseKey,null==T?void 0:T.tier,null==T?void 0:T.expiry,v,E,g,m,j,S]),H.useEffect(()=>{},[n]);const K=H.useRef(null);H.useEffect(()=>{var e;if(typeof chrome>"u"||null==(e=chrome.runtime)||!e.onMessage)return;const t=e=>{if("STATUS_UPDATE"===e.type)if(K.current&&(clearTimeout(K.current),K.current=null),n){z(e.action);const t=(new Date).toLocaleTimeString();R(n=>`${n}\n[${t}] ${e.detail}`),e.status&&(N(e.status),A(Qp(e.status)))}else{const t=BT(e.action,e.detail);z(t.action),R(t.detail),e.status&&("Active"===e.status?(N("Bekerja"),A("active")):"Idle"===e.status?(N("Selesai"),A("success")):"Error"===e.status?(N("Gagal"),A("error")):(N(e.status),A(Qp(e.status))))}};return chrome.runtime.onMessage.addListener(t),()=>chrome.runtime.onMessage.removeListener(t)},[n]);const X=H.useCallback(async()=>{if(_)return;if(O(!0),setTimeout(()=>O(!1),3e3),!n&&!T)return void S(!0);if(N(n?"Active":"Bekerja"),A("active"),z(n?"Injecting script...":"Menghubungkan ke halaman..."),R(n?"Initializing solver...":"Menjalankan scrapper QuizMate..."),typeof chrome>"u"||!chrome.tabs)return void R("Error: Chrome API not available (running in dev server?)");const[e]=await chrome.tabs.query({active:!0,currentWindow:!0});if(!e)return N(n?"Error":"Gagal"),A("error"),z(n?"No active tab found":"Halaman tidak ditemukan"),void R(n?"Error: Could not retrieve active tab.":"Gagal menghubungkan ke tab aktif.");if(n){const t=(new Date).toLocaleTimeString();R(n=>`${n}\n[${t}] Injecting script into tab: ${e.id}`)}await chrome.scripting.executeScript({target:{tabId:e.id},func:()=>{window.__autoSolverRan=!1,window.__forceAutoSolver=!0,window.__isSolverExecuting=!1,window.__isNavigatingNextPage=!1,Object.keys(sessionStorage).forEach(e=>{e.startsWith("solver_attempts_")&&sessionStorage.removeItem(e)})}}),chrome.scripting.executeScript({target:{tabId:e.id},files:["content.js"]},()=>{if(chrome.runtime.lastError)N(n?"Error":"Gagal"),A("error"),z(n?"Injection failed":"Injeksi gagal"),R(`Error: ${chrome.runtime.lastError.message}`);else{if(n){const e=(new Date).toLocaleTimeString();R(t=>`${t}\n[${e}] Content script successfully injected & running.`),z("Scraping question...")}else z("Membaca soal..."),R("Sedang menganalisa struktur soal di halaman.");K.current&&clearTimeout(K.current),K.current=setTimeout(async()=>{const t=(new Date).toLocaleTimeString();n&&R(e=>`${e}\n[${t}] [Watchdog] Retrying solver execution (2.3s timeout)...`);try{await chrome.scripting.executeScript({target:{tabId:e.id},func:()=>{window.__isSolverExecuting=!1,window.__autoSolverRan=!1,window.__forceAutoSolver=!0,"function"==typeof window.__quizmateForceRun&&window.__quizmateForceRun()}})}catch(e){console.error("[Watchdog Retry Error]",e)}},2300)}})},[n,T,m]);return y.jsxs("div",{className:"relative",style:{width:360,padding:n?16:"24px 18px",minHeight:580,background:"#080c16"},children:[y.jsx(xT,{}),y.jsxs("div",{className:"relative flex flex-col gap-5",style:{zIndex:2},children:[y.jsx(bT,{mode:t,onSettingsClick:()=>w(!x),onAccountClick:()=>S(!0),onFloatClick:async()=>{try{if(typeof chrome<"u"&&chrome.tabs){const[e]=await chrome.tabs.query({active:!0,currentWindow:!0});null!=e&&e.id&&(chrome.tabs.sendMessage(e.id,{type:"OPEN_FLOATING_WIDGET"}),window.close())}}catch{}},user:T}),RT(V,I)&&y.jsx(CT,{installedVersion:V,latestVersion:I,delay:.04}),n&&y.jsx(ST,{visible:x,backendUrl:v,onBackendUrlChange:b,token:m,onTokenChange:g}),!n&&(!T||"Free"===T.tier)&&y.jsxs(Mt.div,{onClick:()=>{typeof chrome<"u"&&chrome.tabs?chrome.tabs.create({url:"https://quizmate.xyz"}):window.open("https://quizmate.xyz","_blank")},initial:{opacity:0,y:24,scale:.96,borderColor:"rgba(255, 255, 255, 0.1)"},animate:{opacity:1,y:0,scale:1,borderColor:"rgba(255, 255, 255, 0.1)"},transition:{type:"spring",stiffness:180,damping:22,delay:.16},whileHover:{y:-2,borderColor:"rgba(99, 102, 241, 0.50)",transition:{type:"spring",stiffness:400,damping:20}},whileTap:{scale:.985},className:"cursor-pointer p-3.5 rounded-xl border flex items-center justify-between gap-3 text-left",style:{background:"linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%)",boxShadow:"0 4px 12px rgba(0,0,0,0.2)"},children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-indigo-400",children:[y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-amber-400",children:[y.jsx("path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"}),y.jsx("path",{d:"M5 21h14"})]}),y.jsx("span",{className:"text-[11px] font-bold tracking-wider uppercase text-indigo-400",children:"Upgrade Premium"})]}),y.jsx("span",{className:"text-[10px] text-white/70",children:"Dapatkan kuota pengerjaan hingga 1000 soal/hari & fitur Auto Next Page!"})]}),y.jsx("div",{className:"flex-shrink-0 text-white/40",children:y.jsxs("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),y.jsx("polyline",{points:"12 5 19 12 12 19"})]})})]}),y.jsx(TT,{statusText:P,statusType:M,actionText:L,mode:t,delay:n?.08:T&&"Free"!==T.tier?.16:.24}),y.jsx(zT,{tier:(null==T?void 0:T.tier)||"Free",selectedModel:u,onSelectModel:c,delay:n?.12:T&&"Free"!==T.tier?.2:.28}),y.jsx(NT,{examMode:d,onChangeMode:f,selectedSubject:h,onSubjectChange:p,delay:n?.14:T&&"Free"!==T.tier?.22:.3}),y.jsx(AT,{checked:r,onChange:i,mode:t,disabled:!(n||T&&"Free"!==T.tier),delay:n?.16:T&&"Free"!==T.tier?.24:.32}),y.jsx(ET,{enabled:a,onEnabledChange:o,seconds:s,onSecondsChange:l,tier:(null==T?void 0:T.tier)||"Free",isDev:n,delay:n?.2:T&&"Free"!==T.tier?.28:.36}),y.jsxs(_y,{disabled:_,onClick:X,delay:n?.24:T&&"Free"!==T.tier?.32:.4,children:[y.jsx("svg",{viewBox:"0 0 24 24",width:"16",height:"16",children:y.jsx("path",{d:"M8 5v14l11-7z",fill:"currentColor"})}),y.jsx("span",{children:_?n?"Processing...":"Memproses...":n?"Force Run / Manual Start":"Mulai Isi Jawaban"})]}),y.jsx(MT,{logs:D,mode:t,delay:.32}),n&&y.jsx(jT,{backendUrl:v,delay:.4})]}),y.jsx(wT,{isOpen:k,onClose:()=>S(!1),user:T,quota:C,onLogin:B,onRegister:U,onLogout:W,onForgotPassword:$})]})}class LT extends Jp.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({errorInfo:t}),console.error("ErrorBoundary caught an error",e,t)}render(){return this.state.hasError?y.jsxs("div",{style:{padding:"20px",background:"#333",color:"#ff5555",minHeight:"300px",fontSize:"12px",overflow:"auto"},children:[y.jsx("h3",{children:"Something went wrong."}),y.jsxs("details",{style:{whiteSpace:"pre-wrap"},children:[this.state.error&&this.state.error.toString(),y.jsx("br",{}),this.state.errorInfo&&this.state.errorInfo.componentStack]})]}):this.props.children}}gx.createRoot(document.getElementById("root")).render(y.jsx(Jp.StrictMode,{children:y.jsx(LT,{children:y.jsx(_T,{})})}));