plutosdk 1.0.25-beta.6 → 1.0.25-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pluto-sdk.js +2 -2
- package/package.json +1 -1
package/dist/pluto-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,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,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(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 i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function P(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,R=A.port2;A.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){y(P,0)};function O(t,n){S=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(){m=!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,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return R((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+A(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=R(i=n[g],r,o,s=h+A(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=R(i=i.value,r,o,s=h+A(i,g++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(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,o,i,a);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 d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),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 L="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)},j={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=j,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,L)}catch(i){L(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},P={};function A(){if(k)return P;k=1;var e=C();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},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.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:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="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:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(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)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,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})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(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)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},P.useFormStatus=function(){return i.H.useHostTransitionStatus()},P.version="19.2.0",P}function R(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=A(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=R();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 o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(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 a(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(i(e)!==e)throw Error(r(188))}function c(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=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function U(e){return{current:e}}function F(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=U(null),K=U(null),G=U(null),Q=U(null);function Y(e,t){switch(B(G,t),B(K,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(V),B(V,e)}function Z(){F(V),F(K),F(G)}function X(e){null!==e.memoizedState&&B(Q,e);var t=V.current,n=wd(t,e.type);t!==n&&(B(K,e),B(V,n))}function J(e){K.current===e&&(F(V),F(K)),Q.current===e&&(F(Q),pf._currentValue=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!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(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Pe(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 Ae(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Pe(r):0!==(a&=s)?o=Pe(a):n||0!==(n=s&~e)&&(o=Pe(n)):0!==(s=r&~i)?o=Pe(s):0!==a?o=Pe(a):n||0!==(n=r&~e)&&(o=Pe(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(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 Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Af(e.type)}function Ue(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Fe=Math.random().toString(36).slice(2),Be="__reactFiber$"+Fe,qe="__reactProps$"+Fe,He="__reactContainer$"+Fe,Ve="__reactEvents$"+Fe,Ke="__reactListeners$"+Fe,Ge="__reactHandles$"+Fe,Qe="__reactResources$"+Fe,Ye="__reactMarker$"+Fe;function Ze(e){delete e[Be],delete e[qe],delete e[Ve],delete e[Ke],delete e[Ge]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=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]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))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)}var o}function dt(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 ft(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 pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.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 mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(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 Tt=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 Pt(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||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function At(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Pt(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Rt(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 Ot=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"]]),Mt=/^[\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 Lt(e){return Mt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(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="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[qe]||null;if(null===o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),qt=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(ep){qt=!1}var Vt=null,Kt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(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 Zt(){return!0}function Xt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Xt,this.isPropagationStopped=Xt,this}return u(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=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),sn=Jt(an),ln=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,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!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(ln),un=Jt(u({},ln,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),fn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{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})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,Pn=null;Bt&&"documentMode"in document&&(Pn=document.documentMode);var An=Bt&&"TextEvent"in window&&!Pn,Rn=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),On=String.fromCharCode(32),Mn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function Un(e){Zu(e,0)}function Fn(e){if(mt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var qn=!1;if(Bt){var Hn;if(Bt){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Hn=Vn}else Hn=!1;qn=Hn&&(!document.documentMode||9<document.documentMode)}function Gn(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Xn(e,t){if("click"===e)return Fn(t)}function Jn(e,t){if("input"===e||"change"===e)return Fn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(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 o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(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=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((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(r){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(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 sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="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 Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Pr="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)},Ar=[],Rr=0,Or=0;function Mr(){for(var e=Rr,t=Or=Rr=0;t<e;){var n=Ar[t];Ar[t++]=null;var r=Ar[t];Ar[t++]=null;var o=Ar[t];Ar[t++]=null;var i=Ar[t];if(Ar[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Nr(n,o,i)}}function Lr(e,t,n,r){Ar[Rr++]=e,Ar[Rr++]=t,Ar[Rr++]=n,Ar[Rr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Lr(e,t,n,r),$r(e)}function Ir(e,t){return Lr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(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 zr(e,t,n,r){return new Wr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=zr(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 Br(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 qr(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ur(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,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=zr(31,n,t,i)).elementType=P,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=jt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Mc?Mc=e:Mc.push.apply(Mc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=U(null),_o=null,To=null;function Po(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ao(e){e._currentValue=Eo.current,F(Eo)}function Ro(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 Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ro(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ro(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Mo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function Lo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&jo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?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()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Uo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=U(null);function Zo(){var e=Yo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){B(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Uo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(jt,jt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(jt,jt);else{if(null!==(e=mc)&&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 ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw si=t,ei;throw t}}var si=null;function li(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(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 o(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 i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function a(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=Vr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=qr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return pi(n=qr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case T:return p(e,t=ai(t),n)}if(I(t)||M(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||M(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(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),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(M(u)){if("function"!=typeof(v=M(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(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 xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return Lr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ai(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ri=U(null),Oi=U(0);function Mi(e,t){B(Oi,e=Sc),B(Ri,t),Sc=e|t.baseLanes}function Li(){B(Oi,Sc),B(Ri,Ri.current)}function ji(){Sc=Oi.current,F(Ri),F(Oi)}var Ii=U(null),Ni=null;function $i(e){var t=e.alternate;B(Fi,1&Fi.current),B(Ii,e),null===Ni&&(null===t||null!==Ri.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Fi,Fi.current),B(Ii,Ii.current)}function Ui(e){F(Ii),Ni===e&&(Ni=null),F(Fi)}var Fi=U(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||jd(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 qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Lo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.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},Hi.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]=A;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Pa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=N.T,a={};N.T=a;try{var s=n(o,r),l=N.S;null!==l&&l(a,s),Aa(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Aa(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Aa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Oa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ma(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ma(t),t=t.next}while(t!==r)}e.action=null}function Ma(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function La(e,t){return t}function ja(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,La)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(a){if(a===ei)throw ni;throw a}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.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 za(){return da().memoizedState}function Ua(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(1|t,i,n,r))}function Ba(e,t){Ua(8390656,8,e,t)}function qa(e,t){Fa(2048,8,e,t)}function Ha(e){var t=da().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.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&gc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Ga(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 Qa(e,t,n){n=null!=n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&qi&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Hi.lanes|=e,_c|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ri.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=jr(e,t,n,r))&&(Yc(n,e,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Lr(e,t,o,0),null===mc&&Mr(),!1}catch(l){}if(null!==(n=jr(e,t,o,r)))return Yc(n,e,r),ms(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:qu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ua(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){Ua(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Hi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Hi,i=ua();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&bc||wa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ba(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(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&&Cs.enqueueReplaceState(t,t.state,null)}function Es(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 o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function As(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function Ms(e){return(e=xi(e)).tag=3,e}function Ls(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var js=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return jo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ur(i)||void 0!==i.defaultProps||null!==n.compare?((e=qr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=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(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Fs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Mi(t,i):Li(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Mi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),Li(),zi());return Ns(e,t,o,n),t.child}function Us(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,o){var i=Zo();return i=null===i?null:{parent:Uo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Li(),Wi(t),null!==e&&Mo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ui(t),t.memoizedState=null,e}function Hs(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 Vs(e,t,n,r,o){return jo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return jo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(jo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&Lo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Lo(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):Ns(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return Co(),t.flags|=256,Ns(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Jo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ac),e}function Js(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Fi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?$i(t):zi(),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return jd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(zi(),l=tl({mode:"hidden",children:l},a=t.mode),i=Hr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(null,i)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Us(null,i));else if($i(t),jd(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Mo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),js;Ld(l)||lu(),t=nl(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Fr(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Us(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Uo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(e.child,i)):($i(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=zr(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Fi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Fi,a),Ns(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(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(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Mo(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 sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Lo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Uo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Mo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Fi,Fi.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Uo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=j(e)||e,Error(r(306,t,""))}Ur(e)?(o=Es(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Vs(null,t,e,o,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,i=Es(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,wi(e,t),Ti(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Po(0,Uo,o),o!==a.cache&&Oo(t,[Uo],n,!0),_i(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,jo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Us(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Mo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),js;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Fr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return jo(t),o=Io(Uo),null===e?(null===(i=Zo())&&(i=mc,a=Fo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Uo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),_i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Po(0,Uo,o)):(o=a.cache,Po(0,Uo,o),o!==i.cache&&Oo(t,[Uo],n,!0))),Ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Me():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)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 hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ao(Uo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.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=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ui(t),t):(Ui(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Ui(t),t):(Ui(t),null)}return Ui(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Ao(t.type),hl(t),null;case 19:if(F(Fi),null===(o=t.memoizedState))return hl(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)pl(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Bi(e))){for(t.flags|=128,pl(o,!1),e=a.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Fi,1&Fi.current|2),ho&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Nc&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Bi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-o.renderingStartTime>Nc&&536870912!==n&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Fi.current,B(Fi,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ui(t),ji(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&F(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ao(Uo),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ao(Uo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ui(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ui(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Fi),null;case 4:return Z(),null;case 10:return Ao(t.type),null;case 22:case 23:return Ui(t),ji(),null!==e&&F(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ao(Uo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ao(Uo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Ui(t);break;case 13:Ui(t);break;case 19:F(Fi);break;case 10:Ao(t.type);break;case 22:case 23:Ui(t),ji(),null!==e&&F(Yo);break;case 24:Ao(Uo)}}function bl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Eu(t,t.return,s)}}function vl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){Eu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){Eu(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ai(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(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(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(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(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(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&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(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=jt));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Al(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&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ml=!1,Ll=!1,jl="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(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{Ai(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Fl(e,n);break;case 13:Yl(e,n),4&r&&Bl(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=Au.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ml,o=Ol;var i=Ml;Ol=r,(Ml=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ml=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(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,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ml||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ml||kl(n,t);var r=Dl,o=Wl;Pd(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ml||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Ad(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Ad(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ml||vl(4,n,t),zl(e,t,n);break;case 1:Ml||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ml=(r=Ml)||null!==n.memoizedState,zl(e,t,n),Ml=r;break;default:zl(e,t,n)}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){Eu(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Kf(e)}catch(n){Eu(t,t.return,n)}}function ql(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 jl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new jl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Pd(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Ul(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ll=!0);break;case 6:if(Hl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Eu(e,e.return,g)}}break;case 3:if(rf=null,i=Vl,Vl=Bd(t.containerInfo),Hl(t,e),Vl=i,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Eu(e,e.return,g)}Ll&&(Ll=!1,Ql(e));break;case 4:o=Vl,Vl=Bd(e.stateNode.containerInfo),Hl(t,e),Gl(e),Vl=o;break;case 12:default:Hl(t,e),Gl(e);break;case 31:case 19:Hl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 13:Hl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(jc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ml;if(Ol=u||i,Ml=d||c,Hl(t,e),Ml=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ml||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Rd(h,!0):Rd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}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&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Al(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Al(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Pl(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Pi(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Fl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),Cl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Jl(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&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Eu(t,t.return,l)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),bl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Jl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Jl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&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 o=Gd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Ud.get(o))&&tf(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(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 cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(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:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Uo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Pc=0,Ac=0,Rc=0,Oc=null,Mc=null,Lc=!1,jc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=0,zc=null,Uc=null,Fc=0,Bc=0,qc=null,Hc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==bc?bc&-bc:null!==N.T?qu():ze()}function Qc(){if(0===Ac)if(536870912&bc&&!ho)Ac=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Ac=e}return null!==(e=Ii.current)&&(e.flags|=32),Ac}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Ac,!1)),je(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Ac,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Re(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Mr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Mc,Mc=i,null!==a&&(null===Mc?Mc=a:Mc.push.apply(Mc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Ac,!xc);break e;case 2:Mc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=jc+300-ue())){if(eu(o,t,Ac,!xc),0!==Ae(o,0,!0))break e;Fc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jt});var h=(62914560&i)===i?jc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Fc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Jc(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(a){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 eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Fc=0,nu(),mc=e,yc=n=Fr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Re(e,t),kc=!1,Rc=Ac=Pc=Tc=_c=Ec=0,Mc=Oc=null,Lc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Mr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===js?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,As(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Ac,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Mr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Mo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Ls(i=Ms(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=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,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),Uc=t,zc=e,Fc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).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++)(i=e[n]).ref.impl=i.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!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Uc,n=Fc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Uc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Fc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Fc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Fc;if(Wc=0,Uc=zc=null,Fc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(je(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ms(2),2))&&(Ls(n,r,t,e),je(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-jc?!(2&gc)&&ru(e,0):Pc|=n,Rc===bc&&(Rc=0)),$u(e)}function Pu(e,t){0===t&&(t=Me()),null!==(e=Ir(e,t))&&(je(e,t),$u(e))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Ou=null,Mu=null,Lu=!1,ju=!1,Iu=!1,Nu=0;function $u(e){e!==Mu&&null===e.next&&(null===Mu?Ou=Mu=e:Mu=Mu.next=e),ju=!0,Lu||(Lu=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&ju){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Ae(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){ju=Lu=!1;var e=0;0!==Nu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Nu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=Uu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Mu=n)):(n=r,(0!==e||3&i)&&(ju=!0)),r=o}0!==Wc&&5!==Wc||Du(e),0!==Nu&&(Nu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Ae(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Fu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Fu(e,t){if(0!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Ae(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Uu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Fu.bind(null,e):null)}function Bu(e,t){if(Cu())return null;Zc(e,t,!0)}function qu(){if(0===Nu){var e=Vo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function Vu(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 Ku=0;Ku<_r.length;Ku++){var Gu=_r[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(br,"onAnimationEnd"),Tr(vr,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(xr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Af(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=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===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ut(function(){var r=a,o=Nt(n),s=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;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":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case br:case vr:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Ln(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=jn(n))&&(x.data=w))),(w=An?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&Ln(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||_t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&_t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":At(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){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 a&&("formAction"===n?("input"!==t&&fd(e,t,"name",i.name,i,null),fd(e,t,"formEncType",i.formEncType,i,null),fd(e,t,"formMethod",i.formMethod,i,null),fd(e,t,"formTarget",i.formTarget,i,null)):(fd(e,t,"encType",i.encType,i,null),fd(e,t,"method",i.method,i,null),fd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=jt);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Lt(""+o),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!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):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":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":At(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?_t(e,o):("number"==typeof o||"bigint"==typeof o)&&_t(e,""+o);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("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(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(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 wd(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 xd(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 Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Ad(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Rd(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 Od(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":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Md(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function jd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(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 Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(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 Wd(e,t,n){switch(t=bd(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 zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Ud=new Map,Fd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=$.d;$.d={f:function(){var e=qd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):qd.r(e)},D:function(e){qd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){qd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){qd.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Ud.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){qd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Ud.has(i)&&(e=u({rel:"modulepreload",href:e},t),Ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){qd.X(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){qd.S(e,t,n);var r=Hd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(i))&&tf(e,n);var l=a=r.createElement("link");nt(l),hd(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,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){qd.M(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Fd.has(o)||(Fd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var i,a,s,l,c=(c=G.current)?Bd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.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},Ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)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=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+vt(e)+'"]'}function Xd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",i),ef(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Qd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Ud.get(i))&&tf(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",o),t.state.loading|=4,ef(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Xd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Ud.get(a))&&nf(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),hd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,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=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=zr(3,null,null,t),e.current=i,i.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Mf=Wf(Mf,e,t,n,r,o),!0;case"mouseover":return Lf=Wf(Lf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jf.set(i,Wf(jf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Pe(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Pf(e=Nt(e))}var Tf=null;function Pf(e){if(Tf=null,null!==(e=Xe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(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 Af(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(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rf=!1,Of=null,Mf=null,Lf=null,jf=new Map,If=new Map,Nf=[],$f="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 Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Mf=null;break;case"mouseover":case"mouseout":Lf=null;break;case"pointerover":case"pointerout":jf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(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 Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_f(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Ff(e,t,n){Uf(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Of&&Uf(Of)&&(Of=null),null!==Mf&&Uf(Mf)&&(Mf=null),null!==Lf&&Uf(Lf)&&(Lf=null),jf.forEach(Ff),If.forEach(Ff)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(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],o=t[e+2];if("function"!=typeof r){if(null===Pf(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Mf&&qf(Mf,e),null!==Lf&&qf(Lf,e),jf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Pf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=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,o=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!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=Ps;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=gf(e,1,!1,null,0,n,i,null,a,s,l,Gf),e[He]=t.current,td(e),new Qf(t)},p.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=_s,l=Ts,c=Ps,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,je(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var M=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),L=C();const j=r(L),I=t({__proto__:null,default:j},[L]);function N(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},U={};function F(){if(D)return U;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return U.ContextConsumer=i,U.ContextProvider=a,U.Element=e,U.ForwardRef=s,U.Fragment=n,U.Lazy=d,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=l,U.SuspenseList=c,U.isContextConsumer=function(e){return h(e)===i},U.isContextProvider=function(e){return h(e)===a},U.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},U.isForwardRef=function(e){return h(e)===s},U.isFragment=function(e){return h(e)===n},U.isLazy=function(e){return h(e)===d},U.isMemo=function(e){return h(e)===u},U.isPortal=function(e){return h(e)===t},U.isProfiler=function(e){return h(e)===o},U.isStrictMode=function(e){return h(e)===r},U.isSuspense=function(e){return h(e)===l},U.isSuspenseList=function(e){return h(e)===c},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},U.typeOf=h,U}function B(){return W||(W=1,z.exports=F()),z.exports}var q=B();function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function V(e){if(L.isValidElement(e)||q.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V(e[n])}),t}function K(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{L.isValidElement(t[o])||q.isValidElementType(t[o])?r[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?r[o]=K(e[o],t[o],n):n.clone?r[o]=H(t[o])?V(t[o]):t[o]:r[o]=t[o]}),r}function G(e,t){return t?K(e,t,{clone:!1}):e}function Q(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Y={xs:0,sm:600,md:900,lg:1200,xl:1536},Z={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Y[e]}px)`},X={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Y[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function J(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Z;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Z;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:X,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Y).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function ee(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function te(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ne({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function re(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oe(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:re(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=re(e.theme,r)||{};return J(e,i,e=>{let r=oe(a,o,e);return e===r&&"string"==typeof e&&(r=oe(a,o,`${t}${"default"===e?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Ae=xe("borderRightColor"),Re=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Me=xe("outline",we),Le=xe("outlineColor"),je=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fe(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:he(t,e)});return J(e,e.borderRadius,n)}return null};je.propTypes={},je.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Pe,Ae,Re,Oe,je,Me,Le);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),Ue=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Y[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:We(t)}};return J(e,e.maxWidth,t)}return null};Ue.filterProps=["maxWidth"];const Fe=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,Ue,Fe,Be,qe,He,ie({prop:"boxSizing"}));const Ve={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:je},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Ue},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Rt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,jt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(vt=Et())&&vt<33;)St();return Pt(e)>2||Pt(vt)>3?"":" "}function Lt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function jt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&jt(vt);break;case 40:41===e&&jt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!Pt(Et());)St();return Tt(e,bt)}function $t(e){return Rt(Dt("",null,null,null,[""],e=At(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Mt(h);break;case 92:k+=Lt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ut(k+";",r,n,d-1):Ut(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function Ut(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ft(e,t){for(var n="",r=pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+Ft(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ht=function(e,t,n){for(var r=0,o=0;r=o,o=Et(),38===r&&12===o&&(t[n]=1),!Pt(o);)St();return Tt(e,bt)},Vt=function(e,t){return Rt(function(e,t){var n=-1,r=44;do{switch(Pt(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(At(e),t))},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(n))&&!r){Kt.set(e,!0);for(var o=[],i=Vt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yt(e,t){switch(function(e,t){return 45^ut(e,0)?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Xe+e+Ze+e+e;case 6828:case 4268:return Je+e+Ze+e+e;case 6165:return Je+e+Ze+"flex-"+e+e;case 5187:return Je+e+lt(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Je+e+Ze+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return Je+e+Ze+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Ze+lt(e,"shrink","negative")+e;case 5292:return Je+e+Ze+lt(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+lt(e,"-grow","")+Je+e+Ze+lt(e,"grow","positive")+e;case 4554:return Je+lt(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ut(e,t+1)){case 109:if(45!==ut(e,t+4))break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Xe+(108==ut(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch")?Yt(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ut(e,t+1))break;case 6444:switch(ut(e,ft(e)-3-(~ct(e,"!important")&&10))){case 107:return lt(e,":",":"+Je)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ut(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Ze+e+e}return e}var Zt,Xt,Jt,en,tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Yt(e.value,e.length);break;case rt:return Ft([Ct(e,{value:lt(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ft([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ft([Ct(e,{props:[lt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,":-moz-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,Ze+"input-$1")]})],r)}return""})}}],nn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||tn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Bt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Gt,Qt].concat(i,f),u=pt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ft($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||L.useLayoutEffect,Sn=L.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return L.forwardRef(function(t,n){var r=L.useContext(Sn);return e(t,r,n)})},Pn=L.createContext({}),An={}.hasOwnProperty,Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Mn=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,L.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)An.call(e,c)&&"css"!==c&&c!==Rn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Ln=function(e,t){var n=arguments;if(null==t||!An.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mn,o[1]=function(e,t){var n={};for(var r in t)An.call(t,r)&&(n[r]=t[r]);return n[Rn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};En=Ln||(Ln={}),_n||(_n=En.JSX||(En.JSX={}));var jn=Tn(function(e,t){var n=wn([e.styles],void 0,L.useContext(Pn)),r=L.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},Un=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Fn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Bn=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Un(t,n,i),l=s||zn(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=Tn(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Pn)}"string"==typeof e.className?i=sn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=wn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?zn(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),L.createElement(L.Fragment,null,L.createElement(Fn,{cache:t,serialized:h,isStringTag:"string"==typeof r}),L.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Qe({},n,r,{shouldForwardProp:Un(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function qn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return d.jsx(jn,{styles:r})}function Hn(e,t){return Bn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Bn[e]=Bn(e)});const Vn=[];function Kn(e){return Vn[0]=e,wn(Vn)}function Gn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Qn={borderRadius:4};function Yn(e=8,t=pe({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Zn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=K({breakpoints:Gn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yn(o),shape:{...Qn,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Zn,s=t.reduce((e,t)=>K(e,t),s),s.unstable_sxConfig={...Ve,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Ke({sx:e,theme:this})},s}function Jn(e=null){const t=L.useContext(Pn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function Er(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function _r(e){if(e.type)return e;if("#"===e.charAt(0))return _r(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(N(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(N(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Tr=(e,t)=>{try{return(e=>{const t=_r(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ar(e){e=_r(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Pr({type:s,values:l})}function Rr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Ar(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function Mr(e,t,n){try{return Or(e,t)}catch(r){return e}}function Lr(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function jr(e,t,n){try{return Lr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Rr(e)>.5?Lr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=L.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:L.useContext(Dr)}})}let zr=0;const Ur={...I}.useId;function Fr(e){if(void 0!==Ur){const t=Ur();return e??t}return function(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{null==t&&(zr+=1,n(`mui-${zr}`))},[t]),r}(e)}const Br={theme:void 0};function qr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hr=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Vr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Hr(i,e,`var(${r})`,s),Hr(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Kr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const Gr=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter(e=>i.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},i)}})}else"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t);var o,i};function Qr(e){return`--Grid-${e}Spacing`}function Yr(e){return`--Grid-parent-${e}Spacing`}const Zr="--Grid-columns",Xr="--Grid-parent-columns",Jr=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Xr}) - (var(${Xr}) - ${t}) * (var(${Yr("column")}) / var(${Xr})))`}),e(n,r)}),n},eo=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Xr}) + var(${Yr("column")}) * ${t} / var(${Xr}))`}),e(n,r)}),n},to=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zr]:12};return Gr(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[Zr]:r,"> *":{[Xr]:r}})}),n},no=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("row")]:o,"> *":{[Yr("row")]:o}})}),n},ro=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("column")]:o,"> *":{[Yr("column")]:o}})}),n},oo=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},io=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Qr("row")}) var(${Qr("column")})`}}),ao=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},so=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},lo=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];const co=Xn(),uo=xr("div",{name:"MuiGrid",slot:"Root"});function fo(e){return kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=L.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e),[])}const yo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...J({theme:t},ne({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=pe(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=ne({values:e.direction,base:o}),a=ne({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=K(n,J({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:he(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:he(r,t)}};var o}))}return n=function(e,...t){const n=ee(e),r=[n,...t].reduce((e,t)=>K(e,t),{});return te(Object.keys(n),r)}(t.breakpoints,n),n};const bo={black:"#000",white:"#fff"},vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wo="#f3e5f5",xo="#ce93d8",Co="#ba68c8",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Po="#f44336",Ao="#d32f2f",Ro="#c62828",Oo="#ffb74d",Mo="#ffa726",Lo="#ff9800",jo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#1976d2",zo="#1565c0",Uo="#4fc3f7",Fo="#29b6f6",Bo="#03a9f4",qo="#0288d1",Ho="#01579b",Vo="#81c784",Ko="#66bb6a",Go="#4caf50",Qo="#388e3c",Yo="#2e7d32",Zo="#1b5e20";function Xo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bo.white,default:bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jo=Xo();function ei(){return{text:{primary:bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ti=ei();function ni(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ir(e.main,o):"dark"===t&&(e.dark=Lr(e.main,i)))}function ri(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function oi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:_o,dark:Ao}:{main:Ao,light:To,dark:Ro}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Fo,light:Uo,dark:qo}:{main:qo,light:Bo,dark:Ho}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ko,light:Vo,dark:Qo}:{main:Yo,light:Go,dark:Zo}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Mo,light:Oo,dark:jo}:{main:"#ed6c02",light:Lo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:Lr(t,n)}})}function xi(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(N(20));const d=oi({...i,colorSpace:c}),f=Xn(e);let p=K(f,{mixins:(h=f.breakpoints,g=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:ui.slice(),typography:li(d,s),transitions:gi(a),zIndex:{...mi}});var h,g;return p=K(p,u),p=t.reduce((e,t)=>K(e,t),p),p.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ke({sx:e,theme:this})},p.toRuntimeSource=bi,wi(p),p}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return"string"==typeof e&&e.startsWith("hsl")?Ar(e):e}function Ai(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Pi(e[t])))}const Ri=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Mi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Mr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===jr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(jr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(jr,t.info.light,.6)),Ti(t.Alert,"successColor",r(jr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(jr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(jr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Mr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(jr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(jr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(jr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(jr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(jr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(jr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(jr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(jr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(jr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(jr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(jr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(jr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(jr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(jr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(jr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(jr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(jr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(jr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(jr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(jr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(jr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(jr,t.warning.main,.55)),Ti(t.TableCell,"border",r(jr,r(Mr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}Ai(t.background,"default"),Ai(t.background,"paper"),Ai(t.common,"background"),Ai(t.common,"onBackground"),Ai(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Pi(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Pi(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Pi(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Pi(n.contrastText))),"text"===e&&(Ai(t[e],"primary"),Ai(t[e],"secondary")),"action"===e&&(n.active&&Ai(t[e],"active"),n.selected&&Ai(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function Li(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function ji(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return xi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=xi({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Li(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Li(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Mi({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=ji(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Ui(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Fi(e){return Wr(e)}const Bi="function"==typeof Ui({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Ui(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Fi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(L.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.6",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Pa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Aa(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Ra;const Ma=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),La=la("HTMLFormElement"),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Ra.postMessage),Wa?setImmediate:za?(Ua=`axios@${Math.random()}`,Fa=[],Ra.addEventListener("message",({source:e,data:t})=>{e===Ra&&t===Ua&&Fa.length&&Fa.shift()()},!1),e=>{Fa.push(e),Ra.postMessage(Ua,"*")}):e=>setTimeout(e));var Wa,za,Ua,Fa;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ra):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:Ma,isFileList:Ca,forEach:Pa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Aa(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Pa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Pa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:La,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Aa,global:Ra,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Pa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),Ps=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,As=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ls=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&Ps(t.url))){const e=o&&i&&As.read(i);e&&a.set(o,e)}return t},js="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ls(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Us,TextEncoder:Fs}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Us),l=o&&("function"==typeof Fs?(e=>t=>e.encode(t))(new Fs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ls(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:js,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ms(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Rs((e=Ms(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ms(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ms(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ms(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ms,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Pl="ps_play_button_clicked",Al="ps_purchase_completed",Rl="ps_check_in_completed",Ol="event_purchaseCompleted",Ml="event_checkInCompleted";var Ll=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ll||{}),jl=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(jl||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e[e.croco=4]="croco",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Fl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"},1060:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"}},ql={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Hl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Vl,Kl={exports:{}};var Gl,Ql,Yl=(Vl||(Vl=1,Gl=Kl,Ql=Kl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",P="Huawei",A="LG",R="Microsoft",O="Motorola",M="Nvidia",L="OnePlus",j="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="Xiaomi",z="Zebra",U="Facebook",F="Chromium OS",B="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Q=function(e,r){for(var i,a,s,l,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)u=c[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):t:this[l[0]]=u?l[1].call(this,u,l[2]):t:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},Y=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(V(n[r][i],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,P],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,P],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,A],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[u,A],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,L],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[u,v],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[u,v],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[u,C],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[u,x],[c,h]],[/(nexus 9)/i],[s,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,K],s,[c,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[u,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[u,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[u,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[u,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[u,"Nothing"],[c,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[u,"Archos"],[c,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,s,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,s,[c,g]],[/(surface duo)/i],[s,[u,R],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,A],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,M],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,R],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,L],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,A],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,_],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,U],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,b]],[/(aeobc)\b/i],[s,[u,v],[c,b]],[/(homepod).+mac os/i],[s,[u,w],[c,b]],[/windows iot/i],[[c,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,Y,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,Y,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,B],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},J=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof J))return new J(p,m).getResult();var y=typeof e!==r&&e.navigator?e.navigator:t,b=p||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,m):X,x=y&&y.userAgent==b;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,Q.call(r,b,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,x&&y&&y.brave&&typeof y.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,Q.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[s]=t,e[c]=t,Q.call(e,b,w.device),x&&!e[c]&&v&&v.mobile&&(e[c]=h),x&&"Macintosh"==e[s]&&y&&typeof y.standalone!==r&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[s]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.os),x&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===i&&e.length>500?G(e,500):e,this},this.setUA(b),this};J.VERSION="1.0.41",J.BROWSER=H([l,d,a]),J.CPU=H([f]),J.DEVICE=H([s,u,c,p,h,m,g,y,b]),J.ENGINE=J.OS=H([l,d]),Gl.exports&&(Ql=Gl.exports=J),Ql.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Kl.exports)),Kl.exports);const Zl=r(Yl),Xl=e=>`${ta.RES_URL}${e}`,Jl=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ec=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},tc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},nc=()=>(window.Telegram.WebApp.platform||"").includes("android"),rc=()=>{const e=(new Yl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},oc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),ic=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class ac{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.get(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.post(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return ac.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return ac.post("pluto/order",s)}static getItem(e){const t={k:e};return ac.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return ac.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return ac.post("pluto/finishorder",t)}static unfinishRecord(){return ac.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return ac.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return ac.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return ac.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return ac.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return ac.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return ac.post("pluto/signdata",s)}static getNfts(){return ac.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return ac.post("pluto/setuserid",n)}static cocGetInfo(){return ac.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return ac.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return ac.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return ac.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return ac.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return ac.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return ac.post("plutococ/cancelwithdraw",t)}static spGetInfo(){return ac.get("plutosp/info")}static spWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return ac.post("plutosp/withdraw",o)}static spClaim(e){const t={withdrawid:e};return ac.post("plutosp/claim",t)}static spGetWithdrawDetail(e){const t={withdrawid:e};return ac.post("plutosp/withdrawdetail",t)}static spGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return ac.post("plutosp/record",r)}static spQueryConsume(e){const t={time:e};return ac.post("plutosp/queryconsume",t)}static spCancelWithdraw(e){const t={withdrawid:e};return ac.post("plutosp/cancelwithdraw",t)}}const sc=new class{get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameUserId(){return this._gameUserId}set gameUserId(e){this._gameUserId=e}};var lc,cc={exports:{}},uc=cc.exports;var dc=(lc||(lc=1,function(e){var t,n;t=uc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(cc)),cc.exports);const fc=r(dc);function pc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hc={exports:{}};const gc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mc;var yc=(mc||(mc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,P=f,A=p,R=h,O=g,M=m,L=y,j=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(L^=(o=(A^=(o=(E^=(o=x+L|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+A|0)<<18|o>>>14,_^=(o=(C^=(o=(j^=(o=(R^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+R|0)<<13|o>>>19)+j|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(M^=(o=(P^=(o=(S^=(o=N+M|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(P^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,O^=(o=(R^=(o=(A^=(o=(M^=(o=O+R|0)<<7|o>>>25)+O|0)<<9|o>>>23)+M|0)<<13|o>>>19)+A|0)<<18|o>>>14,N^=(o=(I^=(o=(j^=(o=(L^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+L|0)<<13|o>>>19)+j|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,P=P+f|0,A=A+p|0,R=R+h|0,O=O+g|0,M=M+m|0,L=L+y|0,j=j+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=P>>>0&255,e[29]=P>>>8&255,e[30]=P>>>16&255,e[31]=P>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=R>>>0&255,e[37]=R>>>8&255,e[38]=R>>>16&255,e[39]=R>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function P(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function A(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function L(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),m(n,0,r,0)}function j(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,P=0,A=0,R=0,O=0,M=0,L=0,j=0,I=0,N=n[0],$=n[1],D=n[2],W=n[3],z=n[4],U=n[5],F=n[6],B=n[7],q=n[8],H=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Y=n[14],Z=n[15];i+=(r=t[0])*N,a+=r*$,s+=r*D,l+=r*W,c+=r*z,u+=r*U,d+=r*F,f+=r*B,p+=r*q,h+=r*H,g+=r*V,m+=r*K,y+=r*G,b+=r*Q,v+=r*Y,w+=r*Z,a+=(r=t[1])*N,s+=r*$,l+=r*D,c+=r*W,u+=r*z,d+=r*U,f+=r*F,p+=r*B,h+=r*q,g+=r*H,m+=r*V,y+=r*K,b+=r*G,v+=r*Q,w+=r*Y,x+=r*Z,s+=(r=t[2])*N,l+=r*$,c+=r*D,u+=r*W,d+=r*z,f+=r*U,p+=r*F,h+=r*B,g+=r*q,m+=r*H,y+=r*V,b+=r*K,v+=r*G,w+=r*Q,x+=r*Y,C+=r*Z,l+=(r=t[3])*N,c+=r*$,u+=r*D,d+=r*W,f+=r*z,p+=r*U,h+=r*F,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,p+=r*z,h+=r*U,g+=r*F,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,h+=r*z,g+=r*U,m+=r*F,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*U,y+=r*F,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*U,b+=r*F,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*U,v+=r*F,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*U,w+=r*F,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,P+=r*Y,A+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*U,x+=r*F,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,P+=r*Q,A+=r*Y,R+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*U,C+=r*F,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,P+=r*G,A+=r*Q,R+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*U,k+=r*F,S+=r*B,E+=r*q,_+=r*H,T+=r*V,P+=r*K,A+=r*G,R+=r*Q,O+=r*Y,M+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*U,S+=r*F,E+=r*B,_+=r*q,T+=r*H,P+=r*V,A+=r*K,R+=r*G,O+=r*Q,M+=r*Y,L+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*U,E+=r*F,_+=r*B,T+=r*q,P+=r*H,A+=r*V,R+=r*K,O+=r*G,M+=r*Q,L+=r*Y,j+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*U),u+=38*(_+=r*F),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(A+=r*H),h+=38*(R+=r*V),g+=38*(O+=r*K),m+=38*(M+=r*G),y+=38*(L+=r*Q),b+=38*(j+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),p=t(),h=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),M(e,m),0}function B(e,t){return F(e,t,o)}function q(e,t){return n(t,32),B(e,t)}function H(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,v)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],P=this.h[5],A=this.h[6],R=this.h[7],O=this.h[8],M=this.h[9],L=this.r[0],j=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],U=this.r[8],F=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*L,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*W))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*D),f+=(A+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(R+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(M+=u>>>5|C)*(5*j))>>>13,p+=k*j,p+=S*L,p+=E*(5*F),p+=_*(5*U),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*W),p+=A*(5*D),p+=R*(5*$),p+=O*(5*N),d+=(p+=M*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*j,h+=E*L,h+=_*(5*F),d=(h+=T*(5*U))>>>13,h&=8191,h+=P*(5*z),h+=A*(5*W),h+=R*(5*D),h+=O*(5*$),g=d+=(h+=M*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*j,g+=_*L,d=(g+=T*(5*F))>>>13,g&=8191,g+=P*(5*U),g+=A*(5*z),g+=R*(5*W),g+=O*(5*D),m=d+=(g+=M*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*j,d=(m+=T*L)>>>13,m&=8191,m+=P*(5*F),m+=A*(5*U),m+=R*(5*z),m+=O*(5*W),y=d+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*j)>>>13,y&=8191,y+=P*L,y+=A*(5*F),y+=R*(5*U),y+=O*(5*z),b=d+=(y+=M*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=P*j,b+=A*L,b+=R*(5*F),b+=O*(5*U),v=d+=(b+=M*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=P*I,v+=A*j,v+=R*L,v+=O*(5*F),w=d+=(v+=M*(5*U))>>>13,w+=k*U,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=P*N,w+=A*I,w+=R*j,w+=O*L,x=d+=(w+=M*(5*F))>>>13,x+=k*F,x+=S*U,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=P*$,x+=A*N,x+=R*I,x+=O*j,k=f=8191&(d=(d=((d+=(x+=M*L)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,P=y&=8191,A=b&=8191,R=v&=8191,O=w&=8191,M=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=P,this.h[6]=A,this.h[7]=R,this.h[8]=O,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=P,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,P,A,R=new Int32Array(16),O=new Int32Array(16),M=e[0],L=e[1],j=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=e[7],z=t[0],U=t[1],F=t[2],B=t[3],q=t[4],H=t[5],V=t[6],K=t[7],Q=0;r>=128;){for(C=0;C<16;C++)k=8*C+Q,R[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=M,i=L,a=j,s=I,l=N,c=$,u=D,f=z,p=U,h=F,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,P+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),A+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,P+=65535&(S=N&$^~N&D),A+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,P+=65535&(S=G[2*C]),A+=S>>>16,S=R[C%16],T+=(E=O[C%16])>>>16,P+=65535&S,A+=S>>>16,P+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,P=65535&(S=w=65535&P|(A+=P>>>16)<<16),A=S>>>16,_+=65535&(E=(z>>>28|M<<4)^(M>>>2|z<<30)^(M>>>7|z<<25)),T+=E>>>16,P+=65535&(S=(M>>>28|z<<4)^(z>>>2|M<<30)^(z>>>7|M<<25)),A+=S>>>16,T+=(E=z&U^z&F^U&F)>>>16,P+=65535&(S=M&L^M&j^L&j),A+=S>>>16,d=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,P=65535&(S=s),A=S>>>16,T+=(E=x)>>>16,P+=65535&(S=w),A+=S>>>16,L=o,j=i,I=a,N=s=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,$=l,D=c,W=u,M=d,U=f,F=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=R[k],_=65535&(E=O[k]),T=E>>>16,P=65535&S,A=S>>>16,S=R[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,P+=65535&S,A+=S>>>16,w=R[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,P+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),A+=S>>>16,w=R[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,R[k]=65535&P|A<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,P=65535&(S=M),A=S>>>16,S=e[0],T+=(E=t[0])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&P|A<<16,t[0]=z=65535&_|T<<16,_=65535&(E=U),T=E>>>16,P=65535&(S=L),A=S>>>16,S=e[1],T+=(E=t[1])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=L=65535&P|A<<16,t[1]=U=65535&_|T<<16,_=65535&(E=F),T=E>>>16,P=65535&(S=j),A=S>>>16,S=e[2],T+=(E=t[2])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=j=65535&P|A<<16,t[2]=F=65535&_|T<<16,_=65535&(E=B),T=E>>>16,P=65535&(S=I),A=S>>>16,S=e[3],T+=(E=t[3])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&P|A<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,P=65535&(S=N),A=S>>>16,S=e[4],T+=(E=t[4])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&P|A<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,P=65535&(S=$),A=S>>>16,S=e[5],T+=(E=t[5])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&P|A<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,P=65535&(S=D),A=S>>>16,S=e[6],T+=(E=t[6])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&P|A<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,S=e[7],T+=(E=t[7])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&P|A<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),M(e,o),e[31]^=j(r)<<7}function ee(e,t,n){var r,o;for(A(e[0],i),A(e[1],a),A(e[2],a),A(e[3],i),o=255;o>=0;--o)X(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),X(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];A(r[0],u),A(r[1],d),A(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return A(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),U(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),L(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),L(o,s)?-1:(j(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:F,crypto_scalarmult_base:B,crypto_box_beforenm:H,crypto_box_afternm:V,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),V(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:Y,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:se,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:re,pack25519:M,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:U,add:Z,set25519:A,modL:oe,scalarmult:ee,scalarbase:te},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==P(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return B(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return H(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return B(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=se(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return se(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return ne(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===h(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},(le="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&le.getRandomValues?e.setPRNG(function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)le.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];ge(r)}):void 0!==pc&&(le=gc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(hc)),hc.exports);const bc=r(yc);var vc,wc,xc,Cc,kc,Sc,Ec,_c,Tc,Pc,Ac,Rc;(wc=vc||(vc={}))[wc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",wc[wc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",wc[wc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",wc[wc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",wc[wc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",wc[wc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",wc[wc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Sc[Sc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Sc[Sc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Pc=Tc||(Tc={}))[Pc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Pc[Pc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Pc[Pc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Rc=Ac||(Ac={})).MAINNET="-239",Rc.TESTNET="-3";const Oc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=fc.decodeUTF8(e)),function(e,t){const n=fc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),fc.decodeBase64(e)}(e,t);return{toString:()=>fc.encodeUTF8(n),toObject(){try{return JSON.parse(fc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Mc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Lc(e){if(e.length%2!=0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class jc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Mc(this.keyPair.publicKey)}createKeypair(){return bc.box.keyPair()}createKeypairFromString(e){return{publicKey:Lc(e.publicKey),secretKey:Lc(e.secretKey)}}createNonce(){return bc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,bc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=bc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:Mc(this.keyPair.publicKey),secretKey:Mc(this.keyPair.secretKey)}}}function Ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Nc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class $c extends Error{constructor(e,t){super(e,t),this.message=`${$c.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,$c.prototype)}get info(){return""}}$c.prefix="[TON_CONNECT_SDK_ERROR]";class Dc extends $c{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Dc.prototype)}}class Wc extends $c{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Wc.prototype)}}class zc extends $c{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Uc extends $c{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Fc extends $c{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Bc extends $c{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends $c{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends $c{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends $c{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends $c{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends $c{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends $c{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends $c{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends $c{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}const Jc={[vc.UNKNOWN_ERROR]:Xc,[vc.USER_REJECTS_ERROR]:Vc,[vc.BAD_REQUEST_ERROR]:Kc,[vc.UNKNOWN_APP_ERROR]:Gc,[vc.MANIFEST_NOT_FOUND_ERROR]:zc,[vc.MANIFEST_CONTENT_ERROR]:Wc};const eu=new class{parseError(e){let t=Xc;return e.code in Jc&&(t=Jc[e.code]||Xc),new t(e.message)}};class tu{isError(e){return"error"in e}}const nu={[kc.UNKNOWN_ERROR]:Xc,[kc.USER_REJECTS_ERROR]:Vc,[kc.BAD_REQUEST_ERROR]:Kc,[kc.UNKNOWN_APP_ERROR]:Gc};const ru=new class extends tu{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in nu&&(t=nu[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},ou={[Ec.UNKNOWN_ERROR]:Xc,[Ec.USER_REJECTS_ERROR]:Vc,[Ec.BAD_REQUEST_ERROR]:Kc,[Ec.UNKNOWN_APP_ERROR]:Gc};const iu=new class extends tu{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in ou&&(t=ou[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class au{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Nc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function su(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function lu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function cu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function uu(e,t){return Nc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function du(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function fu(e,t){var n,r;return Nc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=du(null==t?void 0:t.signal);if("function"!=typeof e)throw new $c("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new $c(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield uu(i))}}throw s})}function pu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function hu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class gu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Nc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=du(s),a.signal.aborted)throw new $c("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new $c("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Nc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Nc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield uu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new $c("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Nc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Nc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=du(null==t?void 0:t.signal);return new Promise((t,o)=>Nc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new $c("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new $c(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new $c("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Nc(this,0,void 0,function*(){var o;const i=du(r.signal).signal;if(i.aborted)return void n(new $c("Bridge connection aborted"));const a=new URL(su(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new $c("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Nc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new $c("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Nc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new au(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Nc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Nc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(su(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Oc.encode(e);yield fu(e=>Nc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new $c(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>hu(`Bridge pause failed, ${e}`))}unPause(){return Nc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Nc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>hu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Nc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new $c(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Nc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new $c("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),pu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new $c("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Nc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new $c(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function mu(e){return!("connectEvent"in e)}class yu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Nc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!mu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new jc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new jc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");if(!mu(e))throw new $c("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new $c("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Nc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!mu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class bu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new yu(e)}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getHttpConnection();return mu(n)?new bu(e,n.connectionSource):new bu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=du(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new jc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Nc(this,0,void 0,function*(){r.signal.aborted||(yield fu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(mu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new $c("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield fu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Nc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new $c("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),Lc(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Nc(this,0,void 0,function*(){return new Promise(t=>Nc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=du(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){pu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Nc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Nc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Nc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Oc.decode(e.message).toUint8Array(),Lc(e.from)));if(pu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void pu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void hu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(pu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Nc(this,0,void 0,function*(){throw new $c(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Nc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Nc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return lu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+cu(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Nc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new gu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>fu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function vu(e,t){return wu(e,[t])}function wu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let xu=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Cu(){if("undefined"!=typeof window)return window}function ku(){var e;const t=null===(e=Cu())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Su(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new $c("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return xu.getInstance()}class Eu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Eu.window;if(!Eu.isWindowContainsWallet(n,t))throw new Bc;this.connectionStorage=new yu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getInjectedConnection();return new Eu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Eu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Eu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Cu();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!vu(e,"tonconnect")||!vu(e.tonconnect,"walletInfo"))&&wu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Nc(this,0,void 0,function*(){try{pu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();pu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Nc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){pu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Nc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>pu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Nc(this,0,void 0,function*(){try{pu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);pu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){pu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{pu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Eu.window=Cu();class _u{constructor(){this.localStorage=Su()}getItem(e){return Nc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Nc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Nc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Tu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Pu(e){return Tu(e)&&e.embedded}function Au(e){return"bridgeUrl"in e}const Ru=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Ou{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Nc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Nc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Pu);return 1===e.length?e[0]:null})}fetchWalletsList(){return Nc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Qc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(hu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){hu(n),e=Ru}let t=[];try{t=Eu.getCurrentlyInjectedWallets()}catch(n){hu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Eu.isWalletInjected(e),t.embedded=Eu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function Mu(e,t){const n=e.includes("SendTransaction"),r=ju(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new qc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new qc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new qc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Lu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=ju(e,"SendTransaction");if(!t)return!1;if(!function(e,t){const n=void 0===t.minMessages||t.minMessages<=e.maxMessages,r=!t.extraCurrencyRequired||e.extraCurrencySupported;return!(!n||!r)}(t,n))return!1}if(r){const t=ju(e,"SignData");if(!t)return!1;if(!function(e,t){return t.types.every(t=>e.types.includes(t))}(t,r))return!1}return!0}function ju(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Iu(e){return{type:"response-version",version:e}}function Nu(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function $u(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Nu(e))}}function Du(e){return{type:"connection-started",custom_data:Nu(e)}}function Wu(e,t){return Object.assign({type:"connection-completed",is_success:!0},$u(e,t))}function zu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Nu(e)}}function Uu(e){return{type:"connection-restoring-started",custom_data:Nu(e)}}function Fu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},$u(e,t))}function Bu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Nu(e)}}function qu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Hu(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},$u(e,t)),qu(t,n))}function Vu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},$u(e,t)),qu(t,n))}function Ku(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},$u(e,t)),qu(t,n))}function Gu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},$u(e,t))}function Qu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},$u(e,t))}function Yu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},$u(e,t))}function Zu(e,t,n){return Object.assign({type:"disconnection",scope:n},$u(e,t))}class Xu{constructor(){this.window=Cu()}dispatchEvent(e,t){var n;return Nc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Nc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class Ju{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new Xu,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Nc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Nc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Nc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Iu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Nc(this,0,void 0,function*(){return new Promise((e,t)=>Nc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class ed{constructor(e){if(this.walletsList=new Ou,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||ku(),storage:(null==e?void 0:e.storage)||new _u},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Ou({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new Ju({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new Dc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new yu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Uc;const i=du(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new $c("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield bu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Eu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return hu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=fu(t=>Nc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Nc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=du(null==n?void 0:n.signal);if(r.signal.aborted)throw new $c("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Mu(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=Ic(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(ru.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=Ic(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(ru.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),ru.parseAndThrowError(d);const f=ru.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Nc(this,0,void 0,function*(){const n=du(null==t?void 0:t.signal);if(n.signal.aborted)throw new $c("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new qc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new qc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(iu.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),iu.parseAndThrowError(i);const a=iu.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Nc(this,0,void 0,function*(){if(!this.connected)throw new Fc;const n=du(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new $c("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){hu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Eu(this.dappSettings.storage,e.jsBridgeKey):new bu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=eu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new $c("ton_addr connection item was not found");if(!Lu(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Hc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new $c("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:xc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),pu(e),e instanceof zc||e instanceof Wc)throw hu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new Fc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}ed.walletsList=new Ou,ed.isWalletInjected=e=>Eu.isWalletInjected(e),ed.isInsideWalletBrowser=e=>Eu.isInsideWalletBrowser(e);function td(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Yc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Yc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Yc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Yc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:rd(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Oc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const nd={};for(let lS=0;lS<=255;lS++){let e=lS.toString(16);e.length<2&&(e="0"+e),nd[e]=lS}function rd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Zc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!nd.hasOwnProperty(n))throw new Zc("Invalid hex character: "+n);r[o]=nd[n]}return r}var od,id;const ad=r(function(){if(id)return od;id=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},od=s}());var sd,ld={exports:{}};var cd=(sd||(sd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ld)),ld.exports);const ud=r(cd);var dd,fd,pd,hd,gd,md,yd,bd,vd=Object.defineProperty,wd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Ed=(e,t,n)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t)=>{for(var n in t||(t={}))kd.call(t,n)&&Ed(e,n,t[n]);if(Cd)for(var n of Cd(t))Sd.call(t,n)&&Ed(e,n,t[n]);return e},Td=(e,t)=>wd(e,xd(t)),Pd=(e,t,n)=>(Ed(e,"symbol"!=typeof t?t+"":t,n),n),Ad=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Rd={};const Od=Symbol("solid-proxy"),Md=Symbol("solid-track"),Ld={equals:(e,t)=>e===t};let jd=pf;const Id=1,Nd=2,$d={owned:null,cleanups:null,context:null,owner:null},Dd={};var Wd=null;let zd=null,Ud=null,Fd=null,Bd=null,qd=0;function Hd(e,t){const n=Ud,r=Wd,o=0===e.length,i=o?$d:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>Jd(()=>yf(i)));Wd=i,Ud=null;try{return ff(a,!0)}finally{Ud=n,Wd=r}}function Vd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Ld,t):Ld).equals||void 0};return[sf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),lf(n,e))]}function Kd(e,t,n){cf(uf(e,t,!0,Id))}function Gd(e,t,n){cf(uf(e,t,!1,Id))}function Qd(e,t,n){jd=hf;const r=uf(e,t,!1,Id);r.user=!0,Bd?Bd.push(r):cf(r)}function Yd(e,t,n){n=n?Object.assign({},Ld,n):Ld;const r=uf(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,cf(r),sf.bind(r)}function Zd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=Dd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Yd(r);const f=new Set,[p,h]=(i.storage||Vd)(i.initialValue),[g,m]=Vd(void 0),[y,b]=Vd(void 0,{equals:!1}),[v,w]=Vd(u?"ready":"unresolved");if(Rd.context){let e;l=`${Rd.context.id}${Rd.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Rd.load&&(e=Rd.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=Dd,function(e,t){ff(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Ud&&Ud.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,Jd(p));const n=s!==Dd?s:Jd(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),ff(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,bf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Kd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function Xd(e){return ff(e,!1)}function Jd(e){if(null===Ud)return e();const t=Ud;Ud=null;try{return e()}finally{Ud=t}}function ef(e){Qd(()=>Jd(e))}function tf(e){return null===Wd||(null===Wd.cleanups?Wd.cleanups=[e]:Wd.cleanups.push(e)),e}function nf(){return Ud}function rf(e,t){const n=Symbol("context");return{id:n,Provider:Cf(n),defaultValue:e}}function of(e){let t;return void 0!==(t=wf(Wd,e.id))?t:e.defaultValue}function af(e){const t=Yd(e),n=Yd(()=>xf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function sf(){const e=zd;if(this.sources&&(this.state||e))if(this.state===Id||e)cf(this);else{const e=Fd;Fd=null,ff(()=>gf(this),!1),Fd=e}if(Ud){const e=this.observers?this.observers.length:0;Ud.sources?(Ud.sources.push(this),Ud.sourceSlots.push(e)):(Ud.sources=[this],Ud.sourceSlots=[e]),this.observers?(this.observers.push(Ud),this.observerSlots.push(Ud.sources.length-1)):(this.observers=[Ud],this.observerSlots=[Ud.sources.length-1])}return this.value}function lf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&ff(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=zd&&zd.running;r&&zd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?Fd.push(n):Bd.push(n),n.observers&&mf(n)),r||(n.state=Id)}if(Fd.length>1e6)throw Fd=[],new Error},!1)),t}function cf(e){if(!e.fn)return;yf(e);const t=Wd,n=Ud,r=qd;Ud=Wd=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Id,e.owned&&e.owned.forEach(yf),e.owned=null),vf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?lf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Ud=n,Wd=t}function uf(e,t,n,r=Id,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Wd,context:null,pure:n};return null===Wd||Wd!==$d&&(Wd.owned?Wd.owned.push(i):Wd.owned=[i]),i}function df(e){const t=zd;if(0===e.state||t)return;if(e.state===Nd||t)return gf(e);if(e.suspense&&Jd(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<qd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Id||t)cf(e);else if(e.state===Nd||t){const t=Fd;Fd=null,ff(()=>gf(e,n[0]),!1),Fd=t}}function ff(e,t){if(Fd)return e();let n=!1;t||(Fd=[]),Bd?n=!0:Bd=[],qd++;try{const t=e();return function(e){Fd&&(pf(Fd),Fd=null);if(e)return;const t=Bd;Bd=null,t.length&&ff(()=>jd(t),!1)}(n),t}catch(r){n||(Bd=null),Fd=null,vf(r)}}function pf(e){for(let t=0;t<e.length;t++)df(e[t])}function hf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:df(r)}var r;for(Rd.context&&(Rd.context=r),t=0;t<n;t++)df(e[t])}function gf(e,t){const n=zd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Id||n?o!==t&&df(o):(o.state===Nd||n)&&gf(o,t))}}function mf(e){const t=zd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Nd,r.pure?Fd.push(r):Bd.push(r),r.observers&&mf(r))}}function yf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)yf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function bf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function vf(e){throw e=bf(e)}function wf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:wf(e.owner,t):void 0}function xf(e){if("function"==typeof e&&!e.length)return xf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=xf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Cf(e,t){return function(t){let n;return Gd(()=>n=Jd(()=>(Wd.context={[e]:t.value},af(()=>t.children))),void 0),n}}const kf=Symbol("fallback");function Sf(e){for(let t=0;t<e.length;t++)e[t]()}function Ef(e,t){return Jd(()=>e(t||{}))}function _f(){return!0}const Tf={get:(e,t,n)=>t===Od?n:e.get(t),has:(e,t)=>t===Od||e.has(t),set:_f,deleteProperty:_f,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:_f,deleteProperty:_f}),ownKeys:e=>e.keys()};function Pf(e){return(e="function"==typeof e?e():e)?e:{}}function Af(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Od in n,e[r]="function"==typeof n?(t=!0,Yd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Pf(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Pf(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Pf(e[n])));return[...new Set(t)]}},Tf);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Rf(e,...t){const n=new Set(t.flat());if(Od in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Tf));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Tf)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Of(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Yd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return tf(()=>Sf(i)),()=>{let l,c,u=e()||[];return u[Md],Jd(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(Sf(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[kf],o[0]=Hd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Hd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Hd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Vd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Mf(e){let t=!1;const n=e.keyed,r=Yd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Yd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Jd(()=>r(o)):r}return e.fallback},void 0,void 0)}function Lf(e){let t=!1,n=!1;const r=af(()=>e.children),o=Yd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Yd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?Jd(()=>s(i)):s},void 0,void 0)}function jf(e){return e}const If=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Nf=new Set(["innerHTML","textContent","innerText","children"]),$f=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Df=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Wf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),zf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Uf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Ff="_$DX_DELEGATE";function Bf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function qf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Hf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Vf(e,t={},n,r){const o={};return Gd(()=>o.children=Jf(e,t.children,o.children)),Gd(()=>t.ref&&t.ref(e)),Gd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Zf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Zf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Kf(e,t,n){return Jd(()=>e(t,n))}function Gf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Jf(e,t,r,n);Gd(r=>Jf(e,t(),r,n),r)}function Qf(e){let t,n;return Rd.context&&(t=Rd.registry.get(n=function(){const e=Rd.context;return`${e.id}${e.count++}`}()))?(Rd.completed&&Rd.completed.add(t),Rd.registry.delete(n),t):e.cloneNode(!0)}function Yf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Zf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?qf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Yf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Yf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Wf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Ff]||(t[Ff]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Xf))}}([o]))}else if((l=Nf.has(t))||!o&&(Df[t]||(s=If.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Hf(e,n):!a||s||l?e[Df[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Uf[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):qf(e,$f[t]||t,n)}var c;return n}function Xf(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Rd.registry&&!Rd.done&&(Rd.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Jf(e,t,n,r,o){for(Rd.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Rd.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=np(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Rd.context)return n;n=np(e,n,r)}else{if("function"===i)return Gd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Jf(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(ep(i,t,n,o))return Gd(()=>n=Jf(e,i,n,r,!0)),()=>n;if(Rd.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=np(e,n,r),a)return n}else s?0===n.length?tp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&np(e),tp(e,i));n=i}else if(t instanceof Node){if(Rd.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=np(e,n,r,t);np(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function ep(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=ep(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=ep(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function tp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function np(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function rp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function op(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Rd.context){const[t,n]=Vd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Vd(!1),n=()=>t(!0);Hd(t=>Gf(r,()=>e()?t():o()(),null)),tf(()=>{Rd.context?queueMicrotask(n):n()})}else{const i=rp(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Gf(a,o()),r.appendChild(i),e.ref&&e.ref(i),tf(()=>r.removeChild(i))}return n}function ip(e){const[t,n]=Rf(e,["component"]),r=Yd(()=>t.component);return Yd(()=>{const e=r();switch(typeof e){case"function":return Jd(()=>e(n));case"string":const t=zf.has(e),r=Rd.context?Qf():rp(e,t);return Vf(r,n,t),r}})}var ap=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(ap||{});let sp={data:""},lp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cp=/\/\*[^]*?\*\/| +/g,up=/\n+/g,dp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?dp(a,i):i+"{"+dp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=dp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=dp.p?dp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},fp={},pp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+pp(e[n]);return t}return e};function hp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=pp(e),a=fp[i]||(fp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!fp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=lp.exec(e.replace(cp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(up," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(up," ").trim();return r[0]})(e);fp[a]=dp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&fp.g?fp.g:null;return n&&(fp.g=fp[a]),l=fp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":dp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||sp),t.g,t.o,t.k);var r}hp.bind({g:1});let gp=hp.bind({k:1});const mp=rf();function yp(e){return Ef(mp.Provider,{value:e.theme,get children(){return e.children}})}function bp(){return of(mp)}function vp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Af(r,{theme:of(mp)}),i=Af(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,hp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Rf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Vf(u,l)):u=ip(Af({component:c},l)),u};return r.class=e=>Jd(()=>hp.apply({target:t.target,p:e,g:t.g},n)),r}}const wp=new Proxy(vp,{get:(e,t)=>e(t)});function xp(){const e=vp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Cp="tc-root",kp="tc-disable-scroll",Sp="tc-using-mouse",Ep=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(Sp)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(Sp)});return Ef(xp`
|
|
1
|
+
var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,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,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(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 i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function P(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,R=A.port2;A.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){y(P,0)};function O(t,n){S=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(){m=!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,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return R((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+A(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=R(i=n[g],r,o,s=h+A(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=R(i=i.value,r,o,s=h+A(i,g++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(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,o,i,a);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 d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),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 L="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)},j={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=j,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,L)}catch(i){L(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},P={};function A(){if(k)return P;k=1;var e=C();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},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.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:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="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:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(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)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,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})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(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)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},P.useFormStatus=function(){return i.H.useHostTransitionStatus()},P.version="19.2.0",P}function R(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=A(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=R();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 o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(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 a(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(i(e)!==e)throw Error(r(188))}function c(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=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function U(e){return{current:e}}function F(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=U(null),K=U(null),G=U(null),Q=U(null);function Y(e,t){switch(B(G,t),B(K,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(V),B(V,e)}function Z(){F(V),F(K),F(G)}function X(e){null!==e.memoizedState&&B(Q,e);var t=V.current,n=wd(t,e.type);t!==n&&(B(K,e),B(V,n))}function J(e){K.current===e&&(F(V),F(K)),Q.current===e&&(F(Q),pf._currentValue=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!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(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Pe(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 Ae(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Pe(r):0!==(a&=s)?o=Pe(a):n||0!==(n=s&~e)&&(o=Pe(n)):0!==(s=r&~i)?o=Pe(s):0!==a?o=Pe(a):n||0!==(n=r&~e)&&(o=Pe(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(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 Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Af(e.type)}function Ue(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Fe=Math.random().toString(36).slice(2),Be="__reactFiber$"+Fe,qe="__reactProps$"+Fe,He="__reactContainer$"+Fe,Ve="__reactEvents$"+Fe,Ke="__reactListeners$"+Fe,Ge="__reactHandles$"+Fe,Qe="__reactResources$"+Fe,Ye="__reactMarker$"+Fe;function Ze(e){delete e[Be],delete e[qe],delete e[Ve],delete e[Ke],delete e[Ge]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=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]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))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)}var o}function dt(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 ft(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 pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.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 mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(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 Tt=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 Pt(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||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function At(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Pt(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Rt(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 Ot=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"]]),Mt=/^[\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 Lt(e){return Mt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(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="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[qe]||null;if(null===o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),qt=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(ep){qt=!1}var Vt=null,Kt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(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 Zt(){return!0}function Xt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Xt,this.isPropagationStopped=Xt,this}return u(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=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),sn=Jt(an),ln=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,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!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(ln),un=Jt(u({},ln,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),fn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{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})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,Pn=null;Bt&&"documentMode"in document&&(Pn=document.documentMode);var An=Bt&&"TextEvent"in window&&!Pn,Rn=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),On=String.fromCharCode(32),Mn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function Un(e){Zu(e,0)}function Fn(e){if(mt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var qn=!1;if(Bt){var Hn;if(Bt){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Hn=Vn}else Hn=!1;qn=Hn&&(!document.documentMode||9<document.documentMode)}function Gn(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Xn(e,t){if("click"===e)return Fn(t)}function Jn(e,t){if("input"===e||"change"===e)return Fn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(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 o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(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=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((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(r){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(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 sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="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 Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Pr="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)},Ar=[],Rr=0,Or=0;function Mr(){for(var e=Rr,t=Or=Rr=0;t<e;){var n=Ar[t];Ar[t++]=null;var r=Ar[t];Ar[t++]=null;var o=Ar[t];Ar[t++]=null;var i=Ar[t];if(Ar[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Nr(n,o,i)}}function Lr(e,t,n,r){Ar[Rr++]=e,Ar[Rr++]=t,Ar[Rr++]=n,Ar[Rr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Lr(e,t,n,r),$r(e)}function Ir(e,t){return Lr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(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 zr(e,t,n,r){return new Wr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=zr(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 Br(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 qr(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ur(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,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=zr(31,n,t,i)).elementType=P,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=jt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Mc?Mc=e:Mc.push.apply(Mc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=U(null),_o=null,To=null;function Po(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ao(e){e._currentValue=Eo.current,F(Eo)}function Ro(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 Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ro(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ro(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Mo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function Lo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&jo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?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()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Uo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=U(null);function Zo(){var e=Yo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){B(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Uo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(jt,jt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(jt,jt);else{if(null!==(e=mc)&&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 ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw si=t,ei;throw t}}var si=null;function li(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(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 o(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 i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function a(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=Vr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=qr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return pi(n=qr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case T:return p(e,t=ai(t),n)}if(I(t)||M(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||M(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(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),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(M(u)){if("function"!=typeof(v=M(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(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 xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return Lr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ai(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ri=U(null),Oi=U(0);function Mi(e,t){B(Oi,e=Sc),B(Ri,t),Sc=e|t.baseLanes}function Li(){B(Oi,Sc),B(Ri,Ri.current)}function ji(){Sc=Oi.current,F(Ri),F(Oi)}var Ii=U(null),Ni=null;function $i(e){var t=e.alternate;B(Fi,1&Fi.current),B(Ii,e),null===Ni&&(null===t||null!==Ri.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Fi,Fi.current),B(Ii,Ii.current)}function Ui(e){F(Ii),Ni===e&&(Ni=null),F(Fi)}var Fi=U(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||jd(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 qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Lo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.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},Hi.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]=A;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Pa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=N.T,a={};N.T=a;try{var s=n(o,r),l=N.S;null!==l&&l(a,s),Aa(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Aa(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Aa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Oa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ma(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ma(t),t=t.next}while(t!==r)}e.action=null}function Ma(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function La(e,t){return t}function ja(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,La)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(a){if(a===ei)throw ni;throw a}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.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 za(){return da().memoizedState}function Ua(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(1|t,i,n,r))}function Ba(e,t){Ua(8390656,8,e,t)}function qa(e,t){Fa(2048,8,e,t)}function Ha(e){var t=da().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.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&gc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Ga(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 Qa(e,t,n){n=null!=n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&qi&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Hi.lanes|=e,_c|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ri.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=jr(e,t,n,r))&&(Yc(n,e,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Lr(e,t,o,0),null===mc&&Mr(),!1}catch(l){}if(null!==(n=jr(e,t,o,r)))return Yc(n,e,r),ms(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:qu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ua(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){Ua(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Hi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Hi,i=ua();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&bc||wa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ba(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(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&&Cs.enqueueReplaceState(t,t.state,null)}function Es(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 o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function As(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function Ms(e){return(e=xi(e)).tag=3,e}function Ls(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var js=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return jo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ur(i)||void 0!==i.defaultProps||null!==n.compare?((e=qr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=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(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Fs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Mi(t,i):Li(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Mi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),Li(),zi());return Ns(e,t,o,n),t.child}function Us(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,o){var i=Zo();return i=null===i?null:{parent:Uo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Li(),Wi(t),null!==e&&Mo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ui(t),t.memoizedState=null,e}function Hs(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 Vs(e,t,n,r,o){return jo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return jo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(jo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&Lo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Lo(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):Ns(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return Co(),t.flags|=256,Ns(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Jo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ac),e}function Js(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Fi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?$i(t):zi(),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return jd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(zi(),l=tl({mode:"hidden",children:l},a=t.mode),i=Hr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(null,i)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Us(null,i));else if($i(t),jd(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Mo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),js;Ld(l)||lu(),t=nl(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Fr(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Us(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Uo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(e.child,i)):($i(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=zr(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Fi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Fi,a),Ns(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(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(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Mo(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 sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Lo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Uo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Mo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Fi,Fi.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Uo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=j(e)||e,Error(r(306,t,""))}Ur(e)?(o=Es(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Vs(null,t,e,o,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,i=Es(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,wi(e,t),Ti(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Po(0,Uo,o),o!==a.cache&&Oo(t,[Uo],n,!0),_i(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,jo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Us(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Mo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),js;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Fr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return jo(t),o=Io(Uo),null===e?(null===(i=Zo())&&(i=mc,a=Fo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Uo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),_i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Po(0,Uo,o)):(o=a.cache,Po(0,Uo,o),o!==i.cache&&Oo(t,[Uo],n,!0))),Ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Me():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)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 hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ao(Uo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.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=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ui(t),t):(Ui(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Ui(t),t):(Ui(t),null)}return Ui(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Ao(t.type),hl(t),null;case 19:if(F(Fi),null===(o=t.memoizedState))return hl(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)pl(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Bi(e))){for(t.flags|=128,pl(o,!1),e=a.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Fi,1&Fi.current|2),ho&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Nc&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Bi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-o.renderingStartTime>Nc&&536870912!==n&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Fi.current,B(Fi,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ui(t),ji(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&F(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ao(Uo),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ao(Uo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ui(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ui(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Fi),null;case 4:return Z(),null;case 10:return Ao(t.type),null;case 22:case 23:return Ui(t),ji(),null!==e&&F(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ao(Uo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ao(Uo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Ui(t);break;case 13:Ui(t);break;case 19:F(Fi);break;case 10:Ao(t.type);break;case 22:case 23:Ui(t),ji(),null!==e&&F(Yo);break;case 24:Ao(Uo)}}function bl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Eu(t,t.return,s)}}function vl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){Eu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){Eu(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ai(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(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(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(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(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(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&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(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=jt));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Al(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&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ml=!1,Ll=!1,jl="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(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{Ai(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Fl(e,n);break;case 13:Yl(e,n),4&r&&Bl(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=Au.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ml,o=Ol;var i=Ml;Ol=r,(Ml=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ml=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(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,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ml||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ml||kl(n,t);var r=Dl,o=Wl;Pd(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ml||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Ad(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Ad(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ml||vl(4,n,t),zl(e,t,n);break;case 1:Ml||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ml=(r=Ml)||null!==n.memoizedState,zl(e,t,n),Ml=r;break;default:zl(e,t,n)}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){Eu(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Kf(e)}catch(n){Eu(t,t.return,n)}}function ql(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 jl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new jl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Pd(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Ul(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ll=!0);break;case 6:if(Hl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Eu(e,e.return,g)}}break;case 3:if(rf=null,i=Vl,Vl=Bd(t.containerInfo),Hl(t,e),Vl=i,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Eu(e,e.return,g)}Ll&&(Ll=!1,Ql(e));break;case 4:o=Vl,Vl=Bd(e.stateNode.containerInfo),Hl(t,e),Gl(e),Vl=o;break;case 12:default:Hl(t,e),Gl(e);break;case 31:case 19:Hl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 13:Hl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(jc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ml;if(Ol=u||i,Ml=d||c,Hl(t,e),Ml=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ml||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Rd(h,!0):Rd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}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&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Al(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Al(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Pl(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Pi(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Fl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),Cl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Jl(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&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Eu(t,t.return,l)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),bl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Jl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Jl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&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 o=Gd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Ud.get(o))&&tf(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(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 cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(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:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Uo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Pc=0,Ac=0,Rc=0,Oc=null,Mc=null,Lc=!1,jc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=0,zc=null,Uc=null,Fc=0,Bc=0,qc=null,Hc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==bc?bc&-bc:null!==N.T?qu():ze()}function Qc(){if(0===Ac)if(536870912&bc&&!ho)Ac=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Ac=e}return null!==(e=Ii.current)&&(e.flags|=32),Ac}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Ac,!1)),je(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Ac,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Re(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Mr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Mc,Mc=i,null!==a&&(null===Mc?Mc=a:Mc.push.apply(Mc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Ac,!xc);break e;case 2:Mc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=jc+300-ue())){if(eu(o,t,Ac,!xc),0!==Ae(o,0,!0))break e;Fc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jt});var h=(62914560&i)===i?jc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Fc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Jc(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(a){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 eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Fc=0,nu(),mc=e,yc=n=Fr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Re(e,t),kc=!1,Rc=Ac=Pc=Tc=_c=Ec=0,Mc=Oc=null,Lc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Mr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===js?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,As(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Ac,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Mr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Mo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Ls(i=Ms(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=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,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),Uc=t,zc=e,Fc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).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++)(i=e[n]).ref.impl=i.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!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Uc,n=Fc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Uc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Fc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Fc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Fc;if(Wc=0,Uc=zc=null,Fc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(je(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ms(2),2))&&(Ls(n,r,t,e),je(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-jc?!(2&gc)&&ru(e,0):Pc|=n,Rc===bc&&(Rc=0)),$u(e)}function Pu(e,t){0===t&&(t=Me()),null!==(e=Ir(e,t))&&(je(e,t),$u(e))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Ou=null,Mu=null,Lu=!1,ju=!1,Iu=!1,Nu=0;function $u(e){e!==Mu&&null===e.next&&(null===Mu?Ou=Mu=e:Mu=Mu.next=e),ju=!0,Lu||(Lu=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&ju){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Ae(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){ju=Lu=!1;var e=0;0!==Nu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Nu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=Uu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Mu=n)):(n=r,(0!==e||3&i)&&(ju=!0)),r=o}0!==Wc&&5!==Wc||Du(e),0!==Nu&&(Nu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Ae(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Fu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Fu(e,t){if(0!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Ae(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Uu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Fu.bind(null,e):null)}function Bu(e,t){if(Cu())return null;Zc(e,t,!0)}function qu(){if(0===Nu){var e=Vo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function Vu(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 Ku=0;Ku<_r.length;Ku++){var Gu=_r[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(br,"onAnimationEnd"),Tr(vr,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(xr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="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(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Af(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=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===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ut(function(){var r=a,o=Nt(n),s=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;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":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case br:case vr:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Ln(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=jn(n))&&(x.data=w))),(w=An?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&Ln(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||_t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&_t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":At(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){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 a&&("formAction"===n?("input"!==t&&fd(e,t,"name",i.name,i,null),fd(e,t,"formEncType",i.formEncType,i,null),fd(e,t,"formMethod",i.formMethod,i,null),fd(e,t,"formTarget",i.formTarget,i,null)):(fd(e,t,"encType",i.encType,i,null),fd(e,t,"method",i.method,i,null),fd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=jt);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Lt(""+o),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!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):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":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":At(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?_t(e,o):("number"==typeof o||"bigint"==typeof o)&&_t(e,""+o);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("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(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(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 wd(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 xd(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 Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Ad(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Rd(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 Od(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":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Md(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function jd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(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 Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(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 Wd(e,t,n){switch(t=bd(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 zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Ud=new Map,Fd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=$.d;$.d={f:function(){var e=qd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):qd.r(e)},D:function(e){qd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){qd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){qd.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Ud.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){qd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Ud.has(i)&&(e=u({rel:"modulepreload",href:e},t),Ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){qd.X(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){qd.S(e,t,n);var r=Hd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(i))&&tf(e,n);var l=a=r.createElement("link");nt(l),hd(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,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){qd.M(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Fd.has(o)||(Fd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var i,a,s,l,c=(c=G.current)?Bd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.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},Ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)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=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+vt(e)+'"]'}function Xd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",i),ef(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Qd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Ud.get(i))&&tf(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",o),t.state.loading|=4,ef(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Xd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Ud.get(a))&&nf(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),hd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,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=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=zr(3,null,null,t),e.current=i,i.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Mf=Wf(Mf,e,t,n,r,o),!0;case"mouseover":return Lf=Wf(Lf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jf.set(i,Wf(jf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Pe(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Pf(e=Nt(e))}var Tf=null;function Pf(e){if(Tf=null,null!==(e=Xe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(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 Af(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(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rf=!1,Of=null,Mf=null,Lf=null,jf=new Map,If=new Map,Nf=[],$f="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 Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Mf=null;break;case"mouseover":case"mouseout":Lf=null;break;case"pointerover":case"pointerout":jf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(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 Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_f(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Ff(e,t,n){Uf(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Of&&Uf(Of)&&(Of=null),null!==Mf&&Uf(Mf)&&(Mf=null),null!==Lf&&Uf(Lf)&&(Lf=null),jf.forEach(Ff),If.forEach(Ff)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(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],o=t[e+2];if("function"!=typeof r){if(null===Pf(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Mf&&qf(Mf,e),null!==Lf&&qf(Lf,e),jf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Pf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=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,o=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!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=Ps;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=gf(e,1,!1,null,0,n,i,null,a,s,l,Gf),e[He]=t.current,td(e),new Qf(t)},p.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=_s,l=Ts,c=Ps,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,je(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var M=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),L=C();const j=r(L),I=t({__proto__:null,default:j},[L]);function N(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},U={};function F(){if(D)return U;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return U.ContextConsumer=i,U.ContextProvider=a,U.Element=e,U.ForwardRef=s,U.Fragment=n,U.Lazy=d,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=l,U.SuspenseList=c,U.isContextConsumer=function(e){return h(e)===i},U.isContextProvider=function(e){return h(e)===a},U.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},U.isForwardRef=function(e){return h(e)===s},U.isFragment=function(e){return h(e)===n},U.isLazy=function(e){return h(e)===d},U.isMemo=function(e){return h(e)===u},U.isPortal=function(e){return h(e)===t},U.isProfiler=function(e){return h(e)===o},U.isStrictMode=function(e){return h(e)===r},U.isSuspense=function(e){return h(e)===l},U.isSuspenseList=function(e){return h(e)===c},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},U.typeOf=h,U}function B(){return W||(W=1,z.exports=F()),z.exports}var q=B();function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function V(e){if(L.isValidElement(e)||q.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V(e[n])}),t}function K(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{L.isValidElement(t[o])||q.isValidElementType(t[o])?r[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?r[o]=K(e[o],t[o],n):n.clone?r[o]=H(t[o])?V(t[o]):t[o]:r[o]=t[o]}),r}function G(e,t){return t?K(e,t,{clone:!1}):e}function Q(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Y={xs:0,sm:600,md:900,lg:1200,xl:1536},Z={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Y[e]}px)`},X={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Y[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function J(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Z;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Z;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:X,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Y).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function ee(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function te(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ne({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function re(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oe(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:re(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=re(e.theme,r)||{};return J(e,i,e=>{let r=oe(a,o,e);return e===r&&"string"==typeof e&&(r=oe(a,o,`${t}${"default"===e?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Ae=xe("borderRightColor"),Re=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Me=xe("outline",we),Le=xe("outlineColor"),je=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fe(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:he(t,e)});return J(e,e.borderRadius,n)}return null};je.propTypes={},je.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Pe,Ae,Re,Oe,je,Me,Le);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),Ue=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Y[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:We(t)}};return J(e,e.maxWidth,t)}return null};Ue.filterProps=["maxWidth"];const Fe=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,Ue,Fe,Be,qe,He,ie({prop:"boxSizing"}));const Ve={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:je},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Ue},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Rt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,jt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(vt=Et())&&vt<33;)St();return Pt(e)>2||Pt(vt)>3?"":" "}function Lt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function jt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&jt(vt);break;case 40:41===e&&jt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!Pt(Et());)St();return Tt(e,bt)}function $t(e){return Rt(Dt("",null,null,null,[""],e=At(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Mt(h);break;case 92:k+=Lt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ut(k+";",r,n,d-1):Ut(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function Ut(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ft(e,t){for(var n="",r=pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+Ft(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ht=function(e,t,n){for(var r=0,o=0;r=o,o=Et(),38===r&&12===o&&(t[n]=1),!Pt(o);)St();return Tt(e,bt)},Vt=function(e,t){return Rt(function(e,t){var n=-1,r=44;do{switch(Pt(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(At(e),t))},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(n))&&!r){Kt.set(e,!0);for(var o=[],i=Vt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yt(e,t){switch(function(e,t){return 45^ut(e,0)?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Xe+e+Ze+e+e;case 6828:case 4268:return Je+e+Ze+e+e;case 6165:return Je+e+Ze+"flex-"+e+e;case 5187:return Je+e+lt(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Je+e+Ze+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return Je+e+Ze+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Ze+lt(e,"shrink","negative")+e;case 5292:return Je+e+Ze+lt(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+lt(e,"-grow","")+Je+e+Ze+lt(e,"grow","positive")+e;case 4554:return Je+lt(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ut(e,t+1)){case 109:if(45!==ut(e,t+4))break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Xe+(108==ut(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch")?Yt(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ut(e,t+1))break;case 6444:switch(ut(e,ft(e)-3-(~ct(e,"!important")&&10))){case 107:return lt(e,":",":"+Je)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ut(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Ze+e+e}return e}var Zt,Xt,Jt,en,tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Yt(e.value,e.length);break;case rt:return Ft([Ct(e,{value:lt(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ft([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ft([Ct(e,{props:[lt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,":-moz-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,Ze+"input-$1")]})],r)}return""})}}],nn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||tn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Bt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Gt,Qt].concat(i,f),u=pt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ft($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||L.useLayoutEffect,Sn=L.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return L.forwardRef(function(t,n){var r=L.useContext(Sn);return e(t,r,n)})},Pn=L.createContext({}),An={}.hasOwnProperty,Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Mn=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,L.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)An.call(e,c)&&"css"!==c&&c!==Rn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Ln=function(e,t){var n=arguments;if(null==t||!An.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mn,o[1]=function(e,t){var n={};for(var r in t)An.call(t,r)&&(n[r]=t[r]);return n[Rn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};En=Ln||(Ln={}),_n||(_n=En.JSX||(En.JSX={}));var jn=Tn(function(e,t){var n=wn([e.styles],void 0,L.useContext(Pn)),r=L.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},Un=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Fn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Bn=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Un(t,n,i),l=s||zn(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=Tn(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Pn)}"string"==typeof e.className?i=sn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=wn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?zn(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),L.createElement(L.Fragment,null,L.createElement(Fn,{cache:t,serialized:h,isStringTag:"string"==typeof r}),L.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Qe({},n,r,{shouldForwardProp:Un(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function qn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return d.jsx(jn,{styles:r})}function Hn(e,t){return Bn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Bn[e]=Bn(e)});const Vn=[];function Kn(e){return Vn[0]=e,wn(Vn)}function Gn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Qn={borderRadius:4};function Yn(e=8,t=pe({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Zn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=K({breakpoints:Gn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yn(o),shape:{...Qn,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Zn,s=t.reduce((e,t)=>K(e,t),s),s.unstable_sxConfig={...Ve,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Ke({sx:e,theme:this})},s}function Jn(e=null){const t=L.useContext(Pn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function Er(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function _r(e){if(e.type)return e;if("#"===e.charAt(0))return _r(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(N(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(N(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Tr=(e,t)=>{try{return(e=>{const t=_r(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ar(e){e=_r(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Pr({type:s,values:l})}function Rr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Ar(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function Mr(e,t,n){try{return Or(e,t)}catch(r){return e}}function Lr(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function jr(e,t,n){try{return Lr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Rr(e)>.5?Lr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=L.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:L.useContext(Dr)}})}let zr=0;const Ur={...I}.useId;function Fr(e){if(void 0!==Ur){const t=Ur();return e??t}return function(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{null==t&&(zr+=1,n(`mui-${zr}`))},[t]),r}(e)}const Br={theme:void 0};function qr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hr=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Vr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Hr(i,e,`var(${r})`,s),Hr(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Kr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const Gr=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter(e=>i.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},i)}})}else"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t);var o,i};function Qr(e){return`--Grid-${e}Spacing`}function Yr(e){return`--Grid-parent-${e}Spacing`}const Zr="--Grid-columns",Xr="--Grid-parent-columns",Jr=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Xr}) - (var(${Xr}) - ${t}) * (var(${Yr("column")}) / var(${Xr})))`}),e(n,r)}),n},eo=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Xr}) + var(${Yr("column")}) * ${t} / var(${Xr}))`}),e(n,r)}),n},to=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zr]:12};return Gr(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[Zr]:r,"> *":{[Xr]:r}})}),n},no=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("row")]:o,"> *":{[Yr("row")]:o}})}),n},ro=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("column")]:o,"> *":{[Yr("column")]:o}})}),n},oo=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},io=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Qr("row")}) var(${Qr("column")})`}}),ao=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},so=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},lo=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];const co=Xn(),uo=xr("div",{name:"MuiGrid",slot:"Root"});function fo(e){return kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=L.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e),[])}const yo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...J({theme:t},ne({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=pe(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=ne({values:e.direction,base:o}),a=ne({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=K(n,J({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:he(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:he(r,t)}};var o}))}return n=function(e,...t){const n=ee(e),r=[n,...t].reduce((e,t)=>K(e,t),{});return te(Object.keys(n),r)}(t.breakpoints,n),n};const bo={black:"#000",white:"#fff"},vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wo="#f3e5f5",xo="#ce93d8",Co="#ba68c8",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Po="#f44336",Ao="#d32f2f",Ro="#c62828",Oo="#ffb74d",Mo="#ffa726",Lo="#ff9800",jo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#1976d2",zo="#1565c0",Uo="#4fc3f7",Fo="#29b6f6",Bo="#03a9f4",qo="#0288d1",Ho="#01579b",Vo="#81c784",Ko="#66bb6a",Go="#4caf50",Qo="#388e3c",Yo="#2e7d32",Zo="#1b5e20";function Xo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bo.white,default:bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jo=Xo();function ei(){return{text:{primary:bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ti=ei();function ni(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ir(e.main,o):"dark"===t&&(e.dark=Lr(e.main,i)))}function ri(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function oi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:_o,dark:Ao}:{main:Ao,light:To,dark:Ro}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Fo,light:Uo,dark:qo}:{main:qo,light:Bo,dark:Ho}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ko,light:Vo,dark:Qo}:{main:Yo,light:Go,dark:Zo}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Mo,light:Oo,dark:jo}:{main:"#ed6c02",light:Lo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:Lr(t,n)}})}function xi(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(N(20));const d=oi({...i,colorSpace:c}),f=Xn(e);let p=K(f,{mixins:(h=f.breakpoints,g=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:ui.slice(),typography:li(d,s),transitions:gi(a),zIndex:{...mi}});var h,g;return p=K(p,u),p=t.reduce((e,t)=>K(e,t),p),p.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ke({sx:e,theme:this})},p.toRuntimeSource=bi,wi(p),p}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return"string"==typeof e&&e.startsWith("hsl")?Ar(e):e}function Ai(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Pi(e[t])))}const Ri=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Mi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Mr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===jr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(jr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(jr,t.info.light,.6)),Ti(t.Alert,"successColor",r(jr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(jr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(jr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Mr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(jr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(jr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(jr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(jr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(jr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(jr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(jr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(jr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(jr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(jr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(jr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(jr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(jr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(jr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(jr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(jr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(jr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(jr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(jr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(jr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(jr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(jr,t.warning.main,.55)),Ti(t.TableCell,"border",r(jr,r(Mr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}Ai(t.background,"default"),Ai(t.background,"paper"),Ai(t.common,"background"),Ai(t.common,"onBackground"),Ai(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Pi(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Pi(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Pi(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Pi(n.contrastText))),"text"===e&&(Ai(t[e],"primary"),Ai(t[e],"secondary")),"action"===e&&(n.active&&Ai(t[e],"active"),n.selected&&Ai(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function Li(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function ji(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return xi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=xi({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Li(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Li(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Mi({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=ji(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Ui(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Fi(e){return Wr(e)}const Bi="function"==typeof Ui({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Ui(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Fi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(L.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.7",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Pa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Aa(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Ra;const Ma=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),La=la("HTMLFormElement"),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Ra.postMessage),Wa?setImmediate:za?(Ua=`axios@${Math.random()}`,Fa=[],Ra.addEventListener("message",({source:e,data:t})=>{e===Ra&&t===Ua&&Fa.length&&Fa.shift()()},!1),e=>{Fa.push(e),Ra.postMessage(Ua,"*")}):e=>setTimeout(e));var Wa,za,Ua,Fa;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ra):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:Ma,isFileList:Ca,forEach:Pa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Aa(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Pa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Pa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:La,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Aa,global:Ra,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Pa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),Ps=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,As=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ls=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&Ps(t.url))){const e=o&&i&&As.read(i);e&&a.set(o,e)}return t},js="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ls(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Us,TextEncoder:Fs}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Us),l=o&&("function"==typeof Fs?(e=>t=>e.encode(t))(new Fs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ls(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:js,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ms(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Rs((e=Ms(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ms(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ms(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ms(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ms,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Pl="ps_play_button_clicked",Al="ps_purchase_completed",Rl="ps_check_in_completed",Ol="event_purchaseCompleted",Ml="event_checkInCompleted";var Ll=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ll||{}),jl=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(jl||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e[e.croco=4]="croco",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Fl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"},1060:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"}},ql={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Hl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Vl,Kl={exports:{}};var Gl,Ql,Yl=(Vl||(Vl=1,Gl=Kl,Ql=Kl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",P="Huawei",A="LG",R="Microsoft",O="Motorola",M="Nvidia",L="OnePlus",j="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="Xiaomi",z="Zebra",U="Facebook",F="Chromium OS",B="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Q=function(e,r){for(var i,a,s,l,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)u=c[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):t:this[l[0]]=u?l[1].call(this,u,l[2]):t:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},Y=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(V(n[r][i],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,P],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,P],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,A],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[u,A],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,L],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[u,v],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[u,v],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[u,C],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[u,x],[c,h]],[/(nexus 9)/i],[s,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,K],s,[c,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[u,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[u,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[u,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[u,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[u,"Nothing"],[c,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[u,"Archos"],[c,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,s,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,s,[c,g]],[/(surface duo)/i],[s,[u,R],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,A],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,M],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,R],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,L],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,A],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,_],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,U],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,b]],[/(aeobc)\b/i],[s,[u,v],[c,b]],[/(homepod).+mac os/i],[s,[u,w],[c,b]],[/windows iot/i],[[c,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,Y,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,Y,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,B],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},J=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof J))return new J(p,m).getResult();var y=typeof e!==r&&e.navigator?e.navigator:t,b=p||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,m):X,x=y&&y.userAgent==b;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,Q.call(r,b,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,x&&y&&y.brave&&typeof y.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,Q.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[s]=t,e[c]=t,Q.call(e,b,w.device),x&&!e[c]&&v&&v.mobile&&(e[c]=h),x&&"Macintosh"==e[s]&&y&&typeof y.standalone!==r&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[s]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.os),x&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===i&&e.length>500?G(e,500):e,this},this.setUA(b),this};J.VERSION="1.0.41",J.BROWSER=H([l,d,a]),J.CPU=H([f]),J.DEVICE=H([s,u,c,p,h,m,g,y,b]),J.ENGINE=J.OS=H([l,d]),Gl.exports&&(Ql=Gl.exports=J),Ql.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Kl.exports)),Kl.exports);const Zl=r(Yl),Xl=e=>`${ta.RES_URL}${e}`,Jl=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ec=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},tc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},nc=()=>(window.Telegram.WebApp.platform||"").includes("android"),rc=()=>{const e=(new Yl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},oc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),ic=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class ac{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.get(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.post(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return ac.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return ac.post("pluto/order",s)}static getItem(e){const t={k:e};return ac.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return ac.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return ac.post("pluto/finishorder",t)}static unfinishRecord(){return ac.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return ac.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return ac.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return ac.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return ac.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return ac.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return ac.post("pluto/signdata",s)}static getNfts(){return ac.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return ac.post("pluto/setuserid",n)}static cocGetInfo(){return ac.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return ac.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return ac.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return ac.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return ac.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return ac.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return ac.post("plutococ/cancelwithdraw",t)}static spGetInfo(e){const t={sid:e};return ac.post("plutosp/info",t)}static spWithdraw(e,t,n,r,o){const i={sid:e,chainnet:"TON",wallet:t,currencycode:n,amount:r,memo:o};return ac.post("plutosp/withdraw",i)}static spClaim(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/claim",n)}static spGetWithdrawDetail(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/withdrawdetail",n)}static spGetRecords(e,t,n,r){const o={sid:e,optype:t,page:n,pagesize:r};return ac.post("plutosp/record",o)}static spQueryConsume(e,t){const n={sid:e,time:t};return ac.post("plutosp/queryconsume",n)}static spCancelWithdraw(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/cancelwithdraw",n)}}const sc=new class{constructor(){this._gameServerId=1}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameServerId(){return this._gameServerId}set gameServerId(e){this._gameServerId=e}};var lc,cc={exports:{}},uc=cc.exports;var dc=(lc||(lc=1,function(e){var t,n;t=uc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(cc)),cc.exports);const fc=r(dc);function pc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hc={exports:{}};const gc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mc;var yc=(mc||(mc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,P=f,A=p,R=h,O=g,M=m,L=y,j=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(L^=(o=(A^=(o=(E^=(o=x+L|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+A|0)<<18|o>>>14,_^=(o=(C^=(o=(j^=(o=(R^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+R|0)<<13|o>>>19)+j|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(M^=(o=(P^=(o=(S^=(o=N+M|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(P^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,O^=(o=(R^=(o=(A^=(o=(M^=(o=O+R|0)<<7|o>>>25)+O|0)<<9|o>>>23)+M|0)<<13|o>>>19)+A|0)<<18|o>>>14,N^=(o=(I^=(o=(j^=(o=(L^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+L|0)<<13|o>>>19)+j|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,P=P+f|0,A=A+p|0,R=R+h|0,O=O+g|0,M=M+m|0,L=L+y|0,j=j+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=P>>>0&255,e[29]=P>>>8&255,e[30]=P>>>16&255,e[31]=P>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=R>>>0&255,e[37]=R>>>8&255,e[38]=R>>>16&255,e[39]=R>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function P(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function A(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function L(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),m(n,0,r,0)}function j(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,P=0,A=0,R=0,O=0,M=0,L=0,j=0,I=0,N=n[0],$=n[1],D=n[2],W=n[3],z=n[4],U=n[5],F=n[6],B=n[7],q=n[8],H=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Y=n[14],Z=n[15];i+=(r=t[0])*N,a+=r*$,s+=r*D,l+=r*W,c+=r*z,u+=r*U,d+=r*F,f+=r*B,p+=r*q,h+=r*H,g+=r*V,m+=r*K,y+=r*G,b+=r*Q,v+=r*Y,w+=r*Z,a+=(r=t[1])*N,s+=r*$,l+=r*D,c+=r*W,u+=r*z,d+=r*U,f+=r*F,p+=r*B,h+=r*q,g+=r*H,m+=r*V,y+=r*K,b+=r*G,v+=r*Q,w+=r*Y,x+=r*Z,s+=(r=t[2])*N,l+=r*$,c+=r*D,u+=r*W,d+=r*z,f+=r*U,p+=r*F,h+=r*B,g+=r*q,m+=r*H,y+=r*V,b+=r*K,v+=r*G,w+=r*Q,x+=r*Y,C+=r*Z,l+=(r=t[3])*N,c+=r*$,u+=r*D,d+=r*W,f+=r*z,p+=r*U,h+=r*F,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,p+=r*z,h+=r*U,g+=r*F,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,h+=r*z,g+=r*U,m+=r*F,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*U,y+=r*F,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*U,b+=r*F,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*U,v+=r*F,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*U,w+=r*F,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,P+=r*Y,A+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*U,x+=r*F,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,P+=r*Q,A+=r*Y,R+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*U,C+=r*F,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,P+=r*G,A+=r*Q,R+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*U,k+=r*F,S+=r*B,E+=r*q,_+=r*H,T+=r*V,P+=r*K,A+=r*G,R+=r*Q,O+=r*Y,M+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*U,S+=r*F,E+=r*B,_+=r*q,T+=r*H,P+=r*V,A+=r*K,R+=r*G,O+=r*Q,M+=r*Y,L+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*U,E+=r*F,_+=r*B,T+=r*q,P+=r*H,A+=r*V,R+=r*K,O+=r*G,M+=r*Q,L+=r*Y,j+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*U),u+=38*(_+=r*F),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(A+=r*H),h+=38*(R+=r*V),g+=38*(O+=r*K),m+=38*(M+=r*G),y+=38*(L+=r*Q),b+=38*(j+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),p=t(),h=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),M(e,m),0}function B(e,t){return F(e,t,o)}function q(e,t){return n(t,32),B(e,t)}function H(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,v)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],P=this.h[5],A=this.h[6],R=this.h[7],O=this.h[8],M=this.h[9],L=this.r[0],j=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],U=this.r[8],F=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*L,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*W))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*D),f+=(A+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(R+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(M+=u>>>5|C)*(5*j))>>>13,p+=k*j,p+=S*L,p+=E*(5*F),p+=_*(5*U),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*W),p+=A*(5*D),p+=R*(5*$),p+=O*(5*N),d+=(p+=M*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*j,h+=E*L,h+=_*(5*F),d=(h+=T*(5*U))>>>13,h&=8191,h+=P*(5*z),h+=A*(5*W),h+=R*(5*D),h+=O*(5*$),g=d+=(h+=M*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*j,g+=_*L,d=(g+=T*(5*F))>>>13,g&=8191,g+=P*(5*U),g+=A*(5*z),g+=R*(5*W),g+=O*(5*D),m=d+=(g+=M*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*j,d=(m+=T*L)>>>13,m&=8191,m+=P*(5*F),m+=A*(5*U),m+=R*(5*z),m+=O*(5*W),y=d+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*j)>>>13,y&=8191,y+=P*L,y+=A*(5*F),y+=R*(5*U),y+=O*(5*z),b=d+=(y+=M*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=P*j,b+=A*L,b+=R*(5*F),b+=O*(5*U),v=d+=(b+=M*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=P*I,v+=A*j,v+=R*L,v+=O*(5*F),w=d+=(v+=M*(5*U))>>>13,w+=k*U,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=P*N,w+=A*I,w+=R*j,w+=O*L,x=d+=(w+=M*(5*F))>>>13,x+=k*F,x+=S*U,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=P*$,x+=A*N,x+=R*I,x+=O*j,k=f=8191&(d=(d=((d+=(x+=M*L)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,P=y&=8191,A=b&=8191,R=v&=8191,O=w&=8191,M=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=P,this.h[6]=A,this.h[7]=R,this.h[8]=O,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=P,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,P,A,R=new Int32Array(16),O=new Int32Array(16),M=e[0],L=e[1],j=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=e[7],z=t[0],U=t[1],F=t[2],B=t[3],q=t[4],H=t[5],V=t[6],K=t[7],Q=0;r>=128;){for(C=0;C<16;C++)k=8*C+Q,R[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=M,i=L,a=j,s=I,l=N,c=$,u=D,f=z,p=U,h=F,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,P+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),A+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,P+=65535&(S=N&$^~N&D),A+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,P+=65535&(S=G[2*C]),A+=S>>>16,S=R[C%16],T+=(E=O[C%16])>>>16,P+=65535&S,A+=S>>>16,P+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,P=65535&(S=w=65535&P|(A+=P>>>16)<<16),A=S>>>16,_+=65535&(E=(z>>>28|M<<4)^(M>>>2|z<<30)^(M>>>7|z<<25)),T+=E>>>16,P+=65535&(S=(M>>>28|z<<4)^(z>>>2|M<<30)^(z>>>7|M<<25)),A+=S>>>16,T+=(E=z&U^z&F^U&F)>>>16,P+=65535&(S=M&L^M&j^L&j),A+=S>>>16,d=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,P=65535&(S=s),A=S>>>16,T+=(E=x)>>>16,P+=65535&(S=w),A+=S>>>16,L=o,j=i,I=a,N=s=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,$=l,D=c,W=u,M=d,U=f,F=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=R[k],_=65535&(E=O[k]),T=E>>>16,P=65535&S,A=S>>>16,S=R[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,P+=65535&S,A+=S>>>16,w=R[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,P+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),A+=S>>>16,w=R[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,R[k]=65535&P|A<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,P=65535&(S=M),A=S>>>16,S=e[0],T+=(E=t[0])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&P|A<<16,t[0]=z=65535&_|T<<16,_=65535&(E=U),T=E>>>16,P=65535&(S=L),A=S>>>16,S=e[1],T+=(E=t[1])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=L=65535&P|A<<16,t[1]=U=65535&_|T<<16,_=65535&(E=F),T=E>>>16,P=65535&(S=j),A=S>>>16,S=e[2],T+=(E=t[2])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=j=65535&P|A<<16,t[2]=F=65535&_|T<<16,_=65535&(E=B),T=E>>>16,P=65535&(S=I),A=S>>>16,S=e[3],T+=(E=t[3])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&P|A<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,P=65535&(S=N),A=S>>>16,S=e[4],T+=(E=t[4])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&P|A<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,P=65535&(S=$),A=S>>>16,S=e[5],T+=(E=t[5])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&P|A<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,P=65535&(S=D),A=S>>>16,S=e[6],T+=(E=t[6])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&P|A<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,S=e[7],T+=(E=t[7])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&P|A<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),M(e,o),e[31]^=j(r)<<7}function ee(e,t,n){var r,o;for(A(e[0],i),A(e[1],a),A(e[2],a),A(e[3],i),o=255;o>=0;--o)X(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),X(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];A(r[0],u),A(r[1],d),A(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return A(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),U(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),L(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),L(o,s)?-1:(j(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:F,crypto_scalarmult_base:B,crypto_box_beforenm:H,crypto_box_afternm:V,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),V(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:Y,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:se,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:re,pack25519:M,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:U,add:Z,set25519:A,modL:oe,scalarmult:ee,scalarbase:te},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==P(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return B(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return H(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return B(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=se(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return se(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return ne(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===h(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},(le="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&le.getRandomValues?e.setPRNG(function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)le.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];ge(r)}):void 0!==pc&&(le=gc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(hc)),hc.exports);const bc=r(yc);var vc,wc,xc,Cc,kc,Sc,Ec,_c,Tc,Pc,Ac,Rc;(wc=vc||(vc={}))[wc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",wc[wc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",wc[wc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",wc[wc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",wc[wc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",wc[wc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",wc[wc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Sc[Sc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Sc[Sc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Pc=Tc||(Tc={}))[Pc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Pc[Pc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Pc[Pc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Rc=Ac||(Ac={})).MAINNET="-239",Rc.TESTNET="-3";const Oc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=fc.decodeUTF8(e)),function(e,t){const n=fc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),fc.decodeBase64(e)}(e,t);return{toString:()=>fc.encodeUTF8(n),toObject(){try{return JSON.parse(fc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Mc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Lc(e){if(e.length%2!=0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class jc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Mc(this.keyPair.publicKey)}createKeypair(){return bc.box.keyPair()}createKeypairFromString(e){return{publicKey:Lc(e.publicKey),secretKey:Lc(e.secretKey)}}createNonce(){return bc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,bc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=bc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:Mc(this.keyPair.publicKey),secretKey:Mc(this.keyPair.secretKey)}}}function Ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Nc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class $c extends Error{constructor(e,t){super(e,t),this.message=`${$c.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,$c.prototype)}get info(){return""}}$c.prefix="[TON_CONNECT_SDK_ERROR]";class Dc extends $c{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Dc.prototype)}}class Wc extends $c{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Wc.prototype)}}class zc extends $c{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Uc extends $c{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Fc extends $c{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Bc extends $c{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends $c{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends $c{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends $c{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends $c{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends $c{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends $c{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends $c{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends $c{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}const Jc={[vc.UNKNOWN_ERROR]:Xc,[vc.USER_REJECTS_ERROR]:Vc,[vc.BAD_REQUEST_ERROR]:Kc,[vc.UNKNOWN_APP_ERROR]:Gc,[vc.MANIFEST_NOT_FOUND_ERROR]:zc,[vc.MANIFEST_CONTENT_ERROR]:Wc};const eu=new class{parseError(e){let t=Xc;return e.code in Jc&&(t=Jc[e.code]||Xc),new t(e.message)}};class tu{isError(e){return"error"in e}}const nu={[kc.UNKNOWN_ERROR]:Xc,[kc.USER_REJECTS_ERROR]:Vc,[kc.BAD_REQUEST_ERROR]:Kc,[kc.UNKNOWN_APP_ERROR]:Gc};const ru=new class extends tu{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in nu&&(t=nu[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},ou={[Ec.UNKNOWN_ERROR]:Xc,[Ec.USER_REJECTS_ERROR]:Vc,[Ec.BAD_REQUEST_ERROR]:Kc,[Ec.UNKNOWN_APP_ERROR]:Gc};const iu=new class extends tu{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in ou&&(t=ou[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class au{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Nc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function su(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function lu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function cu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function uu(e,t){return Nc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function du(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function fu(e,t){var n,r;return Nc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=du(null==t?void 0:t.signal);if("function"!=typeof e)throw new $c("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new $c(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield uu(i))}}throw s})}function pu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function hu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class gu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Nc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=du(s),a.signal.aborted)throw new $c("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new $c("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Nc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Nc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield uu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new $c("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Nc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Nc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=du(null==t?void 0:t.signal);return new Promise((t,o)=>Nc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new $c("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new $c(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new $c("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Nc(this,0,void 0,function*(){var o;const i=du(r.signal).signal;if(i.aborted)return void n(new $c("Bridge connection aborted"));const a=new URL(su(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new $c("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Nc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new $c("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Nc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new au(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Nc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Nc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(su(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Oc.encode(e);yield fu(e=>Nc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new $c(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>hu(`Bridge pause failed, ${e}`))}unPause(){return Nc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Nc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>hu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Nc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new $c(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Nc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new $c("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),pu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new $c("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Nc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new $c(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function mu(e){return!("connectEvent"in e)}class yu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Nc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!mu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new jc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new jc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");if(!mu(e))throw new $c("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new $c("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Nc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!mu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class bu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new yu(e)}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getHttpConnection();return mu(n)?new bu(e,n.connectionSource):new bu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=du(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new jc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Nc(this,0,void 0,function*(){r.signal.aborted||(yield fu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(mu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new $c("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield fu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Nc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new $c("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),Lc(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Nc(this,0,void 0,function*(){return new Promise(t=>Nc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=du(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){pu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Nc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Nc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Nc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Oc.decode(e.message).toUint8Array(),Lc(e.from)));if(pu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void pu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void hu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(pu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Nc(this,0,void 0,function*(){throw new $c(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Nc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Nc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return lu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+cu(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Nc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new gu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>fu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function vu(e,t){return wu(e,[t])}function wu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let xu=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Cu(){if("undefined"!=typeof window)return window}function ku(){var e;const t=null===(e=Cu())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Su(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new $c("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return xu.getInstance()}class Eu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Eu.window;if(!Eu.isWindowContainsWallet(n,t))throw new Bc;this.connectionStorage=new yu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getInjectedConnection();return new Eu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Eu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Eu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Cu();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!vu(e,"tonconnect")||!vu(e.tonconnect,"walletInfo"))&&wu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Nc(this,0,void 0,function*(){try{pu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();pu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Nc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){pu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Nc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>pu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Nc(this,0,void 0,function*(){try{pu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);pu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){pu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{pu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Eu.window=Cu();class _u{constructor(){this.localStorage=Su()}getItem(e){return Nc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Nc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Nc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Tu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Pu(e){return Tu(e)&&e.embedded}function Au(e){return"bridgeUrl"in e}const Ru=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Ou{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Nc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Nc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Pu);return 1===e.length?e[0]:null})}fetchWalletsList(){return Nc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Qc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(hu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){hu(n),e=Ru}let t=[];try{t=Eu.getCurrentlyInjectedWallets()}catch(n){hu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Eu.isWalletInjected(e),t.embedded=Eu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function Mu(e,t){const n=e.includes("SendTransaction"),r=ju(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new qc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new qc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new qc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Lu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=ju(e,"SendTransaction");if(!t)return!1;if(!function(e,t){const n=void 0===t.minMessages||t.minMessages<=e.maxMessages,r=!t.extraCurrencyRequired||e.extraCurrencySupported;return!(!n||!r)}(t,n))return!1}if(r){const t=ju(e,"SignData");if(!t)return!1;if(!function(e,t){return t.types.every(t=>e.types.includes(t))}(t,r))return!1}return!0}function ju(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Iu(e){return{type:"response-version",version:e}}function Nu(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function $u(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Nu(e))}}function Du(e){return{type:"connection-started",custom_data:Nu(e)}}function Wu(e,t){return Object.assign({type:"connection-completed",is_success:!0},$u(e,t))}function zu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Nu(e)}}function Uu(e){return{type:"connection-restoring-started",custom_data:Nu(e)}}function Fu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},$u(e,t))}function Bu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Nu(e)}}function qu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Hu(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},$u(e,t)),qu(t,n))}function Vu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},$u(e,t)),qu(t,n))}function Ku(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},$u(e,t)),qu(t,n))}function Gu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},$u(e,t))}function Qu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},$u(e,t))}function Yu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},$u(e,t))}function Zu(e,t,n){return Object.assign({type:"disconnection",scope:n},$u(e,t))}class Xu{constructor(){this.window=Cu()}dispatchEvent(e,t){var n;return Nc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Nc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class Ju{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new Xu,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Nc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Nc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Nc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Iu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Nc(this,0,void 0,function*(){return new Promise((e,t)=>Nc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class ed{constructor(e){if(this.walletsList=new Ou,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||ku(),storage:(null==e?void 0:e.storage)||new _u},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Ou({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new Ju({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new Dc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new yu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Uc;const i=du(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new $c("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield bu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Eu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return hu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=fu(t=>Nc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Nc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=du(null==n?void 0:n.signal);if(r.signal.aborted)throw new $c("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Mu(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=Ic(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(ru.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=Ic(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(ru.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),ru.parseAndThrowError(d);const f=ru.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Nc(this,0,void 0,function*(){const n=du(null==t?void 0:t.signal);if(n.signal.aborted)throw new $c("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new qc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new qc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(iu.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),iu.parseAndThrowError(i);const a=iu.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Nc(this,0,void 0,function*(){if(!this.connected)throw new Fc;const n=du(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new $c("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){hu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Eu(this.dappSettings.storage,e.jsBridgeKey):new bu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=eu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new $c("ton_addr connection item was not found");if(!Lu(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Hc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new $c("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:xc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),pu(e),e instanceof zc||e instanceof Wc)throw hu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new Fc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}ed.walletsList=new Ou,ed.isWalletInjected=e=>Eu.isWalletInjected(e),ed.isInsideWalletBrowser=e=>Eu.isInsideWalletBrowser(e);function td(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Yc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Yc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Yc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Yc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:rd(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Oc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const nd={};for(let lS=0;lS<=255;lS++){let e=lS.toString(16);e.length<2&&(e="0"+e),nd[e]=lS}function rd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Zc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!nd.hasOwnProperty(n))throw new Zc("Invalid hex character: "+n);r[o]=nd[n]}return r}var od,id;const ad=r(function(){if(id)return od;id=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},od=s}());var sd,ld={exports:{}};var cd=(sd||(sd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ld)),ld.exports);const ud=r(cd);var dd,fd,pd,hd,gd,md,yd,bd,vd=Object.defineProperty,wd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Ed=(e,t,n)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t)=>{for(var n in t||(t={}))kd.call(t,n)&&Ed(e,n,t[n]);if(Cd)for(var n of Cd(t))Sd.call(t,n)&&Ed(e,n,t[n]);return e},Td=(e,t)=>wd(e,xd(t)),Pd=(e,t,n)=>(Ed(e,"symbol"!=typeof t?t+"":t,n),n),Ad=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Rd={};const Od=Symbol("solid-proxy"),Md=Symbol("solid-track"),Ld={equals:(e,t)=>e===t};let jd=pf;const Id=1,Nd=2,$d={owned:null,cleanups:null,context:null,owner:null},Dd={};var Wd=null;let zd=null,Ud=null,Fd=null,Bd=null,qd=0;function Hd(e,t){const n=Ud,r=Wd,o=0===e.length,i=o?$d:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>Jd(()=>yf(i)));Wd=i,Ud=null;try{return ff(a,!0)}finally{Ud=n,Wd=r}}function Vd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Ld,t):Ld).equals||void 0};return[sf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),lf(n,e))]}function Kd(e,t,n){cf(uf(e,t,!0,Id))}function Gd(e,t,n){cf(uf(e,t,!1,Id))}function Qd(e,t,n){jd=hf;const r=uf(e,t,!1,Id);r.user=!0,Bd?Bd.push(r):cf(r)}function Yd(e,t,n){n=n?Object.assign({},Ld,n):Ld;const r=uf(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,cf(r),sf.bind(r)}function Zd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=Dd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Yd(r);const f=new Set,[p,h]=(i.storage||Vd)(i.initialValue),[g,m]=Vd(void 0),[y,b]=Vd(void 0,{equals:!1}),[v,w]=Vd(u?"ready":"unresolved");if(Rd.context){let e;l=`${Rd.context.id}${Rd.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Rd.load&&(e=Rd.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=Dd,function(e,t){ff(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Ud&&Ud.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,Jd(p));const n=s!==Dd?s:Jd(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),ff(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,bf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Kd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function Xd(e){return ff(e,!1)}function Jd(e){if(null===Ud)return e();const t=Ud;Ud=null;try{return e()}finally{Ud=t}}function ef(e){Qd(()=>Jd(e))}function tf(e){return null===Wd||(null===Wd.cleanups?Wd.cleanups=[e]:Wd.cleanups.push(e)),e}function nf(){return Ud}function rf(e,t){const n=Symbol("context");return{id:n,Provider:Cf(n),defaultValue:e}}function of(e){let t;return void 0!==(t=wf(Wd,e.id))?t:e.defaultValue}function af(e){const t=Yd(e),n=Yd(()=>xf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function sf(){const e=zd;if(this.sources&&(this.state||e))if(this.state===Id||e)cf(this);else{const e=Fd;Fd=null,ff(()=>gf(this),!1),Fd=e}if(Ud){const e=this.observers?this.observers.length:0;Ud.sources?(Ud.sources.push(this),Ud.sourceSlots.push(e)):(Ud.sources=[this],Ud.sourceSlots=[e]),this.observers?(this.observers.push(Ud),this.observerSlots.push(Ud.sources.length-1)):(this.observers=[Ud],this.observerSlots=[Ud.sources.length-1])}return this.value}function lf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&ff(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=zd&&zd.running;r&&zd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?Fd.push(n):Bd.push(n),n.observers&&mf(n)),r||(n.state=Id)}if(Fd.length>1e6)throw Fd=[],new Error},!1)),t}function cf(e){if(!e.fn)return;yf(e);const t=Wd,n=Ud,r=qd;Ud=Wd=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Id,e.owned&&e.owned.forEach(yf),e.owned=null),vf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?lf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Ud=n,Wd=t}function uf(e,t,n,r=Id,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Wd,context:null,pure:n};return null===Wd||Wd!==$d&&(Wd.owned?Wd.owned.push(i):Wd.owned=[i]),i}function df(e){const t=zd;if(0===e.state||t)return;if(e.state===Nd||t)return gf(e);if(e.suspense&&Jd(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<qd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Id||t)cf(e);else if(e.state===Nd||t){const t=Fd;Fd=null,ff(()=>gf(e,n[0]),!1),Fd=t}}function ff(e,t){if(Fd)return e();let n=!1;t||(Fd=[]),Bd?n=!0:Bd=[],qd++;try{const t=e();return function(e){Fd&&(pf(Fd),Fd=null);if(e)return;const t=Bd;Bd=null,t.length&&ff(()=>jd(t),!1)}(n),t}catch(r){n||(Bd=null),Fd=null,vf(r)}}function pf(e){for(let t=0;t<e.length;t++)df(e[t])}function hf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:df(r)}var r;for(Rd.context&&(Rd.context=r),t=0;t<n;t++)df(e[t])}function gf(e,t){const n=zd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Id||n?o!==t&&df(o):(o.state===Nd||n)&&gf(o,t))}}function mf(e){const t=zd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Nd,r.pure?Fd.push(r):Bd.push(r),r.observers&&mf(r))}}function yf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)yf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function bf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function vf(e){throw e=bf(e)}function wf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:wf(e.owner,t):void 0}function xf(e){if("function"==typeof e&&!e.length)return xf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=xf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Cf(e,t){return function(t){let n;return Gd(()=>n=Jd(()=>(Wd.context={[e]:t.value},af(()=>t.children))),void 0),n}}const kf=Symbol("fallback");function Sf(e){for(let t=0;t<e.length;t++)e[t]()}function Ef(e,t){return Jd(()=>e(t||{}))}function _f(){return!0}const Tf={get:(e,t,n)=>t===Od?n:e.get(t),has:(e,t)=>t===Od||e.has(t),set:_f,deleteProperty:_f,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:_f,deleteProperty:_f}),ownKeys:e=>e.keys()};function Pf(e){return(e="function"==typeof e?e():e)?e:{}}function Af(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Od in n,e[r]="function"==typeof n?(t=!0,Yd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Pf(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Pf(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Pf(e[n])));return[...new Set(t)]}},Tf);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Rf(e,...t){const n=new Set(t.flat());if(Od in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Tf));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Tf)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Of(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Yd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return tf(()=>Sf(i)),()=>{let l,c,u=e()||[];return u[Md],Jd(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(Sf(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[kf],o[0]=Hd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Hd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Hd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Vd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Mf(e){let t=!1;const n=e.keyed,r=Yd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Yd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Jd(()=>r(o)):r}return e.fallback},void 0,void 0)}function Lf(e){let t=!1,n=!1;const r=af(()=>e.children),o=Yd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Yd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?Jd(()=>s(i)):s},void 0,void 0)}function jf(e){return e}const If=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Nf=new Set(["innerHTML","textContent","innerText","children"]),$f=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Df=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Wf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),zf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Uf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Ff="_$DX_DELEGATE";function Bf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function qf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Hf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Vf(e,t={},n,r){const o={};return Gd(()=>o.children=Jf(e,t.children,o.children)),Gd(()=>t.ref&&t.ref(e)),Gd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Zf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Zf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Kf(e,t,n){return Jd(()=>e(t,n))}function Gf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Jf(e,t,r,n);Gd(r=>Jf(e,t(),r,n),r)}function Qf(e){let t,n;return Rd.context&&(t=Rd.registry.get(n=function(){const e=Rd.context;return`${e.id}${e.count++}`}()))?(Rd.completed&&Rd.completed.add(t),Rd.registry.delete(n),t):e.cloneNode(!0)}function Yf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Zf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?qf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Yf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Yf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Wf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Ff]||(t[Ff]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Xf))}}([o]))}else if((l=Nf.has(t))||!o&&(Df[t]||(s=If.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Hf(e,n):!a||s||l?e[Df[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Uf[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):qf(e,$f[t]||t,n)}var c;return n}function Xf(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Rd.registry&&!Rd.done&&(Rd.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Jf(e,t,n,r,o){for(Rd.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Rd.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=np(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Rd.context)return n;n=np(e,n,r)}else{if("function"===i)return Gd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Jf(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(ep(i,t,n,o))return Gd(()=>n=Jf(e,i,n,r,!0)),()=>n;if(Rd.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=np(e,n,r),a)return n}else s?0===n.length?tp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&np(e),tp(e,i));n=i}else if(t instanceof Node){if(Rd.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=np(e,n,r,t);np(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function ep(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=ep(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=ep(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function tp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function np(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function rp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function op(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Rd.context){const[t,n]=Vd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Vd(!1),n=()=>t(!0);Hd(t=>Gf(r,()=>e()?t():o()(),null)),tf(()=>{Rd.context?queueMicrotask(n):n()})}else{const i=rp(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Gf(a,o()),r.appendChild(i),e.ref&&e.ref(i),tf(()=>r.removeChild(i))}return n}function ip(e){const[t,n]=Rf(e,["component"]),r=Yd(()=>t.component);return Yd(()=>{const e=r();switch(typeof e){case"function":return Jd(()=>e(n));case"string":const t=zf.has(e),r=Rd.context?Qf():rp(e,t);return Vf(r,n,t),r}})}var ap=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(ap||{});let sp={data:""},lp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cp=/\/\*[^]*?\*\/| +/g,up=/\n+/g,dp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?dp(a,i):i+"{"+dp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=dp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=dp.p?dp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},fp={},pp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+pp(e[n]);return t}return e};function hp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=pp(e),a=fp[i]||(fp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!fp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=lp.exec(e.replace(cp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(up," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(up," ").trim();return r[0]})(e);fp[a]=dp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&fp.g?fp.g:null;return n&&(fp.g=fp[a]),l=fp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":dp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||sp),t.g,t.o,t.k);var r}hp.bind({g:1});let gp=hp.bind({k:1});const mp=rf();function yp(e){return Ef(mp.Provider,{value:e.theme,get children(){return e.children}})}function bp(){return of(mp)}function vp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Af(r,{theme:of(mp)}),i=Af(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,hp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Rf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Vf(u,l)):u=ip(Af({component:c},l)),u};return r.class=e=>Jd(()=>hp.apply({target:t.target,p:e,g:t.g},n)),r}}const wp=new Proxy(vp,{get:(e,t)=>e(t)});function xp(){const e=vp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Cp="tc-root",kp="tc-disable-scroll",Sp="tc-using-mouse",Ep=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(Sp)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(Sp)});return Ef(xp`
|
|
2
2
|
${Cp} * {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
@@ -1182,7 +1182,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1182
1182
|
width: 16px;
|
|
1183
1183
|
`,vx=wp(ng)`
|
|
1184
1184
|
margin-top: 32px;
|
|
1185
|
-
`,wx=e=>{const t=tg(e),n=of(Ay),[r,o]=Vd(!0),[i,a]=Vd(!1),[s,l]=Vd(!1),[c,u]=Vd(!1);let d,f;Qd(()=>{const e=rh();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||lu(n.wallet.universalLink)&&Wh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||lu(n.wallet.deepLink)&&Wh())&&(f=n.wallet.deepLink);const p=()=>{const e=rh(),t="returnStrategy"in e?e.returnStrategy:tv.returnStrategy,n=!r();o(!1),lu(d)?zv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:tv.twaReturnUrl,forceRedirect:n}):Uv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Ef(hx,Af(t,{get children(){return[Yd(()=>e.icon),Ef(gx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Ef(mx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Ef(Mf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Ef(yx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(bx,{})}})}}),Ef(Mf,{get when(){return i()||s()},get children(){return[Ef(Mf,{get when(){return"open-wallet"!==e.showButton},get children(){return Ef(vx,{onClick:()=>e.onClose(),get children(){return Ef(Dv,{translationKey:"common.close",children:"Close"})}})}}),Ef(Mf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Ef(vx,{onClick:p,get children(){return Ef(Dv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},xx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Cx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),kx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Ef(Tm,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Sx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Ex=e=>Ef(wx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),_x=e=>Ef(wx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Ef(Tm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Tx=()=>Ef(Og,{get opened(){var e;return Yd(()=>null!==rh())()&&!0===(null==(e=rh())?void 0:e.openModal)},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>oh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Ef(Lf,{get children(){return[Ef(jf,{get when(){return"transaction-sent"===rh().name},get children(){return Ef(kx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"transaction-canceled"===rh().name},get children(){return Ef(Cx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-transaction"===rh().name},get children(){return Ef(xx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"data-signed"===rh().name},get children(){return Ef(_x,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"sign-data-canceled"===rh().name},get children(){return Ef(Ex,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-sign-data"===rh().name},get children(){return Ef(Sx,{onClose:()=>oh(null)})}})]}})}}),Px=()=>{const{locale:e}=em()[1];Qd(()=>e(tv.language)),Qd(()=>{Zp()&&Ey()});const t=of(lh),n=of(Ay),[r,o]=Vd(!1),i=()=>{var e;return"loading"===(null==(e=tv.connectRequestParameters)?void 0:e.state)},a=Yd(()=>{var e;if(!i())return null==(e=tv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return tf(t.onStatusChange(e=>{e&&s("wallet-selected")})),tf(()=>{o(!1)}),Ef(Xb,{get opened(){return Zp()},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Ef(Mf,{get when(){return r()},get children(){return Ef(Jv,{onBackClick:()=>o(!1)})}}),Ef(Mf,{get when(){return!r()},get children(){return[Ef(Mf,{get when(){return i()},get children(){return[Ef(Jb,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Ef(ev,{get children(){return Ef(Im,{size:"m"})}})]}}),Ef(Mf,{get when(){return!i()},get children(){return Ef(ip,{get component(){return ky()?bw:Bv},get wallet(){return Xp()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ax=e=>{const t=Xg(ah,tv.language);return customElements.define(Cp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Ef(Jg.Provider,{value:t,get children(){return Ef(Ay.Provider,{get value(){return e.tonConnectUI},get children(){return Ef(lh.Provider,{get value(){return tv.connector},get children(){return[Ef(Ep,{}),Ef(yp,{theme:Ph,get children(){return[Ef(Mf,{get when(){return tv.buttonRootId},get children(){return Ef(op,{get mount(){return document.getElementById(tv.buttonRootId)},get children(){return Ef(Zb,{})}})}}),Ef(ip,{component:Cp,get children(){return[Ef(px,{}),Ef(Px,{}),Ef(Tx,{})]}})]}})]}})}})}})},Rx={openWalletsModal:()=>{setTimeout(()=>Kp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Kp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Yp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Yp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Kp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>oh(e))},clearAction:()=>{setTimeout(()=>oh(null))},getSelectedWalletInfo:()=>eh(),removeSelectedWalletInfo:()=>nh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Hd(r=>{o=r,t===document?e():Gf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Ef(Ax,{tonConnectUI:t}),document.getElementById(e))};class Ox{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Vp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Vp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Pu);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Mx{constructor(e){Pd(this,"connector"),Pd(this,"consumers",[]),this.connector=e.connector,Qd(()=>{const e=rh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class Lx{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Qp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Qp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const t=ov(yield this.connector.getWallets(),tv.walletsListConfiguration),n=t.find(Pu);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Au).find(t=>lv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Rp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class jx{constructor(e){var t;Pd(this,"eventPrefix","ton-connect-ui-"),Pd(this,"tonConnectUiVersion"),Pd(this,"tonConnectSdkVersion",null),Pd(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Xu,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Ad(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(sS){}})}setRequestVersionHandler(){return Ad(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Ad(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Iu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Ad(this,null,function*(){return new Promise((e,t)=>Ad(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(sS){t(sS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(sS){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}}class Ix{constructor(e){if(Pd(this,"walletInfoStorage",new Bp),Pd(this,"preferredWalletStorage",new qp),Pd(this,"tracker"),Pd(this,"walletInfo",null),Pd(this,"systemThemeChangeUnsubscribe",null),Pd(this,"actionsConfiguration"),Pd(this,"walletsList"),Pd(this,"_walletsRequiredFeatures"),Pd(this,"_walletsPreferredFeatures"),Pd(this,"connectRequestParametersCallback"),Pd(this,"connector"),Pd(this,"modal"),Pd(this,"singleWalletModal"),Pd(this,"transactionModal"),Pd(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Rp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new ed({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new jx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Ox({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Lx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Mx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Np((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Ad(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Ad(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Th(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();nv({connector:this.connector,preferredWalletAppName:n}),Rx.renderApp(t,this)}static getWallets(){return ed.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?_d(_d({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Mh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Mh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?ap.LIGHT:ap.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?ap.DARK:ap.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Mh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Oh[ap.DARK]=Th(a[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(a[ap.LIGHT],Oh[ap.LIGHT]),Ah(e=>({colors:Th(Oh[e.theme],Rh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Ah({borderRadius:s})),nv(t=>{var n,r;const o=Th(_d(_d(_d(_d({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),hh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;nv({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Ad(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Ad(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(_d(_d({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Ad(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Ad(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Ad(this,null,function*(){const e=(yield this.getWallets()).find(Pu);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Rx.clearAction(),Rx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Ad(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Rx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{l()}})}signData(e){return Ad(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Rx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(lu(this.walletInfo.universalLink)?zv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||tv.twaReturnUrl,forceRedirect:!1}):Uv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Ad(this,null,function*(){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Ad(this,null,function*(){const e=new AbortController;Rx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Ad(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Rp("Wallet was not connected"));const i=e=>Ad(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Rp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Rp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"));const a=e=>Ad(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"));const a=e=>Ad(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Ad(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),nv({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Ad(this,null,function*(){let t,n=Rx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=ov(yield this.walletsList,tv.walletsListConfiguration).find(t=>lv(t,e.device.appName));if(!r)throw new Rp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=_d(_d({},r),n)}return t})}updateWalletInfo(e){return Ad(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>lv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Rp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Wh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Nx,$x={exports:{}},Dx=$x.exports;var Wx=(Nx||(Nx=1,function(e,t){var r,o;r="object"==typeof window&&window||Dx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}($x,$x.exports)),$x.exports);const zx=r(Wx);const Ux=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?td(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new Ix({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(zx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;zx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{zx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Hl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Hl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const Fx=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060"].includes(ta.GAME_ID)}get disableLoginShare(){return"1002"==ta.GAME_ID}init(){if(Jl())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${sc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${sc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(rc()&&Jl()&&ec()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Ux.connected&&Ux.friendlyAddress==sc.boundWallet)return e();Ux.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await ac.gameInfo();let t=(e.catalog||[]).filter(e=>e==jl.airdrop||e==jl.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return sc.gameInfo=n,sc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return ac.login().then(e=>{let t=ta.GAME_ID,n=sc.plutoId=e.plutoid,r=sc.firstName=e.tgfirstname,o=sc.lastName=e.tglastname,i=sc.icon=e.icon,a=e.ticket;return sc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return ac.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;sc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=sc.purchaseData;return ac.order(n,r,o,i,e,t,a).then(e=>(sc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await ac.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return ac.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return ac.checkIn(e,t,n).then(r=>{sc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await ac.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return ac.getItem(e).then(e=>e.v)}reqSetItem(e,t){return ac.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),ac.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return ac.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&ac.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{ac.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});sc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return ac.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=ta.GAME_ID&&"1060"!=ta.GAME_ID)return;if(sc.gameUserId)return;let n=0,r=100;for(;;)try{const n=await ac.setGameUserId(e,t);return void(n.token&&(ta.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return ac.cocGetInfo().then(e=>(sc.gameUserId=e.userid,{coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[zl.coc];return ac.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return ac.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return ac.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return ac.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return ac.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return ac.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return ac.spGetInfo().then(e=>(sc.gameUserId=e.userid,{balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Ul[zl.croco];return ac.spWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return ac.spClaim(e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return ac.spGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return ac.spGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return ac.spQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return ac.spCancelWithdraw(e).then(e=>({amount:e.amount,balance:e.balance}))}},Bx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function qx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Bx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Vx=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,h=L.isValidElement(r)&&"svg"===r.type,g={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Kr({root:["root","inherit"!==t&&`color${$(t)}`,`fontSize${$(n)}`]},qx,r)})(g);return d.jsxs(Hx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Kx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Gx(e){const t=L.useRef(e);return Sr(()=>{t.current=e}),L.useRef((...e)=>(0,t.current)(...e)).current}function Qx(...e){const t=L.useRef(void 0),n=L.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return L.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Yx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Zx(e,t){return(Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zx(e,t)}Vx.muiName="SvgIcon";const Jx=r(R()),eC=!1,tC=j.createContext(null);var nC="unmounted",rC="exited",oC="entering",iC="entered",aC="exiting",sC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=rC,r.appearStatus=oC):o=iC:o=t.unmountOnExit||t.mountOnEnter?nC:rC,r.state={status:o},r.nextCallback=null,r}Xx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nC?{status:rC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oC&&n!==iC&&(t=oC):n!==oC&&n!==iC||(t=aC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rC&&this.setState({status:nC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Jx.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||eC?this.safeSetState({status:iC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:oC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:iC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Jx.findDOMNode(this);t&&!eC?(this.props.onExit(r),this.safeSetState({status:aC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:rC},function(){e.props.onExited(r)})})})):this.safeSetState({status:rC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Yx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(tC.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function lC(){}function cC(e,t){var n=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)}),n}function uC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dC(e,t,n){var r=cC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(L.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})):o[i]=L.cloneElement(a,{in:!1}):o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})}}),o}sC.contextType=tC,sC.propTypes={},sC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lC,onEntering:lC,onEntered:lC,onExit:lC,onExiting:lC,onExited:lC},sC.UNMOUNTED=nC,sC.EXITED=rC,sC.ENTERING=oC,sC.ENTERED=iC,sC.EXITING=aC;var fC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,cC(n.children,function(e){return L.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:uC(e,"appear",n),enter:uC(e,"enter",n),exit:uC(e,"exit",n)})})):dC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yx(e,["component","childFactory"]),o=this.state.contextValue,i=fC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(tC.Provider,{value:o},i):j.createElement(tC.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);pC.propTypes={},pC.defaultProps={component:"div",childFactory:function(e){return e}};const hC={};function gC(e,t){const n=L.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const mC=[];class yC{static create(){return new yC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bC(){const e=gC(yC.create).current;var t;return t=e.disposeEffect,L.useEffect(t,mC),e}const vC=e=>e.scrollTop;function wC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function xC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class CC{static create(){return new CC}static use(){const e=gC(CC.create).current,[t,n]=L.useState(!1);return e.shouldMount=t,e.setShouldMount=n,L.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const kC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),SC=Nn`
|
|
1185
|
+
`,wx=e=>{const t=tg(e),n=of(Ay),[r,o]=Vd(!0),[i,a]=Vd(!1),[s,l]=Vd(!1),[c,u]=Vd(!1);let d,f;Qd(()=>{const e=rh();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||lu(n.wallet.universalLink)&&Wh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||lu(n.wallet.deepLink)&&Wh())&&(f=n.wallet.deepLink);const p=()=>{const e=rh(),t="returnStrategy"in e?e.returnStrategy:tv.returnStrategy,n=!r();o(!1),lu(d)?zv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:tv.twaReturnUrl,forceRedirect:n}):Uv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Ef(hx,Af(t,{get children(){return[Yd(()=>e.icon),Ef(gx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Ef(mx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Ef(Mf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Ef(yx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(bx,{})}})}}),Ef(Mf,{get when(){return i()||s()},get children(){return[Ef(Mf,{get when(){return"open-wallet"!==e.showButton},get children(){return Ef(vx,{onClick:()=>e.onClose(),get children(){return Ef(Dv,{translationKey:"common.close",children:"Close"})}})}}),Ef(Mf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Ef(vx,{onClick:p,get children(){return Ef(Dv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},xx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Cx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),kx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Ef(Tm,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Sx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Ex=e=>Ef(wx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),_x=e=>Ef(wx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Ef(Tm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Tx=()=>Ef(Og,{get opened(){var e;return Yd(()=>null!==rh())()&&!0===(null==(e=rh())?void 0:e.openModal)},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>oh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Ef(Lf,{get children(){return[Ef(jf,{get when(){return"transaction-sent"===rh().name},get children(){return Ef(kx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"transaction-canceled"===rh().name},get children(){return Ef(Cx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-transaction"===rh().name},get children(){return Ef(xx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"data-signed"===rh().name},get children(){return Ef(_x,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"sign-data-canceled"===rh().name},get children(){return Ef(Ex,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-sign-data"===rh().name},get children(){return Ef(Sx,{onClose:()=>oh(null)})}})]}})}}),Px=()=>{const{locale:e}=em()[1];Qd(()=>e(tv.language)),Qd(()=>{Zp()&&Ey()});const t=of(lh),n=of(Ay),[r,o]=Vd(!1),i=()=>{var e;return"loading"===(null==(e=tv.connectRequestParameters)?void 0:e.state)},a=Yd(()=>{var e;if(!i())return null==(e=tv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return tf(t.onStatusChange(e=>{e&&s("wallet-selected")})),tf(()=>{o(!1)}),Ef(Xb,{get opened(){return Zp()},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Ef(Mf,{get when(){return r()},get children(){return Ef(Jv,{onBackClick:()=>o(!1)})}}),Ef(Mf,{get when(){return!r()},get children(){return[Ef(Mf,{get when(){return i()},get children(){return[Ef(Jb,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Ef(ev,{get children(){return Ef(Im,{size:"m"})}})]}}),Ef(Mf,{get when(){return!i()},get children(){return Ef(ip,{get component(){return ky()?bw:Bv},get wallet(){return Xp()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ax=e=>{const t=Xg(ah,tv.language);return customElements.define(Cp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Ef(Jg.Provider,{value:t,get children(){return Ef(Ay.Provider,{get value(){return e.tonConnectUI},get children(){return Ef(lh.Provider,{get value(){return tv.connector},get children(){return[Ef(Ep,{}),Ef(yp,{theme:Ph,get children(){return[Ef(Mf,{get when(){return tv.buttonRootId},get children(){return Ef(op,{get mount(){return document.getElementById(tv.buttonRootId)},get children(){return Ef(Zb,{})}})}}),Ef(ip,{component:Cp,get children(){return[Ef(px,{}),Ef(Px,{}),Ef(Tx,{})]}})]}})]}})}})}})},Rx={openWalletsModal:()=>{setTimeout(()=>Kp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Kp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Yp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Yp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Kp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>oh(e))},clearAction:()=>{setTimeout(()=>oh(null))},getSelectedWalletInfo:()=>eh(),removeSelectedWalletInfo:()=>nh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Hd(r=>{o=r,t===document?e():Gf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Ef(Ax,{tonConnectUI:t}),document.getElementById(e))};class Ox{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Vp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Vp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Pu);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Mx{constructor(e){Pd(this,"connector"),Pd(this,"consumers",[]),this.connector=e.connector,Qd(()=>{const e=rh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class Lx{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Qp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Qp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const t=ov(yield this.connector.getWallets(),tv.walletsListConfiguration),n=t.find(Pu);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Au).find(t=>lv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Rp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class jx{constructor(e){var t;Pd(this,"eventPrefix","ton-connect-ui-"),Pd(this,"tonConnectUiVersion"),Pd(this,"tonConnectSdkVersion",null),Pd(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Xu,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Ad(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(sS){}})}setRequestVersionHandler(){return Ad(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Ad(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Iu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Ad(this,null,function*(){return new Promise((e,t)=>Ad(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(sS){t(sS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(sS){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}}class Ix{constructor(e){if(Pd(this,"walletInfoStorage",new Bp),Pd(this,"preferredWalletStorage",new qp),Pd(this,"tracker"),Pd(this,"walletInfo",null),Pd(this,"systemThemeChangeUnsubscribe",null),Pd(this,"actionsConfiguration"),Pd(this,"walletsList"),Pd(this,"_walletsRequiredFeatures"),Pd(this,"_walletsPreferredFeatures"),Pd(this,"connectRequestParametersCallback"),Pd(this,"connector"),Pd(this,"modal"),Pd(this,"singleWalletModal"),Pd(this,"transactionModal"),Pd(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Rp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new ed({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new jx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Ox({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Lx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Mx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Np((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Ad(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Ad(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Th(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();nv({connector:this.connector,preferredWalletAppName:n}),Rx.renderApp(t,this)}static getWallets(){return ed.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?_d(_d({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Mh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Mh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?ap.LIGHT:ap.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?ap.DARK:ap.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Mh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Oh[ap.DARK]=Th(a[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(a[ap.LIGHT],Oh[ap.LIGHT]),Ah(e=>({colors:Th(Oh[e.theme],Rh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Ah({borderRadius:s})),nv(t=>{var n,r;const o=Th(_d(_d(_d(_d({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),hh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;nv({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Ad(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Ad(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(_d(_d({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Ad(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Ad(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Ad(this,null,function*(){const e=(yield this.getWallets()).find(Pu);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Rx.clearAction(),Rx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Ad(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Rx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{l()}})}signData(e){return Ad(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Rx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(lu(this.walletInfo.universalLink)?zv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||tv.twaReturnUrl,forceRedirect:!1}):Uv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Ad(this,null,function*(){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Ad(this,null,function*(){const e=new AbortController;Rx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Ad(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Rp("Wallet was not connected"));const i=e=>Ad(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Rp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Rp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"));const a=e=>Ad(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"));const a=e=>Ad(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Ad(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),nv({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Ad(this,null,function*(){let t,n=Rx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=ov(yield this.walletsList,tv.walletsListConfiguration).find(t=>lv(t,e.device.appName));if(!r)throw new Rp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=_d(_d({},r),n)}return t})}updateWalletInfo(e){return Ad(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>lv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Rp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Wh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Nx,$x={exports:{}},Dx=$x.exports;var Wx=(Nx||(Nx=1,function(e,t){var r,o;r="object"==typeof window&&window||Dx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}($x,$x.exports)),$x.exports);const zx=r(Wx);const Ux=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?td(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new Ix({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(zx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;zx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{zx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Hl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Hl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const Fx=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060"].includes(ta.GAME_ID)}get disableLoginShare(){return"1002"==ta.GAME_ID}init(){if(Jl())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${sc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${sc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(rc()&&Jl()&&ec()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Ux.connected&&Ux.friendlyAddress==sc.boundWallet)return e();Ux.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await ac.gameInfo();let t=(e.catalog||[]).filter(e=>e==jl.airdrop||e==jl.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return sc.gameInfo=n,sc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return ac.login().then(e=>{let t=ta.GAME_ID,n=sc.plutoId=e.plutoid,r=sc.firstName=e.tgfirstname,o=sc.lastName=e.tglastname,i=sc.icon=e.icon,a=e.ticket;return sc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return ac.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;sc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=sc.purchaseData;return ac.order(n,r,o,i,e,t,a).then(e=>(sc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await ac.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return ac.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return ac.checkIn(e,t,n).then(r=>{sc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await ac.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return ac.getItem(e).then(e=>e.v)}reqSetItem(e,t){return ac.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),ac.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return ac.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&ac.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{ac.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});sc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return ac.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=ta.GAME_ID&&"1060"!=ta.GAME_ID)return;sc.gameServerId=t;let n=0,r=100;for(;;)try{const n=await ac.setGameUserId(e,t);return void(n.token&&(ta.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return ac.cocGetInfo().then(e=>({coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[zl.coc];return ac.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return ac.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return ac.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return ac.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return ac.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return ac.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return ac.spGetInfo(sc.gameServerId).then(e=>({balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Ul[zl.croco];return ac.spWithdraw(sc.gameServerId,e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return ac.spClaim(sc.gameServerId,e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return ac.spGetWithdrawDetail(sc.gameServerId,e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return ac.spGetRecords(sc.gameServerId,e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return ac.spQueryConsume(sc.gameServerId,e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return ac.spCancelWithdraw(sc.gameServerId,e).then(e=>({amount:e.amount,balance:e.balance}))}},Bx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function qx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Bx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Vx=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,h=L.isValidElement(r)&&"svg"===r.type,g={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Kr({root:["root","inherit"!==t&&`color${$(t)}`,`fontSize${$(n)}`]},qx,r)})(g);return d.jsxs(Hx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Kx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Gx(e){const t=L.useRef(e);return Sr(()=>{t.current=e}),L.useRef((...e)=>(0,t.current)(...e)).current}function Qx(...e){const t=L.useRef(void 0),n=L.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return L.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Yx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Zx(e,t){return(Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zx(e,t)}Vx.muiName="SvgIcon";const Jx=r(R()),eC=!1,tC=j.createContext(null);var nC="unmounted",rC="exited",oC="entering",iC="entered",aC="exiting",sC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=rC,r.appearStatus=oC):o=iC:o=t.unmountOnExit||t.mountOnEnter?nC:rC,r.state={status:o},r.nextCallback=null,r}Xx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nC?{status:rC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oC&&n!==iC&&(t=oC):n!==oC&&n!==iC||(t=aC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rC&&this.setState({status:nC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Jx.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||eC?this.safeSetState({status:iC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:oC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:iC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Jx.findDOMNode(this);t&&!eC?(this.props.onExit(r),this.safeSetState({status:aC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:rC},function(){e.props.onExited(r)})})})):this.safeSetState({status:rC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Yx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(tC.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function lC(){}function cC(e,t){var n=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)}),n}function uC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dC(e,t,n){var r=cC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(L.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})):o[i]=L.cloneElement(a,{in:!1}):o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})}}),o}sC.contextType=tC,sC.propTypes={},sC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lC,onEntering:lC,onEntered:lC,onExit:lC,onExiting:lC,onExited:lC},sC.UNMOUNTED=nC,sC.EXITED=rC,sC.ENTERING=oC,sC.ENTERED=iC,sC.EXITING=aC;var fC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,cC(n.children,function(e){return L.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:uC(e,"appear",n),enter:uC(e,"enter",n),exit:uC(e,"exit",n)})})):dC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yx(e,["component","childFactory"]),o=this.state.contextValue,i=fC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(tC.Provider,{value:o},i):j.createElement(tC.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);pC.propTypes={},pC.defaultProps={component:"div",childFactory:function(e){return e}};const hC={};function gC(e,t){const n=L.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const mC=[];class yC{static create(){return new yC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bC(){const e=gC(yC.create).current;var t;return t=e.disposeEffect,L.useEffect(t,mC),e}const vC=e=>e.scrollTop;function wC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function xC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class CC{static create(){return new CC}static use(){const e=gC(CC.create).current,[t,n]=L.useState(!1);return e.shouldMount=t,e.setShouldMount=n,L.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const kC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),SC=Nn`
|
|
1186
1186
|
0% {
|
|
1187
1187
|
transform: scale(0);
|
|
1188
1188
|
opacity: 0.1;
|