plutosdk 1.0.39-beta.1 → 1.0.39-beta.2

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.
Files changed (2) hide show
  1. package/dist/pluto-sdk.js +47 -47
  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,S||(S=!0,C());else{var t=n(c);null!==t&&A(x,t.startTime-e)}}var C,S=!1,k=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function P(){if(m=!1,S){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(k),k=-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&&A(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():S=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=P,C=function(){I.postMessage(null)}}else C=function(){y(P,0)};function A(t,n){k=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(k),k=-1):g=!0,A(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,S||(S=!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 S(){}var k={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 R(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 I(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 I((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+R(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),I(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+=I(i=n[g],r,o,s=h+R(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+=I(i=i.value,r,o,s=h+R(i,g++),a);else if("object"===s){if("function"==typeof n.then)return I(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(S,S):(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 A(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(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 j="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)},M={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(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=M,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=k,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.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:O}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(S,j)}catch(i){j(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},w.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},w.use=function(e){return k.H.use(e)},w.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},w.useCallback=function(e,t){return k.H.useCallback(e,t)},w.useContext=function(e){return k.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return k.H.useEffect(e,t)},w.useEffectEvent=function(e){return k.H.useEffectEvent(e)},w.useId=function(){return k.H.useId()},w.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return k.H.useMemo(e,t)},w.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},w.useRef=function(e){return k.H.useRef(e)},w.useState=function(e){return k.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return k.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var S,k,E,_,T={exports:{}},P={};function R(){if(S)return P;S=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 I(){if(k)return T.exports;return k=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=R(),T.exports}function A(){if(E)return p;E=1;var e=m(),t=C(),n=I();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"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===j?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 S:return"Suspense";case k: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:M(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return M(e(t))}catch(n){}}return null}var L=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},$=[],z=-1;function F(e){return{current:e}}function U(e){0>z||(e.current=$[z],$[z]=null,z--)}function B(e,t){z++,$[z]=e.current,e.current=t}var q,H,V=F(null),K=F(null),G=F(null),Q=F(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}}U(V),B(V,e)}function Z(){U(V),U(K),U(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&&(U(V),U(K)),Q.current===e&&(U(Q),pf._currentValue=W)}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-(Se(e)/ke|0)|0},Se=Math.log,ke=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 Re(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 Ie(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(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 Oe(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(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 De(e,t){var n=t&-t;return 0!==((n=42&n?1:We(n))&(e.suspendedLanes|t))?0:n}function We(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 $e(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:Rf(e.type)}function Fe(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var Ue=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ue,qe="__reactProps$"+Ue,He="__reactContainer$"+Ue,Ve="__reactEvents$"+Ue,Ke="__reactListeners$"+Ue,Ge="__reactHandles$"+Ue,Qe="__reactResources$"+Ue,Ye="__reactMarker$"+Ue;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=Wd(e);null!==e;){if(n=e[Be])return n;e=Wd(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 St(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 kt(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(L(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 Rt(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 It(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 At=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"]]),Ot=/^[\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 jt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mt(){}var Lt=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dt=null,Wt=null;function $t(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":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&St(e,!!n.multiple,t,!1)}}}var zt=!1;function Ft(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==Dt||null!==Wt)&&(tu(),Dt&&(t=Dt,e=Wt,Wt=Dt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function Ut(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})),Sn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=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 Rn=Bt&&"TextEvent"in window&&!Pn,In=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),An=String.fromCharCode(32),On=!1;function jn(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 Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!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 Dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Wn(e,t,n,r){Dt?Wt?Wt.push(r):Wt=[r]:Dt=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,zn=null;function Fn(e){Zu(e,0)}function Un(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(){$n&&($n.detachEvent("onpropertychange",Qn),zn=$n=null)}function Qn(e){if("value"===e.propertyName&&Un(zn)){var t=[];Wn(t,zn,e,Nt(e)),Ft(Fn,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,($n=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Un(zn)}function Xn(e,t){if("click"===e)return Un(t)}function Jn(e,t){if("input"===e||"change"===e)return Un(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"),Sr=yr("transitioncancel"),kr=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)},Rr=[],Ir=0,Ar=0;function Or(){for(var e=Ir,t=Ar=Ir=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var o=Rr[t];Rr[t++]=null;var i=Rr[t];if(Rr[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 jr(e,t,n,r){Rr[Ir++]=e,Rr[Ir++]=t,Rr[Ir++]=n,Rr[Ir++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Mr(e,t,n,r){return jr(e,t,n,r),Dr(e)}function Lr(e,t){return jr(e,null,null,t),Dr(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 Dr(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 Wr={};function $r(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 $r(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ur(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)Fr(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 S:return(e=zr(13,n,t,i)).elementType=S,e.lanes=a,e;case k:return(e=zr(19,n,t,i)).elementType=k,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 ko(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=Mt),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=Dd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=Dd(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Ld(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function So(){var e=go;return null!==e&&(null===Oc?Oc=e:Oc.push.apply(Oc,e),go=null),e}function ko(e){null===go?go=[e]:go.push(e)}var Eo=F(null),_o=null,To=null;function Po(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ro(e){e._currentValue=Eo.current,U(Eo)}function Io(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 Ao(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),Io(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),Io(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 Oo(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&&Ao(t,e,n,o),t.flags|=262144}function jo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return Do(_o,e)}function No(e,t){return null===_o&&Mo(e),Do(e,t)}function Do(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 Wo="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()})}},$o=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uo(){return{controller:new Wo,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&$o(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){Lc=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=F(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:Fo._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(Mt,Mt),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(Mt,Mt);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=Ur(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(L(t)||O(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(L(n)||O(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(L(r)||O(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(L(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(O(u)){if("function"!=typeof(v=O(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=Dr(e),Nr(e,null,n),t}return jr(e,r,t,n),Dr(e)}function Si(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 ki(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 Ri(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ii=F(null),Ai=F(0);function Oi(e,t){B(Ai,e=kc),B(Ii,t),kc=e|t.baseLanes}function ji(){B(Ai,kc),B(Ii,Ii.current)}function Mi(){kc=Ai.current,U(Ii),U(Ai)}var Li=F(null),Ni=null;function Di(e){var t=e.alternate;B(Ui,1&Ui.current),B(Li,e),null===Ni&&(null===t||null!==Ii.current||null!==t.memoizedState)&&(Ni=e)}function Wi(e){B(Ui,Ui.current),B(Li,e),null===Ni&&(Ni=e)}function $i(e){22===e.tag?(B(Ui,Ui.current),B(Li,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Ui,Ui.current),B(Li,Li.current)}function Fi(e){U(Li),Ni===e&&(Ni=null),U(Ui)}var Ui=F(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)||jd(n)||Md(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||Ls||null!==(e=e.dependencies)&&jo(e)&&(Ls=!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 Lo(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]=R;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)&&(Ls=!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)||(Ls=!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,Ls=!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,$a(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,Sa(t)&&ka(e)}function Ca(e,t,n){return n(function(){Sa(t)&&ka(e)})}function Sa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function ka(e){var t=Lr(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),Ra(e,t,s)}catch(c){Aa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Ra(e,t,i=n(o,r))}catch(u){Aa(e,t,u)}}function Ra(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ia(e,t,n)},function(n){return Aa(e,t,n)}):Ia(e,t,n)}function Ia(e,t,n){t.status="fulfilled",t.value=n,Oa(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 Aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Oa(t),t=t.next}while(t!==r)}e.action=null}function Oa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ja(e,t){return t}function Ma(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=Ld(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Ld(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:ja,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 La(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,ja)[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,$a(9,{destroy:void 0},Da.bind(null,o,n),null)),[r,i,e]}function Da(e,t){e.action=t}function Wa(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 $a(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 Fa(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=$a(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ua(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=$a(t,i,n,r):(Hi.flags|=e,o.memoizedState=$a(1|t,i,n,r))}function Ba(e,t){Fa(8390656,8,e,t)}function qa(e,t){Ua(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 Ua(4,2,e,t)}function Ka(e,t){return Ua(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,Ua(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!==Ii.current?(e=Ja(e,n,r),er(e,t)||(Ls=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Ls=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=D.p;D.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{D.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,W,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:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:W},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 Lo(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),Si(r,t,n)),t={cache:Uo()},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=Mr(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 jr(e,t,o,0),null===mc&&Or(),!1}catch(l){}if(null!==(n=Mr(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=Mr(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:Lo,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:Lo,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Fa(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){Fa(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,$a(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:Ma,useActionState:Ma,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:Lo,use:pa,useCallback:Za,useContext:Lo,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:La,useActionState:La,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Lo,use:pa,useCallback:Za,useContext:Lo,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:Wa,useActionState:Wa,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),Si(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),Si(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),Si(t,e,n))}};function Ss(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 ks(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 Rs(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Is(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 As(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){Rs(e,t)},n}function Os(e){return(e=xi(e)).tag=3,e}function js(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(){Is(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Is(t,n,r),"function"!=typeof o&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ms=Error(r(461)),Ls=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function Ds(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 Mo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Ls?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fr(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,$s(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=Ur(i,r)).ref=t.ref,e.return=t,t.child=e}function $s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Ls=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Ls=!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 Us(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Us(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?Oi(t,i):ji(),$i(t)}else null!==i?(Xo(0,i.cachePool),Oi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),ji(),zi());return Ns(e,t,o,n),t.child}function Fs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Us(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Fo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),ji(),$i(t),null!==e&&Oo(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,Fi(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 Mo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Ls?(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 Mo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Ls?(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(Mo(t),null===t.stateNode){var i=Wr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Lo(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?Lo(a):Wr,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=Wr,"object"==typeof u&&null!==u&&(a=Lo(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)&&ks(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||Ss(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=Wr,"object"==typeof c&&null!==c&&(l=Lo(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&ks(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&&jo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||Ss(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&jo(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|=Rc),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&Ui.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?Di(t):zi(),(e=po)?null!==(e=null!==(e=Od(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 Md(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,Fs(null,i)):(Di(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Di(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=Fs(null,i));else if(Di(t),Md(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,ko({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Ls||Oo(e,t,n,!1),o=0!==(n&e.childLanes),Ls||o){if(null!==(o=mc)&&(0!==(i=De(o,n))&&i!==c.retryLane))throw c.retryLane=i,Lr(e,i),Yc(o,e,i),Ms;jd(l)||lu(),t=nl(e,t,n)}else jd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Ld(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=Ur(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Ur(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Fs(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Fo._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,Fs(e.child,i)):(Di(t),e=(n=e.child).sibling,(n=Ur(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),Io(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=Ui.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Ui,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(Oo(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=Ur(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ur(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!jo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ls=!0;else{if(!(sl(e,n)||128&t.flags))return Ls=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Fo,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,Wi(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Di(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):(Di(t),null!==(e=al(e,t,n))?e.sibling:null);Di(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Oo(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(Ui,Ui.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Fo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Ls=!!(131072&e.flags)}else Ls=!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=Ds(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ws(null,t,e,o,n);break e}}throw t=M(e)||e,Error(r(306,t,""))}Fr(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,Fo,o),o!==a.cache&&Ao(t,[Fo],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){ko(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=Ld(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=$d(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Ld(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=Ld(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Ld(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=Ld(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 Ds(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,Mo(t),o=o(i=Lo(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ws(e,t,t.type,t.pendingProps,n);case 15:return $s(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,Fs(null,e);if(Wi(t),(e=po)?null!==(e=null!==(e=Od(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(Wi(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(Ls||Oo(e,t,n,!1),i=0!==(n&e.childLanes),Ls||i){if(null!==(o=mc)&&0!==(s=De(o,n))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Yc(o,e,s),Ms;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Ld(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=Ur(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 Mo(t),o=Lo(Fo),null===e?(null===(i=Zo())&&(i=mc,a=Uo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Fo,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,Fo,o)):(o=a.cache,Po(0,Fo,o),o!==i.cache&&Ao(t,[Fo],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?Oe():536870912,e.lanes|=t,Ic|=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),Ro(Fo),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,So())),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=$d(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=So(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fi(t),t):(Fi(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=So(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Fi(t),t):(Fi(t),null)}return Fi(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 Ro(t.type),hl(t),null;case 19:if(U(Ui),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(Ui,1&Ui.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=Ui.current,B(Ui,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Fi(t),Mi(),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&&U(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ro(Fo),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 Ro(Fo),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(Fi(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fi(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 U(Ui),null;case 4:return Z(),null;case 10:return Ro(t.type),null;case 22:case 23:return Fi(t),Mi(),null!==e&&U(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ro(Fo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ro(Fo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Fi(t);break;case 13:Fi(t);break;case 19:U(Ui);break;case 10:Ro(t.type);break;case 22:case 23:Fi(t),Mi(),null!==e&&U(Yo);break;case 24:Ro(Fo)}}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{Ri(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 Sl(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 kl(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?St(e,!!n,p,!1):!!o!=!!n&&(null!=t?St(e,!!n,t,!0):St(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 kt(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(It(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=Mt));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 Rl(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(Rl(e,t,n),e=e.sibling;null!==e;)Rl(e,t,n),e=e.sibling}function Il(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 Al=!1,Ol=!1,jl=!1,Ml="function"==typeof WeakSet?WeakSet:Set,Ll=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{Ri(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Il(n);case 26:case 5:Yl(e,n),null===t&&4&r&&kl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Ul(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=Ru.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Ol,o=Al;var i=Ol;Al=r,(Ol=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Al=o,Ol=i}break;case 30:break;default:Yl(e,n)}}function Dl(e){var t=e.alternate;null!==t&&(e.alternate=null,Dl(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 Wl=null,$l=!1;function zl(e,t,n){for(n=n.child;null!==n;)Fl(e,t,n),n=n.sibling}function Fl(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ol||Sl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ol||Sl(n,t);var r=Wl,o=$l;Pd(n.type)&&(Wl=n.stateNode,$l=!1),zl(e,t,n),zd(n.stateNode),Wl=r,$l=o;break;case 5:Ol||Sl(n,t);case 6:if(r=Wl,o=$l,Wl=null,zl(e,t,n),$l=o,null!==(Wl=r))if($l)try{(9===Wl.nodeType?Wl.body:"HTML"===Wl.nodeName?Wl.ownerDocument.body:Wl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Wl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Wl&&($l?(Rd(9===(e=Wl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Rd(Wl,n.stateNode));break;case 4:r=Wl,o=$l,Wl=n.stateNode.containerInfo,$l=!0,zl(e,t,n),Wl=r,$l=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ol||vl(4,n,t),zl(e,t,n);break;case 1:Ol||(Sl(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:Ol=(r=Ol)||null!==n.memoizedState,zl(e,t,n),Ol=r;break;default:zl(e,t,n)}}function Ul(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 Ml),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ml),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Iu.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)){Wl=l.stateNode,$l=!1;break e}break;case 5:Wl=l.stateNode,$l=!1;break e;case 3:case 4:Wl=l.stateNode.containerInfo,$l=!0;break e}l=l.return}if(null===Wl)throw Error(r(160));Fl(a,s,i),Wl=null,$l=!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&&(Ol||null===n||Sl(n,n.return)),64&o&&Al&&(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&&(Ol||null===n||Sl(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&&(Ol||null===n||Sl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ol||null===n||Sl(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&&(jl=!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)}jl&&(jl=!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)&&(Mc=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=Al,d=Ol;if(Al=u||i,Ol=d||c,Hl(t,e),Ol=d,Al=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Al||Ol||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?Id(h,!0):Id(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;Rl(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Rl(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:Sl(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:Sl(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:Il(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&kl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Ul(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=Fd.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];Ll=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];Ll=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!==Ll;){var n=Ll;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,Ll=r;else e:for(n=e;null!==Ll;){var o=(r=Ll).sibling,i=r.return;if(Dl(r),r===n){Ll=null;break e}if(null!==o){o.return=i,Ll=o;break e}Ll=i}}}var pc={getCacheForType:function(e){var t=Lo(Fo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lo(Fo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,Sc=!1,kc=0,Ec=0,_c=0,Tc=0,Pc=0,Rc=0,Ic=0,Ac=null,Oc=null,jc=!1,Mc=0,Lc=0,Nc=1/0,Dc=null,Wc=null,$c=0,zc=null,Fc=null,Uc=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===Rc)if(536870912&bc&&!ho)Rc=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Rc=e}return null!==(e=Li.current)&&(e.flags|=32),Rc}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Rc,!1)),Me(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Rc,!1)),Du(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ie(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?(Dc=null,Nc=ue()+500,ru(e,t)):Cc=Ie(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),Du(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,Or(),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=Ac;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(Sc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Oc,Oc=i,null!==a&&(null===Oc?Oc=a:Oc.push.apply(Oc,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,Rc,!xc);break e;case 2:Oc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Mc+300-ue())){if(eu(o,t,Rc,!xc),0!==Re(o,0,!0))break e;Uc=t,o.timeoutHandle=Sd(Xc.bind(null,o,n,Oc,Dc,jc,t,Rc,Tc,Ic,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Oc,Dc,jc,t,Rc,Tc,Ic,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}Du(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:Mt});var h=(62914560&i)===i?Mc-ue():(4194048&i)===i?Lc-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 Uc=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&&Le(e,n,t)}function tu(){return!!(6&gc)||(Wu(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,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uc=0,nu(),mc=e,yc=n=Ur(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Ie(e,t),Sc=!1,Ic=Rc=Pc=Tc=_c=Ec=0,Oc=Ac=null,jc=!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 kc=t,Or(),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===Ms?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,Rs(e,Yr(t,e.current)))}function iu(){var e=Li.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!==Li.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Rc,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||(Dc=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===Li.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,Or()),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,kc);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,kc),kc)}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)&&Oo(t,n,i,!0),null!==(n=Li.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=Li.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&ko(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&ko(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),ki(e,i=As(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Ac?Ac=[a]:Ac.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,ki(n,e=As(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!==Wc&&Wc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,js(i=Os(i),e,n,o),ki(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,Rs(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,Rs(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=Li.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,kc);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!==$c);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&&Le(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Ar,s,l,c),e===mc&&(yc=mc=null,bc=0),Fc=t,zc=e,Uc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return Su(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=D.p,D.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,Ll=t;null!==Ll;)if(e=(t=Ll).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ll=e;else for(;null!==Ll;){switch(a=(t=Ll).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))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Ll=e;break}Ll=t.return}}(e,t)}finally{gc=s,D.p=i,N.T=o}}$c=1,bu(),vu(),wu()}}function bu(){if(1===$c){$c=0;var e=zc,t=Fc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.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,D.p=r,N.T=n}}e.current=t,$c=2}}function vu(){if(2===$c){$c=0;var e=zc,t=Fc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,D.p=r,N.T=n}}$c=3}}function wu(){if(4===$c||3===$c){$c=0,ce();var e=zc,t=Fc,n=Uc,r=Hc;10256&t.subtreeFlags||10256&t.flags?$c=5:($c=0,Fc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Wc=null),$e(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=D.p,D.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,D.p=o}}3&Uc&&Cu(),Du(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Wu(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),Su()}function Su(){if(5!==$c)return!1;var e=zc,t=Bc;Bc=0;var n=$e(Uc),o=N.T,i=D.p;try{D.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Uc;if($c=0,Fc=zc=null,Uc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Wu(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{D.p=i,N.T=o,xu(e,t)}}function ku(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=As(e.stateNode,t,2),2))&&(Me(e,2),Du(e))}function Eu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wc||!Wc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Os(2),2))&&(js(n,r,t,e),Me(r,2),Du(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)||(Sc=!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()-Mc?!(2&gc)&&ru(e,0):Pc|=n,Ic===bc&&(Ic=0)),Du(e)}function Pu(e,t){0===t&&(t=Oe()),null!==(e=Lr(e,t))&&(Me(e,t),Du(e))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Iu(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 Au=null,Ou=null,ju=!1,Mu=!1,Lu=!1,Nu=0;function Du(e){e!==Ou&&null===e.next&&(null===Ou?Au=Ou=e:Ou=Ou.next=e),Mu=!0,ju||(ju=!0,_d(function(){6&gc?ae(fe,$u):zu()}))}function Wu(e,t){if(!Lu&&Mu){Lu=!0;do{for(var n=!1,r=Au;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=Re(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ie(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Lu=!1}}function $u(){zu()}function zu(){Mu=ju=!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=Au;null!==r;){var o=r.next,i=Fu(r,t);0===i?(r.next=null,null===n?Au=o:n.next=o,null===o&&(Ou=n)):(n=r,(0!==e||3&i)&&(Mu=!0)),r=o}0!==$c&&5!==$c||Wu(e),0!==Nu&&(Nu=0)}function Fu(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]=Ae(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Re(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)||Ie(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),$e(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Uu.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 Uu(e,t){if(0!==$c&&5!==$c)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=Re(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Fu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Uu.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:jt(""+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(Sr,"onTransitionCancel"),Tr(kr,"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(Rf(t)){case 2:var o=Sf;break;case 8:o=kf;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}Ft(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 kr:c=Sn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=kn;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=Ut(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===Lt||!(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(Dn(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&&It(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Wn(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":(Dn(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 Ln?jn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(In&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ln&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,Ln=!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=Mn(n))&&(x.data=w))),(w=Rn?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(On=!0,An);case"textInput":return(e=t.data)===An&&On?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Tn&&jn(e,t)?(e=Qt(),Gt=Kt=Vt=null,Ln=!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 In&&"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=Ut(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ut(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=Ut(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ut(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":Rt(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=jt(""+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=jt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Mt);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=jt(""+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=At.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":Rt(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=Mt);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?St(e,!!i,t,!1):null!=n&&St(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(It(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 Sd="function"==typeof setTimeout?setTimeout:void 0,kd="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)}:Sd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Rd(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 Id(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 Ad(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":Ad(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Od(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function jd(e){return"$?"===e.data||"$~"===e.data}function Md(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function Dd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Wd(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 $d(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 Fd=new Map,Ud=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=D.d;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)}Fd.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Fd.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(!Fd.has(i)&&(e=u({rel:"modulepreload",href:e},t),Fd.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=Fd.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=Fd.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=Fd.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+'"]'),Ud.has(o)||(Ud.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),Fd.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},Fd.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=Fd.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=Fd.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:W,_currentValue2:W,_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=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(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=Uo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Wr:Wr}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),Si(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=Lr(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=Lr(e,t=We(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function Sf(e,t,n,r){var o=N.T;N.T=null;var i=D.p;try{D.p=2,Ef(e,t,n,r)}finally{D.p=i,N.T=o}}function kf(e,t,n,r){var o=N.T;N.T=null;var i=D.p;try{D.p=8,Ef(e,t,n,r)}finally{D.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),Wf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Af=$f(Af,e,t,n,r,o),!0;case"dragenter":return Of=$f(Of,e,t,n,r,o),!0;case"mouseover":return jf=$f(jf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mf.set(i,$f(Mf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lf.set(i,$f(Lf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Wf(e,r),4&t&&-1<Df.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}Du(i),!(6&gc)&&(Nc=ue()+500,Wu(0))}}break;case 31:case 13:null!==(s=Lr(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 Rf(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 If=!1,Af=null,Of=null,jf=null,Mf=new Map,Lf=new Map,Nf=[],Df="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Wf(e,t){switch(e){case"focusin":case"focusout":Af=null;break;case"dragenter":case"dragleave":Of=null;break;case"mouseover":case"mouseout":jf=null;break;case"pointerover":case"pointerout":Mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function $f(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 Fe(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Fe(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 Ff(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);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Uf(e,t,n){Ff(e)&&n.delete(t)}function Bf(){If=!1,null!==Af&&Ff(Af)&&(Af=null),null!==Of&&Ff(Of)&&(Of=null),null!==jf&&Ff(jf)&&(jf=null),Mf.forEach(Uf),Lf.forEach(Uf)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,If||(If=!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!==Af&&qf(Af,e),null!==Of&&qf(Of,e),null!==jf&&qf(jf,e),Mf.forEach(t),Lf.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"));D.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=We(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,Me(t,n),Du(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var O=(_||(_=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=A()),f.exports),j=C();const M=r(j),L=t({__proto__:null,default:M},[j]);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 D(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var W,$,z={exports:{}},F={};function U(){if(W)return F;W=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 F.ContextConsumer=i,F.ContextProvider=a,F.Element=e,F.ForwardRef=s,F.Fragment=n,F.Lazy=d,F.Memo=u,F.Portal=t,F.Profiler=o,F.StrictMode=r,F.Suspense=l,F.SuspenseList=c,F.isContextConsumer=function(e){return h(e)===i},F.isContextProvider=function(e){return h(e)===a},F.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},F.isForwardRef=function(e){return h(e)===s},F.isFragment=function(e){return h(e)===n},F.isLazy=function(e){return h(e)===d},F.isMemo=function(e){return h(e)===u},F.isPortal=function(e){return h(e)===t},F.isProfiler=function(e){return h(e)===o},F.isStrictMode=function(e){return h(e)===r},F.isSuspense=function(e){return h(e)===l},F.isSuspenseList=function(e){return h(e)===c},F.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)},F.typeOf=h,F}function B(){return $||($=1,z.exports=U()),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(j.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=>{j.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?"":D(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),Se=xe("borderTop",we),ke=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Re=xe("borderRightColor"),Ie=xe("borderBottomColor"),Ae=xe("borderLeftColor"),Oe=xe("outline",we),je=xe("outlineColor"),Me=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};Me.propTypes={},Me.filterProps=["borderRadius"],ve(Ce,Se,ke,Ee,_e,Te,Pe,Re,Ie,Ae,Me,Oe,je);const Le=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};Le.propTypes={},Le.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 De=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};De.propTypes={},De.filterProps=["rowGap"];function We(e,t){return"grey"===t?t:e}ve(Le,Ne,De,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 $e(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:We}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:We}),ie({prop:"backgroundColor",themeKey:"palette",transform:We}));const ze=ie({prop:"width",transform:$e}),Fe=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:$e(t)}};return J(e,e.maxWidth,t)}return null};Fe.filterProps=["maxWidth"];const Ue=ie({prop:"minWidth",transform:$e}),Be=ie({prop:"height",transform:$e}),qe=ie({prop:"maxHeight",transform:$e}),He=ie({prop:"minHeight",transform:$e});ie({prop:"size",cssProperty:"width",transform:$e}),ie({prop:"size",cssProperty:"height",transform:$e});ve(ze,Fe,Ue,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:Me},color:{themeKey:"palette",transform:We},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:We},backgroundColor:{themeKey:"palette",transform:We},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:Le},rowGap:{style:De},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:$e},maxWidth:{style:Fe},minWidth:{transform:$e},height:{transform:$e},maxHeight:{transform:$e},minHeight:{transform:$e},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?"":D(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 St(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function kt(){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 Rt(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function It(e){return wt="",e}function At(e){return st(Tt(bt-1,Mt(91===e?e+2:40===e?e+1:e)))}function Ot(e){for(;(vt=Et())&&vt<33;)kt();return Pt(e)>2||Pt(vt)>3?"":" "}function jt(e,t){for(;--t&&kt()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==kt()))}function Mt(e){for(;kt();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&Mt(vt);break;case 40:41===e&&Mt(e);break;case 92:kt()}return bt}function Lt(e,t){for(;kt()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:kt())}function Nt(e){for(;!Pt(Et());)kt();return Tt(e,bt)}function Dt(e){return It(Wt("",null,null,null,[""],e=Rt(e),0,[0],e))}function Wt(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,S=v;m;)switch(h=b,b=kt()){case 40:if(108!=h&&58==ut(S,d-1)){-1!=ct(S+=lt(At(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=At(b);break;case 9:case 10:case 13:case 32:S+=Ot(h);break;case 92:S+=jt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(Lt(kt(),_t()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=ft(S)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(S=lt(S,/\f/g,"")),p>0&&ft(S)-d&&ht(p>32?Ft(S+";",r,n,d-1):Ft(lt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ht(C=$t(S,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Wt(S,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(S,3)?100:f){case 100:case 108:case 109:case 115:Wt(e,C,C,r&&ht($t(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Wt(S,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=S="",d=a;break;case 58:d=1+ft(S),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==St())continue;switch(S+=it(b),b*g){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ft(S)-1)*y,y=1;break;case 64:45===Et()&&(S+=At(kt())),f=Et(),u=d=ft(v=S+=Nt(_t())),b++;break;case 45:45===h&&2==ft(S)&&(g=0)}}return i}function $t(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 Ft(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ut(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+"{"+Ut(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ut(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);)kt();return Tt(e,bt)},Vt=function(e,t){return It(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]+=At(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=kt());return e}(Rt(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 Ut([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 Ut([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ut([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,Ut(Dt(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=!!L.useInsertionEffect&&L.useInsertionEffect,Cn=xn||function(e){return e()},Sn=xn||j.useLayoutEffect,kn=j.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);kn.Provider;var En,_n,Tn=function(e){return j.forwardRef(function(t,n){var r=j.useContext(kn);return e(t,r,n)})},Pn=j.createContext({}),Rn={}.hasOwnProperty,In="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",An=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},On=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[In],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,j.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)Rn.call(e,c)&&"css"!==c&&c!==In&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),j.createElement(j.Fragment,null,j.createElement(An,{cache:t,serialized:s,isStringTag:"string"==typeof o}),j.createElement(o,l))}),jn=function(e,t){var n=arguments;if(null==t||!Rn.call(t,"css"))return j.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=On,o[1]=function(e,t){var n={};for(var r in t)Rn.call(t,r)&&(n[r]=t[r]);return n[In]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return j.createElement.apply(null,o)};En=jn||(jn={}),_n||(_n=En.JSX||(En.JSX={}));var Mn=Tn(function(e,t){var n=wn([e.styles],void 0,j.useContext(Pn)),r=j.useRef();return Sn(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]),Sn(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 Ln(){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=Ln.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 Dn=/^((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)-.*))$/,Wn=qt(function(e){return Dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),$n=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Wn:$n},Fn=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},Un=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=Fn(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=j.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),j.createElement(j.Fragment,null,j.createElement(Un,{cache:t,serialized:h,isStringTag:"string"==typeof r}),j.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:Fn(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(Mn,{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=j.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 Sr({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 kr="undefined"!=typeof window?j.useLayoutEffect:j.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 Rr(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 Ir(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Rr(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 Ar(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 Or(e,t,n){try{return Ar(e,t)}catch(r){return e}}function jr(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 Mr(e,t,n){try{return jr(e,t)}catch(r){return e}}function Lr(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 Lr(e,t)}catch(r){return e}}function Dr(e,t,n){try{return function(e,t=.15){return Ir(e)>.5?jr(e,t):Lr(e,t)}(e,t)}catch(r){return e}}const Wr=j.createContext(void 0);function $r({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:j.useContext(Wr)}})}let zr=0;const Fr={...L}.useId;function Ur(e){if(void 0!==Fr){const t=Fr();return e??t}return function(e){const[t,n]=j.useState(e),r=e||t;return j.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 Sr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return Sr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=j.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(j.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",So="#ab47bc",ko="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Po="#f44336",Ro="#d32f2f",Io="#c62828",Ao="#ffb74d",Oo="#ffa726",jo="#ff9800",Mo="#f57c00",Lo="#e65100",No="#e3f2fd",Do="#90caf9",Wo="#42a5f5",$o="#1976d2",zo="#1565c0",Fo="#4fc3f7",Uo="#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=Lr(e.main,o):"dark"===t&&(e.dark=jr(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:Do,light:No,dark:Wo}:{main:$o,light:Wo,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:So}:{main:ko,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:_o,dark:Ro}:{main:Ro,light:To,dark:Io}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Uo,light:Fo,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:Oo,light:Ao,dark:Mo}:{main:"#ed6c02",light:jo,dark:Lo}}(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=Ir(e),r=Ir(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})`:Ar(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)})`:Lr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:jr(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}function Ci(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Si=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Ci(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 Ei(e){return"dark"===e?Si:[]}function _i(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 Ti=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 Pi(e,t,n){!e[t]&&n&&(e[t]=n)}function Ri(e){return"string"==typeof e&&e.startsWith("hsl")?Rr(e):e}function Ii(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Ri(e[t])))}const Ai=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||Ei(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||Ei(i)},s}function ji(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=_i,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:(S=u.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;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===Or&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Mr&&(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&&(Pi(t.common,"background","#fff"),Pi(t.common,"onBackground","#000")),"dark"===t.mode&&(Pi(t.common,"background","#000"),Pi(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){Pi(t.Alert,"errorColor",r(Mr,t.error.light,.6)),Pi(t.Alert,"infoColor",r(Mr,t.info.light,.6)),Pi(t.Alert,"successColor",r(Mr,t.success.light,.6)),Pi(t.Alert,"warningColor",r(Mr,t.warning.light,.6)),Pi(t.Alert,"errorFilledBg",n("palette-error-main")),Pi(t.Alert,"infoFilledBg",n("palette-info-main")),Pi(t.Alert,"successFilledBg",n("palette-success-main")),Pi(t.Alert,"warningFilledBg",n("palette-warning-main")),Pi(t.Alert,"errorFilledColor",Ai(()=>t.getContrastText(t.error.main))),Pi(t.Alert,"infoFilledColor",Ai(()=>t.getContrastText(t.info.main))),Pi(t.Alert,"successFilledColor",Ai(()=>t.getContrastText(t.success.main))),Pi(t.Alert,"warningFilledColor",Ai(()=>t.getContrastText(t.warning.main))),Pi(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Pi(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Pi(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Pi(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Pi(t.Alert,"errorIconColor",n("palette-error-main")),Pi(t.Alert,"infoIconColor",n("palette-info-main")),Pi(t.Alert,"successIconColor",n("palette-success-main")),Pi(t.Alert,"warningIconColor",n("palette-warning-main")),Pi(t.AppBar,"defaultBg",n("palette-grey-100")),Pi(t.Avatar,"defaultBg",n("palette-grey-400")),Pi(t.Button,"inheritContainedBg",n("palette-grey-300")),Pi(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Pi(t.Chip,"defaultBorder",n("palette-grey-400")),Pi(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Pi(t.Chip,"defaultIconColor",n("palette-grey-700")),Pi(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Pi(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Pi(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Pi(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Pi(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Pi(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Pi(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Pi(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Pi(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Pi(t.Skeleton,"bg",v?r(Or,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Pi(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Pi(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Pi(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Pi(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Pi(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Pi(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(Mr,t.background.default,.6825):Dr(t.background.default,.8);Pi(t.SnackbarContent,"bg",e),Pi(t.SnackbarContent,"color",Ai(()=>v?ti.text.primary:t.getContrastText(e))),Pi(t.SpeedDialAction,"fabHoverBg",Dr(t.background.paper,.15)),Pi(t.StepConnector,"border",n("palette-grey-400")),Pi(t.StepContent,"border",n("palette-grey-400")),Pi(t.Switch,"defaultColor",n("palette-common-white")),Pi(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Pi(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Pi(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Pi(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Pi(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Pi(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Pi(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Pi(t.TableCell,"border",r(Nr,r(Or,t.divider,1),.88)),Pi(t.Tooltip,"bg",r(Or,t.grey[700],.92))}if("dark"===t.mode){Pi(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Pi(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Pi(t.Alert,"successColor",r(Nr,t.success.light,.6)),Pi(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Pi(t.Alert,"errorFilledBg",n("palette-error-dark")),Pi(t.Alert,"infoFilledBg",n("palette-info-dark")),Pi(t.Alert,"successFilledBg",n("palette-success-dark")),Pi(t.Alert,"warningFilledBg",n("palette-warning-dark")),Pi(t.Alert,"errorFilledColor",Ai(()=>t.getContrastText(t.error.dark))),Pi(t.Alert,"infoFilledColor",Ai(()=>t.getContrastText(t.info.dark))),Pi(t.Alert,"successFilledColor",Ai(()=>t.getContrastText(t.success.dark))),Pi(t.Alert,"warningFilledColor",Ai(()=>t.getContrastText(t.warning.dark))),Pi(t.Alert,"errorStandardBg",r(Mr,t.error.light,.9)),Pi(t.Alert,"infoStandardBg",r(Mr,t.info.light,.9)),Pi(t.Alert,"successStandardBg",r(Mr,t.success.light,.9)),Pi(t.Alert,"warningStandardBg",r(Mr,t.warning.light,.9)),Pi(t.Alert,"errorIconColor",n("palette-error-main")),Pi(t.Alert,"infoIconColor",n("palette-info-main")),Pi(t.Alert,"successIconColor",n("palette-success-main")),Pi(t.Alert,"warningIconColor",n("palette-warning-main")),Pi(t.AppBar,"defaultBg",n("palette-grey-900")),Pi(t.AppBar,"darkBg",n("palette-background-paper")),Pi(t.AppBar,"darkColor",n("palette-text-primary")),Pi(t.Avatar,"defaultBg",n("palette-grey-600")),Pi(t.Button,"inheritContainedBg",n("palette-grey-800")),Pi(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Pi(t.Chip,"defaultBorder",n("palette-grey-700")),Pi(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Pi(t.Chip,"defaultIconColor",n("palette-grey-300")),Pi(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Pi(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Pi(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Pi(t.LinearProgress,"primaryBg",r(Mr,t.primary.main,.5)),Pi(t.LinearProgress,"secondaryBg",r(Mr,t.secondary.main,.5)),Pi(t.LinearProgress,"errorBg",r(Mr,t.error.main,.5)),Pi(t.LinearProgress,"infoBg",r(Mr,t.info.main,.5)),Pi(t.LinearProgress,"successBg",r(Mr,t.success.main,.5)),Pi(t.LinearProgress,"warningBg",r(Mr,t.warning.main,.5)),Pi(t.Skeleton,"bg",v?r(Or,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Pi(t.Slider,"primaryTrack",r(Mr,t.primary.main,.5)),Pi(t.Slider,"secondaryTrack",r(Mr,t.secondary.main,.5)),Pi(t.Slider,"errorTrack",r(Mr,t.error.main,.5)),Pi(t.Slider,"infoTrack",r(Mr,t.info.main,.5)),Pi(t.Slider,"successTrack",r(Mr,t.success.main,.5)),Pi(t.Slider,"warningTrack",r(Mr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):Dr(t.background.default,.98);Pi(t.SnackbarContent,"bg",e),Pi(t.SnackbarContent,"color",Ai(()=>v?Jo.text.primary:t.getContrastText(e))),Pi(t.SpeedDialAction,"fabHoverBg",Dr(t.background.paper,.15)),Pi(t.StepConnector,"border",n("palette-grey-600")),Pi(t.StepContent,"border",n("palette-grey-600")),Pi(t.Switch,"defaultColor",n("palette-grey-300")),Pi(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Pi(t.Switch,"primaryDisabledColor",r(Mr,t.primary.main,.55)),Pi(t.Switch,"secondaryDisabledColor",r(Mr,t.secondary.main,.55)),Pi(t.Switch,"errorDisabledColor",r(Mr,t.error.main,.55)),Pi(t.Switch,"infoDisabledColor",r(Mr,t.info.main,.55)),Pi(t.Switch,"successDisabledColor",r(Mr,t.success.main,.55)),Pi(t.Switch,"warningDisabledColor",r(Mr,t.warning.main,.55)),Pi(t.TableCell,"border",r(Mr,r(Or,t.divider,1),.68)),Pi(t.Tooltip,"bg",r(Or,t.grey[700],.92))}Ii(t.background,"default"),Ii(t.background,"paper"),Ii(t.common,"background"),Ii(t.common,"onBackground"),Ii(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Pi(t[e],"mainChannel",Tr(Ri(n.main))),n.light&&Pi(t[e],"lightChannel",Tr(Ri(n.light))),n.dark&&Pi(t[e],"darkChannel",Tr(Ri(n.dark))),n.contrastText&&Pi(t[e],"contrastTextChannel",Tr(Ri(n.contrastText))),"text"===e&&(Ii(t[e],"primary"),Ii(t[e],"secondary")),"action"===e&&(n.active&&Ii(t[e],"active"),n.selected&&Ii(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Ti(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,k);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 Mi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function Li(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},Mi(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Mi(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),ji({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ni=Li(),Di="$$material";function Wi(){const e=tr(Ni);return e[Di]||e}function $i(e){return d.jsx(rr,{...e,defaultTheme:Ni,themeId:Di})}const zi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Fi=br({themeId:Di,defaultTheme:Ni,rootShouldForwardProp:zi});function Ui(e){return function(t){return d.jsx($i,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Bi(e){return $r(e)}const qi="function"==typeof Ui({}),Hi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Vi=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}}),Ki=(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:Hi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Vi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Gi="mui-ecs",Qi=Ui(qi?({theme:e,enableColorScheme:t})=>Ki(e,t):({theme:e})=>(e=>{const t=Ki(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Gi})`]={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(.${Gi}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Gi}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Yi(e){const t=Bi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(j.Fragment,{children:[qi&&d.jsx(Qi,{enableColorScheme:r}),!qi&&!r&&d.jsx("span",{className:Gi,style:{display:"none"}}),n]})}var Zi,Xi={};var Ji=function(){if(Zi)return Xi;Zi=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.Base64=e,Xi}();const ea={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6",CROCO:"kQBUHVeYusWquTX4Gn1GvV979gxv6eVlCVqIMeIcTnlE9bDE"},ta=class e{static init(){{let t="",n="",r={};window.Telegram&&(n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{});let 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 Ji.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=ea,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`}};ta.APP_VERSION="1.0.39-beta.1",ta.RES_URL="https://games.pluto.vision/sdk/resource/",ta.API_URL="https://sdk1.pluto.vision/",ta.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ta.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ta.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy",CROCO:"EQDF5N2oEyfuqZ2IWOTjfY2cR4NvxxBCAKv7yDKX1Mula2ix"},ta.MANIFEST_URL="",ta.TEST_MODE=!1,ta.BOT_NAME="",ta.GAME_ID="",ta.INIT_DATA="",ta.TOKEN="",ta.CP_CUSTOM_LINK="",ta.FULL_SCREEN=!1,ta.START_PARAM="";let na=ta;function ra(e,t){return function(){return e.apply(t,arguments)}}const{toString:oa}=Object.prototype,{getPrototypeOf:ia}=Object,{iterator:aa,toStringTag:sa}=Symbol,la=(e=>t=>{const n=oa.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ca=e=>(e=e.toLowerCase(),t=>la(t)===e),ua=e=>t=>typeof t===e,{isArray:da}=Array,fa=ua("undefined");function pa(e){return null!==e&&!fa(e)&&null!==e.constructor&&!fa(e.constructor)&&ma(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ha=ca("ArrayBuffer");const ga=ua("string"),ma=ua("function"),ya=ua("number"),ba=e=>null!==e&&"object"==typeof e,va=e=>{if("object"!==la(e))return!1;const t=ia(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||sa in e||aa in e)},wa=ca("Date"),xa=ca("File"),Ca=ca("Blob"),Sa=ca("FileList"),ka=ca("URLSearchParams"),[Ea,_a,Ta,Pa]=["ReadableStream","Request","Response","Headers"].map(ca);function Ra(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),da(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(pa(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 Ia(e,t){if(pa(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 Aa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!fa(e)&&e!==Aa;const ja=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ia(Uint8Array)),Ma=ca("HTMLFormElement"),La=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Na=ca("RegExp"),Da=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ra(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Wa=ca("AsyncFunction"),$a=(za="function"==typeof setImmediate,Fa=ma(Aa.postMessage),za?setImmediate:Fa?(Ua=`axios@${Math.random()}`,Ba=[],Aa.addEventListener("message",({source:e,data:t})=>{e===Aa&&t===Ua&&Ba.length&&Ba.shift()()},!1),e=>{Ba.push(e),Aa.postMessage(Ua,"*")}):e=>setTimeout(e));var za,Fa,Ua,Ba;const qa="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Aa):"undefined"!=typeof process&&process.nextTick||$a,Ha={isArray:da,isArrayBuffer:ha,isBuffer:pa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ma(e.append)&&("formdata"===(t=la(e))||"object"===t&&ma(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ha(e.buffer),t},isString:ga,isNumber:ya,isBoolean:e=>!0===e||!1===e,isObject:ba,isPlainObject:va,isEmptyObject:e=>{if(!ba(e)||pa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Ea,isRequest:_a,isResponse:Ta,isHeaders:Pa,isUndefined:fa,isDate:wa,isFile:xa,isBlob:Ca,isRegExp:Na,isFunction:ma,isStream:e=>ba(e)&&ma(e.pipe),isURLSearchParams:ka,isTypedArray:ja,isFileList:Sa,forEach:Ra,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Ia(r,i)||i;va(r[a])&&va(o)?r[a]=e(r[a],o):va(o)?r[a]=e({},o):da(o)?r[a]=o.slice():n&&fa(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Ra(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Ra(t,(t,r)=>{n&&ma(t)?e[r]=ra(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&&ia(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:la,kindOfTest:ca,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(da(e))return e;let t=e.length;if(!ya(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[aa]).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:Ma,hasOwnProperty:La,hasOwnProp:La,reduceDescriptors:Da,freezeMethods:e=>{Da(e,(t,n)=>{if(ma(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ma(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 da(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:Ia,global:Aa,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ma(e.append)&&"FormData"===e[sa]&&e[aa])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ba(e)){if(t.indexOf(e)>=0)return;if(pa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=da(e)?[]:{};return Ra(e,(e,t)=>{const i=n(e,r+1);!fa(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Wa,isThenable:e=>e&&(ba(e)||ma(e))&&ma(e.then)&&ma(e.catch),setImmediate:$a,asap:qa,isIterable:e=>null!=e&&ma(e[aa])};function Va(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)}Ha.inherits(Va,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:Ha.toJSONObject(this.config),code:this.code,status:this.status}}});const Ka=Va.prototype,Ga={};["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=>{Ga[e]={value:e}}),Object.defineProperties(Va,Ga),Object.defineProperty(Ka,"isAxiosError",{value:!0}),Va.from=(e,t,n,r,o,i)=>{const a=Object.create(Ka);Ha.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 Va.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 Qa(e){return Ha.isPlainObject(e)||Ha.isArray(e)}function Ya(e){return Ha.endsWith(e,"[]")?e.slice(0,-2):e}function Za(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ya(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Xa=Ha.toFlatObject(Ha,{},null,function(e){return/^is[A-Z]/.test(e)});function Ja(e,t,n){if(!Ha.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ha.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ha.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ha.isSpecCompliantForm(t);if(!Ha.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ha.isDate(e))return e.toISOString();if(Ha.isBoolean(e))return e.toString();if(!s&&Ha.isBlob(e))throw new Va("Blob is not supported. Use a Buffer instead.");return Ha.isArrayBuffer(e)||Ha.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(Ha.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ha.isArray(e)&&function(e){return Ha.isArray(e)&&!e.some(Qa)}(e)||(Ha.isFileList(e)||Ha.endsWith(n,"[]"))&&(s=Ha.toArray(e)))return n=Ya(n),s.forEach(function(e,r){!Ha.isUndefined(e)&&null!==e&&t.append(!0===a?Za([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Qa(e)||(t.append(Za(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xa,{defaultVisitor:c,convertValue:l,isVisitable:Qa});if(!Ha.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ha.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ha.forEach(n,function(n,i){!0===(!(Ha.isUndefined(n)||null===n)&&o.call(t,n,Ha.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function es(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ts(e,t){this._pairs=[],e&&Ja(e,this,t)}const ns=ts.prototype;function rs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function os(e,t,n){if(!t)return e;const r=n&&n.encode||rs;Ha.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ha.isURLSearchParams(t)?t.toString():new ts(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ns.append=function(e,t){this._pairs.push([e,t])},ns.toString=function(e){const t=e?function(t){return e.call(this,t,es)}:es;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class is{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){Ha.forEach(this.handlers,function(t){null!==t&&e(t)})}}const as={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ss={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ts,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ls="undefined"!=typeof window&&"undefined"!=typeof document,cs="object"==typeof navigator&&navigator||void 0,us=ls&&(!cs||["ReactNative","NativeScript","NS"].indexOf(cs.product)<0),ds="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fs=ls&&window.location.href||"http://localhost",ps={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ls,hasStandardBrowserEnv:us,hasStandardBrowserWebWorkerEnv:ds,navigator:cs,origin:fs},Symbol.toStringTag,{value:"Module"})),...ss};function hs(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&&Ha.isArray(r)?r.length:i,s)return Ha.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ha.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ha.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(Ha.isFormData(e)&&Ha.isFunction(e.entries)){const n={};return Ha.forEachEntry(e,(e,r)=>{t(function(e){return Ha.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const gs={transitional:as,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ha.isObject(e);o&&Ha.isHTMLForm(e)&&(e=new FormData(e));if(Ha.isFormData(e))return r?JSON.stringify(hs(e)):e;if(Ha.isArrayBuffer(e)||Ha.isBuffer(e)||Ha.isStream(e)||Ha.isFile(e)||Ha.isBlob(e)||Ha.isReadableStream(e))return e;if(Ha.isArrayBufferView(e))return e.buffer;if(Ha.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 Ja(e,new ps.classes.URLSearchParams,{visitor:function(e,t,n,r){return ps.isNode&&Ha.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Ha.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ja(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ha.isString(e))try{return(t||JSON.parse)(e),Ha.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||gs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ha.isResponse(e)||Ha.isReadableStream(e))return e;if(e&&Ha.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 Va.from(o,Va.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:ps.classes.FormData,Blob:ps.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ha.forEach(["delete","get","head","post","put","patch"],e=>{gs.headers[e]={}});const ms=Ha.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"]),ys=Symbol("internals");function bs(e){return e&&String(e).trim().toLowerCase()}function vs(e){return!1===e||null==e?e:Ha.isArray(e)?e.map(vs):String(e)}function ws(e,t,n,r,o){return Ha.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ha.isString(t)?Ha.isString(r)?-1!==t.indexOf(r):Ha.isRegExp(r)?r.test(t):void 0:void 0)}let xs=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=bs(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ha.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=vs(e))}const i=(e,t)=>Ha.forEach(e,(e,n)=>o(e,n,t));if(Ha.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ha.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]&&ms[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(Ha.isObject(e)&&Ha.isIterable(e)){let n,r,o={};for(const t of e){if(!Ha.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Ha.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=bs(e)){const n=Ha.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(Ha.isFunction(t))return t.call(this,e,n);if(Ha.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bs(e)){const n=Ha.findKey(this,e);return!(!n||void 0===this[n]||t&&!ws(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=bs(e)){const o=Ha.findKey(n,e);!o||t&&!ws(0,n[o],o,t)||(delete n[o],r=!0)}}return Ha.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&&!ws(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ha.forEach(this,(r,o)=>{const i=Ha.findKey(n,o);if(i)return t[i]=vs(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]=vs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ha.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ha.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[ys]=this[ys]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=bs(e);t[r]||(!function(e,t){const n=Ha.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 Ha.isArray(e)?e.forEach(r):r(e),this}};function Cs(e,t){const n=this||gs,r=t||n,o=xs.from(r.headers);let i=r.data;return Ha.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ss(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Va.call(this,null==e?"canceled":e,Va.ERR_CANCELED,t,n),this.name="CanceledError"}function Es(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Va("Request failed with status code "+n.status,[Va.ERR_BAD_REQUEST,Va.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ha.reduceDescriptors(xs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ha.freezeMethods(xs),Ha.inherits(ks,Va,{__CANCEL__:!0});const _s=(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)},Ts=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ps=e=>(...t)=>Ha.asap(()=>e(...t)),Rs=ps.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ps.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ps.origin),ps.navigator&&/(msie|trident)/i.test(ps.navigator.userAgent)):()=>!0,Is=ps.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ha.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Ha.isString(r)&&s.push(`path=${r}`),Ha.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ha.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 As(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 xs?{...e}:e;function js(e,t){t=t||{};const n={};function r(e,t,n,r){return Ha.isPlainObject(e)&&Ha.isPlainObject(t)?Ha.merge.call({caseless:r},e,t):Ha.isPlainObject(t)?Ha.merge({},t):Ha.isArray(t)?t.slice():t}function o(e,t,n,o){return Ha.isUndefined(t)?Ha.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ha.isUndefined(t))return r(void 0,t)}function a(e,t){return Ha.isUndefined(t)?Ha.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 Ha.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ha.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ms=e=>{const t=js({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=xs.from(a),t.url=os(As(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ha.isFormData(n))if(ps.hasStandardBrowserEnv||ps.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ha.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(ps.hasStandardBrowserEnv&&(r&&Ha.isFunction(r)&&(r=r(t)),r||!1!==r&&Rs(t.url))){const e=o&&i&&Is.read(i);e&&a.set(o,e)}return t},Ls="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ms(e);let o=r.data;const i=xs.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=xs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Es(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 Va("Request aborted",Va.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Va(t&&t.message?t.message:"Network Error",Va.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||as;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Va(t,o.clarifyTimeoutError?Va.ETIMEDOUT:Va.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Ha.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Ha.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=_s(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=_s(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===ps.protocols.indexOf(y)?n(new Va("Unsupported protocol "+y+":",Va.ERR_BAD_REQUEST,e)):g.send(o||null)})},Ns=(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 Va?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Va(`timeout ${t} of ms exceeded`,Va.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=()=>Ha.asap(a),s}},Ds=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},Ws=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()}},$s=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ws(e))yield*Ds(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:zs}=Ha,Fs=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ha.global),{ReadableStream:Us,TextEncoder:Bs}=Ha.global,qs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Hs=e=>{e=Ha.merge.call({skipUndefined:!0},Fs,e);const{fetch:t,Request:n,Response:r}=e,o=t?zs(t):"function"==typeof fetch,i=zs(n),a=zs(r);if(!o)return!1;const s=o&&zs(Us),l=o&&("function"==typeof Bs?(e=>t=>e.encode(t))(new Bs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&qs(()=>{let e=!1;const t=new n(ps.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&qs(()=>Ha.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 Va(`Response type '${e}' is not supported`,Va.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=Ha.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Ha.isBlob(e))return e.size;if(Ha.isSpecCompliantForm(e)){const t=new n(ps.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ha.isArrayBufferView(e)||Ha.isArrayBuffer(e)?e.byteLength:(Ha.isURLSearchParams(e)&&(e+=""),Ha.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}=Ms(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Ns([l,p&&p.toAbortSignal()],h),S=null;const k=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(Ha.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Ts(E,_s(Ps(m)));s=$s(t.body,65536,e,n)}}Ha.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};S=i&&new n(o,l);let p=await(i?x(S,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=Ha.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&Ts(t,_s(Ps(g),!0))||[];p=new r($s(p.body,65536,n,()=>{o&&o(),k&&k()}),e)}y=y||"text";let _=await d[Ha.findKey(d,y)||"text"](p,e);return!h&&k&&k(),await new Promise((t,n)=>{Es(t,n,{data:_,headers:xs.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(_){if(k&&k(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Va("Network Error",Va.ERR_NETWORK,e,S),{cause:_.cause||_});throw Va.from(_,_&&_.code,e,S)}}},Vs=new Map,Ks=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=Vs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Hs(t)),c=s;return s};Ks();const Gs={http:null,xhr:Ls,fetch:{get:Ks}};Ha.forEach(Gs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Qs=e=>`- ${e}`,Ys=e=>Ha.isFunction(e)||null===e||!1===e;const Zs={getAdapter:function(e,t){e=Ha.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,!Ys(r)&&(o=Gs[(n=String(r)).toLowerCase()],void 0===o))throw new Va(`Unknown adapter '${n}'`);if(o&&(Ha.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 Va("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Qs).join("\n"):" "+Qs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Gs};function Xs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Js(e){Xs(e),e.headers=xs.from(e.headers),e.data=Cs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zs.getAdapter(e.adapter||gs.adapter,e)(e).then(function(t){return Xs(e),t.data=Cs.call(e,e.transformResponse,t),t.headers=xs.from(t.headers),t},function(t){return Ss(t)||(Xs(e),t&&t.response&&(t.response.data=Cs.call(e,e.transformResponse,t.response),t.response.headers=xs.from(t.response.headers))),Promise.reject(t)})}const el="1.13.1",tl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const nl={};tl.transitional=function(e,t,n){function r(e,t){return"[Axios v"+el+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Va(r(o," has been removed"+(t?" in "+t:"")),Va.ERR_DEPRECATED);return t&&!nl[o]&&(nl[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)}},tl.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const rl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Va("options must be an object",Va.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 Va("option "+i+" must be "+n,Va.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Va("Unknown option "+i,Va.ERR_BAD_OPTION)}},validators:tl},ol=rl.validators;let il=class{constructor(e){this.defaults=e||{},this.interceptors={request:new is,response:new is}}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=js(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&rl.assertOptions(n,{silentJSONParsing:ol.transitional(ol.boolean),forcedJSONParsing:ol.transitional(ol.boolean),clarifyTimeoutError:ol.transitional(ol.boolean)},!1),null!=r&&(Ha.isFunction(r)?t.paramsSerializer={serialize:r}:rl.assertOptions(r,{encode:ol.function,serialize:ol.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rl.assertOptions(t,{baseUrl:ol.spelling("baseURL"),withXsrfToken:ol.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ha.merge(o.common,o[t.method]);o&&Ha.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=xs.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=[Js.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=Js.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 os(As((e=js(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Ha.forEach(["delete","get","head","options"],function(e){il.prototype[e]=function(t,n){return this.request(js(n||{},{method:e,url:t,data:(n||{}).data}))}}),Ha.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(js(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}il.prototype[e]=t(),il.prototype[e+"Form"]=t(!0)});const al={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(al).forEach(([e,t])=>{al[t]=e});const sl=function e(t){const n=new il(t),r=ra(il.prototype.request,n);return Ha.extend(r,il.prototype,n,{allOwnKeys:!0}),Ha.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(js(t,n))},r}(gs);sl.Axios=il,sl.CanceledError=ks,sl.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}}},sl.isCancel=Ss,sl.VERSION=el,sl.toFormData=Ja,sl.AxiosError=Va,sl.Cancel=sl.CanceledError,sl.all=function(e){return Promise.all(e)},sl.spread=function(e){return function(t){return e.apply(null,t)}},sl.isAxiosError=function(e){return Ha.isObject(e)&&!0===e.isAxiosError},sl.mergeConfig=js,sl.AxiosHeaders=xs,sl.formToJSON=e=>hs(Ha.isHTMLForm(e)?new FormData(e):e),sl.getAdapter=Zs.getAdapter,sl.HttpStatusCode=al,sl.default=sl;const{Axios:ll,AxiosError:cl,CanceledError:ul,isCancel:dl,CancelToken:fl,VERSION:pl,all:hl,Cancel:gl,isAxiosError:ml,spread:yl,toFormData:bl,AxiosHeaders:vl,HttpStatusCode:wl,formToJSON:xl,getAdapter:Cl,mergeConfig:Sl}=sl,kl="ps_app_did_mount",El="ps_game_info_loaded",_l="ps_game_ready",Tl="ps_switch_page",Pl="ps_wallet_connect",Rl="ps_play_button_clicked",Il="ps_purchase_completed",Al="ps_check_in_completed",Ol="event_purchaseCompleted",jl="event_checkInCompleted";var Ml=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ml||{}),Ll=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(Ll||{}),Nl=(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.purchasing=10008]="purchasing",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))(Nl||{}),Dl=(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))(Dl||{}),Wl=(e=>(e[e.star=1]="star",e[e.ton=2]="ton",e[e.balance=3]="balance",e[e.mon=4]="mon",e[e.solana=5]="solana",e[e.tribute=6]="tribute",e))(Wl||{}),$l=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))($l||{}),zl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(zl||{}),Fl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pyboboTon="pyboboTon",e.pyboboSolana="pyboboSolana",e.croco="croco",e))(Fl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pyboboTon:"PYBOBO",pyboboSolana:"PYBOBO",croco:"CROCO"},Bl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pyboboTon:"PYBOBO",pyboboSolana:"PYBOBO",croco:"CROCO"},ql={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"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",coc:"1048_currency_coc.png"},1057:{star:"1057_currency_star.png",ton:"1057_currency_ton.png",usdt:"1057_currency_usdt.png",cati:"1057_currency_cati.png"},1060:{star:"1060_currency_star.png",ton:"1060_currency_ton.png",usdt:"1060_currency_usdt.png",cati:"1060_currency_cati.png",pyboboTon:"1060_currency_pybobo_ton.png",pyboboSolana:"1060_currency_pybobo_solana.png",croco:"1060_currency_croco.png"},1061:{star:"1061_currency_star.png",ton:"1061_currency_ton.png",usdt:"1061_currency_usdt.png",cati:"1061_currency_cati.png"}},Hl={1048:"coc",1060:"croco"},Vl={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}},Kl={0:["add_screen.png","bg_1.png","bg_2.png","button_1.png","button_2.png","cat_ball.png","currency_cati.png","currency_star.png","currency_ton.png","currency_usdt.png","dot.png","sale_off.png","tag_icon1.png","tag_icon2.png"],1041:["1041_bg_1.png","1041_close.png","1041_currency_cati.png","1041_currency_star.png","1041_currency_ton.png","1041_currency_usdt.png","1041_disconnect.png","1041_pay_button.png","1041_sale_off.png","1041_title_1.png","1041_title_2.png","1041_wallet.png"],1048:["1048_bg_1.png","1048_bg_2.png","1048_close.png","1048_currency_coc.png","1048_currency_star.png","1048_currency_ton.png","1048_currency_usdt.png","1048_disconnect.png","1048_greate_value.png","1048_pay_button_0.png","1048_pay_button_1.png","1048_sale_off.png","1048_suggest_bg.png","1048_suggest_icon_0.png","1048_suggest_icon_1.png","1048_suggest_icon_2.png","1048_suggest_icon_3.png","1048_suggest_icon_4.png","1048_suggest_icon_5.png","1048_wallet.png"],1057:["1057_button_1.png","1057_button_2.png","1057_currency_star.png","1057_currency_ton.png","1057_currency_usdt.png","1057_logo.png","1057_telegram.png"],1060:["1060_bg_1.png","1060_bg_2.png","1060_bg_3.png","1060_chain_solana.png","1060_chain_ton.png","1060_close.png","1060_currency_cati.png","1060_currency_croco.png","1060_currency_pybobo_solana.png","1060_currency_pybobo_ton.png","1060_currency_star.png","1060_currency_ton.png","1060_currency_usdt.png","1060_disconnect.png","1060_pay_button.png","1060_sale_off.png","1060_title_1.png","1060_title_2.png","1060_wallet.png"]};class Gl{constructor(e,t){this.code=e,this.message=t}}const Ql=new class{init(){this._axios=sl.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=na.API_URL,na.TOKEN&&(e.headers.Authorization=`Bearer ${na.TOKEN}`)),e),e=>(console.log(e),Promise.reject(new Gl(Nl.netConfigError,"Net config error")))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject(new Gl(Nl.netError,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 Yl,Zl={exports:{}};var Xl,Jl,ec=(Yl||(Yl=1,Xl=Zl,Jl=Zl.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",S="Browser",k="Chrome",E="Firefox",_="Google",T="Honor",P="Huawei",R="LG",I="Microsoft",A="Motorola",O="Nvidia",j="OnePlus",M="Opera",L="OPPO",N="Samsung",D="Sharp",W="Sony",$="Xiaomi",z="Zebra",F="Facebook",U="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,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,M+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,M]],[/\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"+S]],[/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 "+S]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+S],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,M+" 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,F],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,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,k+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+S]],[/(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,D],[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,$],[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,$],[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,L],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":L}],[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,A],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,A],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,R],[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,R],[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,W],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,W],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,j],[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,I],[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,O],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,I],[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,R],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,k+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,O],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,D],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,W],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,$],[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,O],[c,p]],[/(playstation \w+)/i],[s,[u,W],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,I],[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,L],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,j],[c,y]],[/(moto 360)/i],[s,[u,A],[c,y]],[/(smartwatch 3)/i],[s,[u,W],[c,y]],[/(g watch r)/i],[s,[u,R],[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,F],[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,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,U],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,U).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]),Xl.exports&&(Jl=Xl.exports=J),Jl.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:Zl.exports)),Zl.exports);const tc=r(ec),nc=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),rc=e=>`${na.RES_URL}${e}`,oc=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ic=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},ac=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform||"";return e.includes("ios")||e.includes("pados")},sc=()=>{const e=(new ec.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},lc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n(new Gl(Nl.clipboardError,"Method not support"));navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n(new Gl(Nl.clipboardError,"Write text error"))})}),cc=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(new Gl(Nl.clipboardError,"Copy command error"))});class uc{static showLog(e){na.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${na.GAME_ID}`;return new Promise((r,o)=>{Ql.get(n,t).then(t=>{if(uc.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}/${na.GAME_ID}`;return new Promise((r,o)=>{Ql.post(n,t).then(t=>{if(uc.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:na.BOT_NAME,initdata:na.INIT_DATA};return uc.post("pluto/gameinfo",e)}static login(){const e={botname:na.BOT_NAME,initdata:na.INIT_DATA};return uc.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return uc.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 uc.post("pluto/order",s)}static getItem(e){const t={k:e};return uc.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return uc.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return uc.post("pluto/finishorder",t)}static unfinishRecord(){return uc.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return uc.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return uc.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 uc.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return uc.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return uc.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 uc.post("pluto/signdata",s)}static getNfts(){return uc.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return uc.post("pluto/setuserid",n)}static cocGetInfo(){return uc.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return uc.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return uc.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return uc.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return uc.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return uc.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return uc.post("plutococ/cancelwithdraw",t)}static spGetInfo(e){const t={sid:e};return uc.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 uc.post("plutosp/withdraw",i)}static spClaim(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/claim",n)}static spGetWithdrawDetail(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/withdrawdetail",n)}static spGetRecords(e,t,n,r){const o={sid:e,optype:t,page:n,pagesize:r};return uc.post("plutosp/record",o)}static spQueryConsume(e,t){const n={sid:e,time:t};return uc.post("plutosp/queryconsume",n)}static spCancelWithdraw(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/cancelwithdraw",n)}}const dc=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 fc,pc={exports:{}},hc=pc.exports;var gc=(fc||(fc=1,function(e){var t,n;t=hc,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())}(pc)),pc.exports);const mc=r(gc);function yc(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 bc={exports:{}};const vc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var wc;var xc=(wc||(wc=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,S=s,k=l,E=c,_=u,T=d,P=f,R=p,I=h,A=g,O=m,j=y,M=b,L=v,N=w,D=0;D<20;D+=2)x^=(o=(j^=(o=(R^=(o=(E^=(o=x+j|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,_^=(o=(C^=(o=(M^=(o=(I^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+I|0)<<13|o>>>19)+M|0)<<18|o>>>14,A^=(o=(T^=(o=(S^=(o=(L^=(o=A+T|0)<<7|o>>>25)+A|0)<<9|o>>>23)+L|0)<<13|o>>>19)+S|0)<<18|o>>>14,N^=(o=(O^=(o=(P^=(o=(k^=(o=N+O|0)<<7|o>>>25)+N|0)<<9|o>>>23)+k|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(k^=(o=(S^=(o=(C^=(o=x+k|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+S|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,A^=(o=(I^=(o=(R^=(o=(O^=(o=A+I|0)<<7|o>>>25)+A|0)<<9|o>>>23)+O|0)<<13|o>>>19)+R|0)<<18|o>>>14,N^=(o=(L^=(o=(M^=(o=(j^=(o=N+L|0)<<7|o>>>25)+N|0)<<9|o>>>23)+j|0)<<13|o>>>19)+M|0)<<18|o>>>14;x=x+i|0,C=C+a|0,S=S+s|0,k=k+l|0,E=E+c|0,_=_+u|0,T=T+d|0,P=P+f|0,R=R+p|0,I=I+h|0,A=A+g|0,O=O+m|0,j=j+y|0,M=M+b|0,L=L+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]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>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]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=I>>>0&255,e[37]=I>>>8&255,e[38]=I>>>16&255,e[39]=I>>>24&255,e[40]=A>>>0&255,e[41]=A>>>8&255,e[42]=A>>>16&255,e[43]=A>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=j>>>0&255,e[49]=j>>>8&255,e[50]=j>>>16&255,e[51]=j>>>24&255,e[52]=M>>>0&255,e[53]=M>>>8&255,e[54]=M>>>16&255,e[55]=M>>>24&255,e[56]=L>>>0&255,e[57]=L>>>8&255,e[58]=L>>>16&255,e[59]=L>>>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 S(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 k=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 k(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(S(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(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function R(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function I(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 A(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 O(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(I(s),I(s),I(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,A(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return O(n,e),O(r,t),m(n,0,r,0)}function M(e){var t=new Uint8Array(32);return O(t,e),1&t[0]}function L(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 D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function W(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,S=0,k=0,E=0,_=0,T=0,P=0,R=0,I=0,A=0,O=0,j=0,M=0,L=0,N=n[0],D=n[1],W=n[2],$=n[3],z=n[4],F=n[5],U=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*D,s+=r*W,l+=r*$,c+=r*z,u+=r*F,d+=r*U,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*D,l+=r*W,c+=r*$,u+=r*z,d+=r*F,f+=r*U,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*D,c+=r*W,u+=r*$,d+=r*z,f+=r*F,p+=r*U,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*D,u+=r*W,d+=r*$,f+=r*z,p+=r*F,h+=r*U,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,S+=r*Z,c+=(r=t[4])*N,u+=r*D,d+=r*W,f+=r*$,p+=r*z,h+=r*F,g+=r*U,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,S+=r*Y,k+=r*Z,u+=(r=t[5])*N,d+=r*D,f+=r*W,p+=r*$,h+=r*z,g+=r*F,m+=r*U,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,S+=r*Q,k+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*D,p+=r*W,h+=r*$,g+=r*z,m+=r*F,y+=r*U,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,S+=r*G,k+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*D,h+=r*W,g+=r*$,m+=r*z,y+=r*F,b+=r*U,v+=r*B,w+=r*q,x+=r*H,C+=r*V,S+=r*K,k+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*D,g+=r*W,m+=r*$,y+=r*z,b+=r*F,v+=r*U,w+=r*B,x+=r*q,C+=r*H,S+=r*V,k+=r*K,E+=r*G,_+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*D,m+=r*W,y+=r*$,b+=r*z,v+=r*F,w+=r*U,x+=r*B,C+=r*q,S+=r*H,k+=r*V,E+=r*K,_+=r*G,T+=r*Q,P+=r*Y,R+=r*Z,g+=(r=t[10])*N,m+=r*D,y+=r*W,b+=r*$,v+=r*z,w+=r*F,x+=r*U,C+=r*B,S+=r*q,k+=r*H,E+=r*V,_+=r*K,T+=r*G,P+=r*Q,R+=r*Y,I+=r*Z,m+=(r=t[11])*N,y+=r*D,b+=r*W,v+=r*$,w+=r*z,x+=r*F,C+=r*U,S+=r*B,k+=r*q,E+=r*H,_+=r*V,T+=r*K,P+=r*G,R+=r*Q,I+=r*Y,A+=r*Z,y+=(r=t[12])*N,b+=r*D,v+=r*W,w+=r*$,x+=r*z,C+=r*F,S+=r*U,k+=r*B,E+=r*q,_+=r*H,T+=r*V,P+=r*K,R+=r*G,I+=r*Q,A+=r*Y,O+=r*Z,b+=(r=t[13])*N,v+=r*D,w+=r*W,x+=r*$,C+=r*z,S+=r*F,k+=r*U,E+=r*B,_+=r*q,T+=r*H,P+=r*V,R+=r*K,I+=r*G,A+=r*Q,O+=r*Y,j+=r*Z,v+=(r=t[14])*N,w+=r*D,x+=r*W,C+=r*$,S+=r*z,k+=r*F,E+=r*U,_+=r*B,T+=r*q,P+=r*H,R+=r*V,I+=r*K,A+=r*G,O+=r*Q,j+=r*Y,M+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*W),s+=38*(S+=r*$),l+=38*(k+=r*z),c+=38*(E+=r*F),u+=38*(_+=r*U),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(R+=r*H),h+=38*(I+=r*V),g+=38*(A+=r*K),m+=38*(O+=r*G),y+=38*(j+=r*Q),b+=38*(M+=r*Y),v+=38*(L+=r*Z),i=(r=(i+=38*(x+=r*D))+(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 $(e,t){W(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--)$(o,o),2!==r&&4!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)$(o,o),1!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(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,L(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)A(c,u,o=a[i>>>3]>>>(7&i)&1),A(d,f,o),N(p,c,d),D(c,c,d),N(d,u,f),D(u,u,f),$(f,p),$(h,c),W(c,d,c),W(d,u,p),N(p,c,d),D(c,c,d),$(u,c),D(d,f,h),W(c,d,s),N(c,c,f),W(d,d,c),W(c,f,h),W(f,u,l),$(u,p),A(c,u,o),A(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),W(m,m,g),O(e,m),0}function B(e,t){return U(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 U(o,n,t),b(e,r,o,v)}k.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,S=this.h[0],k=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],P=this.h[5],R=this.h[6],I=this.h[7],A=this.h[8],O=this.h[9],j=this.r[0],M=this.r[1],L=this.r[2],N=this.r[3],D=this.r[4],W=this.r[5],$=this.r[6],z=this.r[7],F=this.r[8],U=this.r[9];n>=16;)f=d=0,f+=(S+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*j,f+=(k+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*U),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),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*$))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*W),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),f+=(I+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(A+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*L),p=d+=(f+=(O+=u>>>5|C)*(5*M))>>>13,p+=S*M,p+=k*j,p+=E*(5*U),p+=_*(5*F),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*$),p+=R*(5*W),p+=I*(5*D),p+=A*(5*N),d+=(p+=O*(5*L))>>>13,p&=8191,h=d,h+=S*L,h+=k*M,h+=E*j,h+=_*(5*U),d=(h+=T*(5*F))>>>13,h&=8191,h+=P*(5*z),h+=R*(5*$),h+=I*(5*W),h+=A*(5*D),g=d+=(h+=O*(5*N))>>>13,g+=S*N,g+=k*L,g+=E*M,g+=_*j,d=(g+=T*(5*U))>>>13,g&=8191,g+=P*(5*F),g+=R*(5*z),g+=I*(5*$),g+=A*(5*W),m=d+=(g+=O*(5*D))>>>13,m+=S*D,m+=k*N,m+=E*L,m+=_*M,d=(m+=T*j)>>>13,m&=8191,m+=P*(5*U),m+=R*(5*F),m+=I*(5*z),m+=A*(5*$),y=d+=(m+=O*(5*W))>>>13,y+=S*W,y+=k*D,y+=E*N,y+=_*L,d=(y+=T*M)>>>13,y&=8191,y+=P*j,y+=R*(5*U),y+=I*(5*F),y+=A*(5*z),b=d+=(y+=O*(5*$))>>>13,b+=S*$,b+=k*W,b+=E*D,b+=_*N,d=(b+=T*L)>>>13,b&=8191,b+=P*M,b+=R*j,b+=I*(5*U),b+=A*(5*F),v=d+=(b+=O*(5*z))>>>13,v+=S*z,v+=k*$,v+=E*W,v+=_*D,d=(v+=T*N)>>>13,v&=8191,v+=P*L,v+=R*M,v+=I*j,v+=A*(5*U),w=d+=(v+=O*(5*F))>>>13,w+=S*F,w+=k*z,w+=E*$,w+=_*W,d=(w+=T*D)>>>13,w&=8191,w+=P*N,w+=R*L,w+=I*M,w+=A*j,x=d+=(w+=O*(5*U))>>>13,x+=S*U,x+=k*F,x+=E*z,x+=_*$,d=(x+=T*W)>>>13,x&=8191,x+=P*D,x+=R*N,x+=I*L,x+=A*M,S=f=8191&(d=(d=((d+=(x+=O*j)>>>13)<<2)+d|0)+(f&=8191)|0),k=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,P=y&=8191,R=b&=8191,I=v&=8191,A=w&=8191,O=x&=8191,t+=16,n-=16;this.h[0]=S,this.h[1]=k,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=P,this.h[6]=R,this.h[7]=I,this.h[8]=A,this.h[9]=O},k.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},k.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,S,k,E,_,T,P,R,I=new Int32Array(16),A=new Int32Array(16),O=e[0],j=e[1],M=e[2],L=e[3],N=e[4],D=e[5],W=e[6],$=e[7],z=t[0],F=t[1],U=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++)S=8*C+Q,I[C]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],A[C]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(C=0;C<80;C++)if(o=O,i=j,a=M,s=L,l=N,c=D,u=W,f=z,p=F,h=U,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,P=65535&(k=$),R=k>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,P+=65535&(k=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),R+=k>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,P+=65535&(k=N&D^~N&W),R+=k>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,P+=65535&(k=G[2*C]),R+=k>>>16,k=I[C%16],T+=(E=A[C%16])>>>16,P+=65535&k,R+=k>>>16,P+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,P=65535&(k=w=65535&P|(R+=P>>>16)<<16),R=k>>>16,_+=65535&(E=(z>>>28|O<<4)^(O>>>2|z<<30)^(O>>>7|z<<25)),T+=E>>>16,P+=65535&(k=(O>>>28|z<<4)^(z>>>2|O<<30)^(z>>>7|O<<25)),R+=k>>>16,T+=(E=z&F^z&U^F&U)>>>16,P+=65535&(k=O&j^O&M^j&M),R+=k>>>16,d=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(R+=P>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,P=65535&(k=s),R=k>>>16,T+=(E=x)>>>16,P+=65535&(k=w),R+=k>>>16,j=o,M=i,L=a,N=s=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(R+=P>>>16)<<16,D=l,W=c,$=u,O=d,F=f,U=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(S=0;S<16;S++)k=I[S],_=65535&(E=A[S]),T=E>>>16,P=65535&k,R=k>>>16,k=I[(S+9)%16],_+=65535&(E=A[(S+9)%16]),T+=E>>>16,P+=65535&k,R+=k>>>16,w=I[(S+1)%16],_+=65535&(E=((x=A[(S+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,P+=65535&(k=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=k>>>16,w=I[(S+14)%16],T+=(E=((x=A[(S+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(k=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,I[S]=65535&P|R<<16,A[S]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,P=65535&(k=O),R=k>>>16,k=e[0],T+=(E=t[0])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=O=65535&P|R<<16,t[0]=z=65535&_|T<<16,_=65535&(E=F),T=E>>>16,P=65535&(k=j),R=k>>>16,k=e[1],T+=(E=t[1])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=j=65535&P|R<<16,t[1]=F=65535&_|T<<16,_=65535&(E=U),T=E>>>16,P=65535&(k=M),R=k>>>16,k=e[2],T+=(E=t[2])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=M=65535&P|R<<16,t[2]=U=65535&_|T<<16,_=65535&(E=B),T=E>>>16,P=65535&(k=L),R=k>>>16,k=e[3],T+=(E=t[3])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=L=65535&P|R<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,P=65535&(k=N),R=k>>>16,k=e[4],T+=(E=t[4])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&P|R<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,P=65535&(k=D),R=k>>>16,k=e[5],T+=(E=t[5])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=D=65535&P|R<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,P=65535&(k=W),R=k>>>16,k=e[6],T+=(E=t[6])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=W=65535&P|R<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,P=65535&(k=$),R=k>>>16,k=e[7],T+=(E=t[7])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=$=65535&P|R<<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();D(r,e[1],e[0]),D(f,n[1],n[0]),W(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),W(o,o,f),W(i,e[3],n[3]),W(i,i,c),W(a,e[2],n[2]),N(a,a,a),D(s,o,r),D(l,a,i),N(u,a,i),N(d,o,r),W(e[0],s,l),W(e[1],d,u),W(e[2],u,l),W(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)A(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),W(r,n[0],i),W(o,n[1],i),O(e,o),e[31]^=M(r)<<7}function ee(e,t,n){var r,o;for(R(e[0],i),R(e[1],a),R(e[2],a),R(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()];R(r[0],u),R(r[1],d),R(r[2],a),W(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 R(e[2],a),L(e[1],n),$(s,e[1]),W(c,s,l),D(s,s,e[2]),N(c,e[2],c),$(u,c),$(d,u),W(p,d,u),W(r,p,s),W(r,r,c),F(r,r),W(r,r,s),W(r,r,c),W(r,r,c),W(e[0],r,c),$(o,e[0]),W(o,o,c),j(o,s)&&W(e[0],e[0],f),$(o,e[0]),W(o,o,c),j(o,s)?-1:(M(e[0])===n[31]>>7&&D(e[0],i,e[0]),W(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:S,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:U,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:O,unpack25519:L,M:W,A:N,S:$,Z:D,pow2523:F,add:Z,set25519:R,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 U(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!==yc&&(le=vc)&&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||{})}(bc)),bc.exports);const Cc=r(xc);var Sc,kc,Ec,_c,Tc,Pc,Rc,Ic,Ac,Oc,jc,Mc;(kc=Sc||(Sc={}))[kc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",kc[kc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",kc[kc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",kc[kc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",kc[kc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",kc[kc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",kc[kc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_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.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Ic=Rc||(Rc={}))[Ic.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Ic[Ic.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Ic[Ic.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Ic[Ic.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Ic[Ic.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Oc=Ac||(Ac={}))[Oc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Oc[Oc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Oc[Oc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Oc[Oc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Mc=jc||(jc={})).MAINNET="-239",Mc.TESTNET="-3";const Lc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=mc.decodeUTF8(e)),function(e,t){const n=mc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),mc.decodeBase64(e)}(e,t);return{toString:()=>mc.encodeUTF8(n),toObject(){try{return JSON.parse(mc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Nc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Dc(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 Wc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Nc(this.keyPair.publicKey)}createKeypair(){return Cc.box.keyPair()}createKeypairFromString(e){return{publicKey:Dc(e.publicKey),secretKey:Dc(e.secretKey)}}createNonce(){return Cc.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,Cc.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=Cc.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:Nc(this.keyPair.publicKey),secretKey:Nc(this.keyPair.secretKey)}}}function $c(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 zc(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())})}"function"==typeof SuppressedError&&SuppressedError;class Fc extends Error{get info(){return""}constructor(e,t){super(e,t),this.message=`${Fc.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,Fc.prototype)}}Fc.prefix="[TON_CONNECT_SDK_ERROR]";class Uc extends Fc{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Bc extends Fc{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,Bc.prototype)}}class qc extends Fc{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,qc.prototype)}}class Hc extends Fc{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,Hc.prototype)}}class Vc extends Fc{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends Fc{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,Kc.prototype)}}class Gc extends Fc{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends Fc{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends Fc{constructor(e,t){super(e,t),this.name="WalletWrongNetworkError",Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends Fc{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends Fc{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}class Jc extends Fc{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Jc.prototype)}}class eu extends Fc{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,eu.prototype)}}class tu extends Fc{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,tu.prototype)}}class nu extends Fc{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,nu.prototype)}}class ru extends Fc{constructor(...e){super(...e),Object.setPrototypeOf(this,ru.prototype)}}const ou={[Sc.UNKNOWN_ERROR]:ru,[Sc.USER_REJECTS_ERROR]:Zc,[Sc.BAD_REQUEST_ERROR]:Xc,[Sc.UNKNOWN_APP_ERROR]:Jc,[Sc.MANIFEST_NOT_FOUND_ERROR]:qc,[Sc.MANIFEST_CONTENT_ERROR]:Bc};const iu=new class{parseError(e){let t=ru;return e.code in ou&&(t=ou[e.code]||ru),new t(e.message)}};class au{isError(e){return"error"in e}}const su={[Tc.UNKNOWN_ERROR]:ru,[Tc.USER_REJECTS_ERROR]:Zc,[Tc.BAD_REQUEST_ERROR]:Xc,[Tc.UNKNOWN_APP_ERROR]:Jc};const lu=new class extends au{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=ru;throw e.error.code in su&&(t=su[e.error.code]||ru),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},cu={[Rc.UNKNOWN_ERROR]:ru,[Rc.USER_REJECTS_ERROR]:Zc,[Rc.BAD_REQUEST_ERROR]:Xc,[Rc.UNKNOWN_APP_ERROR]:Jc};const uu=new class extends au{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=ru;throw e.error.code in cu&&(t=cu[e.error.code]||ru),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class du{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return zc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return zc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return zc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function fu(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function pu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function hu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function gu(e,t){return zc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function mu(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 yu(e,t){return zc(this,0,void 0,function*(){var n,r;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=mu(null==t?void 0:t.signal);if("function"!=typeof e)throw new Fc("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new Fc(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield gu(i))}}throw s})}function bu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function vu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class wu{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}constructor(e,t,n,r,o,i){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)=>zc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=mu(s),a.signal.aborted)throw new Fc("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 Fc("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>zc(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=>zc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield gu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new Fc("Resource recreation was aborted by a new resource creation")})}}((e,t,n)=>zc(this,0,void 0,function*(){const r={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,traceId:n};return yield function(e){return zc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=mu(null==t?void 0:t.signal);return new Promise((t,o)=>zc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new Fc("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new Fc(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new Fc("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)=>zc(this,0,void 0,function*(){var o;const i=mu(r.signal).signal;if(i.aborted)return void n(new Fc("Bridge connection aborted"));const a=new URL(fu(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),e.traceId&&a.searchParams.append("trace_id",e.traceId),i.aborted)return void n(new Fc("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>zc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new Fc("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 Fc("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new Fc("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new Fc("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(r)}),e=>zc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new du(e,t),this.analytics=null==i?void 0:i.scoped({bridge_url:t,client_id:n})}registerSession(e){return zc(this,0,void 0,function*(){var t,n,r;try{null===(t=this.analytics)||void 0===t||t.emitBridgeClientConnectStarted({trace_id:null==e?void 0:e.traceId});const r=Date.now();yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS,null==e?void 0:e.traceId);const o=Date.now()-r;null===(n=this.analytics)||void 0===n||n.emitBridgeClientConnectEstablished({bridge_connect_duration:o,trace_id:null==e?void 0:e.traceId})}catch(o){throw null===(r=this.analytics)||void 0===r||r.emitBridgeClientConnectError({trace_id:null==e?void 0:e.traceId,error_message:String(o)}),o}})}send(e,t,n,r){return zc(this,0,void 0,function*(){var o;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,i.traceId=null==r?void 0:r.traceId);const a=new URL(fu(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),(null==i?void 0:i.traceId)&&a.searchParams.append("trace_id",i.traceId);const s=Lc.encode(e);yield yu(e=>zc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new Fc(`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=>vu(`Bridge pause failed, ${e}`))}unPause(){return zc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return zc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>vu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return zc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new Fc(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return zc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new Fc("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),bu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Fc("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return zc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{const n=JSON.parse(e.data);t={message:n.message,from:n.from,traceId:n.trace_id}}catch(n){throw new Fc(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function xu(e){return!("connectEvent"in e)}let Cu;const Su=new Uint8Array(16);const ku=[];for(let bT=0;bT<256;++bT)ku.push((bT+256).toString(16).slice(1));const Eu={};function _u(e,t,n){let r;{const e=Date.now(),o=function(){if(!Cu){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cu=crypto.getRandomValues.bind(crypto)}return Cu(Su)}();!function(e,t,n){var r,o;null!==(r=e.msecs)&&void 0!==r||(e.msecs=-1/0),null!==(o=e.seq)&&void 0!==o||(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(Eu,e,o),r=function(e,t,n,r,o=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(o<0||o+16>r.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else r=new Uint8Array(16),o=0;return null!=t||(t=Date.now()),null!=n||(n=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9]),r[o++]=t/1099511627776&255,r[o++]=t/4294967296&255,r[o++]=t/16777216&255,r[o++]=t/65536&255,r[o++]=t/256&255,r[o++]=255&t,r[o++]=112|n>>>28&15,r[o++]=n>>>20&255,r[o++]=128|n>>>14&63,r[o++]=n>>>6&255,r[o++]=n<<2&255|3&e[10],r[o++]=e[11],r[o++]=e[12],r[o++]=e[13],r[o++]=e[14],r[o++]=e[15],r}(o,Eu.msecs,Eu.seq,t,n)}return function(e,t=0){return(ku[e[t+0]]+ku[e[t+1]]+ku[e[t+2]]+ku[e[t+3]]+"-"+ku[e[t+4]]+ku[e[t+5]]+"-"+ku[e[t+6]]+ku[e[t+7]]+"-"+ku[e[t+8]]+ku[e[t+9]]+"-"+ku[e[t+10]]+ku[e[t+11]]+ku[e[t+12]]+ku[e[t+13]]+ku[e[t+14]]+ku[e[t+15]]).toLowerCase()}(r)}class Tu{static fromStorage(e,t){return zc(this,0,void 0,function*(){const n=yield e.getHttpConnection();return xu(n)?new Tu(e,n.connectionSource,t):new Tu(e,{bridgeUrl:n.session.bridgeUrl},t)})}constructor(e,t,n){var r;this.connectionStorage=e,this.walletConnectionSource=t,this.analyticsManager=n,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.optionalOpenGateways=3,this.analytics=null===(r=this.analyticsManager)||void 0===r?void 0:r.scoped()}connect(e,t){var n,r;const o=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:_u(),i=mu(null==t?void 0:t.signal);null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=i,this.closeGateways();const a=new Wc;this.session={sessionCrypto:a,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:a}).then(()=>zc(this,0,void 0,function*(){i.signal.aborted||(yield yu(e=>{var n;return this.openGateways(a,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal,traceId:o})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:i.signal}))}));const s="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(s,e,{traceId:o})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u(),i=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)return;this.closeGateways();const a=yield this.connectionStorage.getHttpConnection();if(!a)return;if(i.signal.aborted)return;const s=null!==(r=null==e?void 0:e.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS;if(xu(a))return this.session={sessionCrypto:a.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(a.sessionCrypto,{openingDeadlineMS:s,signal:null==i?void 0:i.signal,traceId:null==e?void 0:e.traceId});if(Array.isArray(this.walletConnectionSource))throw new Fc("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=a.session,this.gateway&&(bu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new wu(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,a.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),!i.signal.aborted){this.listeners.forEach(e=>e(Object.assign(Object.assign({},a.connectEvent),{traceId:o})));try{yield yu(e=>this.gateway.registerSession({openingDeadlineMS:s,signal:e.signal,traceId:o}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:i.signal})}catch(l){return void(yield this.disconnect({signal:i.signal,traceId:o}))}}})}sendRequest(e,t){var n;const r={};return"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal,r.attempts=null==t?void 0:t.attempts,r.traceId=null==t?void 0:t.traceId),null!==(n=r.traceId)&&void 0!==n||(r.traceId=_u()),new Promise((t,n)=>zc(this,0,void 0,function*(){var o,i;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Fc("Trying to send bridge request without session");const a=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),bu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:a}));const s=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:a})),Dc(this.session.walletPublicKey));try{null===(o=this.analytics)||void 0===o||o.emitBridgeClientMessageSent({bridge_url:this.gateway.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:this.session.walletPublicKey,message_id:a,request_type:e.method,trace_id:r.traceId}),yield this.gateway.send(s,this.session.walletPublicKey,e.method,{attempts:null==r?void 0:r.attempts,signal:null==r?void 0:r.signal,traceId:r.traceId}),null===(i=null==r?void 0:r.onRequestSent)||void 0===i||i.call(r),this.pendingRequests.set(a.toString(),t)}catch(l){n(l)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return zc(this,0,void 0,function*(){var t;const n=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u();return new Promise(t=>zc(this,0,void 0,function*(){let r=!1,o=null;const i=()=>{r||(r=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=mu(null==e?void 0:e.signal);o=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:i,signal:t.signal,attempts:1,traceId:n})}catch(a){bu("Disconnect error:",a),r||this.removeBridgeAndSession().then(t)}finally{o&&clearTimeout(o),i()}}))})}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 zc(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 zc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(bu("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 zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=e.traceId)&&void 0!==t?t:_u();let i;try{i=JSON.parse(this.session.sessionCrypto.decrypt(Lc.decode(e.message).toUint8Array(),Dc(e.from)))}catch(l){throw null===(n=this.analytics)||void 0===n||n.emitBridgeClientMessageDecodeError({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,error_message:String(l),trace_id:null==e?void 0:e.traceId}),l}bu("Wallet message received:",i);const a="event"in i?i.event:"";if(null===(r=this.analytics)||void 0===r||r.emitBridgeClientMessageReceived({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,message_id:String(i.id),request_type:a,trace_id:null==e?void 0:e.traceId}),!("event"in i)){const e=i.id.toString(),t=this.pendingRequests.get(e);return t?(t(Object.assign(Object.assign({},i),{traceId:o})),void this.pendingRequests.delete(e)):void bu(`Response id ${e} doesn't match any request's id`)}if(void 0!==i.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&i.id<=e)return void vu(`Received event id (=${i.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==i.event&&(yield this.connectionStorage.storeLastWalletEventId(i.id))}const s=this.listeners;"connect"===i.event&&(yield this.updateSession(i,e.from)),"disconnect"===i.event&&(bu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),s.forEach(e=>e(Object.assign(Object.assign({},i),{traceId:o})))})}gatewayErrorsListener(e){return zc(this,0,void 0,function*(){throw new Fc(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return zc(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 zc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t,n){return pu(e)?this.generateTGUniversalLink(e,t,n):this.generateRegularUniversalLink(e,t,n)}generateRegularUniversalLink(e,t,n){const r=new URL(e);return r.searchParams.append("v",2..toString()),r.searchParams.append("id",this.session.sessionCrypto.sessionId),r.searchParams.append("trace_id",n.traceId),r.searchParams.append("r",JSON.stringify(t)),r.toString()}generateTGUniversalLink(e,t,n){const r="tonconnect-"+hu(this.generateRegularUniversalLink("about:blank",t,n).split("?")[1]),o=this.convertToDirectLink(e),i=new URL(o);return i.searchParams.append("startapp",r),i.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 zc(this,0,void 0,function*(){var n;const r=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:_u();if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new wu(this.connectionStorage.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{},this.analyticsManager);return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n});const n=Math.max(this.pendingGateways.length-this.optionalOpenGateways,1);return void(yield function(e,t){return zc(this,0,void 0,function*(){if(t<=0)return[];if(t>e.length)throw new RangeError("count cannot be greater than the number of promises");const n=new Array(e.length);let r=0;return new Promise(o=>{e.forEach((e,i)=>{Promise.resolve(e).then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e})).then(e=>{n[i]=e,r++,r===t&&o(n)})})})})}(this.pendingGateways.map(e=>yu(n=>{var o;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(o=null==t?void 0:t.openingDeadlineMS)&&void 0!==o?o:this.defaultOpeningDeadlineMS,signal:n.signal,traceId:r}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal})),n))}return this.gateway&&(bu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new wu(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal,traceId:r})})}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 Pu(e,t){return Ru(e,[t])}function Ru(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let Iu=class e{static getInstance(){return e.instance||(e.instance=new e),e.instance}constructor(){this.storage={}}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 Au(){if("undefined"!=typeof window)return window}function Ou(){if("undefined"!=typeof document)return document}function ju(){var e,t,n,r;const o=null===(t=null===(e=Au())||void 0===e?void 0:e.location)||void 0===t?void 0:t.origin,i=null===(r=null===(n=Au())||void 0===n?void 0:n.location)||void 0===r?void 0:r.pathname;return o&&i?o+i:""}function Mu(){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 Fc("`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 Iu.getInstance()}class Lu{static fromStorage(e,t){return zc(this,0,void 0,function*(){const n=yield e.getInjectedConnection();return new Lu(e,n.jsBridgeKey,t)})}static isWalletInjected(e){return Lu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Lu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Au();if(!e)return[];try{return Object.entries(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!Pu(e,"tonconnect")||!Pu(e.tonconnect,"walletInfo"))&&Ru(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]}constructor(e,t,n){this.connectionStorage=e,this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const r=Lu.window;if(!Lu.isWindowContainsWallet(r,t))throw new Kc;this.injectedWallet=r[t].tonconnect,n&&(this.analytics=n.scoped({bridge_key:t,wallet_app_name:this.injectedWallet.deviceInfo.appName,wallet_app_version:this.injectedWallet.deviceInfo.appVersion}))}connect(e,t){this._connect(2,e,t)}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r,o;const i=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u();try{bu("Injected Provider restoring connection..."),null===(n=this.analytics)||void 0===n||n.emitJsBridgeCall({js_bridge_method:"restoreConnection",trace_id:i});const e=yield this.injectedWallet.restoreConnection({traceId:i});null===(r=this.analytics)||void 0===r||r.emitJsBridgeResponse({js_bridge_method:"restoreConnection",trace_id:i}),bu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions({traceId:i}),this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:i})))):yield this.connectionStorage.removeConnection()}catch(a){null===(o=this.analytics)||void 0===o||o.emitJsBridgeError({js_bridge_method:"restoreConnection",error_message:String(a),trace_id:i}),yield this.connectionStorage.removeConnection(),console.error(a)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(e){return zc(this,0,void 0,function*(){var t;const n=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u();return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(r){bu(r),this.sendRequest({method:"disconnect",params:[]},{onRequestSent:t,traceId:n})}})})}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){return zc(this,0,void 0,function*(){var n,r,o;const i={};"function"==typeof t?(i.onRequestSent=t,i.traceId=_u()):(i.onRequestSent=null==t?void 0:t.onRequestSent,i.signal=null==t?void 0:t.signal,i.attempts=null==t?void 0:t.attempts,i.traceId=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:_u());const a=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),bu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:a})),null===(r=this.analytics)||void 0===r||r.emitJsBridgeCall({js_bridge_method:"send"});const s=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:a}),{traceId:i.traceId});return s.then(e=>{var t;null===(t=this.analytics)||void 0===t||t.emitJsBridgeResponse({js_bridge_method:"send"}),bu("Wallet message received:",e)}).catch(e=>{var t;null===(t=this.analytics)||void 0===t||t.emitJsBridgeError({js_bridge_method:"send",error_message:String(e)})}),null===(o=null==i?void 0:i.onRequestSent)||void 0===o||o.call(i),s})}_connect(e,t,n){return zc(this,0,void 0,function*(){var r,o,i,a;const s=null!==(r=null==n?void 0:n.traceId)&&void 0!==r?r:_u();try{bu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t),null===(o=this.analytics)||void 0===o||o.emitJsBridgeCall({js_bridge_method:"connect",trace_id:s});const n=yield this.injectedWallet.connect(e,t,{traceId:s});null===(i=this.analytics)||void 0===i||i.emitJsBridgeResponse({js_bridge_method:"connect"}),bu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions({traceId:s})),this.listeners.forEach(e=>e(Object.assign(Object.assign({},n),{traceId:s})))}catch(l){null===(a=this.analytics)||void 0===a||a.emitJsBridgeError({js_bridge_method:"connect",error_message:String(l),trace_id:s}),bu("Injected Provider connect error:",l);const e={event:"connect_error",payload:{code:0,message:null==l?void 0:l.toString()}};this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:s})))}})}makeSubscriptions(e){var t,n,r;this.listenSubscriptions=!0,null===(t=this.analytics)||void 0===t||t.emitJsBridgeCall({js_bridge_method:"listen",trace_id:e.traceId});try{this.unsubscribeCallback=this.injectedWallet.listen(e=>{var t;const n=null!==(t=e.traceId)&&void 0!==t?t:_u();bu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:n}))),"disconnect"===e.event&&this.disconnect({traceId:n})}),null===(n=this.analytics)||void 0===n||n.emitJsBridgeResponse({js_bridge_method:"listen",trace_id:e.traceId})}catch(o){throw null===(r=this.analytics)||void 0===r||r.emitJsBridgeError({js_bridge_method:"listen",error_message:String(o),trace_id:e.traceId}),o}}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Lu.window=Au();class Nu{constructor(e,t){this.storage=e,this.walletsListManager=t,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return zc(this,0,void 0,function*(){if("injected"===e.type||"wallet-connect"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!xu(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 zc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return zc(this,0,void 0,function*(){try{const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type||"wallet-connect"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new Wc(t.session.sessionKeyPair);return yield this.actualizeBridgeConnection({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 Wc(t.sessionCrypto),connectionSource:t.connectionSource}}catch(e){return bu("Error retrieving connection",e),null}})}getHttpConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read HTTP connection source while nothing is stored");if("http"!==e.type)throw new Fc(`Trying to read HTTP connection source while ${e.type} connection is stored`);return e})}getHttpPendingConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read HTTP connection source while nothing is stored");if("http"!==e.type)throw new Fc(`Trying to read HTTP connection source while ${e.type} connection is stored`);if(!xu(e))throw new Fc("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read Injected bridge connection source while nothing is stored");if("injected"!==(null==e?void 0:e.type))throw new Fc(`Trying to read Injected bridge connection source while ${e.type} connection is stored`);return e})}getWalletConnectConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read wallet connect bridge connection source while nothing is stored");if("wallet-connect"!==(null==e?void 0:e.type))throw new Fc(`Trying to read wallet connect bridge connection source while ${e.type} connection is stored`);return e})}storedConnectionType(){return zc(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 zc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!xu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return zc(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 zc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}actualizeBridgeConnection(e){return zc(this,0,void 0,function*(){try{const t=e.connectEvent.payload.device.appName,n=yield this.walletsListManager.getRemoteWallet(t);if(n.bridgeUrl===e.session.bridgeUrl)return e;const r=Object.assign(Object.assign({},e),{session:Object.assign(Object.assign({},e.session),{bridgeUrl:n.bridgeUrl})});return yield this.storeConnection(r),r}catch(t){return bu("Failed to actualize bridge connection",t),e}})}}class Du{constructor(){this.localStorage=Mu()}getItem(e){return zc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return zc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return zc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Wu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function $u(e){return Wu(e)&&e.embedded}function zu(e){return"bridgeUrl"in e}const Fu=[{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",deepLink:"mytonwallet-tc://",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1},{name:"SignData",types:["text","binary","cell"]}]},{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{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",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"binanceWeb3TonWallet",name:"Binance 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",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"fintopio-tg",name:"Fintopio",image:"https://raw.githubusercontent.com/fintopio/ton-pub/refs/heads/main/logos/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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:1,extraCurrencySupported:!1}]},{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://gate.onelink.me/Hls0/web3?gate_web3_wallet_universal_type=ton_connect",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:1,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"bitgetWalletLite",name:"Bitget Wallet Lite",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_lite_logo_288.png",about_url:"https://web3.bitget.com",universal_url:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"tomoWallet",name:"Tomo Wallet",image:"https://pub.tomo.inc/logo.png",about_url:"https://www.tomo.inc/",universal_url:"https://t.me/tomowalletbot?attach=wallet",bridge:[{type:"sse",url:"https://go-bridge.tomo.inc/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"miraiapp-tg",name:"Mirai Mini App",image:"https://cdn.mirailabs.co/miraihub/miraiapp-tg-icon-288.png",about_url:"https://mirai.app",universal_url:"https://t.me/MiraiAppBot?attach=wallet",bridge:[{type:"sse",url:"https://bridge.mirai.app"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"Architec.ton",name:"Architec.ton",image:"https://raw.githubusercontent.com/Architec-Ton/wallet-tma/refs/heads/dev/public/images/arcwallet_logo.png",about_url:"https://architecton.tech",universal_url:"https://t.me/architec_ton_bot?attach=wallet",bridge:[{type:"sse",url:"https://tc.architecton.su/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"tokenpocket",name:"TokenPocket",image:"https://hk.tpstatic.net/logo/tokenpocket.png",about_url:"https://www.tokenpocket.pro",universal_url:"https://tp-lab.tptool.pro/ton-connect/",bridge:[{type:"js",key:"tokenpocket"},{type:"sse",url:"https://ton-connect.mytokenpocket.vip/bridge"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"uxuyWallet",name:"UXUY Wallet",image:"https://chain-cdn.uxuy.com/logo/square_288.png",about_url:"https://docs.uxuy.com",universal_url:"https://t.me/UXUYbot?attach=wallet",bridge:[{type:"sse",url:"https://bridge.uxuy.me/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"tonkeeper-pro",name:"Tonkeeper Pro",image:"https://tonkeeper.com/assets/tonconnect-icon-pro.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com/pro",universal_url:"https://app.tonkeeper.com/pro/ton-connect",deepLink:"tonkeeper-pro-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"nicegramWallet",name:"Nicegram Wallet",image:"https://static.nicegram.app/icon.png",about_url:"https://nicegram.app",universal_url:"https://nicegram.app/tc",deepLink:"nicegram-tc://",bridge:[{type:"sse",url:"https://tc.nicegram.app/bridge"},{type:"js",key:"nicegramWallet"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"echoooTonWallet",name:"EchoooWallet",image:"https://cdn.echooo.xyz/front-end/source/images/logo/echooo-ton.png",about_url:"https://www.echooo.xyz",universal_url:"https://www.echooo.xyz/ton-connect",deepLink:"echooo://",bridge:[{type:"js",key:"echoooTonWallet"},{type:"sse",url:"https://ton-connect-bridge.echooo.link/bridge"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"blitzwallet",name:"BLITZ wallet",image:"https://blitzwallet.cfd/wallet/public/logo.png",about_url:"https://blitzwallet.cfd",universal_url:"https://t.me/blitz_wallet_bot?attach=wallet",bridge:[{type:"sse",url:"https://blitzwallet.cfd/bridge/"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"koloWeb3Wallet",name:"Kolo",image:"https://raw.githubusercontent.com/onidev1/tc-assets/refs/heads/main/kolo_logo_288.png",about_url:"https://kolo.xyz",universal_url:"https://t.me/kolo?attach=wallet",bridge:[{type:"sse",url:"https://web3-bridge.kolo.in/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"imToken",name:"imToken",image:"https://aws-v2-cdn.token.im/orbit/token-v2/icons/logo-ton-connect.png",about_url:"https://token.im",universal_url:"https://connect.token.im/link/ton-connect",deepLink:"imtokenv2://link/ton-connect",bridge:[{type:"sse",url:"https://connect.token.im/tonbridge"},{type:"js",key:"imToken"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"cactuslink",name:"Cactus Link",image:"https://downloads.mycactus.com/288_cactus_link.png",about_url:"https://www.mycactus.com/defi-connector",bridge:[{type:"js",key:"cactuslink_ton"}],platforms:["chrome"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1},{name:"SignData",types:["text","binary"]}]},{app_name:"onekey",name:"OneKey",image:"https://uni.onekey-asset.com/static/logo/onekey-x288.png",about_url:"https://onekey.so",bridge:[{type:"js",key:"onekeyTonWallet"}],platforms:["chrome"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]}];class Uu{constructor(e){var t;this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://config.ton.org/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs,this.onDownloadDurationMeasured=null==e?void 0:e.onDownloadDurationMeasured}getWallets(){return zc(this,0,void 0,function*(){const[e,t]=yield Promise.all([this.fetchWalletsListDTO(),this.getCurrentlyInjectedWallets()]);return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}getEmbeddedWallet(){return zc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter($u);return 1===e.length?e[0]:null})}fetchWalletsListDTO(){return zc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListDTOCacheCreationTimestamp&&Date.now()>this.walletsListDTOCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListDTOCache=null),this.walletsListDTOCache||(this.walletsListDTOCache=this.fetchWalletsListFromSource(),this.walletsListDTOCache.then(()=>{this.walletsListDTOCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null})),this.walletsListDTOCache})}getRemoteWallet(e){return zc(this,0,void 0,function*(){const t=(yield this.getWallets()).find(t=>t.appName===e);if(!t)throw new Fc(`Wallet info not found for appName: "${e}"`);if(!zu(t))throw new Fc(`Wallet "${e}" is not remote`);return t})}fetchWalletsListFromSource(){return zc(this,0,void 0,function*(){var e,t;let n=[];const r=performance.now();try{const t=yield fetch(this.walletsListSource);if(n=yield t.json(),!Array.isArray(n))throw new eu("Wrong wallets list format, wallets list must be an array.");const o=n.filter(e=>!this.isCorrectWalletConfigDTO(e));o.length&&(vu(`Wallet(s) ${o.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),n=n.filter(e=>this.isCorrectWalletConfigDTO(e)));const i=performance.now(),a=Math.round(i-r);null===(e=this.onDownloadDurationMeasured)||void 0===e||e.call(this,a)}catch(o){vu(o),n=Fu,null===(t=this.onDownloadDurationMeasured)||void 0===t||t.call(this,void 0)}return n})}getCurrentlyInjectedWallets(){return[]}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=Lu.isWalletInjected(e),t.embedded=Lu.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 Bu(e,t){const n=e.includes("SendTransaction"),r=Hu(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new Gc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new Gc("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 Gc(`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 qu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=Hu(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=Hu(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 Hu(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Vu(e){return{type:"response-version",version:e}}function Ku(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function Gu(e,t,n){var r,o,i,a,s,l,c,u,d,f,p;const h=(null===(r=null==t?void 0:t.connectItems)||void 0===r?void 0:r.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(i=null===(o=null==t?void 0:t.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,wallet_state_init:null!==(a=null==t?void 0:t.account.walletStateInit)&&void 0!==a?a:null,wallet_type:null!==(s=null==t?void 0:t.device.appName)&&void 0!==s?s:null,wallet_version:null!==(l=null==t?void 0:t.device.appVersion)&&void 0!==l?l:null,auth_type:h,custom_data:Object.assign({client_id:null!==(c=null==n?void 0:n.clientId)&&void 0!==c?c:null,wallet_id:null!==(u=null==n?void 0:n.walletId)&&void 0!==u?u:null,chain_id:null!==(f=null===(d=null==t?void 0:t.account)||void 0===d?void 0:d.chain)&&void 0!==f?f:null,provider:null!==(p=null==t?void 0:t.provider)&&void 0!==p?p:null},Ku(e))}}function Qu(e,t){return{type:"connection-started",custom_data:Ku(e),trace_id:null!=t?t:null}}function Yu(e,t,n,r){return Object.assign({type:"connection-completed",is_success:!0,trace_id:null!=r?r:null},Gu(e,t,n))}function Zu(e,t,n,r,o){var i,a;return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,trace_id:null!=o?o:null,custom_data:Object.assign({client_id:null!==(i=null==r?void 0:r.clientId)&&void 0!==i?i:null,wallet_id:null!==(a=null==r?void 0:r.walletId)&&void 0!==a?a:null},Ku(e))}}function Xu(e,t){return{type:"connection-restoring-started",custom_data:Ku(e),trace_id:null!=t?t:null}}function Ju(e,t,n,r){return Object.assign({type:"connection-restoring-completed",is_success:!0,trace_id:null!=r?r:null},Gu(e,t,n))}function ed(e,t,n){return{type:"connection-restoring-error",is_success:!1,error_message:t,trace_id:null!=n?n:null,custom_data:Ku(e)}}function td(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 nd(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-sent-for-signature",trace_id:null!=o?o:null},Gu(e,t,r)),td(t,n))}function rd(e,t,n,r,o,i){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc,trace_id:null!=i?i:null},Gu(e,t,o)),td(t,n))}function od(e,t,n,r,o,i,a){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null,trace_id:null!=a?a:null},Gu(e,t,i)),function(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,r,o;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null,payload:null!==(r=e.payload)&&void 0!==r?r:null,state_init:null!==(o=e.stateInit)&&void 0!==o?o:null}})}}(t,n))}function id(e,t,n,r,o){return Object.assign({type:"sign-data-request-initiated",data:n,trace_id:null!=o?o:null},Gu(e,t,r))}function ad(e,t,n,r,o,i){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r,trace_id:null!=i?i:null},Gu(e,t,o))}function sd(e,t,n,r,o,i,a){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null,trace_id:null!=a?a:null},Gu(e,t,i))}function ld(e,t,n,r,o){return Object.assign({type:"disconnection",scope:n,trace_id:null!=o?o:null},Gu(e,t,r))}class cd{get version(){return Ku({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}constructor(e){this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null==e?void 0:e.eventDispatcher,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}init(){return zc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return zc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>zc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Vu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return zc(this,0,void 0,function*(){return new Promise((e,t)=>zc(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=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Yu(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=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=ed(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=ld(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=nd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=rd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=od(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=id(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=ad(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=sd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}const ud="3.4.0";function dd(e,t=!1){const{wc:n,hex:r}=hd(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(gd(i),34),Lc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}function fd(e){try{return pd(e),!0}catch(t){return!1}}function pd(e){const t=e.replace(/-/g,"+").replace(/_/g,"/");let n;try{n=Lc.decode(t).toUint8Array()}catch(d){throw new tu(`Invalid base64 encoding in address: ${e}`)}if(36!==n.length)throw new tu(`Invalid address length: ${e}`);const r=n.slice(0,34),o=n.slice(34,36),i=gd(r);if(!o.every((e,t)=>e===i[t]))throw new tu(`Invalid checksum in address: ${e}`);let a=r[0],s=!1,l=!1;if(128&a&&(s=!0,a^=128),17!==a&&81!==a)throw new tu(`Unknown address tag: ${a}`);l=17===a;let c=null;c=255===r[1]?-1:r[1];const u=r.slice(2);if(0!==c&&-1!==c)throw new tu(`Invalid workchain: ${c}`);return{wc:c,hex:Array.from(u).map(e=>e.toString(16).padStart(2,"0")).join(""),testOnly:s,isBounceable:l}}function hd(e){if(!e.includes(":"))throw new tu(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new tu(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new tu(`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 tu(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:yd(r)}}function gd(e){let t=0;const n=new Uint8Array(e.length+2);n.set(e);for(let r of n){let e=128;for(;e>0;)t<<=1,r&e&&(t+=1),e>>=1,t>65535&&(t&=65535,t^=4129)}return new Uint8Array([Math.floor(t/256),t%256])}const md={};for(let bT=0;bT<=255;bT++){let e=bT.toString(16);e.length<2&&(e="0"+e),md[e]=bT}function yd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new nu("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(!md.hasOwnProperty(n))throw new nu("Invalid hex character: "+n);r[o]=md[n]}return r}const bd=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,vd=/^[A-Za-z0-9\-_]+$/,wd=/^-?\d+$/,xd=/^\d+$/;function Cd(e){return"number"==typeof e&&!isNaN(e)}function Sd(e){return"string"==typeof e&&e.length>0}function kd(e){return Sd(e)&&(function(e){try{return hd(e),!0}catch(t){return!1}}(e)||fd(e))}function Ed(e){return Sd(e)&&/^-?\d+$/.test(e)}function _d(e){return"string"==typeof e&&(bd.test(e)||vd.test(e))&&e.startsWith("te6cc")}function Td(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Pd(e,t){return Object.keys(e).some(e=>!t.includes(e))}function Rd(e){if(!Td(e))return"Request must be an object";if(Pd(e,["validUntil","network","from","messages"]))return"Request contains extra properties";if(e.validUntil){if(!Cd(e.validUntil))return"Incorrect 'validUntil'";const t=Math.floor(Date.now()/1e3),n=t+300;e.validUntil>n&&console.warn(`validUntil (${e.validUntil}) is more than 5 minutes from now (${t})`)}if(void 0!==e.network&&!Ed(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from' address format";if(t=e.messages,!Array.isArray(t)||0===e.messages.length)return"'messages' is required";var t;for(let n=0;n<e.messages.length;n++){const t=Id(e.messages[n],n);if(t)return t}return null}function Id(e,t){if(!Td(e))return`Message at index ${t} must be an object`;if(Pd(e,["address","amount","stateInit","payload","extraCurrency"]))return`Message at index ${t} contains extra properties`;if(!Sd(e.address))return`'address' is required in message at index ${t}`;if(!fd(e.address))return`Wrong 'address' format in message at index ${t}`;if(!Sd(e.amount))return`'amount' is required in message at index ${t}`;if(!/^[0-9]+$/.test(e.amount))return`Incorrect 'amount' in message at index ${t}`;if(!(void 0===e.stateInit||Sd(e.stateInit)&&_d(e.stateInit)))return`Invalid 'stateInit' in message at index ${t}`;if(!(void 0===e.payload||Sd(e.payload)&&_d(e.payload)))return`Invalid 'payload' in message at index ${t}`;if(void 0!==e.extraCurrency){if(!Td(e.extraCurrency))return`Invalid 'extraCurrency' in message at index ${t}`;for(const[n,r]of Object.entries(e.extraCurrency))if(!wd.test(n)||"string"!=typeof r||!xd.test(r))return`Invalid 'extraCurrency' format in message at index ${t}`}return null}function Ad(e){if(!Td(e))return"Request must be an object";if(Pd(e,["tonProof"]))return"Request contains extra properties";if(void 0!==e.tonProof){if("string"!=typeof e.tonProof)return"Invalid 'tonProof'";const t=e.tonProof;if(0===t.length)return"Empty 'tonProof' payload";const n=function(){try{return"undefined"!=typeof window&&window.location?window.location.hostname:null}catch(e){return null}}();if(!n)return null;const r=(new TextEncoder).encode(n).length;if(r>128)return"Current domain exceeds 128 bytes limit";const o=(new TextEncoder).encode(t).length;if(o>128)return"'tonProof' payload exceeds 128 bytes limit";if(r+o>222)return"'tonProof' domain + payload exceeds 222 bytes limit"}return null}function Od(e){if(!Td(e))return"Payload must be an object";if(!Sd(e.type))return"'type' is required";switch(e.type){case"text":return function(e){if(Pd(e,["type","text","network","from"]))return"Text payload contains extra properties";if(!Sd(e.text))return"'text' is required";if(void 0!==e.network&&!Ed(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);case"binary":return function(e){if(Pd(e,["type","bytes","network","from"]))return"Binary payload contains extra properties";if(!Sd(e.bytes))return"'bytes' is required";if(void 0!==e.network&&!Ed(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);case"cell":return function(e){if(Pd(e,["type","schema","cell","network","from"]))return"Cell payload contains extra properties";if(!Sd(e.schema))return"'schema' is required";if(!Sd(e.cell))return"'cell' is required";if(!_d(e.cell))return"Invalid 'cell' format (must be valid base64)";if(void 0!==e.network&&!Ed(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);default:return"Invalid 'type' value"}}function jd(e){if("string"!=typeof e)return;const t=e.length+(4-e.length%4)%4;return e.replace(/-/g,"+").replace(/_/g,"/").padEnd(t,"=")}class Md{constructor(e={}){var t,n,r,o,i,a;this.events=[],this.timeoutId=null,this.isProcessing=!1,this.backoff=1,this.shouldSend=!0,this.batchTimeoutMs=null!==(t=e.batchTimeoutMs)&&void 0!==t?t:2e3,this.currentBatchTimeoutMs=this.batchTimeoutMs,this.maxBatchSize=null!==(n=e.maxBatchSize)&&void 0!==n?n:100,this.analyticsUrl=null!==(r=e.analyticsUrl)&&void 0!==r?r:"https://analytics.ton.org/events",this.mode=null!==(o=e.mode)&&void 0!==o?o:"telemetry",this.baseEvent=Object.assign({subsystem:"dapp-sdk",version:ud,client_environment:null===(a=null===(i=e.environment)||void 0===i?void 0:i.getClientEnvironment)||void 0===a?void 0:a.call(i)},function(){const e={};try{const t=performance.getEntriesByType("navigation");if(t.length>0){const n=t[0];n.responseStart&&n.requestStart&&(e.conn_ttfb=Math.round(n.responseStart-n.requestStart))}}catch(t){}return e}()),this.addWindowFocusAndBlurSubscriptions()}scoped(e){return new Proxy(this,{get(t,n){const r=n.toString();if(r.startsWith("emit")){const n=r.replace("emit",""),o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return function(n){const r=Object.fromEntries(Object.entries(null!=e?e:{}).map(([e,t])=>[e,"function"==typeof t?t():t]));return t.emit(Object.assign(Object.assign({event_name:o},r),n))}}return t[n]}})}emit(e){var t;if("off"===this.mode)return;const n=null!==(t=e.trace_id)&&void 0!==t?t:_u(),r=function(){const e={};try{const t=navigator,n=t.connection||t.mozConnection||t.webkitConnection;n&&(void 0!==n.rtt&&(e.conn_rtt=n.rtt),n.effectiveType?e.conn_network_type=n.effectiveType:n.type&&(e.conn_network_type=n.type))}catch(t){}return e}(),o=Object.assign(Object.assign(Object.assign(Object.assign({},this.baseEvent),r),e),{event_id:_u(),client_timestamp:Math.floor(Date.now()/1e3),trace_id:n}),i="telemetry"===this.mode?this.filterFullModeFields(o):o;this.events.push(i),this.events.length>=this.maxBatchSize?this.flush():this.startTimeout()}startTimeout(){this.timeoutId||this.isProcessing||(this.timeoutId=setTimeout(()=>{this.flush()},this.currentBatchTimeoutMs))}flush(){return zc(this,0,void 0,function*(){if(this.isProcessing||0===this.events.length||!this.shouldSend)return;this.clearTimeout(),this.isProcessing=!0;const e=this.extractEventsToSend();try{yield this.processEventsBatch(e),bu("Analytics events sent successfully")}catch(t){this.restoreEvents(e),vu("Failed to send analytics events:",t)}finally{this.isProcessing=!1,this.scheduleNextFlushIfNeeded()}})}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}extractEventsToSend(){const e=this.events.slice(0,this.maxBatchSize);return this.events=this.events.slice(this.maxBatchSize),e}processEventsBatch(e){return zc(this,0,void 0,function*(){bu("Sending analytics events...",e.length);try{const t=yield this.sendEvents(e);this.handleResponse(t)}catch(t){this.handleUnknownError(t)}})}handleResponse(e){const{status:t,statusText:n}=e;this.isTooManyRequests(t)?this.handleTooManyRequests(t,n):this.isClientError(t)?this.handleClientError(t,n):this.isServerError(t)&&this.handleUnknownError({status:t,statusText:n})}restoreEvents(e){this.events.unshift(...e)}scheduleNextFlushIfNeeded(){this.events.length>0&&this.startTimeout()}sendEvents(e){return zc(this,0,void 0,function*(){return yield fetch(this.analyticsUrl,{method:"POST",headers:{"Content-Type":"application/json","X-Client-Timestamp":Math.floor(Date.now()/1e3).toString()},body:JSON.stringify(e)})})}isClientError(e){return e>=Md.HTTP_STATUS.CLIENT_ERROR_START&&e<Md.HTTP_STATUS.SERVER_ERROR_START}isServerError(e){return e>=Md.HTTP_STATUS.SERVER_ERROR_START}isTooManyRequests(e){return e===Md.HTTP_STATUS.TOO_MANY_REQUESTS}handleClientError(e,t){vu("Failed to send analytics events:",new Fc(`Analytics API error: ${e} ${t}`))}handleUnknownError(e){if(this.backoff<Md.MAX_BACKOFF_ATTEMPTS)throw this.backoff++,this.currentBatchTimeoutMs*=Md.BACKOFF_MULTIPLIER,new Fc(`Unknown analytics API error: ${e}`);return this.currentBatchTimeoutMs=this.batchTimeoutMs,void(this.backoff=1)}handleTooManyRequests(e,t){throw new Fc(`Analytics API error: ${e} ${t}`)}addWindowFocusAndBlurSubscriptions(){const e=Ou();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?(this.clearTimeout(),this.shouldSend=!1):(this.shouldSend=!0,this.scheduleNextFlushIfNeeded())})}catch(t){vu("Cannot subscribe to the document.visibilitychange: ",t)}}getMode(){return this.mode}getPendingEventsCount(){return this.events.length}filterFullModeFields(e){const t=Object.assign({},e);for(const r of Md.FULL_MODE_FIELDS)delete t[r];const n="event_name"in e?String(e.event_name):"";return!("error_code"in e||"error_message"in e||n.includes("error")||"connection-error"===n||"transaction-signing-failed"===n||"sign-data-request-failed"===n)&&"wallet_address"in t&&delete t.wallet_address,t}setWalletListDownloadDuration(e){this.baseEvent=Object.assign(Object.assign({},this.baseEvent),{wallet_list_download_duration:e})}}Md.HTTP_STATUS={TOO_MANY_REQUESTS:429,CLIENT_ERROR_START:400,SERVER_ERROR_START:500},Md.MAX_BACKOFF_ATTEMPTS=5,Md.BACKOFF_MULTIPLIER=2,Md.FULL_MODE_FIELDS=["user_id","tg_id","locale","tma_is_premium"];class Ld{constructor(){this.window=Au()}dispatchEvent(e,t){return zc(this,0,void 0,function*(){var n;const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){return zc(this,0,void 0,function*(){var r;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)}})}}function Nd(e){return{"@tonconnect/sdk":e.ton_connect_sdk_lib||"","@tonconnect/ui":e.ton_connect_ui_lib||""}}function Dd(e){var t,n,r,o,i,a,s,l;return{versions:Nd(e.custom_data),network_id:null!==(t=e.custom_data.chain_id)&&void 0!==t?t:"",client_id:null!==(n=e.custom_data.client_id)&&void 0!==n?n:"",wallet_id:null!==(r=e.custom_data.wallet_id)&&void 0!==r?r:"",wallet_address:null!==(o=e.wallet_address)&&void 0!==o?o:"",wallet_app_name:null!==(i=e.wallet_type)&&void 0!==i?i:"",wallet_app_version:null!==(a=e.wallet_version)&&void 0!==a?a:"",wallet_state_init:null!==(s=e.wallet_state_init)&&void 0!==s?s:"",trace_id:null!==(l=e.trace_id)&&void 0!==l?l:void 0}}class Wd{getClientEnvironment(){return""}getBrowser(){return""}getLocale(){return""}getPlatform(){return""}getTelegramUser(){}}const $d={};const zd="0";class Fd{constructor(e){this.connectionStorage=e,this.type="injected",this.listeners=[],this.connector=void 0;const{projectId:t,metadata:n}=function(){if(void 0===$d.walletConnectOptions)throw new Fc("Wallet Connect is not initialized.");return $d.walletConnectOptions}();this.config={networks:[{namespace:"ton",chains:[{id:-239,chainNamespace:"ton",caipNetworkId:"ton:-239",name:"TON",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:[]}}},{id:-3,chainNamespace:"ton",caipNetworkId:"ton:-3",name:"TON",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:[]}}}],methods:["ton_sendMessage","ton_signData"],events:[]}],projectId:t,metadata:n}}static fromStorage(e){return zc(this,0,void 0,function*(){return new Fd(e)})}initialize(){return zc(this,0,void 0,function*(){return this.connector||(this.connector=yield function(){if(void 0===$d.UniversalConnectorCls)throw new Fc("Wallet Connect is not initialized.");return $d.UniversalConnectorCls}().init(this.config)),this.connector})}connect(e,t){var n,r;const o=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:_u(),i=mu(null==t?void 0:t.signal);null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=i,this._connect(e,{traceId:o,signal:i.signal,abortController:i}).catch(e=>bu("WalletConnect connect unexpected error",e))}_connect(e,t){return zc(this,0,void 0,function*(){var n,r;const o=yield this.initialize();if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return bu("WalletConnect connect aborted before start"),void this.clearAbortController(t.abortController);const i=e.items.find(e=>"ton_proof"===e.name),a=i?[{domain:new URL(this.config.metadata.url).hostname,chains:["ton:-239"],nonce:"",uri:"ton_proof",ttl:0,statement:i.payload}]:void 0;bu("Connecting through this.connector.connect");try{yield o.connect({authentication:a})}catch(s){if(null===(r=t.signal)||void 0===r?void 0:r.aborted)return bu("WalletConnect connect aborted via signal"),void this.clearAbortController(t.abortController);bu("WalletConnect connect error",s);const e={id:0,event:"connect_error",traceId:t.traceId,payload:{code:Sc.USER_REJECTS_ERROR,message:"User declined the connection"}};return bu("WalletConnect connect response:",e),this.emit(e),void this.clearAbortController(t.abortController)}bu("Connected through this.connector.connect");try{yield this.onConnect(o,Object.assign(Object.assign({},t),{includeTonProof:!0}))}catch(s){bu("WalletConnect onConnect error",s),yield this.disconnect({traceId:t.traceId,signal:t.signal})}finally{this.clearAbortController(t.abortController)}})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n;const r=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u(),o=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=o,!o.signal.aborted)try{bu("Restoring WalletConnect connection...");if(!(yield this.connectionStorage.getWalletConnectConnection())||o.signal.aborted)return;const e=yield this.initialize();if(o.signal.aborted)return;yield this.onConnect(e,{includeTonProof:!1,traceId:r,signal:o.signal}),bu("WalletConnect successfully restored.")}catch(i){bu("WalletConnect restore error",i),yield this.disconnect({traceId:r,signal:o.signal})}finally{this.clearAbortController(o)}})}closeConnection(){var e;null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=void 0,this.disconnect()}disconnect(e){return zc(this,0,void 0,function*(){var t,n;const r=mu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,!r.signal.aborted)try{if(yield this.connectionStorage.removeConnection(),r.signal.aborted)return;yield null===(n=this.connector)||void 0===n?void 0:n.disconnect()}catch(o){bu("WalletConnect disconnect error",o)}finally{this.clearAbortController(r)}})}sendRequest(e,t){return zc(this,0,void 0,function*(){var n,r,o,i;if(!this.connector)throw new Fc("Wallet Connect not initialized");const a={};"function"==typeof t?a.onRequestSent=t:(a.onRequestSent=null==t?void 0:t.onRequestSent,a.signal=null==t?void 0:t.signal,a.attempts=null==t?void 0:t.attempts,a.traceId=null==t?void 0:t.traceId),null!==(n=a.traceId)&&void 0!==n||(a.traceId=_u());try{if(null===(r=a.signal)||void 0===r?void 0:r.aborted)throw new Fc("WalletConnect request aborted");if(bu("Send wallet-connect request:",Object.assign(Object.assign({},e),{id:zd})),"sendTransaction"===e.method){const t=JSON.parse(e.params[0]),{network:n}=t,r=$c(t,["network"]),i=this.connector.request({method:"ton_sendMessage",params:r},`ton:${n}`);null===(o=null==a?void 0:a.onRequestSent)||void 0===o||o.call(a);const s=yield i;return bu("Wallet message received:",{result:s,id:zd}),{result:s,id:zd,traceId:a.traceId}}if("signData"===e.method){const t=JSON.parse(e.params[0]),{network:n}=t,r=$c(t,["network"]),o=this.connector.request({method:"ton_signData",params:r},`ton:${n}`);null===(i=null==a?void 0:a.onRequestSent)||void 0===i||i.call(a);const s=yield o;return bu("Wallet message received:",{result:s,id:zd}),{result:s,traceId:a.traceId,id:zd}}if("disconnect"===e.method)return{id:zd,traceId:a.traceId}}catch(s){bu("WalletConnect request error",s,s.stack);const e=yield this.handleWalletConnectError(s,{traceId:a.traceId});return bu("Wallet message received:",e),e}return{id:zd,error:{code:Ac.UNKNOWN_ERROR,message:"Not implemented."},traceId:a.traceId}})}handleWalletConnectError(e,t){return zc(this,0,void 0,function*(){if("object"==typeof e&&null!==e){const n=String("message"in e?e.message:"msg"in e?e.msg:e);return n.toLowerCase().includes("reject")?{id:zd,traceId:t.traceId,error:{code:Tc.USER_REJECTS_ERROR,message:n}}:n.toLowerCase().includes("tonvalidationerror")?{id:zd,traceId:t.traceId,error:{code:Tc.BAD_REQUEST_ERROR,message:n}}:{id:zd,traceId:t.traceId,error:{code:Tc.UNKNOWN_ERROR,message:n}}}return{id:zd,traceId:t.traceId,error:{code:Tc.UNKNOWN_ERROR,message:String(e)}}})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}buildTonProof(e){var t,n,r;const o=null===(t=e.provider.session.authentication)||void 0===t?void 0:t[0],i=null===(n=null==o?void 0:o.p)||void 0===n?void 0:n.iat,a=null===(r=null==o?void 0:o.p)||void 0===r?void 0:r.statement;if(!i||!a)return;const s=o.p.domain;return{name:"ton_proof",proof:{timestamp:Math.floor(new Date(i).getTime()/1e3),domain:{lengthBytes:s.length,value:s},payload:a,signature:o.s.s}}}onConnect(e,t){return zc(this,0,void 0,function*(){var n,r,o,i;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return void bu("WalletConnect onConnect aborted");const a=e.provider.session,s=a.namespaces.ton;if(!(null===(r=null==s?void 0:s.accounts)||void 0===r?void 0:r[0]))return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No TON accounts connected."}));const l=s.accounts[0],[,c,u]=l.split(":",3),d=null===(o=a.sessionProperties)||void 0===o?void 0:o.ton_getPublicKey;if(!d)return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No sessionProperties.ton_getPublicKey provided."}));const f=null===(i=a.sessionProperties)||void 0===i?void 0:i.ton_getStateInit;if(!f)return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No sessionProperties.ton_getStateInit provided."}));e.provider.once("session_delete",()=>zc(this,0,void 0,function*(){try{yield this.connectionStorage.removeConnection();const e={event:"disconnect",traceId:_u(),payload:{}};bu("Wallet message received:",e),this.emit(e)}catch(e){bu("Error while deleting session",e)}}));const p=(null==t?void 0:t.includeTonProof)?this.buildTonProof(e):void 0,h={items:[{name:"ton_addr",address:fd(u)?function({wc:e,hex:t}){return`${e}:${t}`}(pd(u)):u,network:c,publicKey:d,walletStateInit:f},...p?[p]:[]],device:{appName:"wallet_connect",appVersion:"",maxProtocolVersion:2,features:this.buildFeatureList(s.methods),platform:"browser"}};bu("WalletConnect connect response:",{event:"connect",payload:h,id:0}),this.emit({event:"connect",payload:h,traceId:t.traceId}),yield this.storeConnection()})}buildFeatureList(e){const t=[];return e.includes("ton_sendMessage")&&t.push("SendTransaction",{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}),e.includes("ton_signData")&&t.push({name:"SignData",types:["text","binary","cell"]}),t}disconnectWithError(e){return zc(this,0,void 0,function*(){yield this.disconnect();const t={code:e.code,message:e.message};bu("WalletConnect connect response:",{event:"connect_error",id:0,payload:t}),this.emit({event:"connect_error",traceId:e.traceId,payload:t})})}clearAbortController(e){this.abortController===e&&(this.abortController=void 0)}emit(e,t){(null!=t?t:this.listeners).forEach(t=>t(e))}storeConnection(){return this.connectionStorage.storeConnection({type:"wallet-connect"})}}class Ud{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))}constructor(e){var t,n,r;this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[];const o=(null==e?void 0:e.manifestUrl)||function(){var e;const t=null===(e=Au())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}();this.dappSettings={manifestUrl:o,storage:(null==e?void 0:e.storage)||new Du},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.environment=null!==(t=null==e?void 0:e.environment)&&void 0!==t?t:new Wd,this.walletsList=new Uu({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs,onDownloadDurationMeasured:e=>{var t;null===(t=this.analytics)||void 0===t||t.setWalletListDownloadDuration(e)}});const i=null!==(n=null==e?void 0:e.eventDispatcher)&&void 0!==n?n:new Ld;if(this.tracker=new cd({eventDispatcher:i,tonConnectSdkVersion:ud}),this.environment=null!==(r=null==e?void 0:e.environment)&&void 0!==r?r:new Wd,this.initAnalytics(o,i,e),!this.dappSettings.manifestUrl)throw new Uc("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 Nu(this.dappSettings.storage,this.walletsList),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}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,n){var r,o,i;const a=Object.assign({},n);if("object"==typeof t&&null!==t&&"tonProof"in t&&(a.request=t),"object"==typeof t&&null!==t&&("openingDeadlineMS"in t||"signal"in t||"request"in t||"traceId"in t)&&(a.request=null==t?void 0:t.request,a.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,a.signal=null==t?void 0:t.signal),a.request){const e=Ad(a.request);if(e)throw new Fc("ConnectAdditionalRequest validation failed: "+e)}if(this.connected)throw new Hc;const s=mu(null==a?void 0:a.signal);if(null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=s,s.signal.aborted)throw new Fc("Connection was aborted");null===(o=this.provider)||void 0===o||o.closeConnection(),this.provider=this.createProvider(e),s.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null});const l=null!==(i=null==a?void 0:a.traceId)&&void 0!==i?i:_u();return this.tracker.trackConnectionStarted(l),this.provider.connect(this.createConnectRequest(null==a?void 0:a.request),{openingDeadlineMS:null==a?void 0:a.openingDeadlineMS,signal:s.signal,traceId:l})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u();this.tracker.trackConnectionRestoringStarted(o);const i=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);const[a,s]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(i.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);let l=null;try{switch(a){case"http":l=yield Tu.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case"injected":l=yield Lu.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case"wallet-connect":l=yield Fd.fromStorage(this.bridgeConnectionStorage);break;default:if(!s)return;l=this.createProvider(s)}}catch(f){return bu("Provider is not restored",f),this.tracker.trackConnectionRestoringError("Provider is not restored",o),yield this.bridgeConnectionStorage.removeConnection(),null==l||l.closeConnection(),void(l=null)}if(i.signal.aborted)return null==l||l.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);if(!l)return vu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored",o);null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=l,l.listen(this.walletEventsListener.bind(this));const c=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o),null==l||l.closeConnection(),l=null};i.signal.addEventListener("abort",c);const u=yu(t=>zc(this,0,void 0,function*(){if(yield null==l?void 0:l.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal,traceId:o}),i.signal.removeEventListener("abort",c),this.connected){const e=this.getSessionInfo();this.tracker.trackConnectionRestoringCompleted(this.wallet,e,o)}else this.tracker.trackConnectionRestoringError("Connection restoring failed",o)}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),d=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([u,d])})}sendTransaction(e,t){return zc(this,0,void 0,function*(){var n,r,o;const i={};"function"==typeof t?i.onRequestSent=t:(i.onRequestSent=null==t?void 0:t.onRequestSent,i.signal=null==t?void 0:t.signal,i.traceId=null==t?void 0:t.traceId);const a=Rd(e);if(a)throw new Fc("SendTransactionRequest validation failed: "+a);const s=mu(null==i?void 0:i.signal);if(s.signal.aborted)throw new Fc("Transaction sending was aborted");this.checkConnection();const l=e.messages.length,c=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Bu(this.wallet.device.features,{requiredMessagesNumber:l,requireExtraCurrencies:c});const u=this.getSessionInfo(),d=null!==(n=null==i?void 0:i.traceId)&&void 0!==n?n:_u();this.tracker.trackTransactionSentForSignature(this.wallet,e,u,d);const{validUntil:f,messages:p}=e,h=$c(e,["validUntil","messages"]),g=e.from||this.account.address,m=e.network||this.account.chain;if((null===(r=this.wallet)||void 0===r?void 0:r.account.chain)&&m!==this.wallet.account.chain)throw new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:null===(o=this.wallet)||void 0===o?void 0:o.account.chain,actualChainId:m}});const y=yield this.provider.sendRequest(lu.convertToRpcRequest(Object.assign(Object.assign({},h),{from:g,network:m,valid_until:f,messages:p.map(e=>{var{extraCurrency:t,payload:n,stateInit:r}=e,o=$c(e,["extraCurrency","payload","stateInit"]);return Object.assign(Object.assign({},o),{payload:jd(n),stateInit:jd(r),extra_currency:t})})})),{onRequestSent:i.onRequestSent,signal:s.signal,traceId:d});if(lu.isError(y))return this.tracker.trackTransactionSigningFailed(this.wallet,e,y.error.message,y.error.code,u,d),lu.parseAndThrowError(y);const b=lu.convertFromRpcResponse(y);return this.tracker.trackTransactionSigned(this.wallet,e,b,u,d),Object.assign(Object.assign({},b),{traceId:y.traceId})})}signData(e,t){return zc(this,0,void 0,function*(){var n,r,o;const i=mu(null==t?void 0:t.signal);if(i.signal.aborted)throw new Fc("data sending was aborted");const a=Od(e);if(a)throw new Fc("SignDataPayload validation failed: "+a);this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new Gc("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 Gc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]});const s=this.getSessionInfo(),l=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:_u();this.tracker.trackDataSentForSignature(this.wallet,e,s,l);const c=e.from||this.account.address,u=e.network||this.account.chain;if((null===(r=this.wallet)||void 0===r?void 0:r.account.chain)&&u!==this.wallet.account.chain)throw new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:null===(o=this.wallet)||void 0===o?void 0:o.account.chain,actualChainId:u}});const d=yield this.provider.sendRequest(uu.convertToRpcRequest(Object.assign(Object.assign(Object.assign({},e),"cell"===e.type?{cell:jd(e.cell)}:{}),{from:c,network:u})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:i.signal,traceId:l});if(uu.isError(d))return this.tracker.trackDataSigningFailed(this.wallet,e,d.error.message,d.error.code,s,l),uu.parseAndThrowError(d);const f=uu.convertFromRpcResponse(d);return this.tracker.trackDataSigned(this.wallet,e,f,s,l),Object.assign(Object.assign({},f),{traceId:l})})}setConnectionNetwork(e){if(this.connected)throw new Fc("Cannot change network while wallet is connected");this.desiredChainId=e}disconnect(e){return zc(this,0,void 0,function*(){var t,n;if(!this.connected)throw new Vc;const r=mu(null==e?void 0:e.signal),o=this.abortController;if(this.abortController=r,r.signal.aborted)throw new Fc("Disconnect was aborted");const i=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:_u();this.onWalletDisconnected("dapp",{traceId:i}),yield null===(n=this.provider)||void 0===n?void 0:n.disconnect({signal:r.signal,traceId:i}),null==o||o.abort()})}getSessionId(){return zc(this,0,void 0,function*(){if(!this.provider)return null;try{const e=yield this.bridgeConnectionStorage.getConnection();return e&&"http"===e.type?"sessionCrypto"in e?e.sessionCrypto.sessionId:e.session.sessionCrypto.sessionId:null}catch(e){return null}})}getSessionInfo(){var e;if("http"!==(null===(e=this.provider)||void 0===e?void 0:e.type))return null;if(!("session"in this.provider))return null;try{const e=this.provider.session;if(!e)return null;const t=e.sessionCrypto.sessionId;let n=null;return"walletPublicKey"in e&&(n=e.walletPublicKey),{clientId:t,walletId:n}}catch(t){return null}}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=Ou();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch(()=>{})})}catch(t){vu("Cannot subscribe to the document.visibilitychange: ",t)}}initAnalytics(e,t,n){var r;const o=null==n?void 0:n.analytics,i=null!==(r=null==o?void 0:o.mode)&&void 0!==r?r:"telemetry";if("off"===i)return;const a=new Md({environment:this.environment,mode:i});this.analytics=a;const s=this.environment.getTelegramUser(),l={browser:this.environment.getBrowser(),platform:this.environment.getPlatform(),manifest_json_url:e,origin_url:ju,locale:this.environment.getLocale()};s&&(l.tg_id=s.id,l.tma_is_premium=s.isPremium),function(e,t){e.addEventListener("ton-connect-ui-wallet-modal-opened",e=>{var n;const{detail:r}=e;t.emitConnectionStarted({client_id:r.client_id||"",versions:Nd(r.custom_data),main_screen:r.visible_wallets,trace_id:null!==(n=r.trace_id)&&void 0!==n?n:void 0})}),e.addEventListener("ton-connect-ui-selected-wallet",e=>{var n,r;const{detail:o}=e;t.emitConnectionSelectedWallet({client_id:o.client_id||"",versions:Nd(o.custom_data),main_screen:o.visible_wallets,wallets_menu:o.wallets_menu,trace_id:null!==(n=o.trace_id)&&void 0!==n?n:void 0,wallet_app_name:null!==(r=o.wallet_type)&&void 0!==r?r:"",wallet_redirect_method:o.wallet_redirect_method,wallet_redirect_link:o.wallet_redirect_link})}),e.addEventListener("ton-connect-connection-completed",e=>{const{detail:n}=e;t.emitConnectionCompleted(Dd(n))}),e.addEventListener("ton-connect-connection-error",e=>{var n,r;const{detail:o}=e;t.emitConnectionError({client_id:o.custom_data.client_id||"",wallet_id:o.custom_data.wallet_id||"",error_code:null!==(n=o.error_code)&&void 0!==n?n:0,error_message:o.error_message,trace_id:null!==(r=o.trace_id)&&void 0!==r?r:void 0})}),e.addEventListener("ton-connect-disconnection",e=>{const{detail:n}=e;t.emitDisconnection(Dd(n))}),e.addEventListener("ton-connect-transaction-sent-for-signature",e=>{const{detail:n}=e;t.emitTransactionSent(Dd(n))}),e.addEventListener("ton-connect-transaction-signed",e=>{const{detail:n}=e;t.emitTransactionSigned(Object.assign(Object.assign({},Dd(n)),{signed_boc:e.detail.signed_transaction}))}),e.addEventListener("ton-connect-transaction-signing-failed",e=>{var n;const{detail:r}=e;t.emitTransactionSigningFailed(Object.assign(Object.assign({},Dd(r)),{valid_until:Number(r.valid_until),messages:r.messages.map(e=>{var t,n,r,o;return{address:null!==(t=e.address)&&void 0!==t?t:"",amount:null!==(n=e.amount)&&void 0!==n?n:"",payload:null!==(r=e.payload)&&void 0!==r?r:"",state_init:null!==(o=e.state_init)&&void 0!==o?o:""}}),error_message:r.error_message,error_code:null!==(n=r.error_code)&&void 0!==n?n:0}))}),e.addEventListener("ton-connect-sign-data-request-initiated",e=>{const{detail:n}=e;null==t||t.emitSignDataRequestInitiated(Dd(n))}),e.addEventListener("ton-connect-sign-data-request-completed",e=>{const{detail:n}=e;null==t||t.emitSignDataRequestCompleted(Dd(n))}),e.addEventListener("ton-connect-sign-data-request-failed",e=>{var n;const{detail:r}=e;let o,i="";"text"===r.data.type&&(i=r.data.text),"cell"===r.data.type&&(i=r.data.cell,o=r.data.schema),"binary"===r.data.type&&(i=r.data.bytes),null==t||t.emitSignDataRequestFailed(Object.assign(Object.assign({},Dd(r)),{sign_data_type:r.data.type,sign_data_value:i,sign_data_schema:o,error_code:null!==(n=r.error_code)&&void 0!==n?n:0,error_message:r.error_message}))})}(t,a.scoped(l))}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Lu(this.bridgeConnectionStorage,e.jsBridgeKey,this.analytics):!Array.isArray(e)&&function(e){return"type"in e&&"wallet-connect"===e.type}(e)?new Fd(this.bridgeConnectionStorage):new Tu(this.bridgeConnectionStorage,e,this.analytics),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload,{traceId:e.traceId});break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code,this.getSessionInfo(),e.traceId);const t=iu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet",{traceId:e.traceId})}}onWalletConnected(e,t){var n,r;const o=e.items.find(e=>"ton_addr"===e.name),i=e.items.find(e=>"ton_proof"===e.name);if(!o)throw new Fc("ton_addr connection item was not found");if(!qu(e.device.features,this.walletsRequiredFeatures))return null===(n=this.provider)||void 0===n||n.disconnect(),void this.onWalletConnectError(new Qc("Wallet does not support required features",{cause:{connectEvent:e}}));const a={device:e.device,provider:this.provider.type,account:{address:o.address,chain:o.network,walletStateInit:o.walletStateInit,publicKey:o.publicKey}};if(this.desiredChainId&&a.account.chain!==this.desiredChainId){const e=this.desiredChainId,t=a.account.chain;return null===(r=this.provider)||void 0===r||r.disconnect(),void this.onWalletConnectError(new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:e,actualChainId:t}}))}if(i){const e=function(e){if(!Td(e))return"ton_proof item must be an object";if(Pd(e,["error","proof","name"]))return"ton_proof item contains extra properties";const t=Object.prototype.hasOwnProperty.call(e,"proof"),r=Object.prototype.hasOwnProperty.call(e,"error");if(!t&&!r)return"'ton_proof' item must contain either 'proof' or 'error'";if(t&&r)return"'ton_proof' item must contain either 'proof' or 'error', not both";if(t){const t=e.proof;if(!Td(t))return"Invalid 'proof' object";if(!Cd(t.timestamp))return"Invalid 'proof.timestamp'";const r=t.domain;if(!Td(r))return"Invalid 'proof.domain'";if(!Cd(r.lengthBytes))return"Invalid 'proof.domain.lengthBytes'";if(!Sd(r.value))return"Invalid 'proof.domain.value'";try{if(("undefined"!=typeof TextEncoder?(new TextEncoder).encode(r.value).length:r.value.length)!==r.lengthBytes)return"'proof.domain.lengthBytes' does not match 'proof.domain.value'"}catch(n){}if(!Sd(t.payload))return"Invalid 'proof.payload'";if(!Sd(t.signature)||!bd.test(t.signature))return"Invalid 'proof.signature' format"}if(r){const t=e.error;if(!Td(t))return"Invalid 'error' object";if(Pd(t,["code","message"]))return"ton_proof error contains extra properties";if(!Cd(t.code))return"Invalid 'error.code'";if(!Sd(t.message))return"Invalid 'error.message'"}return null}(i);let t;if(e)t={name:"ton_proof",error:{code:Ec.UNKNOWN_ERROR,message:e}};else try{if("proof"in i)t={name:"ton_proof",proof:{timestamp:i.proof.timestamp,domain:{lengthBytes:i.proof.domain.lengthBytes,value:i.proof.domain.value},payload:i.proof.payload,signature:i.proof.signature}};else{if(!("error"in i))throw new Fc("Invalid data format");t={name:"ton_proof",error:{code:i.error.code,message:i.error.message}}}}catch(l){t={name:"ton_proof",error:{code:Ec.UNKNOWN_ERROR,message:"Invalid data format"}}}a.connectItems={tonProof:t}}this.wallet=a;const s=this.getSessionInfo();this.tracker.trackConnectionCompleted(a,s,null==t?void 0:t.traceId)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),bu(e),e instanceof qc||e instanceof Bc)throw vu(e),e}onWalletDisconnected(e,t){const n=this.getSessionInfo();this.tracker.trackDisconnection(this.wallet,e,n,null==t?void 0:t.traceId),this.wallet=null}checkConnection(){if(!this.connected)throw new Vc}createConnectRequest(e){const t=[Object.assign({name:"ton_addr"},this.desiredChainId?{network:this.desiredChainId}:{})];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}var Bd,qd;Ud.walletsList=new Uu,Ud.isWalletInjected=e=>Lu.isWalletInjected(e),Ud.isInsideWalletBrowser=e=>Lu.isInsideWalletBrowser(e);const Hd=r(function(){if(qd)return Bd;qd=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)},{})},Bd=s}());var Vd,Kd={exports:{}};var Gd=(Vd||(Vd=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}()}(Kd)),Kd.exports);const Qd=r(Gd);var Yd,Zd,Xd,Jd,ef,tf,nf,rf,of=Object.defineProperty,af=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,df=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ff=(e,t)=>{for(var n in t||(t={}))cf.call(t,n)&&df(e,n,t[n]);if(lf)for(var n of lf(t))uf.call(t,n)&&df(e,n,t[n]);return e},pf=(e,t)=>af(e,sf(t)),hf=(e,t)=>{var n={};for(var r in e)cf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&lf)for(var r of lf(e))t.indexOf(r)<0&&uf.call(e,r)&&(n[r]=e[r]);return n},gf=(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 mf=Symbol("solid-proxy"),yf="function"==typeof Proxy,bf=Symbol("solid-track"),vf={equals:(e,t)=>e===t};let wf=ip;const xf=1,Cf=2,Sf={owned:null,cleanups:null,context:null,owner:null},kf={};var Ef=null;let _f=null,Tf=null,Pf=null,Rf=null,If=0;function Af(e,t){const n=Tf,r=Ef,o=0===e.length,i=void 0===t?r:t,a=o?Sf:{owned:null,cleanups:null,context:i?i.context:null,owner:i},s=o?e:()=>e(()=>$f(()=>cp(a)));Ef=a,Tf=null;try{return op(s,!0)}finally{Tf=n,Ef=r}}function Of(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},vf,t):vf).equals||void 0};return[Jf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),ep(n,e))]}function jf(e,t,n){tp(np(e,t,!0,xf))}function Mf(e,t,n){tp(np(e,t,!1,xf))}function Lf(e,t,n){wf=ap;const r=np(e,t,!1,xf);n&&n.render||(r.user=!0),Rf?Rf.push(r):tp(r)}function Nf(e,t,n){n=n?Object.assign({},vf,n):vf;const r=np(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,tp(r),Jf.bind(r)}function Df(e,t,n){let r,o,i;r=!0,o=e,i={};let a=null,s=kf,l=!1,c="initialValue"in i,u=!1;const d=new Set,[f,p]=(i.storage||Of)(i.initialValue),[h,g]=Of(void 0),[m,y]=Of(void 0,{equals:!1}),[b,v]=Of(c?"ready":"unresolved");function w(e,t,n,r){return a===e&&(a=null,void 0!==r&&(c=!0),e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=kf,function(e,t){op(()=>{void 0===t&&p(()=>e),v(void 0!==t?"errored":c?"ready":"unresolved"),g(t);for(const e of d.keys())e.decrement();d.clear()},!1)}(t,n)),t}function x(){const e=f(),t=h();if(void 0!==t&&!a)throw t;return Tf&&Tf.user,e}function C(e=!0){if(!1!==e&&l)return;l=!1;const t=u?u():r;if(null==t||!1===t)return void w(a,$f(f));let n;const i=s!==kf?s:$f(()=>{try{return o(t,{value:f(),refetching:e})}catch(r){n=r}});var d;if(void 0===n)return(d=i)&&"object"==typeof d&&"then"in d?(a=i,"v"in i?(1===i.s?w(a,i.v,void 0,t):w(a,void 0,up(i.v),t),i):(l=!0,queueMicrotask(()=>l=!1),op(()=>{v(c?"refreshing":"pending"),y()},!1),i.then(e=>w(i,e,void 0,t),e=>w(i,void 0,up(e),t)))):(w(a,i,void 0,t),i);w(a,void 0,up(n),t)}Object.defineProperties(x,{state:{get:()=>b()},error:{get:()=>h()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!c)return x();const e=h();if(e&&!a)throw e;return f()}}});let S=Ef;return u?jf(()=>(S=Ef,C(!1))):C(!1),[x,{refetch:e=>Hf(S,()=>C(e)),mutate:p}]}function Wf(e){return op(e,!1)}function $f(e){if(null===Tf)return e();const t=Tf;Tf=null;try{return e()}finally{Tf=t}}function zf(e,t,n){const r=Array.isArray(e);let o;return n=>{let i;if(r){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();const a=$f(()=>t(i,o,n));return o=i,a}}function Ff(e){Lf(()=>$f(e))}function Uf(e){return null===Ef||(null===Ef.cleanups?Ef.cleanups=[e]:Ef.cleanups.push(e)),e}function Bf(){return Tf}function qf(){return Ef}function Hf(e,t){const n=Ef,r=Tf;Ef=e,Tf=null;try{return op(t,!0)}catch(o){dp(o)}finally{Ef=n,Tf=r}}function Vf(e){const t=Tf,n=Ef;return Promise.resolve().then(()=>{Tf=t,Ef=n,op(e,!1),Tf=Ef=null})}const[Kf,Gf]=Of(!1);function Qf(){return[Kf,Vf]}function Yf(e,t){const n=Symbol("context");return{id:n,Provider:pp(n),defaultValue:e}}function Zf(e){let t;return Ef&&Ef.context&&void 0!==(t=Ef.context[e.id])?t:e.defaultValue}function Xf(e){const t=Nf(e),n=Nf(()=>fp(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function Jf(){if(this.sources&&this.state)if(this.state===xf)tp(this);else{const e=Pf;Pf=null,op(()=>sp(this),!1),Pf=e}if(Tf){const e=this.observers?this.observers.length:0;Tf.sources?(Tf.sources.push(this),Tf.sourceSlots.push(e)):(Tf.sources=[this],Tf.sourceSlots=[e]),this.observers?(this.observers.push(Tf),this.observerSlots.push(Tf.sources.length-1)):(this.observers=[Tf],this.observerSlots=[Tf.sources.length-1])}return this.value}function ep(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&op(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=_f&&_f.running;r&&_f.disposed.has(n),(r?n.tState:n.state)||(n.pure?Pf.push(n):Rf.push(n),n.observers&&lp(n)),r||(n.state=xf)}if(Pf.length>1e6)throw Pf=[],new Error},!1)),t}function tp(e){if(!e.fn)return;cp(e);const t=If;!function(e,t,n){let r;const o=Ef,i=Tf;Tf=Ef=e;try{r=e.fn(t)}catch(a){return e.pure&&(e.state=xf,e.owned&&e.owned.forEach(cp),e.owned=null),e.updatedAt=n+1,dp(a)}finally{Tf=i,Ef=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?ep(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function np(e,t,n,r=xf,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ef,context:Ef?Ef.context:null,pure:n};return null===Ef||Ef!==Sf&&(Ef.owned?Ef.owned.push(i):Ef.owned=[i]),i}function rp(e){if(0===e.state)return;if(e.state===Cf)return sp(e);if(e.suspense&&$f(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<If);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===xf)tp(e);else if(e.state===Cf){const n=Pf;Pf=null,op(()=>sp(e,t[0]),!1),Pf=n}}function op(e,t){if(Pf)return e();let n=!1;t||(Pf=[]),Rf?n=!0:Rf=[],If++;try{const t=e();return function(e){Pf&&(ip(Pf),Pf=null);if(e)return;const t=Rf;Rf=null,t.length&&op(()=>wf(t),!1)}(n),t}catch(r){n||(Rf=null),Pf=null,dp(r)}}function ip(e){for(let t=0;t<e.length;t++)rp(e[t])}function ap(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:rp(r)}for(t=0;t<n;t++)rp(e[t])}function sp(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===xf?r!==t&&(!r.updatedAt||r.updatedAt<If)&&rp(r):e===Cf&&sp(r,t)}}}function lp(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Cf,n.pure?Pf.push(n):Rf.push(n),n.observers&&lp(n))}}function cp(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.tOwned){for(t=e.tOwned.length-1;t>=0;t--)cp(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)cp(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function up(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function dp(e,t=Ef){throw up(e)}function fp(e){if("function"==typeof e&&!e.length)return fp(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=fp(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function pp(e,t){return function(t){let n;return Mf(()=>n=$f(()=>(Ef.context=pf(ff({},Ef.context),{[e]:t.value}),Xf(()=>t.children))),void 0),n}}const hp=Symbol("fallback");function gp(e){for(let t=0;t<e.length;t++)e[t]()}function mp(e,t){return $f(()=>e(t||{}))}function yp(){return!0}const bp={get:(e,t,n)=>t===mf?n:e.get(t),has:(e,t)=>t===mf||e.has(t),set:yp,deleteProperty:yp,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:yp,deleteProperty:yp}),ownKeys:e=>e.keys()};function vp(e){return(e="function"==typeof e?e():e)?e:{}}function wp(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function xp(...e){let t=!1;for(let a=0;a<e.length;a++){const n=e[a];t=t||!!n&&mf in n,e[a]="function"==typeof n?(t=!0,Nf(n)):n}if(yf&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=vp(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in vp(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(vp(e[n])));return[...new Set(t)]}},bp);const n={},r=Object.create(null);for(let a=e.length-1;a>=0;a--){const t=e[a];if(!t)continue;const o=Object.getOwnPropertyNames(t);for(let e=o.length-1;e>=0;e--){const i=o[e];if("__proto__"===i||"constructor"===i)continue;const a=Object.getOwnPropertyDescriptor(t,i);if(r[i]){const e=n[i];e&&(a.get?e.push(a.get.bind(t)):void 0!==a.value&&e.push(()=>a.value))}else r[i]=a.get?{enumerable:!0,configurable:!0,get:wp.bind(n[i]=[a.get.bind(t)])}:void 0!==a.value?a:void 0}}const o={},i=Object.keys(r);for(let a=i.length-1;a>=0;a--){const e=i[a],t=r[e];t&&t.get?Object.defineProperty(o,e,t):o[e]=t?t.value:void 0}return o}function Cp(e,...t){if(yf&&mf in e){const n=new Set(t.length>1?t.flat():t[0]),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)},bp));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))},bp)),r}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),a=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let s=!1,l=0;for(const e of t)e.includes(o)&&(s=!0,a?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;s||(a?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}const Sp=e=>`Stale read from <${e}>.`;function kp(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Nf(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Uf(()=>gp(i)),()=>{let l,c,u=e()||[],d=u.length;return u[bf],$f(()=>{let e,t,p,h,g,m,y,b,v;if(0===d)0!==a&&(gp(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[hp],o[0]=Af(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(d),c=0;c<d;c++)r[c]=u[c],o[c]=Af(f);a=d}else{for(p=new Array(d),h=new Array(d),s&&(g=new Array(d)),m=0,y=Math.min(a,d);m<y&&r[m]===u[m];m++);for(y=a-1,b=d-1;y>=m&&b>=m&&r[y]===u[b];y--,b--)p[b]=o[y],h[b]=i[y],s&&(g[b]=s[y]);for(e=new Map,t=new Array(b+1),c=b;c>=m;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=m;l<=y;l++)v=r[l],c=e.get(v),void 0!==c&&-1!==c?(p[c]=o[l],h[c]=i[l],s&&(g[c]=s[l]),c=t[c],e.set(v,c)):i[l]();for(c=m;c<d;c++)c in p?(o[c]=p[c],i[c]=h[c],s&&(s[c]=g[c],s[c](c))):o[c]=Af(f);o=o.slice(0,a=d),r=u.slice(0)}return o});function f(e){if(i[c]=e,s){const[e,n]=Of(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Ep(e){const t=e.keyed,n=Nf(()=>e.when,void 0,void 0),r=t?n:Nf(n,void 0,{equals:(e,t)=>!e==!t});return Nf(()=>{const o=r();if(o){const i=e.children;return"function"==typeof i&&i.length>0?$f(()=>i(t?o:()=>{if(!$f(r))throw Sp("Show");return n()})):i}return e.fallback},void 0,void 0)}function _p(e){const t=Xf(()=>e.children),n=Nf(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let t=0;t<n.length;t++){const e=t,o=n[t],i=r,a=Nf(()=>i()?void 0:o.when,void 0,void 0),s=o.keyed?a:Nf(a,void 0,{equals:(e,t)=>!e==!t});r=()=>i()||(s()?[e,a,o]:void 0)}return r});return Nf(()=>{const t=n()();if(!t)return e.fallback;const[r,o,i]=t,a=i.children;return"function"==typeof a&&a.length>0?$f(()=>a(i.keyed?o():()=>{var e;if((null==(e=$f(n)())?void 0:e[0])!==r)throw Sp("Match");return o()})):a},void 0,void 0)}function Tp(e){return e}const Pp=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Rp=new Set(["innerHTML","textContent","innerText","children"]),Ip=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ap=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const Op=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),jp=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","feDropShadow","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"]),Mp={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Lp=e=>Nf(()=>e());const Np="_$DX_DELEGATE";function Dp(e,t,n,r){let o;const i=()=>{const t=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},a=t?()=>$f(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return a.cloneNode=a,a}function Wp(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function $p(e,t){null==t?e.removeAttribute("class"):e.className=t}function zp(e,t={},n,r){const o={};return Mf(()=>o.children=Vp(e,t.children,o.children)),Mf(()=>"function"==typeof t.ref&&Fp(t.ref,e)),Mf(()=>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]=qp(e,a,null,o[a],n,i,t)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=qp(e,a,r,o[a],n,i,t)}}(e,t,n,0,o,!0)),o}function Fp(e,t,n){return $f(()=>e(t,n))}function Up(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Vp(e,t,r,n);Mf(r=>Vp(e,t(),r,n),r)}function Bp(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 qp(e,t,n,r,o,i,a){let s,l,c,u,d;if("style"===t)return function(e,t,n){if(!t)return n?Wp(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]&&(Bp(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&&(Bp(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,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&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=Op.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,"function"!=typeof n&&n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Np]||(t[Np]=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,Hp))}}([o]))}else if("attr:"===t.slice(0,5))Wp(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}(e,t.slice(5),n);else if((d="prop:"===t.slice(0,5))||(c=Rp.has(t))||!o&&((u=function(e,t){const n=Ap[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(l=Pp.has(t)))||(s=e.nodeName.includes("-")||"is"in a))d&&(t=t.slice(5),l=!0),"class"===t||"className"===t?$p(e,n):!s||l||c?e[u||t]=n:e[(f=t,f.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Mp[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):Wp(e,Ip[t]||t,n)}var f;return n}function Hp(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),a=()=>{const r=t[n];if(r&&!t.disabled){const o=t[`${n}Data`];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),e.composedPath){const n=e.composedPath();i(n[0]);for(let e=0;e<n.length-2&&(t=n[e],a());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===o)break}}else s();i(r)}function Vp(e,t,n,r,o){for(;"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("number"===i&&(t=t.toString())===n)return n;if(a){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Qp(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i)n=Qp(e,n,r);else{if("function"===i)return Mf(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Vp(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(Kp(i,t,n,o))return Mf(()=>n=Vp(e,i,n,r,!0)),()=>n;if(0===i.length){if(n=Qp(e,n,r),a)return n}else s?0===n.length?Gp(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&&Qp(e),Gp(e,i));n=i}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=Qp(e,n,r,t);Qp(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Kp(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a,s=t[i],l=n&&n[e.length];if(null==s||!0===s||!1===s);else if("object"==(a=typeof s)&&s.nodeType)e.push(s);else if(Array.isArray(s))o=Kp(e,s,l)||o;else if("function"===a)if(r){for(;"function"==typeof s;)s=s();o=Kp(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||o}else e.push(s),o=!0;else{const t=String(s);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function Gp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Qp(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 Yp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function Zp(e){const{useShadow:t}=e,n=document.createTextNode(""),r=qf();let o;return Lf(()=>{o||(o=Hf(r,()=>Nf(()=>e.children)));const i=e.mount||document.body;if(i instanceof HTMLHeadElement){const[e,t]=Of(!1),n=()=>t(!0);Af(t=>Up(i,()=>e()?t():o(),null)),Uf(n)}else{const r=Yp(e.isSVG?"g":"div",e.isSVG),a=t&&r.attachShadow?r.attachShadow({mode:"open"}):r;Object.defineProperty(r,"_$host",{get:()=>n.parentNode,configurable:!0}),Up(a,o),i.appendChild(r),e.ref&&e.ref(r),Uf(()=>i.removeChild(r))}},void 0,{render:!0}),n}function Xp(e){const[,t]=Cp(e,["component"]);return function(e,t){const n=Nf(e);return Nf(()=>{const e=n();switch(typeof e){case"function":return $f(()=>e(t));case"string":const n=jp.has(e),r=Yp(e,n);return zp(r,t,n),r}})}(()=>e.component,t)}var Jp=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(Jp||{});let eh={data:""},th=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nh=/\/\*[^]*?\*\/| +/g,rh=/\n+/g,oh=(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]?oh(a,i):i+"{"+oh(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=oh(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+=oh.p?oh.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ih={},ah=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ah(e[n]);return t}return e};function sh(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=ah(e),a=ih[i]||(ih[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!ih[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=th.exec(e.replace(nh,""));)t[4]?r.shift():t[3]?(n=t[3].replace(rh," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(rh," ").trim();return r[0]})(e);ih[a]=oh(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&ih.g?ih.g:null;return n&&(ih.g=ih[a]),l=ih[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?"":oh(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||eh),t.g,t.o,t.k);var r}sh.bind({g:1});let lh=sh.bind({k:1});const ch=Yf();function uh(e){return mp(ch.Provider,{value:e.theme,get children(){return e.children}})}function dh(){return Zf(ch)}function fh(e){let t=this||{};return(...n)=>{const r=r=>{const o=xp(r,{theme:Zf(ch)}),i=xp(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,sh.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Cp(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),zp(u,l)):u=Xp(xp({component:c},l)),u};return r.class=e=>$f(()=>sh.apply({target:t.target,p:e,g:t.g},n)),r}}const ph=new Proxy(fh,{get:(e,t)=>e(t)});function hh(){const e=fh.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const gh="tc-root",mh="tc-disable-scroll",yh="tc-using-mouse",bh=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(yh)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(yh)});return mp(hh`
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,S||(S=!0,C());else{var t=n(c);null!==t&&A(x,t.startTime-e)}}var C,S=!1,k=-1,_=5,E=-1;function T(){return!(!m&&e.unstable_now()-E<_)}function P(){if(m=!1,S){var t=e.unstable_now();E=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(k),k=-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&&A(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():S=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=P,C=function(){I.postMessage(null)}}else C=function(){y(P,0)};function A(t,n){k=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"):_=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(k),k=-1):g=!0,A(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,S||(S=!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 S(){}var k={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function E(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 R(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 I(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 I((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+R(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),I(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=E(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+=I(i=n[g],r,o,s=h+R(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+=I(i=i.value,r,o,s=h+R(i,g++),a);else if("object"===s){if("function"==typeof n.then)return I(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(S,S):(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 A(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(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 j="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)},M={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(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=M,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=k,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.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)!_.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(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)_.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(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:O}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(S,j)}catch(i){j(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},w.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},w.use=function(e){return k.H.use(e)},w.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},w.useCallback=function(e,t){return k.H.useCallback(e,t)},w.useContext=function(e){return k.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return k.H.useEffect(e,t)},w.useEffectEvent=function(e){return k.H.useEffectEvent(e)},w.useId=function(){return k.H.useId()},w.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return k.H.useMemo(e,t)},w.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},w.useRef=function(e){return k.H.useRef(e)},w.useState=function(e){return k.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return k.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var S,k,_,E,T={exports:{}},P={};function R(){if(S)return P;S=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 I(){if(k)return T.exports;return k=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=R(),T.exports}function A(){if(_)return p;_=1;var e=m(),t=C(),n=I();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"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===j?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 S:return"Suspense";case k: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 E:return null!==(t=e.displayName||null)?t:M(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return M(e(t))}catch(n){}}return null}var L=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},$=[],z=-1;function F(e){return{current:e}}function U(e){0>z||(e.current=$[z],$[z]=null,z--)}function B(e,t){z++,$[z]=e.current,e.current=t}var q,H,V=F(null),K=F(null),G=F(null),Q=F(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}}U(V),B(V,e)}function Z(){U(V),U(K),U(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&&(U(V),U(K)),Q.current===e&&(U(Q),pf._currentValue=W)}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-(Se(e)/ke|0)|0},Se=Math.log,ke=Math.LN2;var _e=256,Ee=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 Re(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 Ie(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(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 Oe(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(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 De(e,t){var n=t&-t;return 0!==((n=42&n?1:We(n))&(e.suspendedLanes|t))?0:n}function We(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 $e(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:Rf(e.type)}function Fe(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var Ue=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ue,qe="__reactProps$"+Ue,He="__reactContainer$"+Ue,Ve="__reactEvents$"+Ue,Ke="__reactListeners$"+Ue,Ge="__reactHandles$"+Ue,Qe="__reactResources$"+Ue,Ye="__reactMarker$"+Ue;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=Wd(e);null!==e;){if(n=e[Be])return n;e=Wd(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 St(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 kt(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 _t(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(L(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 Et(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 Rt(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 It(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 At=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"]]),Ot=/^[\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 jt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mt(){}var Lt=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dt=null,Wt=null;function $t(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":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&St(e,!!n.multiple,t,!1)}}}var zt=!1;function Ft(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==Dt||null!==Wt)&&(tu(),Dt&&(t=Dt,e=Wt,Wt=Dt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function Ut(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})),Sn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=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})),_n=Jt(u({},rn,{newState:0,oldState:0})),En=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,Pn=null;Bt&&"documentMode"in document&&(Pn=document.documentMode);var Rn=Bt&&"TextEvent"in window&&!Pn,In=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),An=String.fromCharCode(32),On=!1;function jn(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!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 Dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Wn(e,t,n,r){Dt?Wt?Wt.push(r):Wt=[r]:Dt=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,zn=null;function Fn(e){Zu(e,0)}function Un(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(){$n&&($n.detachEvent("onpropertychange",Qn),zn=$n=null)}function Qn(e){if("value"===e.propertyName&&Un(zn)){var t=[];Wn(t,zn,e,Nt(e)),Ft(Fn,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,($n=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Un(zn)}function Xn(e,t){if("click"===e)return Un(t)}function Jn(e,t){if("input"===e||"change"===e)return Un(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"),Sr=yr("transitioncancel"),kr=yr("transitionend"),_r=new Map,Er="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){_r.set(e,t),it(t,[e])}Er.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)},Rr=[],Ir=0,Ar=0;function Or(){for(var e=Ir,t=Ar=Ir=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var o=Rr[t];Rr[t++]=null;var i=Rr[t];if(Rr[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 jr(e,t,n,r){Rr[Ir++]=e,Rr[Ir++]=t,Rr[Ir++]=n,Rr[Ir++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Mr(e,t,n,r){return jr(e,t,n,r),Dr(e)}function Lr(e,t){return jr(e,null,null,t),Dr(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 Dr(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 Wr={};function $r(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 $r(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ur(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)Fr(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 S:return(e=zr(13,n,t,i)).elementType=S,e.lanes=a,e;case k:return(e=zr(19,n,t,i)).elementType=k,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 E: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 ko(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),_t(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=Mt),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=Dd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=Dd(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Ld(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function So(){var e=go;return null!==e&&(null===Oc?Oc=e:Oc.push.apply(Oc,e),go=null),e}function ko(e){null===go?go=[e]:go.push(e)}var _o=F(null),Eo=null,To=null;function Po(e,t,n){B(_o,t._currentValue),t._currentValue=n}function Ro(e){e._currentValue=_o.current,U(_o)}function Io(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 Ao(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),Io(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),Io(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 Oo(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&&Ao(t,e,n,o),t.flags|=262144}function jo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mo(e){Eo=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return Do(Eo,e)}function No(e,t){return null===Eo&&Mo(e),Do(e,t)}function Do(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 Wo="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()})}},$o=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uo(){return{controller:new Wo,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&$o(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){Lc=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=F(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:Fo._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(Mt,Mt),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(Mt,Mt);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=Ur(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(L(t)||O(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(L(n)||O(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(L(r)||O(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(L(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(O(u)){if("function"!=typeof(v=O(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=Dr(e),Nr(e,null,n),t}return jr(e,r,t,n),Dr(e)}function Si(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 ki(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 _i=!1;function Ei(){if(_i){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){_i=!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&&(_i=!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),Ec|=a,e.lanes=a,e.memoizedState=f}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ri(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ii=F(null),Ai=F(0);function Oi(e,t){B(Ai,e=kc),B(Ii,t),kc=e|t.baseLanes}function ji(){B(Ai,kc),B(Ii,Ii.current)}function Mi(){kc=Ai.current,U(Ii),U(Ai)}var Li=F(null),Ni=null;function Di(e){var t=e.alternate;B(Ui,1&Ui.current),B(Li,e),null===Ni&&(null===t||null!==Ii.current||null!==t.memoizedState)&&(Ni=e)}function Wi(e){B(Ui,Ui.current),B(Li,e),null===Ni&&(Ni=e)}function $i(e){22===e.tag?(B(Ui,Ui.current),B(Li,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Ui,Ui.current),B(Li,Li.current)}function Fi(e){U(Li),Ni===e&&(Ni=null),U(Ui)}var Ui=F(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)||jd(n)||Md(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||Ls||null!==(e=e.dependencies)&&jo(e)&&(Ls=!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 Lo(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]=R;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,Ec|=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,Ec|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Ls=!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)||(Ls=!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,Ls=!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,$a(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,Sa(t)&&ka(e)}function Ca(e,t,n){return n(function(){Sa(t)&&ka(e)})}function Sa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function ka(e){var t=Lr(e,2);null!==t&&Yc(t,e,2)}function _a(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 Ea(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),Ra(e,t,s)}catch(c){Aa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Ra(e,t,i=n(o,r))}catch(u){Aa(e,t,u)}}function Ra(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ia(e,t,n)},function(n){return Aa(e,t,n)}):Ia(e,t,n)}function Ia(e,t,n){t.status="fulfilled",t.value=n,Oa(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 Aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Oa(t),t=t.next}while(t!==r)}e.action=null}function Oa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ja(e,t){return t}function Ma(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=Ld(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Ld(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:ja,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=_a(!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 La(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,ja)[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,$a(9,{destroy:void 0},Da.bind(null,o,n),null)),[r,i,e]}function Da(e,t){e.action=t}function Wa(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 $a(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 Fa(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=$a(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ua(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=$a(t,i,n,r):(Hi.flags|=e,o.memoizedState=$a(1|t,i,n,r))}function Ba(e,t){Fa(8390656,8,e,t)}function qa(e,t){Ua(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 Ua(4,2,e,t)}function Ka(e,t){return Ua(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,Ua(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,Ec|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ii.current?(e=Ja(e,n,r),er(e,t)||(Ls=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,Ec|=e,t):(Ls=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=D.p;D.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{D.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,W,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:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:W},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 Lo(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),Si(r,t,n)),t={cache:Uo()},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=Mr(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 jr(e,t,o,0),null===mc&&Or(),!1}catch(l){}if(null!==(n=Mr(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=Mr(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:Lo,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:Lo,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Fa(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){Fa(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=_a(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=_a(!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,$a(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:Ma,useActionState:Ma,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:Lo,use:pa,useCallback:Za,useContext:Lo,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:La,useActionState:La,useOptimistic:function(e,t){return Ea(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Lo,use:pa,useCallback:Za,useContext:Lo,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:Wa,useActionState:Wa,useOptimistic:function(e,t){var n=da();return null!==Vi?Ea(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),Si(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),Si(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),Si(t,e,n))}};function Ss(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 ks(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 _s(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 Es(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function Rs(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Is(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 As(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){Rs(e,t)},n}function Os(e){return(e=xi(e)).tag=3,e}function js(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(){Is(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Is(t,n,r),"function"!=typeof o&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ms=Error(r(461)),Ls=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function Ds(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 Mo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Ls?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fr(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,$s(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=Ur(i,r)).ref=t.ref,e.return=t,t.child=e}function $s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Ls=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Ls=!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 Us(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Us(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?Oi(t,i):ji(),$i(t)}else null!==i?(Xo(0,i.cachePool),Oi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),ji(),zi());return Ns(e,t,o,n),t.child}function Fs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Us(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Fo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),ji(),$i(t),null!==e&&Oo(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,Fi(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 Mo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Ls?(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 Mo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Ls?(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(Mo(t),null===t.stateNode){var i=Wr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Lo(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?Lo(a):Wr,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),Ei(),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=_s(n,s);i.props=l;var c=i.context,u=n.contextType;a=Wr,"object"==typeof u&&null!==u&&(a=Lo(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)&&ks(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),Ei(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||Ss(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=_s(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Wr,"object"==typeof c&&null!==c&&(l=Lo(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&ks(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),Ei();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&jo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||Ss(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&jo(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|=Rc),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&Ui.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?Di(t):zi(),(e=po)?null!==(e=null!==(e=Od(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 Md(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,Fs(null,i)):(Di(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Di(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=Fs(null,i));else if(Di(t),Md(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,ko({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Ls||Oo(e,t,n,!1),o=0!==(n&e.childLanes),Ls||o){if(null!==(o=mc)&&(0!==(i=De(o,n))&&i!==c.retryLane))throw c.retryLane=i,Lr(e,i),Yc(o,e,i),Ms;jd(l)||lu(),t=nl(e,t,n)}else jd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Ld(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=Ur(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Ur(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Fs(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Fo._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,Fs(e.child,i)):(Di(t),e=(n=e.child).sibling,(n=Ur(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),Io(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=Ui.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Ui,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),Ec|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Oo(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=Ur(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ur(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!jo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ls=!0;else{if(!(sl(e,n)||128&t.flags))return Ls=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Fo,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,Wi(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Di(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):(Di(t),null!==(e=al(e,t,n))?e.sibling:null);Di(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Oo(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(Ui,Ui.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Fo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Ls=!!(131072&e.flags)}else Ls=!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=Ds(null,t,e,o,n);break e}if(i===E){t.tag=14,t=Ws(null,t,e,o,n);break e}}throw t=M(e)||e,Error(r(306,t,""))}Fr(e)?(o=_s(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=_s(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,Fo,o),o!==a.cache&&Ao(t,[Fo],n,!0),Ei(),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){ko(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=Ld(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=$d(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Ld(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=Ld(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Ld(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=Ld(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 Ds(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,Mo(t),o=o(i=Lo(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ws(e,t,t.type,t.pendingProps,n);case 15:return $s(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,Fs(null,e);if(Wi(t),(e=po)?null!==(e=null!==(e=Od(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(Wi(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(Ls||Oo(e,t,n,!1),i=0!==(n&e.childLanes),Ls||i){if(null!==(o=mc)&&0!==(s=De(o,n))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Yc(o,e,s),Ms;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Ld(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=Ur(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 Mo(t),o=Lo(Fo),null===e?(null===(i=Zo())&&(i=mc,a=Uo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Fo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),Ei()),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,Fo,o)):(o=a.cache,Po(0,Fo,o),o!==i.cache&&Ao(t,[Fo],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?Oe():536870912,e.lanes|=t,Ic|=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),Ro(Fo),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,So())),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=$d(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=So(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fi(t),t):(Fi(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=So(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Fi(t),t):(Fi(t),null)}return Fi(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 Ro(t.type),hl(t),null;case 19:if(U(Ui),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!==_c||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(Ui,1&Ui.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=Ui.current,B(Ui,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Fi(t),Mi(),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&&U(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ro(Fo),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 Ro(Fo),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(Fi(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fi(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 U(Ui),null;case 4:return Z(),null;case 10:return Ro(t.type),null;case 22:case 23:return Fi(t),Mi(),null!==e&&U(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ro(Fo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ro(Fo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Fi(t);break;case 13:Fi(t);break;case 19:U(Ui);break;case 10:Ro(t.type);break;case 22:case 23:Fi(t),Mi(),null!==e&&U(Yo);break;case 24:Ro(Fo)}}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){_u(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){_u(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){_u(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ri(t,n)}catch(r){_u(e,e.return,r)}}}function xl(e,t,n){n.props=_s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){_u(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){_u(e,t,o)}}function Sl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){_u(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){_u(e,t,i)}else n.current=null}function kl(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){_u(e,e.return,o)}}function _l(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?St(e,!!n,p,!1):!!o!=!!n&&(null!=t?St(e,!!n,t,!0):St(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 kt(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(It(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){_u(e,e.return,i)}}function El(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||El(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=Mt));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 Rl(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(Rl(e,t,n),e=e.sibling;null!==e;)Rl(e,t,n),e=e.sibling}function Il(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){_u(e,e.return,i)}}var Al=!1,Ol=!1,jl=!1,Ml="function"==typeof WeakSet?WeakSet:Set,Ll=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){_u(n,n.return,a)}else{var o=_s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){_u(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{Ri(e,t)}catch(a){_u(n,n.return,a)}}break;case 27:null===t&&4&r&&Il(n);case 26:case 5:Yl(e,n),null===t&&4&r&&kl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Ul(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=Ru.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Ol,o=Al;var i=Ol;Al=r,(Ol=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Al=o,Ol=i}break;case 30:break;default:Yl(e,n)}}function Dl(e){var t=e.alternate;null!==t&&(e.alternate=null,Dl(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 Wl=null,$l=!1;function zl(e,t,n){for(n=n.child;null!==n;)Fl(e,t,n),n=n.sibling}function Fl(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ol||Sl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ol||Sl(n,t);var r=Wl,o=$l;Pd(n.type)&&(Wl=n.stateNode,$l=!1),zl(e,t,n),zd(n.stateNode),Wl=r,$l=o;break;case 5:Ol||Sl(n,t);case 6:if(r=Wl,o=$l,Wl=null,zl(e,t,n),$l=o,null!==(Wl=r))if($l)try{(9===Wl.nodeType?Wl.body:"HTML"===Wl.nodeName?Wl.ownerDocument.body:Wl).removeChild(n.stateNode)}catch(a){_u(n,t,a)}else try{Wl.removeChild(n.stateNode)}catch(a){_u(n,t,a)}break;case 18:null!==Wl&&($l?(Rd(9===(e=Wl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Rd(Wl,n.stateNode));break;case 4:r=Wl,o=$l,Wl=n.stateNode.containerInfo,$l=!0,zl(e,t,n),Wl=r,$l=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ol||vl(4,n,t),zl(e,t,n);break;case 1:Ol||(Sl(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:Ol=(r=Ol)||null!==n.memoizedState,zl(e,t,n),Ol=r;break;default:zl(e,t,n)}}function Ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){_u(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){_u(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 Ml),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ml),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Iu.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)){Wl=l.stateNode,$l=!1;break e}break;case 5:Wl=l.stateNode,$l=!1;break e;case 3:case 4:Wl=l.stateNode.containerInfo,$l=!0;break e}l=l.return}if(null===Wl)throw Error(r(160));Fl(a,s,i),Wl=null,$l=!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&&(Ol||null===n||Sl(n,n.return)),64&o&&Al&&(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&&(Ol||null===n||Sl(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&&_l(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ol||null===n||Sl(n,n.return)),null!==n&&4&o&&_l(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ol||null===n||Sl(n,n.return)),32&e.flags){i=e.stateNode;try{Et(i,"")}catch(g){_u(e,e.return,g)}}4&o&&null!=e.stateNode&&_l(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(jl=!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){_u(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){_u(e,e.return,g)}jl&&(jl=!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)&&(Mc=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=Al,d=Ol;if(Al=u||i,Ol=d||c,Hl(t,e),Ol=d,Al=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Al||Ol||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){_u(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){_u(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Id(h,!0):Id(c.stateNode,!1)}catch(g){_u(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(El(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Rl(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(Et(a,""),n.flags&=-33),Rl(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){_u(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:Sl(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:Sl(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){_u(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){_u(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Il(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&kl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Ul(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){_u(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=Fd.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];Ll=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];Ll=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!==Ll;){var n=Ll;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,Ll=r;else e:for(n=e;null!==Ll;){var o=(r=Ll).sibling,i=r.return;if(Dl(r),r===n){Ll=null;break e}if(null!==o){o.return=i,Ll=o;break e}Ll=i}}}var pc={getCacheForType:function(e){var t=Lo(Fo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lo(Fo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,Sc=!1,kc=0,_c=0,Ec=0,Tc=0,Pc=0,Rc=0,Ic=0,Ac=null,Oc=null,jc=!1,Mc=0,Lc=0,Nc=1/0,Dc=null,Wc=null,$c=0,zc=null,Fc=null,Uc=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===Rc)if(536870912&bc&&!ho)Rc=536870912;else{var e=Ee;!(3932160&(Ee<<=1))&&(Ee=262144),Rc=e}return null!==(e=Li.current)&&(e.flags|=32),Rc}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Rc,!1)),Me(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===_c&&eu(e,bc,Rc,!1)),Du(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ie(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?(Dc=null,Nc=ue()+500,ru(e,t)):Cc=Ie(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),Du(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(),_c=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=Eo=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Or(),_c)}(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=Ac;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(Sc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Oc,Oc=i,null!==a&&(null===Oc?Oc=a:Oc.push.apply(Oc,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,Rc,!xc);break e;case 2:Oc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Mc+300-ue())){if(eu(o,t,Rc,!xc),0!==Re(o,0,!0))break e;Uc=t,o.timeoutHandle=Sd(Xc.bind(null,o,n,Oc,Dc,jc,t,Rc,Tc,Ic,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Oc,Dc,jc,t,Rc,Tc,Ic,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}Du(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:Mt});var h=(62914560&i)===i?Mc-ue():(4194048&i)===i?Lc-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 Uc=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&&Le(e,n,t)}function tu(){return!!(6&gc)||(Wu(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=Eo=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,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uc=0,nu(),mc=e,yc=n=Ur(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Ie(e,t),Sc=!1,Ic=Rc=Pc=Tc=Ec=_c=0,Oc=Ac=null,jc=!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 kc=t,Or(),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===Ms?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(_c=1,Rs(e,Yr(t,e.current)))}function iu(){var e=Li.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(){_c=4,xc||(4194048&bc)!==bc&&null!==Li.current||(Cc=!0),!(134217727&Ec)&&!(134217727&Tc)||null===mc||eu(mc,bc,Rc,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||(Dc=null,ru(e,t)),t=!1;var a=_c;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===Li.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=_c;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=Eo=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Or()),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,kc);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,kc),kc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=Eo=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)&&Oo(t,n,i,!0),null!==(n=Li.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===_c&&(_c=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),Eu(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),Eu(e,o,i)),!1}throw Error(r(435,n.tag))}return Eu(e,o,i),lu(),!1}if(ho)return null!==(t=Li.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&ko(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&ko(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),ki(e,i=As(e.stateNode,o,i)),4!==_c&&(_c=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Ac?Ac=[a]:Ac.push(a),4!==_c&&(_c=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,ki(n,e=As(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!==Wc&&Wc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,js(i=Os(i),e,n,o),ki(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return _c=1,Rs(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return _c=1,Rs(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=Li.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,kc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===_c&&(_c=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);_c=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==$c);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&&Le(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Ar,s,l,c),e===mc&&(yc=mc=null,bc=0),Fc=t,zc=e,Uc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return Su(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=D.p,D.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,Ll=t;null!==Ll;)if(e=(t=Ll).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ll=e;else for(;null!==Ll;){switch(a=(t=Ll).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=_s(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){_u(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Ll=e;break}Ll=t.return}}(e,t)}finally{gc=s,D.p=i,N.T=o}}$c=1,bu(),vu(),wu()}}function bu(){if(1===$c){$c=0;var e=zc,t=Fc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.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,D.p=r,N.T=n}}e.current=t,$c=2}}function vu(){if(2===$c){$c=0;var e=zc,t=Fc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=D.p;D.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,D.p=r,N.T=n}}$c=3}}function wu(){if(4===$c||3===$c){$c=0,ce();var e=zc,t=Fc,n=Uc,r=Hc;10256&t.subtreeFlags||10256&t.flags?$c=5:($c=0,Fc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Wc=null),$e(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=D.p,D.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,D.p=o}}3&Uc&&Cu(),Du(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Wu(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),Su()}function Su(){if(5!==$c)return!1;var e=zc,t=Bc;Bc=0;var n=$e(Uc),o=N.T,i=D.p;try{D.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Uc;if($c=0,Fc=zc=null,Uc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Wu(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{D.p=i,N.T=o,xu(e,t)}}function ku(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=As(e.stateNode,t,2),2))&&(Me(e,2),Du(e))}function _u(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wc||!Wc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Os(2),2))&&(js(n,r,t,e),Me(r,2),Du(r));break}}t=t.return}}function Eu(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)||(Sc=!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===_c||3===_c&&(62914560&bc)===bc&&300>ue()-Mc?!(2&gc)&&ru(e,0):Pc|=n,Ic===bc&&(Ic=0)),Du(e)}function Pu(e,t){0===t&&(t=Oe()),null!==(e=Lr(e,t))&&(Me(e,t),Du(e))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Iu(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 Au=null,Ou=null,ju=!1,Mu=!1,Lu=!1,Nu=0;function Du(e){e!==Ou&&null===e.next&&(null===Ou?Au=Ou=e:Ou=Ou.next=e),Mu=!0,ju||(ju=!0,Ed(function(){6&gc?ae(fe,$u):zu()}))}function Wu(e,t){if(!Lu&&Mu){Lu=!0;do{for(var n=!1,r=Au;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=Re(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ie(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Lu=!1}}function $u(){zu()}function zu(){Mu=ju=!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=Au;null!==r;){var o=r.next,i=Fu(r,t);0===i?(r.next=null,null===n?Au=o:n.next=o,null===o&&(Ou=n)):(n=r,(0!==e||3&i)&&(Mu=!0)),r=o}0!==$c&&5!==$c||Wu(e),0!==Nu&&(Nu=0)}function Fu(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]=Ae(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Re(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)||Ie(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),$e(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Uu.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 Uu(e,t){if(0!==$c&&5!==$c)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=Re(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Fu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Uu.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=_e,!(261888&(_e<<=1))&&(_e=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:jt(""+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<Er.length;Ku++){var Gu=Er[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(Sr,"onTransitionCancel"),Tr(kr,"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(Rf(t)){case 2:var o=Sf;break;case 8:o=kf;break;default:o=_f}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}Ft(function(){var r=a,o=Nt(n),s=[];e:{var l=_r.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 kr:c=Sn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=kn;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=_n}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=Ut(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===Lt||!(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(Dn(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&&It(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Wn(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":(Dn(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 Ln?jn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(In&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==x?"onCompositionEnd"===x&&Ln&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,Ln=!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=Mn(n))&&(x.data=w))),(w=Rn?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(On=!0,An);case"textInput":return(e=t.data)===An&&On?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Tn&&jn(e,t)?(e=Qt(),Gt=Kt=Vt=null,Ln=!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 In&&"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=Ut(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ut(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=Ut(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ut(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||Et(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Et(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":Rt(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=jt(""+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=jt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Mt);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=jt(""+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=At.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":Rt(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?Et(e,o):("number"==typeof o||"bigint"==typeof o)&&Et(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=Mt);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?St(e,!!i,t,!1):null!=n&&St(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 _t(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(It(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 Sd="function"==typeof setTimeout?setTimeout:void 0,kd="function"==typeof clearTimeout?clearTimeout:void 0,_d="function"==typeof Promise?Promise:void 0,Ed="function"==typeof queueMicrotask?queueMicrotask:void 0!==_d?function(e){return _d.resolve(null).then(e).catch(Td)}:Sd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Rd(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 Id(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 Ad(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":Ad(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Od(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function jd(e){return"$?"===e.data||"$~"===e.data}function Md(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function Dd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Wd(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 $d(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 Fd=new Map,Ud=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=D.d;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)}Fd.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Fd.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(!Fd.has(i)&&(e=u({rel:"modulepreload",href:e},t),Fd.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=Fd.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=Fd.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=Fd.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+'"]'),Ud.has(o)||(Ud.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),Fd.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},Fd.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=Fd.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=Fd.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:W,_currentValue2:W,_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=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(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=Uo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Wr:Wr}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),Si(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=Lr(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=Lr(e,t=We(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function Sf(e,t,n,r){var o=N.T;N.T=null;var i=D.p;try{D.p=2,_f(e,t,n,r)}finally{D.p=i,N.T=o}}function kf(e,t,n,r){var o=N.T;N.T=null;var i=D.p;try{D.p=8,_f(e,t,n,r)}finally{D.p=i,N.T=o}}function _f(e,t,n,r){if(Cf){var o=Ef(r);if(null===o)rd(e,t,r,Tf,n),Wf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Af=$f(Af,e,t,n,r,o),!0;case"dragenter":return Of=$f(Of,e,t,n,r,o),!0;case"mouseover":return jf=$f(jf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mf.set(i,$f(Mf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lf.set(i,$f(Lf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Wf(e,r),4&t&&-1<Df.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}Du(i),!(6&gc)&&(Nc=ue()+500,Wu(0))}}break;case 31:case 13:null!==(s=Lr(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=Ef(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Ef(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 Rf(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 If=!1,Af=null,Of=null,jf=null,Mf=new Map,Lf=new Map,Nf=[],Df="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Wf(e,t){switch(e){case"focusin":case"focusout":Af=null;break;case"dragenter":case"dragleave":Of=null;break;case"mouseover":case"mouseout":jf=null;break;case"pointerover":case"pointerout":Mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function $f(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 Fe(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Fe(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 Ff(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(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);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Uf(e,t,n){Ff(e)&&n.delete(t)}function Bf(){If=!1,null!==Af&&Ff(Af)&&(Af=null),null!==Of&&Ff(Of)&&(Of=null),null!==jf&&Ff(jf)&&(jf=null),Mf.forEach(Uf),Lf.forEach(Uf)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,If||(If=!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!==Af&&qf(Af,e),null!==Of&&qf(Of,e),null!==jf&&qf(jf,e),Mf.forEach(t),Lf.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"));D.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=Es,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=Es,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=We(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,Me(t,n),Du(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var O=(E||(E=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=A()),f.exports),j=C();const M=r(j),L=t({__proto__:null,default:M},[j]);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 D(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var W,$,z={exports:{}},F={};function U(){if(W)return F;W=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 F.ContextConsumer=i,F.ContextProvider=a,F.Element=e,F.ForwardRef=s,F.Fragment=n,F.Lazy=d,F.Memo=u,F.Portal=t,F.Profiler=o,F.StrictMode=r,F.Suspense=l,F.SuspenseList=c,F.isContextConsumer=function(e){return h(e)===i},F.isContextProvider=function(e){return h(e)===a},F.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},F.isForwardRef=function(e){return h(e)===s},F.isFragment=function(e){return h(e)===n},F.isLazy=function(e){return h(e)===d},F.isMemo=function(e){return h(e)===u},F.isPortal=function(e){return h(e)===t},F.isProfiler=function(e){return h(e)===o},F.isStrictMode=function(e){return h(e)===r},F.isSuspense=function(e){return h(e)===l},F.isSuspenseList=function(e){return h(e)===c},F.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)},F.typeOf=h,F}function B(){return $||($=1,z.exports=U()),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(j.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=>{j.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?"":D(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),Se=xe("borderTop",we),ke=xe("borderRight",we),_e=xe("borderBottom",we),Ee=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Re=xe("borderRightColor"),Ie=xe("borderBottomColor"),Ae=xe("borderLeftColor"),Oe=xe("outline",we),je=xe("outlineColor"),Me=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};Me.propTypes={},Me.filterProps=["borderRadius"],ve(Ce,Se,ke,_e,Ee,Te,Pe,Re,Ie,Ae,Me,Oe,je);const Le=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};Le.propTypes={},Le.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 De=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};De.propTypes={},De.filterProps=["rowGap"];function We(e,t){return"grey"===t?t:e}ve(Le,Ne,De,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 $e(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:We}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:We}),ie({prop:"backgroundColor",themeKey:"palette",transform:We}));const ze=ie({prop:"width",transform:$e}),Fe=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:$e(t)}};return J(e,e.maxWidth,t)}return null};Fe.filterProps=["maxWidth"];const Ue=ie({prop:"minWidth",transform:$e}),Be=ie({prop:"height",transform:$e}),qe=ie({prop:"maxHeight",transform:$e}),He=ie({prop:"minHeight",transform:$e});ie({prop:"size",cssProperty:"width",transform:$e}),ie({prop:"size",cssProperty:"height",transform:$e});ve(ze,Fe,Ue,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:Me},color:{themeKey:"palette",transform:We},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:We},backgroundColor:{themeKey:"palette",transform:We},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:Le},rowGap:{style:De},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:$e},maxWidth:{style:Fe},minWidth:{transform:$e},height:{transform:$e},maxHeight:{transform:$e},minHeight:{transform:$e},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?"":D(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 St(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function kt(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function _t(){return ut(wt,bt)}function Et(){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 Rt(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function It(e){return wt="",e}function At(e){return st(Tt(bt-1,Mt(91===e?e+2:40===e?e+1:e)))}function Ot(e){for(;(vt=_t())&&vt<33;)kt();return Pt(e)>2||Pt(vt)>3?"":" "}function jt(e,t){for(;--t&&kt()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,Et()+(t<6&&32==_t()&&32==kt()))}function Mt(e){for(;kt();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&Mt(vt);break;case 40:41===e&&Mt(e);break;case 92:kt()}return bt}function Lt(e,t){for(;kt()&&e+vt!==57&&(e+vt!==84||47!==_t()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:kt())}function Nt(e){for(;!Pt(_t());)kt();return Tt(e,bt)}function Dt(e){return It(Wt("",null,null,null,[""],e=Rt(e),0,[0],e))}function Wt(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,S=v;m;)switch(h=b,b=kt()){case 40:if(108!=h&&58==ut(S,d-1)){-1!=ct(S+=lt(At(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=At(b);break;case 9:case 10:case 13:case 32:S+=Ot(h);break;case 92:S+=jt(Et()-1,7);continue;case 47:switch(_t()){case 42:case 47:ht(zt(Lt(kt(),Et()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=ft(S)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(S=lt(S,/\f/g,"")),p>0&&ft(S)-d&&ht(p>32?Ft(S+";",r,n,d-1):Ft(lt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ht(C=$t(S,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Wt(S,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(S,3)?100:f){case 100:case 108:case 109:case 115:Wt(e,C,C,r&&ht($t(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Wt(S,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=S="",d=a;break;case 58:d=1+ft(S),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==St())continue;switch(S+=it(b),b*g){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ft(S)-1)*y,y=1;break;case 64:45===_t()&&(S+=At(kt())),f=_t(),u=d=ft(v=S+=Nt(Et())),b++;break;case 45:45===h&&2==ft(S)&&(g=0)}}return i}function $t(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 Ft(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ut(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+"{"+Ut(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ut(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=_t(),38===r&&12===o&&(t[n]=1),!Pt(o);)kt();return Tt(e,bt)},Vt=function(e,t){return It(function(e,t){var n=-1,r=44;do{switch(Pt(r)){case 0:38===r&&12===_t()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=At(r);break;case 4:if(44===r){e[++n]=58===_t()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=kt());return e}(Rt(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 Ut([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 Ut([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ut([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,Ut(Dt(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=!!L.useInsertionEffect&&L.useInsertionEffect,Cn=xn||function(e){return e()},Sn=xn||j.useLayoutEffect,kn=j.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);kn.Provider;var _n,En,Tn=function(e){return j.forwardRef(function(t,n){var r=j.useContext(kn);return e(t,r,n)})},Pn=j.createContext({}),Rn={}.hasOwnProperty,In="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",An=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},On=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[In],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,j.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)Rn.call(e,c)&&"css"!==c&&c!==In&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),j.createElement(j.Fragment,null,j.createElement(An,{cache:t,serialized:s,isStringTag:"string"==typeof o}),j.createElement(o,l))}),jn=function(e,t){var n=arguments;if(null==t||!Rn.call(t,"css"))return j.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=On,o[1]=function(e,t){var n={};for(var r in t)Rn.call(t,r)&&(n[r]=t[r]);return n[In]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return j.createElement.apply(null,o)};_n=jn||(jn={}),En||(En=_n.JSX||(_n.JSX={}));var Mn=Tn(function(e,t){var n=wn([e.styles],void 0,j.useContext(Pn)),r=j.useRef();return Sn(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]),Sn(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 Ln(){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=Ln.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 Dn=/^((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)-.*))$/,Wn=qt(function(e){return Dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),$n=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Wn:$n},Fn=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},Un=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=Fn(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=j.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),j.createElement(j.Fragment,null,j.createElement(Un,{cache:t,serialized:h,isStringTag:"string"==typeof r}),j.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:Fn(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(Mn,{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=j.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 Sr({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 kr="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function _r(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 Er(e){if(e.type)return e;if("#"===e.charAt(0))return Er(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=Er(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 Rr(e){e=Er(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 Ir(e){let t="hsl"===(e=Er(e)).type||"hsla"===e.type?Er(Rr(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 Ar(e,t){return e=Er(e),t=_r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function Or(e,t,n){try{return Ar(e,t)}catch(r){return e}}function jr(e,t){if(e=Er(e),t=_r(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 Mr(e,t,n){try{return jr(e,t)}catch(r){return e}}function Lr(e,t){if(e=Er(e),t=_r(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 Lr(e,t)}catch(r){return e}}function Dr(e,t,n){try{return function(e,t=.15){return Ir(e)>.5?jr(e,t):Lr(e,t)}(e,t)}catch(r){return e}}const Wr=j.createContext(void 0);function $r({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:j.useContext(Wr)}})}let zr=0;const Fr={...L}.useId;function Ur(e){if(void 0!==Fr){const t=Fr();return e??t}return function(e){const[t,n]=j.useState(e),r=e||t;return j.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 Sr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return Sr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=j.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(j.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",So="#ab47bc",ko="#9c27b0",_o="#7b1fa2",Eo="#e57373",To="#ef5350",Po="#f44336",Ro="#d32f2f",Io="#c62828",Ao="#ffb74d",Oo="#ffa726",jo="#ff9800",Mo="#f57c00",Lo="#e65100",No="#e3f2fd",Do="#90caf9",Wo="#42a5f5",$o="#1976d2",zo="#1565c0",Fo="#4fc3f7",Uo="#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=Lr(e.main,o):"dark"===t&&(e.dark=jr(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:Do,light:No,dark:Wo}:{main:$o,light:Wo,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:So}:{main:ko,light:Co,dark:_o}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:Eo,dark:Ro}:{main:Ro,light:To,dark:Io}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Uo,light:Fo,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:Oo,light:Ao,dark:Mo}:{main:"#ed6c02",light:jo,dark:Lo}}(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=Ir(e),r=Ir(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})`:Ar(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)})`:Lr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:jr(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}function Ci(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Si=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Ci(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 _i(e){return"dark"===e?Si:[]}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 Ti=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 Pi(e,t,n){!e[t]&&n&&(e[t]=n)}function Ri(e){return"string"==typeof e&&e.startsWith("hsl")?Rr(e):e}function Ii(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Ri(e[t])))}const Ai=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||_i(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||_i(i)},s}function ji(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:(S=u.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;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===Or&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Mr&&(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&&(Pi(t.common,"background","#fff"),Pi(t.common,"onBackground","#000")),"dark"===t.mode&&(Pi(t.common,"background","#000"),Pi(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){Pi(t.Alert,"errorColor",r(Mr,t.error.light,.6)),Pi(t.Alert,"infoColor",r(Mr,t.info.light,.6)),Pi(t.Alert,"successColor",r(Mr,t.success.light,.6)),Pi(t.Alert,"warningColor",r(Mr,t.warning.light,.6)),Pi(t.Alert,"errorFilledBg",n("palette-error-main")),Pi(t.Alert,"infoFilledBg",n("palette-info-main")),Pi(t.Alert,"successFilledBg",n("palette-success-main")),Pi(t.Alert,"warningFilledBg",n("palette-warning-main")),Pi(t.Alert,"errorFilledColor",Ai(()=>t.getContrastText(t.error.main))),Pi(t.Alert,"infoFilledColor",Ai(()=>t.getContrastText(t.info.main))),Pi(t.Alert,"successFilledColor",Ai(()=>t.getContrastText(t.success.main))),Pi(t.Alert,"warningFilledColor",Ai(()=>t.getContrastText(t.warning.main))),Pi(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Pi(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Pi(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Pi(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Pi(t.Alert,"errorIconColor",n("palette-error-main")),Pi(t.Alert,"infoIconColor",n("palette-info-main")),Pi(t.Alert,"successIconColor",n("palette-success-main")),Pi(t.Alert,"warningIconColor",n("palette-warning-main")),Pi(t.AppBar,"defaultBg",n("palette-grey-100")),Pi(t.Avatar,"defaultBg",n("palette-grey-400")),Pi(t.Button,"inheritContainedBg",n("palette-grey-300")),Pi(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Pi(t.Chip,"defaultBorder",n("palette-grey-400")),Pi(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Pi(t.Chip,"defaultIconColor",n("palette-grey-700")),Pi(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Pi(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Pi(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Pi(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Pi(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Pi(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Pi(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Pi(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Pi(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Pi(t.Skeleton,"bg",v?r(Or,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Pi(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Pi(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Pi(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Pi(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Pi(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Pi(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(Mr,t.background.default,.6825):Dr(t.background.default,.8);Pi(t.SnackbarContent,"bg",e),Pi(t.SnackbarContent,"color",Ai(()=>v?ti.text.primary:t.getContrastText(e))),Pi(t.SpeedDialAction,"fabHoverBg",Dr(t.background.paper,.15)),Pi(t.StepConnector,"border",n("palette-grey-400")),Pi(t.StepContent,"border",n("palette-grey-400")),Pi(t.Switch,"defaultColor",n("palette-common-white")),Pi(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Pi(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Pi(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Pi(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Pi(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Pi(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Pi(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Pi(t.TableCell,"border",r(Nr,r(Or,t.divider,1),.88)),Pi(t.Tooltip,"bg",r(Or,t.grey[700],.92))}if("dark"===t.mode){Pi(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Pi(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Pi(t.Alert,"successColor",r(Nr,t.success.light,.6)),Pi(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Pi(t.Alert,"errorFilledBg",n("palette-error-dark")),Pi(t.Alert,"infoFilledBg",n("palette-info-dark")),Pi(t.Alert,"successFilledBg",n("palette-success-dark")),Pi(t.Alert,"warningFilledBg",n("palette-warning-dark")),Pi(t.Alert,"errorFilledColor",Ai(()=>t.getContrastText(t.error.dark))),Pi(t.Alert,"infoFilledColor",Ai(()=>t.getContrastText(t.info.dark))),Pi(t.Alert,"successFilledColor",Ai(()=>t.getContrastText(t.success.dark))),Pi(t.Alert,"warningFilledColor",Ai(()=>t.getContrastText(t.warning.dark))),Pi(t.Alert,"errorStandardBg",r(Mr,t.error.light,.9)),Pi(t.Alert,"infoStandardBg",r(Mr,t.info.light,.9)),Pi(t.Alert,"successStandardBg",r(Mr,t.success.light,.9)),Pi(t.Alert,"warningStandardBg",r(Mr,t.warning.light,.9)),Pi(t.Alert,"errorIconColor",n("palette-error-main")),Pi(t.Alert,"infoIconColor",n("palette-info-main")),Pi(t.Alert,"successIconColor",n("palette-success-main")),Pi(t.Alert,"warningIconColor",n("palette-warning-main")),Pi(t.AppBar,"defaultBg",n("palette-grey-900")),Pi(t.AppBar,"darkBg",n("palette-background-paper")),Pi(t.AppBar,"darkColor",n("palette-text-primary")),Pi(t.Avatar,"defaultBg",n("palette-grey-600")),Pi(t.Button,"inheritContainedBg",n("palette-grey-800")),Pi(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Pi(t.Chip,"defaultBorder",n("palette-grey-700")),Pi(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Pi(t.Chip,"defaultIconColor",n("palette-grey-300")),Pi(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Pi(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Pi(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Pi(t.LinearProgress,"primaryBg",r(Mr,t.primary.main,.5)),Pi(t.LinearProgress,"secondaryBg",r(Mr,t.secondary.main,.5)),Pi(t.LinearProgress,"errorBg",r(Mr,t.error.main,.5)),Pi(t.LinearProgress,"infoBg",r(Mr,t.info.main,.5)),Pi(t.LinearProgress,"successBg",r(Mr,t.success.main,.5)),Pi(t.LinearProgress,"warningBg",r(Mr,t.warning.main,.5)),Pi(t.Skeleton,"bg",v?r(Or,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Pi(t.Slider,"primaryTrack",r(Mr,t.primary.main,.5)),Pi(t.Slider,"secondaryTrack",r(Mr,t.secondary.main,.5)),Pi(t.Slider,"errorTrack",r(Mr,t.error.main,.5)),Pi(t.Slider,"infoTrack",r(Mr,t.info.main,.5)),Pi(t.Slider,"successTrack",r(Mr,t.success.main,.5)),Pi(t.Slider,"warningTrack",r(Mr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):Dr(t.background.default,.98);Pi(t.SnackbarContent,"bg",e),Pi(t.SnackbarContent,"color",Ai(()=>v?Jo.text.primary:t.getContrastText(e))),Pi(t.SpeedDialAction,"fabHoverBg",Dr(t.background.paper,.15)),Pi(t.StepConnector,"border",n("palette-grey-600")),Pi(t.StepContent,"border",n("palette-grey-600")),Pi(t.Switch,"defaultColor",n("palette-grey-300")),Pi(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Pi(t.Switch,"primaryDisabledColor",r(Mr,t.primary.main,.55)),Pi(t.Switch,"secondaryDisabledColor",r(Mr,t.secondary.main,.55)),Pi(t.Switch,"errorDisabledColor",r(Mr,t.error.main,.55)),Pi(t.Switch,"infoDisabledColor",r(Mr,t.info.main,.55)),Pi(t.Switch,"successDisabledColor",r(Mr,t.success.main,.55)),Pi(t.Switch,"warningDisabledColor",r(Mr,t.warning.main,.55)),Pi(t.TableCell,"border",r(Mr,r(Or,t.divider,1),.68)),Pi(t.Tooltip,"bg",r(Or,t.grey[700],.92))}Ii(t.background,"default"),Ii(t.background,"paper"),Ii(t.common,"background"),Ii(t.common,"onBackground"),Ii(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Pi(t[e],"mainChannel",Tr(Ri(n.main))),n.light&&Pi(t[e],"lightChannel",Tr(Ri(n.light))),n.dark&&Pi(t[e],"darkChannel",Tr(Ri(n.dark))),n.contrastText&&Pi(t[e],"contrastTextChannel",Tr(Ri(n.contrastText))),"text"===e&&(Ii(t[e],"primary"),Ii(t[e],"secondary")),"action"===e&&(n.active&&Ii(t[e],"active"),n.selected&&Ii(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Ti(C),enableContrastVars:a},{vars:_,generateThemeVars:E,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,k);return C.vars=_,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,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 Mi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function Li(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},Mi(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Mi(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),ji({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ni=Li(),Di="$$material";function Wi(){const e=tr(Ni);return e[Di]||e}function $i(e){return d.jsx(rr,{...e,defaultTheme:Ni,themeId:Di})}const zi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Fi=br({themeId:Di,defaultTheme:Ni,rootShouldForwardProp:zi});function Ui(e){return function(t){return d.jsx($i,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Bi(e){return $r(e)}const qi="function"==typeof Ui({}),Hi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Vi=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}}),Ki=(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:Hi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Vi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Gi="mui-ecs",Qi=Ui(qi?({theme:e,enableColorScheme:t})=>Ki(e,t):({theme:e})=>(e=>{const t=Ki(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Gi})`]={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(.${Gi}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Gi}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Yi(e){const t=Bi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(j.Fragment,{children:[qi&&d.jsx(Qi,{enableColorScheme:r}),!qi&&!r&&d.jsx("span",{className:Gi,style:{display:"none"}}),n]})}var Zi,Xi={};var Ji=function(){if(Zi)return Xi;Zi=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.Base64=e,Xi}();const ea={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6",CROCO:"kQBUHVeYusWquTX4Gn1GvV979gxv6eVlCVqIMeIcTnlE9bDE"},ta=class e{static init(){{let t="",n="",r={};window.Telegram&&(n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{});let 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 Ji.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=ea,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`}};ta.APP_VERSION="1.0.39-beta.2",ta.RES_URL="https://games.pluto.vision/sdk/resource/",ta.API_URL="https://sdk1.pluto.vision/",ta.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ta.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ta.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy",CROCO:"EQDF5N2oEyfuqZ2IWOTjfY2cR4NvxxBCAKv7yDKX1Mula2ix"},ta.MANIFEST_URL="",ta.TEST_MODE=!1,ta.BOT_NAME="",ta.GAME_ID="",ta.INIT_DATA="",ta.TOKEN="",ta.CP_CUSTOM_LINK="",ta.FULL_SCREEN=!1,ta.START_PARAM="";let na=ta;function ra(e,t){return function(){return e.apply(t,arguments)}}const{toString:oa}=Object.prototype,{getPrototypeOf:ia}=Object,{iterator:aa,toStringTag:sa}=Symbol,la=(e=>t=>{const n=oa.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ca=e=>(e=e.toLowerCase(),t=>la(t)===e),ua=e=>t=>typeof t===e,{isArray:da}=Array,fa=ua("undefined");function pa(e){return null!==e&&!fa(e)&&null!==e.constructor&&!fa(e.constructor)&&ma(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ha=ca("ArrayBuffer");const ga=ua("string"),ma=ua("function"),ya=ua("number"),ba=e=>null!==e&&"object"==typeof e,va=e=>{if("object"!==la(e))return!1;const t=ia(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||sa in e||aa in e)},wa=ca("Date"),xa=ca("File"),Ca=ca("Blob"),Sa=ca("FileList"),ka=ca("URLSearchParams"),[_a,Ea,Ta,Pa]=["ReadableStream","Request","Response","Headers"].map(ca);function Ra(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),da(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(pa(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 Ia(e,t){if(pa(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 Aa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!fa(e)&&e!==Aa;const ja=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ia(Uint8Array)),Ma=ca("HTMLFormElement"),La=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Na=ca("RegExp"),Da=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ra(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Wa=ca("AsyncFunction"),$a=(za="function"==typeof setImmediate,Fa=ma(Aa.postMessage),za?setImmediate:Fa?(Ua=`axios@${Math.random()}`,Ba=[],Aa.addEventListener("message",({source:e,data:t})=>{e===Aa&&t===Ua&&Ba.length&&Ba.shift()()},!1),e=>{Ba.push(e),Aa.postMessage(Ua,"*")}):e=>setTimeout(e));var za,Fa,Ua,Ba;const qa="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Aa):"undefined"!=typeof process&&process.nextTick||$a,Ha={isArray:da,isArrayBuffer:ha,isBuffer:pa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ma(e.append)&&("formdata"===(t=la(e))||"object"===t&&ma(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ha(e.buffer),t},isString:ga,isNumber:ya,isBoolean:e=>!0===e||!1===e,isObject:ba,isPlainObject:va,isEmptyObject:e=>{if(!ba(e)||pa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:_a,isRequest:Ea,isResponse:Ta,isHeaders:Pa,isUndefined:fa,isDate:wa,isFile:xa,isBlob:Ca,isRegExp:Na,isFunction:ma,isStream:e=>ba(e)&&ma(e.pipe),isURLSearchParams:ka,isTypedArray:ja,isFileList:Sa,forEach:Ra,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Ia(r,i)||i;va(r[a])&&va(o)?r[a]=e(r[a],o):va(o)?r[a]=e({},o):da(o)?r[a]=o.slice():n&&fa(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Ra(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Ra(t,(t,r)=>{n&&ma(t)?e[r]=ra(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&&ia(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:la,kindOfTest:ca,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(da(e))return e;let t=e.length;if(!ya(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[aa]).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:Ma,hasOwnProperty:La,hasOwnProp:La,reduceDescriptors:Da,freezeMethods:e=>{Da(e,(t,n)=>{if(ma(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ma(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 da(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:Ia,global:Aa,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ma(e.append)&&"FormData"===e[sa]&&e[aa])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ba(e)){if(t.indexOf(e)>=0)return;if(pa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=da(e)?[]:{};return Ra(e,(e,t)=>{const i=n(e,r+1);!fa(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Wa,isThenable:e=>e&&(ba(e)||ma(e))&&ma(e.then)&&ma(e.catch),setImmediate:$a,asap:qa,isIterable:e=>null!=e&&ma(e[aa])};function Va(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)}Ha.inherits(Va,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:Ha.toJSONObject(this.config),code:this.code,status:this.status}}});const Ka=Va.prototype,Ga={};["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=>{Ga[e]={value:e}}),Object.defineProperties(Va,Ga),Object.defineProperty(Ka,"isAxiosError",{value:!0}),Va.from=(e,t,n,r,o,i)=>{const a=Object.create(Ka);Ha.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 Va.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 Qa(e){return Ha.isPlainObject(e)||Ha.isArray(e)}function Ya(e){return Ha.endsWith(e,"[]")?e.slice(0,-2):e}function Za(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ya(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Xa=Ha.toFlatObject(Ha,{},null,function(e){return/^is[A-Z]/.test(e)});function Ja(e,t,n){if(!Ha.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ha.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ha.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ha.isSpecCompliantForm(t);if(!Ha.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ha.isDate(e))return e.toISOString();if(Ha.isBoolean(e))return e.toString();if(!s&&Ha.isBlob(e))throw new Va("Blob is not supported. Use a Buffer instead.");return Ha.isArrayBuffer(e)||Ha.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(Ha.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ha.isArray(e)&&function(e){return Ha.isArray(e)&&!e.some(Qa)}(e)||(Ha.isFileList(e)||Ha.endsWith(n,"[]"))&&(s=Ha.toArray(e)))return n=Ya(n),s.forEach(function(e,r){!Ha.isUndefined(e)&&null!==e&&t.append(!0===a?Za([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Qa(e)||(t.append(Za(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xa,{defaultVisitor:c,convertValue:l,isVisitable:Qa});if(!Ha.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ha.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ha.forEach(n,function(n,i){!0===(!(Ha.isUndefined(n)||null===n)&&o.call(t,n,Ha.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function es(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ts(e,t){this._pairs=[],e&&Ja(e,this,t)}const ns=ts.prototype;function rs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function os(e,t,n){if(!t)return e;const r=n&&n.encode||rs;Ha.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ha.isURLSearchParams(t)?t.toString():new ts(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ns.append=function(e,t){this._pairs.push([e,t])},ns.toString=function(e){const t=e?function(t){return e.call(this,t,es)}:es;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class is{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){Ha.forEach(this.handlers,function(t){null!==t&&e(t)})}}const as={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ss={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ts,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ls="undefined"!=typeof window&&"undefined"!=typeof document,cs="object"==typeof navigator&&navigator||void 0,us=ls&&(!cs||["ReactNative","NativeScript","NS"].indexOf(cs.product)<0),ds="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fs=ls&&window.location.href||"http://localhost",ps={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ls,hasStandardBrowserEnv:us,hasStandardBrowserWebWorkerEnv:ds,navigator:cs,origin:fs},Symbol.toStringTag,{value:"Module"})),...ss};function hs(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&&Ha.isArray(r)?r.length:i,s)return Ha.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ha.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ha.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(Ha.isFormData(e)&&Ha.isFunction(e.entries)){const n={};return Ha.forEachEntry(e,(e,r)=>{t(function(e){return Ha.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const gs={transitional:as,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ha.isObject(e);o&&Ha.isHTMLForm(e)&&(e=new FormData(e));if(Ha.isFormData(e))return r?JSON.stringify(hs(e)):e;if(Ha.isArrayBuffer(e)||Ha.isBuffer(e)||Ha.isStream(e)||Ha.isFile(e)||Ha.isBlob(e)||Ha.isReadableStream(e))return e;if(Ha.isArrayBufferView(e))return e.buffer;if(Ha.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 Ja(e,new ps.classes.URLSearchParams,{visitor:function(e,t,n,r){return ps.isNode&&Ha.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Ha.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ja(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ha.isString(e))try{return(t||JSON.parse)(e),Ha.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||gs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ha.isResponse(e)||Ha.isReadableStream(e))return e;if(e&&Ha.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 Va.from(o,Va.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:ps.classes.FormData,Blob:ps.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ha.forEach(["delete","get","head","post","put","patch"],e=>{gs.headers[e]={}});const ms=Ha.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"]),ys=Symbol("internals");function bs(e){return e&&String(e).trim().toLowerCase()}function vs(e){return!1===e||null==e?e:Ha.isArray(e)?e.map(vs):String(e)}function ws(e,t,n,r,o){return Ha.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ha.isString(t)?Ha.isString(r)?-1!==t.indexOf(r):Ha.isRegExp(r)?r.test(t):void 0:void 0)}let xs=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=bs(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ha.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=vs(e))}const i=(e,t)=>Ha.forEach(e,(e,n)=>o(e,n,t));if(Ha.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ha.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]&&ms[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(Ha.isObject(e)&&Ha.isIterable(e)){let n,r,o={};for(const t of e){if(!Ha.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Ha.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=bs(e)){const n=Ha.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(Ha.isFunction(t))return t.call(this,e,n);if(Ha.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bs(e)){const n=Ha.findKey(this,e);return!(!n||void 0===this[n]||t&&!ws(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=bs(e)){const o=Ha.findKey(n,e);!o||t&&!ws(0,n[o],o,t)||(delete n[o],r=!0)}}return Ha.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&&!ws(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ha.forEach(this,(r,o)=>{const i=Ha.findKey(n,o);if(i)return t[i]=vs(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]=vs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ha.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ha.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[ys]=this[ys]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=bs(e);t[r]||(!function(e,t){const n=Ha.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 Ha.isArray(e)?e.forEach(r):r(e),this}};function Cs(e,t){const n=this||gs,r=t||n,o=xs.from(r.headers);let i=r.data;return Ha.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ss(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Va.call(this,null==e?"canceled":e,Va.ERR_CANCELED,t,n),this.name="CanceledError"}function _s(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Va("Request failed with status code "+n.status,[Va.ERR_BAD_REQUEST,Va.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ha.reduceDescriptors(xs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ha.freezeMethods(xs),Ha.inherits(ks,Va,{__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)},Ts=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ps=e=>(...t)=>Ha.asap(()=>e(...t)),Rs=ps.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ps.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ps.origin),ps.navigator&&/(msie|trident)/i.test(ps.navigator.userAgent)):()=>!0,Is=ps.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ha.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Ha.isString(r)&&s.push(`path=${r}`),Ha.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ha.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 As(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 xs?{...e}:e;function js(e,t){t=t||{};const n={};function r(e,t,n,r){return Ha.isPlainObject(e)&&Ha.isPlainObject(t)?Ha.merge.call({caseless:r},e,t):Ha.isPlainObject(t)?Ha.merge({},t):Ha.isArray(t)?t.slice():t}function o(e,t,n,o){return Ha.isUndefined(t)?Ha.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ha.isUndefined(t))return r(void 0,t)}function a(e,t){return Ha.isUndefined(t)?Ha.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 Ha.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ha.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ms=e=>{const t=js({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=xs.from(a),t.url=os(As(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ha.isFormData(n))if(ps.hasStandardBrowserEnv||ps.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ha.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(ps.hasStandardBrowserEnv&&(r&&Ha.isFunction(r)&&(r=r(t)),r||!1!==r&&Rs(t.url))){const e=o&&i&&Is.read(i);e&&a.set(o,e)}return t},Ls="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ms(e);let o=r.data;const i=xs.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=xs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());_s(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 Va("Request aborted",Va.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Va(t&&t.message?t.message:"Network Error",Va.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||as;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Va(t,o.clarifyTimeoutError?Va.ETIMEDOUT:Va.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Ha.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Ha.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===ps.protocols.indexOf(y)?n(new Va("Unsupported protocol "+y+":",Va.ERR_BAD_REQUEST,e)):g.send(o||null)})},Ns=(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 Va?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Va(`timeout ${t} of ms exceeded`,Va.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=()=>Ha.asap(a),s}},Ds=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},Ws=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()}},$s=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ws(e))yield*Ds(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:zs}=Ha,Fs=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ha.global),{ReadableStream:Us,TextEncoder:Bs}=Ha.global,qs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Hs=e=>{e=Ha.merge.call({skipUndefined:!0},Fs,e);const{fetch:t,Request:n,Response:r}=e,o=t?zs(t):"function"==typeof fetch,i=zs(n),a=zs(r);if(!o)return!1;const s=o&&zs(Us),l=o&&("function"==typeof Bs?(e=>t=>e.encode(t))(new Bs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&qs(()=>{let e=!1;const t=new n(ps.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&qs(()=>Ha.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 Va(`Response type '${e}' is not supported`,Va.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=Ha.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Ha.isBlob(e))return e.size;if(Ha.isSpecCompliantForm(e)){const t=new n(ps.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ha.isArrayBufferView(e)||Ha.isArrayBuffer(e)?e.byteLength:(Ha.isURLSearchParams(e)&&(e+=""),Ha.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}=Ms(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Ns([l,p&&p.toAbortSignal()],h),S=null;const k=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let _;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(_=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(Ha.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Ts(_,Es(Ps(m)));s=$s(t.body,65536,e,n)}}Ha.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};S=i&&new n(o,l);let p=await(i?x(S,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=Ha.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&Ts(t,Es(Ps(g),!0))||[];p=new r($s(p.body,65536,n,()=>{o&&o(),k&&k()}),e)}y=y||"text";let E=await d[Ha.findKey(d,y)||"text"](p,e);return!h&&k&&k(),await new Promise((t,n)=>{_s(t,n,{data:E,headers:xs.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(E){if(k&&k(),E&&"TypeError"===E.name&&/Load failed|fetch/i.test(E.message))throw Object.assign(new Va("Network Error",Va.ERR_NETWORK,e,S),{cause:E.cause||E});throw Va.from(E,E&&E.code,e,S)}}},Vs=new Map,Ks=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=Vs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Hs(t)),c=s;return s};Ks();const Gs={http:null,xhr:Ls,fetch:{get:Ks}};Ha.forEach(Gs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Qs=e=>`- ${e}`,Ys=e=>Ha.isFunction(e)||null===e||!1===e;const Zs={getAdapter:function(e,t){e=Ha.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,!Ys(r)&&(o=Gs[(n=String(r)).toLowerCase()],void 0===o))throw new Va(`Unknown adapter '${n}'`);if(o&&(Ha.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 Va("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Qs).join("\n"):" "+Qs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Gs};function Xs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Js(e){Xs(e),e.headers=xs.from(e.headers),e.data=Cs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zs.getAdapter(e.adapter||gs.adapter,e)(e).then(function(t){return Xs(e),t.data=Cs.call(e,e.transformResponse,t),t.headers=xs.from(t.headers),t},function(t){return Ss(t)||(Xs(e),t&&t.response&&(t.response.data=Cs.call(e,e.transformResponse,t.response),t.response.headers=xs.from(t.response.headers))),Promise.reject(t)})}const el="1.13.1",tl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const nl={};tl.transitional=function(e,t,n){function r(e,t){return"[Axios v"+el+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Va(r(o," has been removed"+(t?" in "+t:"")),Va.ERR_DEPRECATED);return t&&!nl[o]&&(nl[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)}},tl.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const rl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Va("options must be an object",Va.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 Va("option "+i+" must be "+n,Va.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Va("Unknown option "+i,Va.ERR_BAD_OPTION)}},validators:tl},ol=rl.validators;let il=class{constructor(e){this.defaults=e||{},this.interceptors={request:new is,response:new is}}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=js(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&rl.assertOptions(n,{silentJSONParsing:ol.transitional(ol.boolean),forcedJSONParsing:ol.transitional(ol.boolean),clarifyTimeoutError:ol.transitional(ol.boolean)},!1),null!=r&&(Ha.isFunction(r)?t.paramsSerializer={serialize:r}:rl.assertOptions(r,{encode:ol.function,serialize:ol.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rl.assertOptions(t,{baseUrl:ol.spelling("baseURL"),withXsrfToken:ol.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ha.merge(o.common,o[t.method]);o&&Ha.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=xs.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=[Js.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=Js.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 os(As((e=js(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Ha.forEach(["delete","get","head","options"],function(e){il.prototype[e]=function(t,n){return this.request(js(n||{},{method:e,url:t,data:(n||{}).data}))}}),Ha.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(js(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}il.prototype[e]=t(),il.prototype[e+"Form"]=t(!0)});const al={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(al).forEach(([e,t])=>{al[t]=e});const sl=function e(t){const n=new il(t),r=ra(il.prototype.request,n);return Ha.extend(r,il.prototype,n,{allOwnKeys:!0}),Ha.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(js(t,n))},r}(gs);sl.Axios=il,sl.CanceledError=ks,sl.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}}},sl.isCancel=Ss,sl.VERSION=el,sl.toFormData=Ja,sl.AxiosError=Va,sl.Cancel=sl.CanceledError,sl.all=function(e){return Promise.all(e)},sl.spread=function(e){return function(t){return e.apply(null,t)}},sl.isAxiosError=function(e){return Ha.isObject(e)&&!0===e.isAxiosError},sl.mergeConfig=js,sl.AxiosHeaders=xs,sl.formToJSON=e=>hs(Ha.isHTMLForm(e)?new FormData(e):e),sl.getAdapter=Zs.getAdapter,sl.HttpStatusCode=al,sl.default=sl;const{Axios:ll,AxiosError:cl,CanceledError:ul,isCancel:dl,CancelToken:fl,VERSION:pl,all:hl,Cancel:gl,isAxiosError:ml,spread:yl,toFormData:bl,AxiosHeaders:vl,HttpStatusCode:wl,formToJSON:xl,getAdapter:Cl,mergeConfig:Sl}=sl,kl="ps_app_did_mount",_l="ps_game_info_loaded",El="ps_game_ready",Tl="ps_switch_page",Pl="ps_wallet_connect",Rl="ps_play_button_clicked",Il="ps_purchase_completed",Al="ps_check_in_completed",Ol="event_purchaseCompleted",jl="event_checkInCompleted";var Ml=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ml||{}),Ll=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(Ll||{}),Nl=(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.purchasing=10008]="purchasing",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))(Nl||{}),Dl=(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))(Dl||{}),Wl=(e=>(e[e.star=1]="star",e[e.ton=2]="ton",e[e.balance=3]="balance",e[e.mon=4]="mon",e[e.solana=5]="solana",e[e.tribute=6]="tribute",e))(Wl||{}),$l=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))($l||{}),zl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(zl||{}),Fl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pyboboTon="pyboboTon",e.pyboboSolana="pyboboSolana",e.croco="croco",e))(Fl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pyboboTon:"PYBOBO",pyboboSolana:"PYBOBO",croco:"CROCO"},Bl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pyboboTon:"PYBOBO",pyboboSolana:"PYBOBO",croco:"CROCO"},ql={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"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",coc:"1048_currency_coc.png"},1057:{star:"1057_currency_star.png",ton:"1057_currency_ton.png",usdt:"1057_currency_usdt.png",cati:"1057_currency_cati.png"},1060:{star:"1060_currency_star.png",ton:"1060_currency_ton.png",usdt:"1060_currency_usdt.png",cati:"1060_currency_cati.png",pyboboTon:"1060_currency_pybobo_ton.png",pyboboSolana:"1060_currency_pybobo_solana.png",croco:"1060_currency_croco.png"},1061:{star:"1061_currency_star.png",ton:"1061_currency_ton.png",usdt:"1061_currency_usdt.png",cati:"1061_currency_cati.png"}},Hl={1048:"coc",1060:"croco"},Vl={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}},Kl={0:["add_screen.png","bg_1.png","bg_2.png","button_1.png","button_2.png","cat_ball.png","currency_cati.png","currency_star.png","currency_ton.png","currency_usdt.png","dot.png","sale_off.png","tag_icon1.png","tag_icon2.png"],1041:["1041_bg_1.png","1041_close.png","1041_currency_cati.png","1041_currency_star.png","1041_currency_ton.png","1041_currency_usdt.png","1041_disconnect.png","1041_pay_button.png","1041_sale_off.png","1041_title_1.png","1041_title_2.png","1041_wallet.png"],1048:["1048_bg_1.png","1048_bg_2.png","1048_close.png","1048_currency_coc.png","1048_currency_star.png","1048_currency_ton.png","1048_currency_usdt.png","1048_disconnect.png","1048_greate_value.png","1048_pay_button_0.png","1048_pay_button_1.png","1048_sale_off.png","1048_suggest_bg.png","1048_suggest_icon_0.png","1048_suggest_icon_1.png","1048_suggest_icon_2.png","1048_suggest_icon_3.png","1048_suggest_icon_4.png","1048_suggest_icon_5.png","1048_wallet.png"],1057:["1057_button_1.png","1057_button_2.png","1057_currency_star.png","1057_currency_ton.png","1057_currency_usdt.png","1057_logo.png","1057_telegram.png"],1060:["1060_bg_1.png","1060_bg_2.png","1060_bg_3.png","1060_chain_solana.png","1060_chain_ton.png","1060_close.png","1060_currency_cati.png","1060_currency_croco.png","1060_currency_pybobo_solana.png","1060_currency_pybobo_ton.png","1060_currency_star.png","1060_currency_ton.png","1060_currency_usdt.png","1060_disconnect.png","1060_pay_button.png","1060_sale_off.png","1060_title_1.png","1060_title_2.png","1060_wallet.png"],1061:["1061_bg_1.png","1061_currency_cati.png","1061_currency_star.png","1061_currency_ton.png","1061_currency_usdt.png","1061_disconnect.png","1061_pay_button.png","1061_sale_off.png","1061_title.png","1060_wallet.png"]};class Gl{constructor(e,t){this.code=e,this.message=t}}const Ql=new class{init(){this._axios=sl.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=na.API_URL,na.TOKEN&&(e.headers.Authorization=`Bearer ${na.TOKEN}`)),e),e=>(console.log(e),Promise.reject(new Gl(Nl.netConfigError,"Net config error")))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject(new Gl(Nl.netError,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 Yl,Zl={exports:{}};var Xl,Jl,ec=(Yl||(Yl=1,Xl=Zl,Jl=Zl.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",S="Browser",k="Chrome",_="Firefox",E="Google",T="Honor",P="Huawei",R="LG",I="Microsoft",A="Motorola",O="Nvidia",j="OnePlus",M="Opera",L="OPPO",N="Samsung",D="Sharp",W="Sony",$="Xiaomi",z="Zebra",F="Facebook",U="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,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,M+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,M]],[/\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"+S]],[/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 "+S]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+S],d],[/\bfocus\/([\w\.]+)/i],[d,[l,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,_]],[/\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,F],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,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,k+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+S]],[/(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,_+" 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,D],[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,$],[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,$],[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,L],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":L}],[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,A],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,A],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,R],[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,R],[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,E],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,E],[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,W],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,W],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,j],[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,I],[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,O],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,I],[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,R],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,k+"cast"],[u,E],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,O],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,D],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,W],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,$],[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,O],[c,p]],[/(playstation \w+)/i],[s,[u,W],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,I],[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,L],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,j],[c,y]],[/(moto 360)/i],[s,[u,A],[c,y]],[/(smartwatch 3)/i],[s,[u,W],[c,y]],[/(g watch r)/i],[s,[u,R],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,E],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,F],[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,_+" 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,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,U],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,U).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]),Xl.exports&&(Jl=Xl.exports=J),Jl.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:Zl.exports)),Zl.exports);const tc=r(ec),nc=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),rc=e=>`${na.RES_URL}${e}`,oc=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ic=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},ac=()=>{if(!window.Telegram)return!1;const e=window.Telegram.WebApp.platform||"";return e.includes("ios")||e.includes("pados")},sc=()=>{const e=(new ec.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},lc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n(new Gl(Nl.clipboardError,"Method not support"));navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n(new Gl(Nl.clipboardError,"Write text error"))})}),cc=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(new Gl(Nl.clipboardError,"Copy command error"))});class uc{static showLog(e){na.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${na.GAME_ID}`;return new Promise((r,o)=>{Ql.get(n,t).then(t=>{if(uc.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}/${na.GAME_ID}`;return new Promise((r,o)=>{Ql.post(n,t).then(t=>{if(uc.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:na.BOT_NAME,initdata:na.INIT_DATA};return uc.post("pluto/gameinfo",e)}static login(){const e={botname:na.BOT_NAME,initdata:na.INIT_DATA};return uc.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return uc.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 uc.post("pluto/order",s)}static getItem(e){const t={k:e};return uc.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return uc.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return uc.post("pluto/finishorder",t)}static unfinishRecord(){return uc.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return uc.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return uc.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 uc.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return uc.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return uc.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 uc.post("pluto/signdata",s)}static getNfts(){return uc.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return uc.post("pluto/setuserid",n)}static cocGetInfo(){return uc.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return uc.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return uc.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return uc.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return uc.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return uc.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return uc.post("plutococ/cancelwithdraw",t)}static spGetInfo(e){const t={sid:e};return uc.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 uc.post("plutosp/withdraw",i)}static spClaim(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/claim",n)}static spGetWithdrawDetail(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/withdrawdetail",n)}static spGetRecords(e,t,n,r){const o={sid:e,optype:t,page:n,pagesize:r};return uc.post("plutosp/record",o)}static spQueryConsume(e,t){const n={sid:e,time:t};return uc.post("plutosp/queryconsume",n)}static spCancelWithdraw(e,t){const n={sid:e,withdrawid:t};return uc.post("plutosp/cancelwithdraw",n)}}const dc=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 fc,pc={exports:{}},hc=pc.exports;var gc=(fc||(fc=1,function(e){var t,n;t=hc,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())}(pc)),pc.exports);const mc=r(gc);function yc(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 bc={exports:{}};const vc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var wc;var xc=(wc||(wc=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,S=s,k=l,_=c,E=u,T=d,P=f,R=p,I=h,A=g,O=m,j=y,M=b,L=v,N=w,D=0;D<20;D+=2)x^=(o=(j^=(o=(R^=(o=(_^=(o=x+j|0)<<7|o>>>25)+x|0)<<9|o>>>23)+_|0)<<13|o>>>19)+R|0)<<18|o>>>14,E^=(o=(C^=(o=(M^=(o=(I^=(o=E+C|0)<<7|o>>>25)+E|0)<<9|o>>>23)+I|0)<<13|o>>>19)+M|0)<<18|o>>>14,A^=(o=(T^=(o=(S^=(o=(L^=(o=A+T|0)<<7|o>>>25)+A|0)<<9|o>>>23)+L|0)<<13|o>>>19)+S|0)<<18|o>>>14,N^=(o=(O^=(o=(P^=(o=(k^=(o=N+O|0)<<7|o>>>25)+N|0)<<9|o>>>23)+k|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(k^=(o=(S^=(o=(C^=(o=x+k|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+S|0)<<18|o>>>14,E^=(o=(_^=(o=(P^=(o=(T^=(o=E+_|0)<<7|o>>>25)+E|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,A^=(o=(I^=(o=(R^=(o=(O^=(o=A+I|0)<<7|o>>>25)+A|0)<<9|o>>>23)+O|0)<<13|o>>>19)+R|0)<<18|o>>>14,N^=(o=(L^=(o=(M^=(o=(j^=(o=N+L|0)<<7|o>>>25)+N|0)<<9|o>>>23)+j|0)<<13|o>>>19)+M|0)<<18|o>>>14;x=x+i|0,C=C+a|0,S=S+s|0,k=k+l|0,_=_+c|0,E=E+u|0,T=T+d|0,P=P+f|0,R=R+p|0,I=I+h|0,A=A+g|0,O=O+m|0,j=j+y|0,M=M+b|0,L=L+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]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=_>>>0&255,e[17]=_>>>8&255,e[18]=_>>>16&255,e[19]=_>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>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]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=I>>>0&255,e[37]=I>>>8&255,e[38]=I>>>16&255,e[39]=I>>>24&255,e[40]=A>>>0&255,e[41]=A>>>8&255,e[42]=A>>>16&255,e[43]=A>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=j>>>0&255,e[49]=j>>>8&255,e[50]=j>>>16&255,e[51]=j>>>24&255,e[52]=M>>>0&255,e[53]=M>>>8&255,e[54]=M>>>16&255,e[55]=M>>>24&255,e[56]=L>>>0&255,e[57]=L>>>8&255,e[58]=L>>>16&255,e[59]=L>>>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 S(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 k=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,t,n,r,o,i){var a=new k(i);return a.update(n,r,o),a.finish(e,t),0}function E(e,t,n,r,o,i){var a=new Uint8Array(16);return _(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(S(e,0,t,0,n,r,o),_(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!==E(t,16,t,32,n-32,a))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function R(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function I(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 A(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 O(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(I(s),I(s),I(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,A(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return O(n,e),O(r,t),m(n,0,r,0)}function M(e){var t=new Uint8Array(32);return O(t,e),1&t[0]}function L(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 D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function W(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,S=0,k=0,_=0,E=0,T=0,P=0,R=0,I=0,A=0,O=0,j=0,M=0,L=0,N=n[0],D=n[1],W=n[2],$=n[3],z=n[4],F=n[5],U=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*D,s+=r*W,l+=r*$,c+=r*z,u+=r*F,d+=r*U,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*D,l+=r*W,c+=r*$,u+=r*z,d+=r*F,f+=r*U,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*D,c+=r*W,u+=r*$,d+=r*z,f+=r*F,p+=r*U,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*D,u+=r*W,d+=r*$,f+=r*z,p+=r*F,h+=r*U,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,S+=r*Z,c+=(r=t[4])*N,u+=r*D,d+=r*W,f+=r*$,p+=r*z,h+=r*F,g+=r*U,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,S+=r*Y,k+=r*Z,u+=(r=t[5])*N,d+=r*D,f+=r*W,p+=r*$,h+=r*z,g+=r*F,m+=r*U,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,S+=r*Q,k+=r*Y,_+=r*Z,d+=(r=t[6])*N,f+=r*D,p+=r*W,h+=r*$,g+=r*z,m+=r*F,y+=r*U,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,S+=r*G,k+=r*Q,_+=r*Y,E+=r*Z,f+=(r=t[7])*N,p+=r*D,h+=r*W,g+=r*$,m+=r*z,y+=r*F,b+=r*U,v+=r*B,w+=r*q,x+=r*H,C+=r*V,S+=r*K,k+=r*G,_+=r*Q,E+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*D,g+=r*W,m+=r*$,y+=r*z,b+=r*F,v+=r*U,w+=r*B,x+=r*q,C+=r*H,S+=r*V,k+=r*K,_+=r*G,E+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*D,m+=r*W,y+=r*$,b+=r*z,v+=r*F,w+=r*U,x+=r*B,C+=r*q,S+=r*H,k+=r*V,_+=r*K,E+=r*G,T+=r*Q,P+=r*Y,R+=r*Z,g+=(r=t[10])*N,m+=r*D,y+=r*W,b+=r*$,v+=r*z,w+=r*F,x+=r*U,C+=r*B,S+=r*q,k+=r*H,_+=r*V,E+=r*K,T+=r*G,P+=r*Q,R+=r*Y,I+=r*Z,m+=(r=t[11])*N,y+=r*D,b+=r*W,v+=r*$,w+=r*z,x+=r*F,C+=r*U,S+=r*B,k+=r*q,_+=r*H,E+=r*V,T+=r*K,P+=r*G,R+=r*Q,I+=r*Y,A+=r*Z,y+=(r=t[12])*N,b+=r*D,v+=r*W,w+=r*$,x+=r*z,C+=r*F,S+=r*U,k+=r*B,_+=r*q,E+=r*H,T+=r*V,P+=r*K,R+=r*G,I+=r*Q,A+=r*Y,O+=r*Z,b+=(r=t[13])*N,v+=r*D,w+=r*W,x+=r*$,C+=r*z,S+=r*F,k+=r*U,_+=r*B,E+=r*q,T+=r*H,P+=r*V,R+=r*K,I+=r*G,A+=r*Q,O+=r*Y,j+=r*Z,v+=(r=t[14])*N,w+=r*D,x+=r*W,C+=r*$,S+=r*z,k+=r*F,_+=r*U,E+=r*B,T+=r*q,P+=r*H,R+=r*V,I+=r*K,A+=r*G,O+=r*Q,j+=r*Y,M+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*W),s+=38*(S+=r*$),l+=38*(k+=r*z),c+=38*(_+=r*F),u+=38*(E+=r*U),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(R+=r*H),h+=38*(I+=r*V),g+=38*(A+=r*K),m+=38*(O+=r*G),y+=38*(j+=r*Q),b+=38*(M+=r*Y),v+=38*(L+=r*Z),i=(r=(i+=38*(x+=r*D))+(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 $(e,t){W(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--)$(o,o),2!==r&&4!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)$(o,o),1!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(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,L(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)A(c,u,o=a[i>>>3]>>>(7&i)&1),A(d,f,o),N(p,c,d),D(c,c,d),N(d,u,f),D(u,u,f),$(f,p),$(h,c),W(c,d,c),W(d,u,p),N(p,c,d),D(c,c,d),$(u,c),D(d,f,h),W(c,d,s),N(c,c,f),W(d,d,c),W(c,f,h),W(f,u,l),$(u,p),A(c,u,o),A(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),W(m,m,g),O(e,m),0}function B(e,t){return U(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 U(o,n,t),b(e,r,o,v)}k.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,S=this.h[0],k=this.h[1],_=this.h[2],E=this.h[3],T=this.h[4],P=this.h[5],R=this.h[6],I=this.h[7],A=this.h[8],O=this.h[9],j=this.r[0],M=this.r[1],L=this.r[2],N=this.r[3],D=this.r[4],W=this.r[5],$=this.r[6],z=this.r[7],F=this.r[8],U=this.r[9];n>=16;)f=d=0,f+=(S+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*j,f+=(k+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*U),f+=(_+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),f+=(E+=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*$))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*W),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),f+=(I+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(A+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*L),p=d+=(f+=(O+=u>>>5|C)*(5*M))>>>13,p+=S*M,p+=k*j,p+=_*(5*U),p+=E*(5*F),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*$),p+=R*(5*W),p+=I*(5*D),p+=A*(5*N),d+=(p+=O*(5*L))>>>13,p&=8191,h=d,h+=S*L,h+=k*M,h+=_*j,h+=E*(5*U),d=(h+=T*(5*F))>>>13,h&=8191,h+=P*(5*z),h+=R*(5*$),h+=I*(5*W),h+=A*(5*D),g=d+=(h+=O*(5*N))>>>13,g+=S*N,g+=k*L,g+=_*M,g+=E*j,d=(g+=T*(5*U))>>>13,g&=8191,g+=P*(5*F),g+=R*(5*z),g+=I*(5*$),g+=A*(5*W),m=d+=(g+=O*(5*D))>>>13,m+=S*D,m+=k*N,m+=_*L,m+=E*M,d=(m+=T*j)>>>13,m&=8191,m+=P*(5*U),m+=R*(5*F),m+=I*(5*z),m+=A*(5*$),y=d+=(m+=O*(5*W))>>>13,y+=S*W,y+=k*D,y+=_*N,y+=E*L,d=(y+=T*M)>>>13,y&=8191,y+=P*j,y+=R*(5*U),y+=I*(5*F),y+=A*(5*z),b=d+=(y+=O*(5*$))>>>13,b+=S*$,b+=k*W,b+=_*D,b+=E*N,d=(b+=T*L)>>>13,b&=8191,b+=P*M,b+=R*j,b+=I*(5*U),b+=A*(5*F),v=d+=(b+=O*(5*z))>>>13,v+=S*z,v+=k*$,v+=_*W,v+=E*D,d=(v+=T*N)>>>13,v&=8191,v+=P*L,v+=R*M,v+=I*j,v+=A*(5*U),w=d+=(v+=O*(5*F))>>>13,w+=S*F,w+=k*z,w+=_*$,w+=E*W,d=(w+=T*D)>>>13,w&=8191,w+=P*N,w+=R*L,w+=I*M,w+=A*j,x=d+=(w+=O*(5*U))>>>13,x+=S*U,x+=k*F,x+=_*z,x+=E*$,d=(x+=T*W)>>>13,x&=8191,x+=P*D,x+=R*N,x+=I*L,x+=A*M,S=f=8191&(d=(d=((d+=(x+=O*j)>>>13)<<2)+d|0)+(f&=8191)|0),k=p+=d>>>=13,_=h&=8191,E=g&=8191,T=m&=8191,P=y&=8191,R=b&=8191,I=v&=8191,A=w&=8191,O=x&=8191,t+=16,n-=16;this.h[0]=S,this.h[1]=k,this.h[2]=_,this.h[3]=E,this.h[4]=T,this.h[5]=P,this.h[6]=R,this.h[7]=I,this.h[8]=A,this.h[9]=O},k.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},k.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,S,k,_,E,T,P,R,I=new Int32Array(16),A=new Int32Array(16),O=e[0],j=e[1],M=e[2],L=e[3],N=e[4],D=e[5],W=e[6],$=e[7],z=t[0],F=t[1],U=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++)S=8*C+Q,I[C]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],A[C]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(C=0;C<80;C++)if(o=O,i=j,a=M,s=L,l=N,c=D,u=W,f=z,p=F,h=U,g=B,m=q,y=H,b=V,E=65535&(_=K),T=_>>>16,P=65535&(k=$),R=k>>>16,E+=65535&(_=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=_>>>16,P+=65535&(k=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),R+=k>>>16,E+=65535&(_=q&H^~q&V),T+=_>>>16,P+=65535&(k=N&D^~N&W),R+=k>>>16,E+=65535&(_=G[2*C+1]),T+=_>>>16,P+=65535&(k=G[2*C]),R+=k>>>16,k=I[C%16],T+=(_=A[C%16])>>>16,P+=65535&k,R+=k>>>16,P+=(T+=(E+=65535&_)>>>16)>>>16,E=65535&(_=x=65535&E|T<<16),T=_>>>16,P=65535&(k=w=65535&P|(R+=P>>>16)<<16),R=k>>>16,E+=65535&(_=(z>>>28|O<<4)^(O>>>2|z<<30)^(O>>>7|z<<25)),T+=_>>>16,P+=65535&(k=(O>>>28|z<<4)^(z>>>2|O<<30)^(z>>>7|O<<25)),R+=k>>>16,T+=(_=z&F^z&U^F&U)>>>16,P+=65535&(k=O&j^O&M^j&M),R+=k>>>16,d=65535&(P+=(T+=(E+=65535&_)>>>16)>>>16)|(R+=P>>>16)<<16,v=65535&E|T<<16,E=65535&(_=g),T=_>>>16,P=65535&(k=s),R=k>>>16,T+=(_=x)>>>16,P+=65535&(k=w),R+=k>>>16,j=o,M=i,L=a,N=s=65535&(P+=(T+=(E+=65535&_)>>>16)>>>16)|(R+=P>>>16)<<16,D=l,W=c,$=u,O=d,F=f,U=p,B=h,q=g=65535&E|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(S=0;S<16;S++)k=I[S],E=65535&(_=A[S]),T=_>>>16,P=65535&k,R=k>>>16,k=I[(S+9)%16],E+=65535&(_=A[(S+9)%16]),T+=_>>>16,P+=65535&k,R+=k>>>16,w=I[(S+1)%16],E+=65535&(_=((x=A[(S+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=_>>>16,P+=65535&(k=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=k>>>16,w=I[(S+14)%16],T+=(_=((x=A[(S+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(k=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,I[S]=65535&P|R<<16,A[S]=65535&E|T<<16;E=65535&(_=z),T=_>>>16,P=65535&(k=O),R=k>>>16,k=e[0],T+=(_=t[0])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[0]=O=65535&P|R<<16,t[0]=z=65535&E|T<<16,E=65535&(_=F),T=_>>>16,P=65535&(k=j),R=k>>>16,k=e[1],T+=(_=t[1])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[1]=j=65535&P|R<<16,t[1]=F=65535&E|T<<16,E=65535&(_=U),T=_>>>16,P=65535&(k=M),R=k>>>16,k=e[2],T+=(_=t[2])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[2]=M=65535&P|R<<16,t[2]=U=65535&E|T<<16,E=65535&(_=B),T=_>>>16,P=65535&(k=L),R=k>>>16,k=e[3],T+=(_=t[3])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[3]=L=65535&P|R<<16,t[3]=B=65535&E|T<<16,E=65535&(_=q),T=_>>>16,P=65535&(k=N),R=k>>>16,k=e[4],T+=(_=t[4])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[4]=N=65535&P|R<<16,t[4]=q=65535&E|T<<16,E=65535&(_=H),T=_>>>16,P=65535&(k=D),R=k>>>16,k=e[5],T+=(_=t[5])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[5]=D=65535&P|R<<16,t[5]=H=65535&E|T<<16,E=65535&(_=V),T=_>>>16,P=65535&(k=W),R=k>>>16,k=e[6],T+=(_=t[6])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[6]=W=65535&P|R<<16,t[6]=V=65535&E|T<<16,E=65535&(_=K),T=_>>>16,P=65535&(k=$),R=k>>>16,k=e[7],T+=(_=t[7])>>>16,P+=65535&k,R+=k>>>16,R+=(P+=(T+=(E+=65535&_)>>>16)>>>16)>>>16,e[7]=$=65535&P|R<<16,t[7]=K=65535&E|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();D(r,e[1],e[0]),D(f,n[1],n[0]),W(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),W(o,o,f),W(i,e[3],n[3]),W(i,i,c),W(a,e[2],n[2]),N(a,a,a),D(s,o,r),D(l,a,i),N(u,a,i),N(d,o,r),W(e[0],s,l),W(e[1],d,u),W(e[2],u,l),W(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)A(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),W(r,n[0],i),W(o,n[1],i),O(e,o),e[31]^=M(r)<<7}function ee(e,t,n){var r,o;for(R(e[0],i),R(e[1],a),R(e[2],a),R(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()];R(r[0],u),R(r[1],d),R(r[2],a),W(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 R(e[2],a),L(e[1],n),$(s,e[1]),W(c,s,l),D(s,s,e[2]),N(c,e[2],c),$(u,c),$(d,u),W(p,d,u),W(r,p,s),W(r,r,c),F(r,r),W(r,r,s),W(r,r,c),W(r,r,c),W(e[0],r,c),$(o,e[0]),W(o,o,c),j(o,s)&&W(e[0],e[0],f),$(o,e[0]),W(o,o,c),j(o,s)?-1:(M(e[0])===n[31]>>7&&D(e[0],i,e[0]),W(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:S,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:_,crypto_onetimeauth_verify:E,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:U,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:O,unpack25519:L,M:W,A:N,S:$,Z:D,pow2523:F,add:Z,set25519:R,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 U(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!==yc&&(le=vc)&&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||{})}(bc)),bc.exports);const Cc=r(xc);var Sc,kc,_c,Ec,Tc,Pc,Rc,Ic,Ac,Oc,jc,Mc;(kc=Sc||(Sc={}))[kc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",kc[kc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",kc[kc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",kc[kc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",kc[kc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",kc[kc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",kc[kc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Ec=_c||(_c={}))[Ec.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Ec[Ec.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.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Ic=Rc||(Rc={}))[Ic.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Ic[Ic.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Ic[Ic.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Ic[Ic.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Ic[Ic.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Oc=Ac||(Ac={}))[Oc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Oc[Oc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Oc[Oc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Oc[Oc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Mc=jc||(jc={})).MAINNET="-239",Mc.TESTNET="-3";const Lc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=mc.decodeUTF8(e)),function(e,t){const n=mc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),mc.decodeBase64(e)}(e,t);return{toString:()=>mc.encodeUTF8(n),toObject(){try{return JSON.parse(mc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Nc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Dc(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 Wc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Nc(this.keyPair.publicKey)}createKeypair(){return Cc.box.keyPair()}createKeypairFromString(e){return{publicKey:Dc(e.publicKey),secretKey:Dc(e.secretKey)}}createNonce(){return Cc.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,Cc.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=Cc.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:Nc(this.keyPair.publicKey),secretKey:Nc(this.keyPair.secretKey)}}}function $c(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 zc(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())})}"function"==typeof SuppressedError&&SuppressedError;class Fc extends Error{get info(){return""}constructor(e,t){super(e,t),this.message=`${Fc.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,Fc.prototype)}}Fc.prefix="[TON_CONNECT_SDK_ERROR]";class Uc extends Fc{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Bc extends Fc{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,Bc.prototype)}}class qc extends Fc{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,qc.prototype)}}class Hc extends Fc{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,Hc.prototype)}}class Vc extends Fc{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends Fc{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,Kc.prototype)}}class Gc extends Fc{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends Fc{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends Fc{constructor(e,t){super(e,t),this.name="WalletWrongNetworkError",Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends Fc{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends Fc{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}class Jc extends Fc{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Jc.prototype)}}class eu extends Fc{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,eu.prototype)}}class tu extends Fc{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,tu.prototype)}}class nu extends Fc{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,nu.prototype)}}class ru extends Fc{constructor(...e){super(...e),Object.setPrototypeOf(this,ru.prototype)}}const ou={[Sc.UNKNOWN_ERROR]:ru,[Sc.USER_REJECTS_ERROR]:Zc,[Sc.BAD_REQUEST_ERROR]:Xc,[Sc.UNKNOWN_APP_ERROR]:Jc,[Sc.MANIFEST_NOT_FOUND_ERROR]:qc,[Sc.MANIFEST_CONTENT_ERROR]:Bc};const iu=new class{parseError(e){let t=ru;return e.code in ou&&(t=ou[e.code]||ru),new t(e.message)}};class au{isError(e){return"error"in e}}const su={[Tc.UNKNOWN_ERROR]:ru,[Tc.USER_REJECTS_ERROR]:Zc,[Tc.BAD_REQUEST_ERROR]:Xc,[Tc.UNKNOWN_APP_ERROR]:Jc};const lu=new class extends au{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=ru;throw e.error.code in su&&(t=su[e.error.code]||ru),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},cu={[Rc.UNKNOWN_ERROR]:ru,[Rc.USER_REJECTS_ERROR]:Zc,[Rc.BAD_REQUEST_ERROR]:Xc,[Rc.UNKNOWN_APP_ERROR]:Jc};const uu=new class extends au{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=ru;throw e.error.code in cu&&(t=cu[e.error.code]||ru),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class du{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return zc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return zc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return zc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function fu(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function pu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function hu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function gu(e,t){return zc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function mu(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 yu(e,t){return zc(this,0,void 0,function*(){var n,r;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=mu(null==t?void 0:t.signal);if("function"!=typeof e)throw new Fc("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new Fc(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield gu(i))}}throw s})}function bu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function vu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class wu{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}constructor(e,t,n,r,o,i){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)=>zc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=mu(s),a.signal.aborted)throw new Fc("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 Fc("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>zc(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=>zc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield gu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new Fc("Resource recreation was aborted by a new resource creation")})}}((e,t,n)=>zc(this,0,void 0,function*(){const r={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,traceId:n};return yield function(e){return zc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=mu(null==t?void 0:t.signal);return new Promise((t,o)=>zc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new Fc("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new Fc(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new Fc("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)=>zc(this,0,void 0,function*(){var o;const i=mu(r.signal).signal;if(i.aborted)return void n(new Fc("Bridge connection aborted"));const a=new URL(fu(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),e.traceId&&a.searchParams.append("trace_id",e.traceId),i.aborted)return void n(new Fc("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>zc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new Fc("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 Fc("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new Fc("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new Fc("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(r)}),e=>zc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new du(e,t),this.analytics=null==i?void 0:i.scoped({bridge_url:t,client_id:n})}registerSession(e){return zc(this,0,void 0,function*(){var t,n,r;try{null===(t=this.analytics)||void 0===t||t.emitBridgeClientConnectStarted({trace_id:null==e?void 0:e.traceId});const r=Date.now();yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS,null==e?void 0:e.traceId);const o=Date.now()-r;null===(n=this.analytics)||void 0===n||n.emitBridgeClientConnectEstablished({bridge_connect_duration:o,trace_id:null==e?void 0:e.traceId})}catch(o){throw null===(r=this.analytics)||void 0===r||r.emitBridgeClientConnectError({trace_id:null==e?void 0:e.traceId,error_message:String(o)}),o}})}send(e,t,n,r){return zc(this,0,void 0,function*(){var o;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,i.traceId=null==r?void 0:r.traceId);const a=new URL(fu(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),(null==i?void 0:i.traceId)&&a.searchParams.append("trace_id",i.traceId);const s=Lc.encode(e);yield yu(e=>zc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new Fc(`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=>vu(`Bridge pause failed, ${e}`))}unPause(){return zc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return zc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>vu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return zc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new Fc(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return zc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new Fc("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),bu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Fc("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return zc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{const n=JSON.parse(e.data);t={message:n.message,from:n.from,traceId:n.trace_id}}catch(n){throw new Fc(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function xu(e){return!("connectEvent"in e)}let Cu;const Su=new Uint8Array(16);const ku=[];for(let bT=0;bT<256;++bT)ku.push((bT+256).toString(16).slice(1));const _u={};function Eu(e,t,n){let r;{const e=Date.now(),o=function(){if(!Cu){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cu=crypto.getRandomValues.bind(crypto)}return Cu(Su)}();!function(e,t,n){var r,o;null!==(r=e.msecs)&&void 0!==r||(e.msecs=-1/0),null!==(o=e.seq)&&void 0!==o||(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(_u,e,o),r=function(e,t,n,r,o=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(o<0||o+16>r.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else r=new Uint8Array(16),o=0;return null!=t||(t=Date.now()),null!=n||(n=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9]),r[o++]=t/1099511627776&255,r[o++]=t/4294967296&255,r[o++]=t/16777216&255,r[o++]=t/65536&255,r[o++]=t/256&255,r[o++]=255&t,r[o++]=112|n>>>28&15,r[o++]=n>>>20&255,r[o++]=128|n>>>14&63,r[o++]=n>>>6&255,r[o++]=n<<2&255|3&e[10],r[o++]=e[11],r[o++]=e[12],r[o++]=e[13],r[o++]=e[14],r[o++]=e[15],r}(o,_u.msecs,_u.seq,t,n)}return function(e,t=0){return(ku[e[t+0]]+ku[e[t+1]]+ku[e[t+2]]+ku[e[t+3]]+"-"+ku[e[t+4]]+ku[e[t+5]]+"-"+ku[e[t+6]]+ku[e[t+7]]+"-"+ku[e[t+8]]+ku[e[t+9]]+"-"+ku[e[t+10]]+ku[e[t+11]]+ku[e[t+12]]+ku[e[t+13]]+ku[e[t+14]]+ku[e[t+15]]).toLowerCase()}(r)}class Tu{static fromStorage(e,t){return zc(this,0,void 0,function*(){const n=yield e.getHttpConnection();return xu(n)?new Tu(e,n.connectionSource,t):new Tu(e,{bridgeUrl:n.session.bridgeUrl},t)})}constructor(e,t,n){var r;this.connectionStorage=e,this.walletConnectionSource=t,this.analyticsManager=n,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.optionalOpenGateways=3,this.analytics=null===(r=this.analyticsManager)||void 0===r?void 0:r.scoped()}connect(e,t){var n,r;const o=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:Eu(),i=mu(null==t?void 0:t.signal);null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=i,this.closeGateways();const a=new Wc;this.session={sessionCrypto:a,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:a}).then(()=>zc(this,0,void 0,function*(){i.signal.aborted||(yield yu(e=>{var n;return this.openGateways(a,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal,traceId:o})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:i.signal}))}));const s="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(s,e,{traceId:o})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu(),i=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)return;this.closeGateways();const a=yield this.connectionStorage.getHttpConnection();if(!a)return;if(i.signal.aborted)return;const s=null!==(r=null==e?void 0:e.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS;if(xu(a))return this.session={sessionCrypto:a.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(a.sessionCrypto,{openingDeadlineMS:s,signal:null==i?void 0:i.signal,traceId:null==e?void 0:e.traceId});if(Array.isArray(this.walletConnectionSource))throw new Fc("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=a.session,this.gateway&&(bu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new wu(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,a.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),!i.signal.aborted){this.listeners.forEach(e=>e(Object.assign(Object.assign({},a.connectEvent),{traceId:o})));try{yield yu(e=>this.gateway.registerSession({openingDeadlineMS:s,signal:e.signal,traceId:o}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:i.signal})}catch(l){return void(yield this.disconnect({signal:i.signal,traceId:o}))}}})}sendRequest(e,t){var n;const r={};return"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal,r.attempts=null==t?void 0:t.attempts,r.traceId=null==t?void 0:t.traceId),null!==(n=r.traceId)&&void 0!==n||(r.traceId=Eu()),new Promise((t,n)=>zc(this,0,void 0,function*(){var o,i;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Fc("Trying to send bridge request without session");const a=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),bu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:a}));const s=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:a})),Dc(this.session.walletPublicKey));try{null===(o=this.analytics)||void 0===o||o.emitBridgeClientMessageSent({bridge_url:this.gateway.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:this.session.walletPublicKey,message_id:a,request_type:e.method,trace_id:r.traceId}),yield this.gateway.send(s,this.session.walletPublicKey,e.method,{attempts:null==r?void 0:r.attempts,signal:null==r?void 0:r.signal,traceId:r.traceId}),null===(i=null==r?void 0:r.onRequestSent)||void 0===i||i.call(r),this.pendingRequests.set(a.toString(),t)}catch(l){n(l)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return zc(this,0,void 0,function*(){var t;const n=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu();return new Promise(t=>zc(this,0,void 0,function*(){let r=!1,o=null;const i=()=>{r||(r=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=mu(null==e?void 0:e.signal);o=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:i,signal:t.signal,attempts:1,traceId:n})}catch(a){bu("Disconnect error:",a),r||this.removeBridgeAndSession().then(t)}finally{o&&clearTimeout(o),i()}}))})}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 zc(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 zc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(bu("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 zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=e.traceId)&&void 0!==t?t:Eu();let i;try{i=JSON.parse(this.session.sessionCrypto.decrypt(Lc.decode(e.message).toUint8Array(),Dc(e.from)))}catch(l){throw null===(n=this.analytics)||void 0===n||n.emitBridgeClientMessageDecodeError({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,error_message:String(l),trace_id:null==e?void 0:e.traceId}),l}bu("Wallet message received:",i);const a="event"in i?i.event:"";if(null===(r=this.analytics)||void 0===r||r.emitBridgeClientMessageReceived({bridge_url:this.session.bridgeUrl,client_id:this.session.sessionCrypto.sessionId,wallet_id:e.from,message_id:String(i.id),request_type:a,trace_id:null==e?void 0:e.traceId}),!("event"in i)){const e=i.id.toString(),t=this.pendingRequests.get(e);return t?(t(Object.assign(Object.assign({},i),{traceId:o})),void this.pendingRequests.delete(e)):void bu(`Response id ${e} doesn't match any request's id`)}if(void 0!==i.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&i.id<=e)return void vu(`Received event id (=${i.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==i.event&&(yield this.connectionStorage.storeLastWalletEventId(i.id))}const s=this.listeners;"connect"===i.event&&(yield this.updateSession(i,e.from)),"disconnect"===i.event&&(bu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),s.forEach(e=>e(Object.assign(Object.assign({},i),{traceId:o})))})}gatewayErrorsListener(e){return zc(this,0,void 0,function*(){throw new Fc(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return zc(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 zc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t,n){return pu(e)?this.generateTGUniversalLink(e,t,n):this.generateRegularUniversalLink(e,t,n)}generateRegularUniversalLink(e,t,n){const r=new URL(e);return r.searchParams.append("v",2..toString()),r.searchParams.append("id",this.session.sessionCrypto.sessionId),r.searchParams.append("trace_id",n.traceId),r.searchParams.append("r",JSON.stringify(t)),r.toString()}generateTGUniversalLink(e,t,n){const r="tonconnect-"+hu(this.generateRegularUniversalLink("about:blank",t,n).split("?")[1]),o=this.convertToDirectLink(e),i=new URL(o);return i.searchParams.append("startapp",r),i.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 zc(this,0,void 0,function*(){var n;const r=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:Eu();if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new wu(this.connectionStorage.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{},this.analyticsManager);return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n});const n=Math.max(this.pendingGateways.length-this.optionalOpenGateways,1);return void(yield function(e,t){return zc(this,0,void 0,function*(){if(t<=0)return[];if(t>e.length)throw new RangeError("count cannot be greater than the number of promises");const n=new Array(e.length);let r=0;return new Promise(o=>{e.forEach((e,i)=>{Promise.resolve(e).then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e})).then(e=>{n[i]=e,r++,r===t&&o(n)})})})})}(this.pendingGateways.map(e=>yu(n=>{var o;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(o=null==t?void 0:t.openingDeadlineMS)&&void 0!==o?o:this.defaultOpeningDeadlineMS,signal:n.signal,traceId:r}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal})),n))}return this.gateway&&(bu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new wu(this.connectionStorage.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this),this.analyticsManager),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal,traceId:r})})}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 Pu(e,t){return Ru(e,[t])}function Ru(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let Iu=class e{static getInstance(){return e.instance||(e.instance=new e),e.instance}constructor(){this.storage={}}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 Au(){if("undefined"!=typeof window)return window}function Ou(){if("undefined"!=typeof document)return document}function ju(){var e,t,n,r;const o=null===(t=null===(e=Au())||void 0===e?void 0:e.location)||void 0===t?void 0:t.origin,i=null===(r=null===(n=Au())||void 0===n?void 0:n.location)||void 0===r?void 0:r.pathname;return o&&i?o+i:""}function Mu(){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 Fc("`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 Iu.getInstance()}class Lu{static fromStorage(e,t){return zc(this,0,void 0,function*(){const n=yield e.getInjectedConnection();return new Lu(e,n.jsBridgeKey,t)})}static isWalletInjected(e){return Lu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Lu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Au();if(!e)return[];try{return Object.entries(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!Pu(e,"tonconnect")||!Pu(e.tonconnect,"walletInfo"))&&Ru(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]}constructor(e,t,n){this.connectionStorage=e,this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const r=Lu.window;if(!Lu.isWindowContainsWallet(r,t))throw new Kc;this.injectedWallet=r[t].tonconnect,n&&(this.analytics=n.scoped({bridge_key:t,wallet_app_name:this.injectedWallet.deviceInfo.appName,wallet_app_version:this.injectedWallet.deviceInfo.appVersion}))}connect(e,t){this._connect(2,e,t)}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r,o;const i=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu();try{bu("Injected Provider restoring connection..."),null===(n=this.analytics)||void 0===n||n.emitJsBridgeCall({js_bridge_method:"restoreConnection",trace_id:i});const e=yield this.injectedWallet.restoreConnection({traceId:i});null===(r=this.analytics)||void 0===r||r.emitJsBridgeResponse({js_bridge_method:"restoreConnection",trace_id:i}),bu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions({traceId:i}),this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:i})))):yield this.connectionStorage.removeConnection()}catch(a){null===(o=this.analytics)||void 0===o||o.emitJsBridgeError({js_bridge_method:"restoreConnection",error_message:String(a),trace_id:i}),yield this.connectionStorage.removeConnection(),console.error(a)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(e){return zc(this,0,void 0,function*(){var t;const n=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu();return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(r){bu(r),this.sendRequest({method:"disconnect",params:[]},{onRequestSent:t,traceId:n})}})})}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){return zc(this,0,void 0,function*(){var n,r,o;const i={};"function"==typeof t?(i.onRequestSent=t,i.traceId=Eu()):(i.onRequestSent=null==t?void 0:t.onRequestSent,i.signal=null==t?void 0:t.signal,i.attempts=null==t?void 0:t.attempts,i.traceId=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:Eu());const a=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),bu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:a})),null===(r=this.analytics)||void 0===r||r.emitJsBridgeCall({js_bridge_method:"send"});const s=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:a}),{traceId:i.traceId});return s.then(e=>{var t;null===(t=this.analytics)||void 0===t||t.emitJsBridgeResponse({js_bridge_method:"send"}),bu("Wallet message received:",e)}).catch(e=>{var t;null===(t=this.analytics)||void 0===t||t.emitJsBridgeError({js_bridge_method:"send",error_message:String(e)})}),null===(o=null==i?void 0:i.onRequestSent)||void 0===o||o.call(i),s})}_connect(e,t,n){return zc(this,0,void 0,function*(){var r,o,i,a;const s=null!==(r=null==n?void 0:n.traceId)&&void 0!==r?r:Eu();try{bu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t),null===(o=this.analytics)||void 0===o||o.emitJsBridgeCall({js_bridge_method:"connect",trace_id:s});const n=yield this.injectedWallet.connect(e,t,{traceId:s});null===(i=this.analytics)||void 0===i||i.emitJsBridgeResponse({js_bridge_method:"connect"}),bu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions({traceId:s})),this.listeners.forEach(e=>e(Object.assign(Object.assign({},n),{traceId:s})))}catch(l){null===(a=this.analytics)||void 0===a||a.emitJsBridgeError({js_bridge_method:"connect",error_message:String(l),trace_id:s}),bu("Injected Provider connect error:",l);const e={event:"connect_error",payload:{code:0,message:null==l?void 0:l.toString()}};this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:s})))}})}makeSubscriptions(e){var t,n,r;this.listenSubscriptions=!0,null===(t=this.analytics)||void 0===t||t.emitJsBridgeCall({js_bridge_method:"listen",trace_id:e.traceId});try{this.unsubscribeCallback=this.injectedWallet.listen(e=>{var t;const n=null!==(t=e.traceId)&&void 0!==t?t:Eu();bu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(Object.assign(Object.assign({},e),{traceId:n}))),"disconnect"===e.event&&this.disconnect({traceId:n})}),null===(n=this.analytics)||void 0===n||n.emitJsBridgeResponse({js_bridge_method:"listen",trace_id:e.traceId})}catch(o){throw null===(r=this.analytics)||void 0===r||r.emitJsBridgeError({js_bridge_method:"listen",error_message:String(o),trace_id:e.traceId}),o}}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Lu.window=Au();class Nu{constructor(e,t){this.storage=e,this.walletsListManager=t,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return zc(this,0,void 0,function*(){if("injected"===e.type||"wallet-connect"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!xu(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 zc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return zc(this,0,void 0,function*(){try{const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type||"wallet-connect"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new Wc(t.session.sessionKeyPair);return yield this.actualizeBridgeConnection({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 Wc(t.sessionCrypto),connectionSource:t.connectionSource}}catch(e){return bu("Error retrieving connection",e),null}})}getHttpConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read HTTP connection source while nothing is stored");if("http"!==e.type)throw new Fc(`Trying to read HTTP connection source while ${e.type} connection is stored`);return e})}getHttpPendingConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read HTTP connection source while nothing is stored");if("http"!==e.type)throw new Fc(`Trying to read HTTP connection source while ${e.type} connection is stored`);if(!xu(e))throw new Fc("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read Injected bridge connection source while nothing is stored");if("injected"!==(null==e?void 0:e.type))throw new Fc(`Trying to read Injected bridge connection source while ${e.type} connection is stored`);return e})}getWalletConnectConnection(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Fc("Trying to read wallet connect bridge connection source while nothing is stored");if("wallet-connect"!==(null==e?void 0:e.type))throw new Fc(`Trying to read wallet connect bridge connection source while ${e.type} connection is stored`);return e})}storedConnectionType(){return zc(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 zc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!xu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return zc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return zc(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 zc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}actualizeBridgeConnection(e){return zc(this,0,void 0,function*(){try{const t=e.connectEvent.payload.device.appName,n=yield this.walletsListManager.getRemoteWallet(t);if(n.bridgeUrl===e.session.bridgeUrl)return e;const r=Object.assign(Object.assign({},e),{session:Object.assign(Object.assign({},e.session),{bridgeUrl:n.bridgeUrl})});return yield this.storeConnection(r),r}catch(t){return bu("Failed to actualize bridge connection",t),e}})}}class Du{constructor(){this.localStorage=Mu()}getItem(e){return zc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return zc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return zc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Wu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function $u(e){return Wu(e)&&e.embedded}function zu(e){return"bridgeUrl"in e}const Fu=[{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",deepLink:"mytonwallet-tc://",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1},{name:"SignData",types:["text","binary","cell"]}]},{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"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{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",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"binanceWeb3TonWallet",name:"Binance 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",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"fintopio-tg",name:"Fintopio",image:"https://raw.githubusercontent.com/fintopio/ton-pub/refs/heads/main/logos/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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:1,extraCurrencySupported:!1}]},{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://gate.onelink.me/Hls0/web3?gate_web3_wallet_universal_type=ton_connect",features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:1,extraCurrencySupported:!1}]},{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"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"bitgetWalletLite",name:"Bitget Wallet Lite",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_lite_logo_288.png",about_url:"https://web3.bitget.com",universal_url:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"tomoWallet",name:"Tomo Wallet",image:"https://pub.tomo.inc/logo.png",about_url:"https://www.tomo.inc/",universal_url:"https://t.me/tomowalletbot?attach=wallet",bridge:[{type:"sse",url:"https://go-bridge.tomo.inc/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"miraiapp-tg",name:"Mirai Mini App",image:"https://cdn.mirailabs.co/miraihub/miraiapp-tg-icon-288.png",about_url:"https://mirai.app",universal_url:"https://t.me/MiraiAppBot?attach=wallet",bridge:[{type:"sse",url:"https://bridge.mirai.app"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"Architec.ton",name:"Architec.ton",image:"https://raw.githubusercontent.com/Architec-Ton/wallet-tma/refs/heads/dev/public/images/arcwallet_logo.png",about_url:"https://architecton.tech",universal_url:"https://t.me/architec_ton_bot?attach=wallet",bridge:[{type:"sse",url:"https://tc.architecton.su/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"tokenpocket",name:"TokenPocket",image:"https://hk.tpstatic.net/logo/tokenpocket.png",about_url:"https://www.tokenpocket.pro",universal_url:"https://tp-lab.tptool.pro/ton-connect/",bridge:[{type:"js",key:"tokenpocket"},{type:"sse",url:"https://ton-connect.mytokenpocket.vip/bridge"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"uxuyWallet",name:"UXUY Wallet",image:"https://chain-cdn.uxuy.com/logo/square_288.png",about_url:"https://docs.uxuy.com",universal_url:"https://t.me/UXUYbot?attach=wallet",bridge:[{type:"sse",url:"https://bridge.uxuy.me/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"tonkeeper-pro",name:"Tonkeeper Pro",image:"https://tonkeeper.com/assets/tonconnect-icon-pro.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com/pro",universal_url:"https://app.tonkeeper.com/pro/ton-connect",deepLink:"tonkeeper-pro-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!0},{name:"SignData",types:["text","binary","cell"]}]},{app_name:"nicegramWallet",name:"Nicegram Wallet",image:"https://static.nicegram.app/icon.png",about_url:"https://nicegram.app",universal_url:"https://nicegram.app/tc",deepLink:"nicegram-tc://",bridge:[{type:"sse",url:"https://tc.nicegram.app/bridge"},{type:"js",key:"nicegramWallet"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"echoooTonWallet",name:"EchoooWallet",image:"https://cdn.echooo.xyz/front-end/source/images/logo/echooo-ton.png",about_url:"https://www.echooo.xyz",universal_url:"https://www.echooo.xyz/ton-connect",deepLink:"echooo://",bridge:[{type:"js",key:"echoooTonWallet"},{type:"sse",url:"https://ton-connect-bridge.echooo.link/bridge"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"blitzwallet",name:"BLITZ wallet",image:"https://blitzwallet.cfd/wallet/public/logo.png",about_url:"https://blitzwallet.cfd",universal_url:"https://t.me/blitz_wallet_bot?attach=wallet",bridge:[{type:"sse",url:"https://blitzwallet.cfd/bridge/"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]},{app_name:"koloWeb3Wallet",name:"Kolo",image:"https://raw.githubusercontent.com/onidev1/tc-assets/refs/heads/main/kolo_logo_288.png",about_url:"https://kolo.xyz",universal_url:"https://t.me/kolo?attach=wallet",bridge:[{type:"sse",url:"https://web3-bridge.kolo.in/bridge"}],platforms:["ios","android","macos","windows","linux"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"imToken",name:"imToken",image:"https://aws-v2-cdn.token.im/orbit/token-v2/icons/logo-ton-connect.png",about_url:"https://token.im",universal_url:"https://connect.token.im/link/ton-connect",deepLink:"imtokenv2://link/ton-connect",bridge:[{type:"sse",url:"https://connect.token.im/tonbridge"},{type:"js",key:"imToken"}],platforms:["ios","android"],features:[{name:"SendTransaction",maxMessages:255,extraCurrencySupported:!1}]},{app_name:"cactuslink",name:"Cactus Link",image:"https://downloads.mycactus.com/288_cactus_link.png",about_url:"https://www.mycactus.com/defi-connector",bridge:[{type:"js",key:"cactuslink_ton"}],platforms:["chrome"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1},{name:"SignData",types:["text","binary"]}]},{app_name:"onekey",name:"OneKey",image:"https://uni.onekey-asset.com/static/logo/onekey-x288.png",about_url:"https://onekey.so",bridge:[{type:"js",key:"onekeyTonWallet"}],platforms:["chrome"],features:[{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}]}];class Uu{constructor(e){var t;this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://config.ton.org/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs,this.onDownloadDurationMeasured=null==e?void 0:e.onDownloadDurationMeasured}getWallets(){return zc(this,0,void 0,function*(){const[e,t]=yield Promise.all([this.fetchWalletsListDTO(),this.getCurrentlyInjectedWallets()]);return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}getEmbeddedWallet(){return zc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter($u);return 1===e.length?e[0]:null})}fetchWalletsListDTO(){return zc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListDTOCacheCreationTimestamp&&Date.now()>this.walletsListDTOCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListDTOCache=null),this.walletsListDTOCache||(this.walletsListDTOCache=this.fetchWalletsListFromSource(),this.walletsListDTOCache.then(()=>{this.walletsListDTOCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListDTOCache=null,this.walletsListDTOCacheCreationTimestamp=null})),this.walletsListDTOCache})}getRemoteWallet(e){return zc(this,0,void 0,function*(){const t=(yield this.getWallets()).find(t=>t.appName===e);if(!t)throw new Fc(`Wallet info not found for appName: "${e}"`);if(!zu(t))throw new Fc(`Wallet "${e}" is not remote`);return t})}fetchWalletsListFromSource(){return zc(this,0,void 0,function*(){var e,t;let n=[];const r=performance.now();try{const t=yield fetch(this.walletsListSource);if(n=yield t.json(),!Array.isArray(n))throw new eu("Wrong wallets list format, wallets list must be an array.");const o=n.filter(e=>!this.isCorrectWalletConfigDTO(e));o.length&&(vu(`Wallet(s) ${o.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),n=n.filter(e=>this.isCorrectWalletConfigDTO(e)));const i=performance.now(),a=Math.round(i-r);null===(e=this.onDownloadDurationMeasured)||void 0===e||e.call(this,a)}catch(o){vu(o),n=Fu,null===(t=this.onDownloadDurationMeasured)||void 0===t||t.call(this,void 0)}return n})}getCurrentlyInjectedWallets(){return[]}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=Lu.isWalletInjected(e),t.embedded=Lu.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 Bu(e,t){const n=e.includes("SendTransaction"),r=Hu(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new Gc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new Gc("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 Gc(`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 qu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=Hu(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=Hu(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 Hu(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Vu(e){return{type:"response-version",version:e}}function Ku(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function Gu(e,t,n){var r,o,i,a,s,l,c,u,d,f,p;const h=(null===(r=null==t?void 0:t.connectItems)||void 0===r?void 0:r.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(i=null===(o=null==t?void 0:t.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,wallet_state_init:null!==(a=null==t?void 0:t.account.walletStateInit)&&void 0!==a?a:null,wallet_type:null!==(s=null==t?void 0:t.device.appName)&&void 0!==s?s:null,wallet_version:null!==(l=null==t?void 0:t.device.appVersion)&&void 0!==l?l:null,auth_type:h,custom_data:Object.assign({client_id:null!==(c=null==n?void 0:n.clientId)&&void 0!==c?c:null,wallet_id:null!==(u=null==n?void 0:n.walletId)&&void 0!==u?u:null,chain_id:null!==(f=null===(d=null==t?void 0:t.account)||void 0===d?void 0:d.chain)&&void 0!==f?f:null,provider:null!==(p=null==t?void 0:t.provider)&&void 0!==p?p:null},Ku(e))}}function Qu(e,t){return{type:"connection-started",custom_data:Ku(e),trace_id:null!=t?t:null}}function Yu(e,t,n,r){return Object.assign({type:"connection-completed",is_success:!0,trace_id:null!=r?r:null},Gu(e,t,n))}function Zu(e,t,n,r,o){var i,a;return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,trace_id:null!=o?o:null,custom_data:Object.assign({client_id:null!==(i=null==r?void 0:r.clientId)&&void 0!==i?i:null,wallet_id:null!==(a=null==r?void 0:r.walletId)&&void 0!==a?a:null},Ku(e))}}function Xu(e,t){return{type:"connection-restoring-started",custom_data:Ku(e),trace_id:null!=t?t:null}}function Ju(e,t,n,r){return Object.assign({type:"connection-restoring-completed",is_success:!0,trace_id:null!=r?r:null},Gu(e,t,n))}function ed(e,t,n){return{type:"connection-restoring-error",is_success:!1,error_message:t,trace_id:null!=n?n:null,custom_data:Ku(e)}}function td(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 nd(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-sent-for-signature",trace_id:null!=o?o:null},Gu(e,t,r)),td(t,n))}function rd(e,t,n,r,o,i){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc,trace_id:null!=i?i:null},Gu(e,t,o)),td(t,n))}function od(e,t,n,r,o,i,a){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null,trace_id:null!=a?a:null},Gu(e,t,i)),function(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,r,o;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null,payload:null!==(r=e.payload)&&void 0!==r?r:null,state_init:null!==(o=e.stateInit)&&void 0!==o?o:null}})}}(t,n))}function id(e,t,n,r,o){return Object.assign({type:"sign-data-request-initiated",data:n,trace_id:null!=o?o:null},Gu(e,t,r))}function ad(e,t,n,r,o,i){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r,trace_id:null!=i?i:null},Gu(e,t,o))}function sd(e,t,n,r,o,i,a){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null,trace_id:null!=a?a:null},Gu(e,t,i))}function ld(e,t,n,r,o){return Object.assign({type:"disconnection",scope:n,trace_id:null!=o?o:null},Gu(e,t,r))}class cd{get version(){return Ku({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}constructor(e){this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null==e?void 0:e.eventDispatcher,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}init(){return zc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return zc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>zc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Vu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return zc(this,0,void 0,function*(){return new Promise((e,t)=>zc(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=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Yu(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=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=ed(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=ld(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=nd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=rd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=od(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=id(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=ad(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=sd(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}const ud="3.4.0";function dd(e,t=!1){const{wc:n,hex:r}=hd(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(gd(i),34),Lc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}function fd(e){try{return pd(e),!0}catch(t){return!1}}function pd(e){const t=e.replace(/-/g,"+").replace(/_/g,"/");let n;try{n=Lc.decode(t).toUint8Array()}catch(d){throw new tu(`Invalid base64 encoding in address: ${e}`)}if(36!==n.length)throw new tu(`Invalid address length: ${e}`);const r=n.slice(0,34),o=n.slice(34,36),i=gd(r);if(!o.every((e,t)=>e===i[t]))throw new tu(`Invalid checksum in address: ${e}`);let a=r[0],s=!1,l=!1;if(128&a&&(s=!0,a^=128),17!==a&&81!==a)throw new tu(`Unknown address tag: ${a}`);l=17===a;let c=null;c=255===r[1]?-1:r[1];const u=r.slice(2);if(0!==c&&-1!==c)throw new tu(`Invalid workchain: ${c}`);return{wc:c,hex:Array.from(u).map(e=>e.toString(16).padStart(2,"0")).join(""),testOnly:s,isBounceable:l}}function hd(e){if(!e.includes(":"))throw new tu(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new tu(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new tu(`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 tu(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:yd(r)}}function gd(e){let t=0;const n=new Uint8Array(e.length+2);n.set(e);for(let r of n){let e=128;for(;e>0;)t<<=1,r&e&&(t+=1),e>>=1,t>65535&&(t&=65535,t^=4129)}return new Uint8Array([Math.floor(t/256),t%256])}const md={};for(let bT=0;bT<=255;bT++){let e=bT.toString(16);e.length<2&&(e="0"+e),md[e]=bT}function yd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new nu("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(!md.hasOwnProperty(n))throw new nu("Invalid hex character: "+n);r[o]=md[n]}return r}const bd=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,vd=/^[A-Za-z0-9\-_]+$/,wd=/^-?\d+$/,xd=/^\d+$/;function Cd(e){return"number"==typeof e&&!isNaN(e)}function Sd(e){return"string"==typeof e&&e.length>0}function kd(e){return Sd(e)&&(function(e){try{return hd(e),!0}catch(t){return!1}}(e)||fd(e))}function _d(e){return Sd(e)&&/^-?\d+$/.test(e)}function Ed(e){return"string"==typeof e&&(bd.test(e)||vd.test(e))&&e.startsWith("te6cc")}function Td(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Pd(e,t){return Object.keys(e).some(e=>!t.includes(e))}function Rd(e){if(!Td(e))return"Request must be an object";if(Pd(e,["validUntil","network","from","messages"]))return"Request contains extra properties";if(e.validUntil){if(!Cd(e.validUntil))return"Incorrect 'validUntil'";const t=Math.floor(Date.now()/1e3),n=t+300;e.validUntil>n&&console.warn(`validUntil (${e.validUntil}) is more than 5 minutes from now (${t})`)}if(void 0!==e.network&&!_d(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from' address format";if(t=e.messages,!Array.isArray(t)||0===e.messages.length)return"'messages' is required";var t;for(let n=0;n<e.messages.length;n++){const t=Id(e.messages[n],n);if(t)return t}return null}function Id(e,t){if(!Td(e))return`Message at index ${t} must be an object`;if(Pd(e,["address","amount","stateInit","payload","extraCurrency"]))return`Message at index ${t} contains extra properties`;if(!Sd(e.address))return`'address' is required in message at index ${t}`;if(!fd(e.address))return`Wrong 'address' format in message at index ${t}`;if(!Sd(e.amount))return`'amount' is required in message at index ${t}`;if(!/^[0-9]+$/.test(e.amount))return`Incorrect 'amount' in message at index ${t}`;if(!(void 0===e.stateInit||Sd(e.stateInit)&&Ed(e.stateInit)))return`Invalid 'stateInit' in message at index ${t}`;if(!(void 0===e.payload||Sd(e.payload)&&Ed(e.payload)))return`Invalid 'payload' in message at index ${t}`;if(void 0!==e.extraCurrency){if(!Td(e.extraCurrency))return`Invalid 'extraCurrency' in message at index ${t}`;for(const[n,r]of Object.entries(e.extraCurrency))if(!wd.test(n)||"string"!=typeof r||!xd.test(r))return`Invalid 'extraCurrency' format in message at index ${t}`}return null}function Ad(e){if(!Td(e))return"Request must be an object";if(Pd(e,["tonProof"]))return"Request contains extra properties";if(void 0!==e.tonProof){if("string"!=typeof e.tonProof)return"Invalid 'tonProof'";const t=e.tonProof;if(0===t.length)return"Empty 'tonProof' payload";const n=function(){try{return"undefined"!=typeof window&&window.location?window.location.hostname:null}catch(e){return null}}();if(!n)return null;const r=(new TextEncoder).encode(n).length;if(r>128)return"Current domain exceeds 128 bytes limit";const o=(new TextEncoder).encode(t).length;if(o>128)return"'tonProof' payload exceeds 128 bytes limit";if(r+o>222)return"'tonProof' domain + payload exceeds 222 bytes limit"}return null}function Od(e){if(!Td(e))return"Payload must be an object";if(!Sd(e.type))return"'type' is required";switch(e.type){case"text":return function(e){if(Pd(e,["type","text","network","from"]))return"Text payload contains extra properties";if(!Sd(e.text))return"'text' is required";if(void 0!==e.network&&!_d(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);case"binary":return function(e){if(Pd(e,["type","bytes","network","from"]))return"Binary payload contains extra properties";if(!Sd(e.bytes))return"'bytes' is required";if(void 0!==e.network&&!_d(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);case"cell":return function(e){if(Pd(e,["type","schema","cell","network","from"]))return"Cell payload contains extra properties";if(!Sd(e.schema))return"'schema' is required";if(!Sd(e.cell))return"'cell' is required";if(!Ed(e.cell))return"Invalid 'cell' format (must be valid base64)";if(void 0!==e.network&&!_d(e.network))return"Invalid 'network' format";if(void 0!==e.from&&!kd(e.from))return"Invalid 'from'";return null}(e);default:return"Invalid 'type' value"}}function jd(e){if("string"!=typeof e)return;const t=e.length+(4-e.length%4)%4;return e.replace(/-/g,"+").replace(/_/g,"/").padEnd(t,"=")}class Md{constructor(e={}){var t,n,r,o,i,a;this.events=[],this.timeoutId=null,this.isProcessing=!1,this.backoff=1,this.shouldSend=!0,this.batchTimeoutMs=null!==(t=e.batchTimeoutMs)&&void 0!==t?t:2e3,this.currentBatchTimeoutMs=this.batchTimeoutMs,this.maxBatchSize=null!==(n=e.maxBatchSize)&&void 0!==n?n:100,this.analyticsUrl=null!==(r=e.analyticsUrl)&&void 0!==r?r:"https://analytics.ton.org/events",this.mode=null!==(o=e.mode)&&void 0!==o?o:"telemetry",this.baseEvent=Object.assign({subsystem:"dapp-sdk",version:ud,client_environment:null===(a=null===(i=e.environment)||void 0===i?void 0:i.getClientEnvironment)||void 0===a?void 0:a.call(i)},function(){const e={};try{const t=performance.getEntriesByType("navigation");if(t.length>0){const n=t[0];n.responseStart&&n.requestStart&&(e.conn_ttfb=Math.round(n.responseStart-n.requestStart))}}catch(t){}return e}()),this.addWindowFocusAndBlurSubscriptions()}scoped(e){return new Proxy(this,{get(t,n){const r=n.toString();if(r.startsWith("emit")){const n=r.replace("emit",""),o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return function(n){const r=Object.fromEntries(Object.entries(null!=e?e:{}).map(([e,t])=>[e,"function"==typeof t?t():t]));return t.emit(Object.assign(Object.assign({event_name:o},r),n))}}return t[n]}})}emit(e){var t;if("off"===this.mode)return;const n=null!==(t=e.trace_id)&&void 0!==t?t:Eu(),r=function(){const e={};try{const t=navigator,n=t.connection||t.mozConnection||t.webkitConnection;n&&(void 0!==n.rtt&&(e.conn_rtt=n.rtt),n.effectiveType?e.conn_network_type=n.effectiveType:n.type&&(e.conn_network_type=n.type))}catch(t){}return e}(),o=Object.assign(Object.assign(Object.assign(Object.assign({},this.baseEvent),r),e),{event_id:Eu(),client_timestamp:Math.floor(Date.now()/1e3),trace_id:n}),i="telemetry"===this.mode?this.filterFullModeFields(o):o;this.events.push(i),this.events.length>=this.maxBatchSize?this.flush():this.startTimeout()}startTimeout(){this.timeoutId||this.isProcessing||(this.timeoutId=setTimeout(()=>{this.flush()},this.currentBatchTimeoutMs))}flush(){return zc(this,0,void 0,function*(){if(this.isProcessing||0===this.events.length||!this.shouldSend)return;this.clearTimeout(),this.isProcessing=!0;const e=this.extractEventsToSend();try{yield this.processEventsBatch(e),bu("Analytics events sent successfully")}catch(t){this.restoreEvents(e),vu("Failed to send analytics events:",t)}finally{this.isProcessing=!1,this.scheduleNextFlushIfNeeded()}})}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}extractEventsToSend(){const e=this.events.slice(0,this.maxBatchSize);return this.events=this.events.slice(this.maxBatchSize),e}processEventsBatch(e){return zc(this,0,void 0,function*(){bu("Sending analytics events...",e.length);try{const t=yield this.sendEvents(e);this.handleResponse(t)}catch(t){this.handleUnknownError(t)}})}handleResponse(e){const{status:t,statusText:n}=e;this.isTooManyRequests(t)?this.handleTooManyRequests(t,n):this.isClientError(t)?this.handleClientError(t,n):this.isServerError(t)&&this.handleUnknownError({status:t,statusText:n})}restoreEvents(e){this.events.unshift(...e)}scheduleNextFlushIfNeeded(){this.events.length>0&&this.startTimeout()}sendEvents(e){return zc(this,0,void 0,function*(){return yield fetch(this.analyticsUrl,{method:"POST",headers:{"Content-Type":"application/json","X-Client-Timestamp":Math.floor(Date.now()/1e3).toString()},body:JSON.stringify(e)})})}isClientError(e){return e>=Md.HTTP_STATUS.CLIENT_ERROR_START&&e<Md.HTTP_STATUS.SERVER_ERROR_START}isServerError(e){return e>=Md.HTTP_STATUS.SERVER_ERROR_START}isTooManyRequests(e){return e===Md.HTTP_STATUS.TOO_MANY_REQUESTS}handleClientError(e,t){vu("Failed to send analytics events:",new Fc(`Analytics API error: ${e} ${t}`))}handleUnknownError(e){if(this.backoff<Md.MAX_BACKOFF_ATTEMPTS)throw this.backoff++,this.currentBatchTimeoutMs*=Md.BACKOFF_MULTIPLIER,new Fc(`Unknown analytics API error: ${e}`);return this.currentBatchTimeoutMs=this.batchTimeoutMs,void(this.backoff=1)}handleTooManyRequests(e,t){throw new Fc(`Analytics API error: ${e} ${t}`)}addWindowFocusAndBlurSubscriptions(){const e=Ou();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?(this.clearTimeout(),this.shouldSend=!1):(this.shouldSend=!0,this.scheduleNextFlushIfNeeded())})}catch(t){vu("Cannot subscribe to the document.visibilitychange: ",t)}}getMode(){return this.mode}getPendingEventsCount(){return this.events.length}filterFullModeFields(e){const t=Object.assign({},e);for(const r of Md.FULL_MODE_FIELDS)delete t[r];const n="event_name"in e?String(e.event_name):"";return!("error_code"in e||"error_message"in e||n.includes("error")||"connection-error"===n||"transaction-signing-failed"===n||"sign-data-request-failed"===n)&&"wallet_address"in t&&delete t.wallet_address,t}setWalletListDownloadDuration(e){this.baseEvent=Object.assign(Object.assign({},this.baseEvent),{wallet_list_download_duration:e})}}Md.HTTP_STATUS={TOO_MANY_REQUESTS:429,CLIENT_ERROR_START:400,SERVER_ERROR_START:500},Md.MAX_BACKOFF_ATTEMPTS=5,Md.BACKOFF_MULTIPLIER=2,Md.FULL_MODE_FIELDS=["user_id","tg_id","locale","tma_is_premium"];class Ld{constructor(){this.window=Au()}dispatchEvent(e,t){return zc(this,0,void 0,function*(){var n;const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){return zc(this,0,void 0,function*(){var r;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)}})}}function Nd(e){return{"@tonconnect/sdk":e.ton_connect_sdk_lib||"","@tonconnect/ui":e.ton_connect_ui_lib||""}}function Dd(e){var t,n,r,o,i,a,s,l;return{versions:Nd(e.custom_data),network_id:null!==(t=e.custom_data.chain_id)&&void 0!==t?t:"",client_id:null!==(n=e.custom_data.client_id)&&void 0!==n?n:"",wallet_id:null!==(r=e.custom_data.wallet_id)&&void 0!==r?r:"",wallet_address:null!==(o=e.wallet_address)&&void 0!==o?o:"",wallet_app_name:null!==(i=e.wallet_type)&&void 0!==i?i:"",wallet_app_version:null!==(a=e.wallet_version)&&void 0!==a?a:"",wallet_state_init:null!==(s=e.wallet_state_init)&&void 0!==s?s:"",trace_id:null!==(l=e.trace_id)&&void 0!==l?l:void 0}}class Wd{getClientEnvironment(){return""}getBrowser(){return""}getLocale(){return""}getPlatform(){return""}getTelegramUser(){}}const $d={};const zd="0";class Fd{constructor(e){this.connectionStorage=e,this.type="injected",this.listeners=[],this.connector=void 0;const{projectId:t,metadata:n}=function(){if(void 0===$d.walletConnectOptions)throw new Fc("Wallet Connect is not initialized.");return $d.walletConnectOptions}();this.config={networks:[{namespace:"ton",chains:[{id:-239,chainNamespace:"ton",caipNetworkId:"ton:-239",name:"TON",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:[]}}},{id:-3,chainNamespace:"ton",caipNetworkId:"ton:-3",name:"TON",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:[]}}}],methods:["ton_sendMessage","ton_signData"],events:[]}],projectId:t,metadata:n}}static fromStorage(e){return zc(this,0,void 0,function*(){return new Fd(e)})}initialize(){return zc(this,0,void 0,function*(){return this.connector||(this.connector=yield function(){if(void 0===$d.UniversalConnectorCls)throw new Fc("Wallet Connect is not initialized.");return $d.UniversalConnectorCls}().init(this.config)),this.connector})}connect(e,t){var n,r;const o=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:Eu(),i=mu(null==t?void 0:t.signal);null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=i,this._connect(e,{traceId:o,signal:i.signal,abortController:i}).catch(e=>bu("WalletConnect connect unexpected error",e))}_connect(e,t){return zc(this,0,void 0,function*(){var n,r;const o=yield this.initialize();if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return bu("WalletConnect connect aborted before start"),void this.clearAbortController(t.abortController);const i=e.items.find(e=>"ton_proof"===e.name),a=i?[{domain:new URL(this.config.metadata.url).hostname,chains:["ton:-239"],nonce:"",uri:"ton_proof",ttl:0,statement:i.payload}]:void 0;bu("Connecting through this.connector.connect");try{yield o.connect({authentication:a})}catch(s){if(null===(r=t.signal)||void 0===r?void 0:r.aborted)return bu("WalletConnect connect aborted via signal"),void this.clearAbortController(t.abortController);bu("WalletConnect connect error",s);const e={id:0,event:"connect_error",traceId:t.traceId,payload:{code:Sc.USER_REJECTS_ERROR,message:"User declined the connection"}};return bu("WalletConnect connect response:",e),this.emit(e),void this.clearAbortController(t.abortController)}bu("Connected through this.connector.connect");try{yield this.onConnect(o,Object.assign(Object.assign({},t),{includeTonProof:!0}))}catch(s){bu("WalletConnect onConnect error",s),yield this.disconnect({traceId:t.traceId,signal:t.signal})}finally{this.clearAbortController(t.abortController)}})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n;const r=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu(),o=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=o,!o.signal.aborted)try{bu("Restoring WalletConnect connection...");if(!(yield this.connectionStorage.getWalletConnectConnection())||o.signal.aborted)return;const e=yield this.initialize();if(o.signal.aborted)return;yield this.onConnect(e,{includeTonProof:!1,traceId:r,signal:o.signal}),bu("WalletConnect successfully restored.")}catch(i){bu("WalletConnect restore error",i),yield this.disconnect({traceId:r,signal:o.signal})}finally{this.clearAbortController(o)}})}closeConnection(){var e;null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=void 0,this.disconnect()}disconnect(e){return zc(this,0,void 0,function*(){var t,n;const r=mu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,!r.signal.aborted)try{if(yield this.connectionStorage.removeConnection(),r.signal.aborted)return;yield null===(n=this.connector)||void 0===n?void 0:n.disconnect()}catch(o){bu("WalletConnect disconnect error",o)}finally{this.clearAbortController(r)}})}sendRequest(e,t){return zc(this,0,void 0,function*(){var n,r,o,i;if(!this.connector)throw new Fc("Wallet Connect not initialized");const a={};"function"==typeof t?a.onRequestSent=t:(a.onRequestSent=null==t?void 0:t.onRequestSent,a.signal=null==t?void 0:t.signal,a.attempts=null==t?void 0:t.attempts,a.traceId=null==t?void 0:t.traceId),null!==(n=a.traceId)&&void 0!==n||(a.traceId=Eu());try{if(null===(r=a.signal)||void 0===r?void 0:r.aborted)throw new Fc("WalletConnect request aborted");if(bu("Send wallet-connect request:",Object.assign(Object.assign({},e),{id:zd})),"sendTransaction"===e.method){const t=JSON.parse(e.params[0]),{network:n}=t,r=$c(t,["network"]),i=this.connector.request({method:"ton_sendMessage",params:r},`ton:${n}`);null===(o=null==a?void 0:a.onRequestSent)||void 0===o||o.call(a);const s=yield i;return bu("Wallet message received:",{result:s,id:zd}),{result:s,id:zd,traceId:a.traceId}}if("signData"===e.method){const t=JSON.parse(e.params[0]),{network:n}=t,r=$c(t,["network"]),o=this.connector.request({method:"ton_signData",params:r},`ton:${n}`);null===(i=null==a?void 0:a.onRequestSent)||void 0===i||i.call(a);const s=yield o;return bu("Wallet message received:",{result:s,id:zd}),{result:s,traceId:a.traceId,id:zd}}if("disconnect"===e.method)return{id:zd,traceId:a.traceId}}catch(s){bu("WalletConnect request error",s,s.stack);const e=yield this.handleWalletConnectError(s,{traceId:a.traceId});return bu("Wallet message received:",e),e}return{id:zd,error:{code:Ac.UNKNOWN_ERROR,message:"Not implemented."},traceId:a.traceId}})}handleWalletConnectError(e,t){return zc(this,0,void 0,function*(){if("object"==typeof e&&null!==e){const n=String("message"in e?e.message:"msg"in e?e.msg:e);return n.toLowerCase().includes("reject")?{id:zd,traceId:t.traceId,error:{code:Tc.USER_REJECTS_ERROR,message:n}}:n.toLowerCase().includes("tonvalidationerror")?{id:zd,traceId:t.traceId,error:{code:Tc.BAD_REQUEST_ERROR,message:n}}:{id:zd,traceId:t.traceId,error:{code:Tc.UNKNOWN_ERROR,message:n}}}return{id:zd,traceId:t.traceId,error:{code:Tc.UNKNOWN_ERROR,message:String(e)}}})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}buildTonProof(e){var t,n,r;const o=null===(t=e.provider.session.authentication)||void 0===t?void 0:t[0],i=null===(n=null==o?void 0:o.p)||void 0===n?void 0:n.iat,a=null===(r=null==o?void 0:o.p)||void 0===r?void 0:r.statement;if(!i||!a)return;const s=o.p.domain;return{name:"ton_proof",proof:{timestamp:Math.floor(new Date(i).getTime()/1e3),domain:{lengthBytes:s.length,value:s},payload:a,signature:o.s.s}}}onConnect(e,t){return zc(this,0,void 0,function*(){var n,r,o,i;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return void bu("WalletConnect onConnect aborted");const a=e.provider.session,s=a.namespaces.ton;if(!(null===(r=null==s?void 0:s.accounts)||void 0===r?void 0:r[0]))return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No TON accounts connected."}));const l=s.accounts[0],[,c,u]=l.split(":",3),d=null===(o=a.sessionProperties)||void 0===o?void 0:o.ton_getPublicKey;if(!d)return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No sessionProperties.ton_getPublicKey provided."}));const f=null===(i=a.sessionProperties)||void 0===i?void 0:i.ton_getStateInit;if(!f)return void(yield this.disconnectWithError({traceId:t.traceId,code:Sc.BAD_REQUEST_ERROR,message:"Connection error. No sessionProperties.ton_getStateInit provided."}));e.provider.once("session_delete",()=>zc(this,0,void 0,function*(){try{yield this.connectionStorage.removeConnection();const e={event:"disconnect",traceId:Eu(),payload:{}};bu("Wallet message received:",e),this.emit(e)}catch(e){bu("Error while deleting session",e)}}));const p=(null==t?void 0:t.includeTonProof)?this.buildTonProof(e):void 0,h={items:[{name:"ton_addr",address:fd(u)?function({wc:e,hex:t}){return`${e}:${t}`}(pd(u)):u,network:c,publicKey:d,walletStateInit:f},...p?[p]:[]],device:{appName:"wallet_connect",appVersion:"",maxProtocolVersion:2,features:this.buildFeatureList(s.methods),platform:"browser"}};bu("WalletConnect connect response:",{event:"connect",payload:h,id:0}),this.emit({event:"connect",payload:h,traceId:t.traceId}),yield this.storeConnection()})}buildFeatureList(e){const t=[];return e.includes("ton_sendMessage")&&t.push("SendTransaction",{name:"SendTransaction",maxMessages:4,extraCurrencySupported:!1}),e.includes("ton_signData")&&t.push({name:"SignData",types:["text","binary","cell"]}),t}disconnectWithError(e){return zc(this,0,void 0,function*(){yield this.disconnect();const t={code:e.code,message:e.message};bu("WalletConnect connect response:",{event:"connect_error",id:0,payload:t}),this.emit({event:"connect_error",traceId:e.traceId,payload:t})})}clearAbortController(e){this.abortController===e&&(this.abortController=void 0)}emit(e,t){(null!=t?t:this.listeners).forEach(t=>t(e))}storeConnection(){return this.connectionStorage.storeConnection({type:"wallet-connect"})}}class Ud{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))}constructor(e){var t,n,r;this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[];const o=(null==e?void 0:e.manifestUrl)||function(){var e;const t=null===(e=Au())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}();this.dappSettings={manifestUrl:o,storage:(null==e?void 0:e.storage)||new Du},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.environment=null!==(t=null==e?void 0:e.environment)&&void 0!==t?t:new Wd,this.walletsList=new Uu({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs,onDownloadDurationMeasured:e=>{var t;null===(t=this.analytics)||void 0===t||t.setWalletListDownloadDuration(e)}});const i=null!==(n=null==e?void 0:e.eventDispatcher)&&void 0!==n?n:new Ld;if(this.tracker=new cd({eventDispatcher:i,tonConnectSdkVersion:ud}),this.environment=null!==(r=null==e?void 0:e.environment)&&void 0!==r?r:new Wd,this.initAnalytics(o,i,e),!this.dappSettings.manifestUrl)throw new Uc("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 Nu(this.dappSettings.storage,this.walletsList),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}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,n){var r,o,i;const a=Object.assign({},n);if("object"==typeof t&&null!==t&&"tonProof"in t&&(a.request=t),"object"==typeof t&&null!==t&&("openingDeadlineMS"in t||"signal"in t||"request"in t||"traceId"in t)&&(a.request=null==t?void 0:t.request,a.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,a.signal=null==t?void 0:t.signal),a.request){const e=Ad(a.request);if(e)throw new Fc("ConnectAdditionalRequest validation failed: "+e)}if(this.connected)throw new Hc;const s=mu(null==a?void 0:a.signal);if(null===(r=this.abortController)||void 0===r||r.abort(),this.abortController=s,s.signal.aborted)throw new Fc("Connection was aborted");null===(o=this.provider)||void 0===o||o.closeConnection(),this.provider=this.createProvider(e),s.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null});const l=null!==(i=null==a?void 0:a.traceId)&&void 0!==i?i:Eu();return this.tracker.trackConnectionStarted(l),this.provider.connect(this.createConnectRequest(null==a?void 0:a.request),{openingDeadlineMS:null==a?void 0:a.openingDeadlineMS,signal:s.signal,traceId:l})}restoreConnection(e){return zc(this,0,void 0,function*(){var t,n,r;const o=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu();this.tracker.trackConnectionRestoringStarted(o);const i=mu(null==e?void 0:e.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);const[a,s]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(i.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);let l=null;try{switch(a){case"http":l=yield Tu.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case"injected":l=yield Lu.fromStorage(this.bridgeConnectionStorage,this.analytics);break;case"wallet-connect":l=yield Fd.fromStorage(this.bridgeConnectionStorage);break;default:if(!s)return;l=this.createProvider(s)}}catch(f){return bu("Provider is not restored",f),this.tracker.trackConnectionRestoringError("Provider is not restored",o),yield this.bridgeConnectionStorage.removeConnection(),null==l||l.closeConnection(),void(l=null)}if(i.signal.aborted)return null==l||l.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o);if(!l)return vu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored",o);null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=l,l.listen(this.walletEventsListener.bind(this));const c=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted",o),null==l||l.closeConnection(),l=null};i.signal.addEventListener("abort",c);const u=yu(t=>zc(this,0,void 0,function*(){if(yield null==l?void 0:l.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal,traceId:o}),i.signal.removeEventListener("abort",c),this.connected){const e=this.getSessionInfo();this.tracker.trackConnectionRestoringCompleted(this.wallet,e,o)}else this.tracker.trackConnectionRestoringError("Connection restoring failed",o)}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),d=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([u,d])})}sendTransaction(e,t){return zc(this,0,void 0,function*(){var n,r,o;const i={};"function"==typeof t?i.onRequestSent=t:(i.onRequestSent=null==t?void 0:t.onRequestSent,i.signal=null==t?void 0:t.signal,i.traceId=null==t?void 0:t.traceId);const a=Rd(e);if(a)throw new Fc("SendTransactionRequest validation failed: "+a);const s=mu(null==i?void 0:i.signal);if(s.signal.aborted)throw new Fc("Transaction sending was aborted");this.checkConnection();const l=e.messages.length,c=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Bu(this.wallet.device.features,{requiredMessagesNumber:l,requireExtraCurrencies:c});const u=this.getSessionInfo(),d=null!==(n=null==i?void 0:i.traceId)&&void 0!==n?n:Eu();this.tracker.trackTransactionSentForSignature(this.wallet,e,u,d);const{validUntil:f,messages:p}=e,h=$c(e,["validUntil","messages"]),g=e.from||this.account.address,m=e.network||this.account.chain;if((null===(r=this.wallet)||void 0===r?void 0:r.account.chain)&&m!==this.wallet.account.chain)throw new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:null===(o=this.wallet)||void 0===o?void 0:o.account.chain,actualChainId:m}});const y=yield this.provider.sendRequest(lu.convertToRpcRequest(Object.assign(Object.assign({},h),{from:g,network:m,valid_until:f,messages:p.map(e=>{var{extraCurrency:t,payload:n,stateInit:r}=e,o=$c(e,["extraCurrency","payload","stateInit"]);return Object.assign(Object.assign({},o),{payload:jd(n),stateInit:jd(r),extra_currency:t})})})),{onRequestSent:i.onRequestSent,signal:s.signal,traceId:d});if(lu.isError(y))return this.tracker.trackTransactionSigningFailed(this.wallet,e,y.error.message,y.error.code,u,d),lu.parseAndThrowError(y);const b=lu.convertFromRpcResponse(y);return this.tracker.trackTransactionSigned(this.wallet,e,b,u,d),Object.assign(Object.assign({},b),{traceId:y.traceId})})}signData(e,t){return zc(this,0,void 0,function*(){var n,r,o;const i=mu(null==t?void 0:t.signal);if(i.signal.aborted)throw new Fc("data sending was aborted");const a=Od(e);if(a)throw new Fc("SignDataPayload validation failed: "+a);this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new Gc("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 Gc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]});const s=this.getSessionInfo(),l=null!==(n=null==t?void 0:t.traceId)&&void 0!==n?n:Eu();this.tracker.trackDataSentForSignature(this.wallet,e,s,l);const c=e.from||this.account.address,u=e.network||this.account.chain;if((null===(r=this.wallet)||void 0===r?void 0:r.account.chain)&&u!==this.wallet.account.chain)throw new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:null===(o=this.wallet)||void 0===o?void 0:o.account.chain,actualChainId:u}});const d=yield this.provider.sendRequest(uu.convertToRpcRequest(Object.assign(Object.assign(Object.assign({},e),"cell"===e.type?{cell:jd(e.cell)}:{}),{from:c,network:u})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:i.signal,traceId:l});if(uu.isError(d))return this.tracker.trackDataSigningFailed(this.wallet,e,d.error.message,d.error.code,s,l),uu.parseAndThrowError(d);const f=uu.convertFromRpcResponse(d);return this.tracker.trackDataSigned(this.wallet,e,f,s,l),Object.assign(Object.assign({},f),{traceId:l})})}setConnectionNetwork(e){if(this.connected)throw new Fc("Cannot change network while wallet is connected");this.desiredChainId=e}disconnect(e){return zc(this,0,void 0,function*(){var t,n;if(!this.connected)throw new Vc;const r=mu(null==e?void 0:e.signal),o=this.abortController;if(this.abortController=r,r.signal.aborted)throw new Fc("Disconnect was aborted");const i=null!==(t=null==e?void 0:e.traceId)&&void 0!==t?t:Eu();this.onWalletDisconnected("dapp",{traceId:i}),yield null===(n=this.provider)||void 0===n?void 0:n.disconnect({signal:r.signal,traceId:i}),null==o||o.abort()})}getSessionId(){return zc(this,0,void 0,function*(){if(!this.provider)return null;try{const e=yield this.bridgeConnectionStorage.getConnection();return e&&"http"===e.type?"sessionCrypto"in e?e.sessionCrypto.sessionId:e.session.sessionCrypto.sessionId:null}catch(e){return null}})}getSessionInfo(){var e;if("http"!==(null===(e=this.provider)||void 0===e?void 0:e.type))return null;if(!("session"in this.provider))return null;try{const e=this.provider.session;if(!e)return null;const t=e.sessionCrypto.sessionId;let n=null;return"walletPublicKey"in e&&(n=e.walletPublicKey),{clientId:t,walletId:n}}catch(t){return null}}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=Ou();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch(()=>{})})}catch(t){vu("Cannot subscribe to the document.visibilitychange: ",t)}}initAnalytics(e,t,n){var r;const o=null==n?void 0:n.analytics,i=null!==(r=null==o?void 0:o.mode)&&void 0!==r?r:"telemetry";if("off"===i)return;const a=new Md({environment:this.environment,mode:i});this.analytics=a;const s=this.environment.getTelegramUser(),l={browser:this.environment.getBrowser(),platform:this.environment.getPlatform(),manifest_json_url:e,origin_url:ju,locale:this.environment.getLocale()};s&&(l.tg_id=s.id,l.tma_is_premium=s.isPremium),function(e,t){e.addEventListener("ton-connect-ui-wallet-modal-opened",e=>{var n;const{detail:r}=e;t.emitConnectionStarted({client_id:r.client_id||"",versions:Nd(r.custom_data),main_screen:r.visible_wallets,trace_id:null!==(n=r.trace_id)&&void 0!==n?n:void 0})}),e.addEventListener("ton-connect-ui-selected-wallet",e=>{var n,r;const{detail:o}=e;t.emitConnectionSelectedWallet({client_id:o.client_id||"",versions:Nd(o.custom_data),main_screen:o.visible_wallets,wallets_menu:o.wallets_menu,trace_id:null!==(n=o.trace_id)&&void 0!==n?n:void 0,wallet_app_name:null!==(r=o.wallet_type)&&void 0!==r?r:"",wallet_redirect_method:o.wallet_redirect_method,wallet_redirect_link:o.wallet_redirect_link})}),e.addEventListener("ton-connect-connection-completed",e=>{const{detail:n}=e;t.emitConnectionCompleted(Dd(n))}),e.addEventListener("ton-connect-connection-error",e=>{var n,r;const{detail:o}=e;t.emitConnectionError({client_id:o.custom_data.client_id||"",wallet_id:o.custom_data.wallet_id||"",error_code:null!==(n=o.error_code)&&void 0!==n?n:0,error_message:o.error_message,trace_id:null!==(r=o.trace_id)&&void 0!==r?r:void 0})}),e.addEventListener("ton-connect-disconnection",e=>{const{detail:n}=e;t.emitDisconnection(Dd(n))}),e.addEventListener("ton-connect-transaction-sent-for-signature",e=>{const{detail:n}=e;t.emitTransactionSent(Dd(n))}),e.addEventListener("ton-connect-transaction-signed",e=>{const{detail:n}=e;t.emitTransactionSigned(Object.assign(Object.assign({},Dd(n)),{signed_boc:e.detail.signed_transaction}))}),e.addEventListener("ton-connect-transaction-signing-failed",e=>{var n;const{detail:r}=e;t.emitTransactionSigningFailed(Object.assign(Object.assign({},Dd(r)),{valid_until:Number(r.valid_until),messages:r.messages.map(e=>{var t,n,r,o;return{address:null!==(t=e.address)&&void 0!==t?t:"",amount:null!==(n=e.amount)&&void 0!==n?n:"",payload:null!==(r=e.payload)&&void 0!==r?r:"",state_init:null!==(o=e.state_init)&&void 0!==o?o:""}}),error_message:r.error_message,error_code:null!==(n=r.error_code)&&void 0!==n?n:0}))}),e.addEventListener("ton-connect-sign-data-request-initiated",e=>{const{detail:n}=e;null==t||t.emitSignDataRequestInitiated(Dd(n))}),e.addEventListener("ton-connect-sign-data-request-completed",e=>{const{detail:n}=e;null==t||t.emitSignDataRequestCompleted(Dd(n))}),e.addEventListener("ton-connect-sign-data-request-failed",e=>{var n;const{detail:r}=e;let o,i="";"text"===r.data.type&&(i=r.data.text),"cell"===r.data.type&&(i=r.data.cell,o=r.data.schema),"binary"===r.data.type&&(i=r.data.bytes),null==t||t.emitSignDataRequestFailed(Object.assign(Object.assign({},Dd(r)),{sign_data_type:r.data.type,sign_data_value:i,sign_data_schema:o,error_code:null!==(n=r.error_code)&&void 0!==n?n:0,error_message:r.error_message}))})}(t,a.scoped(l))}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Lu(this.bridgeConnectionStorage,e.jsBridgeKey,this.analytics):!Array.isArray(e)&&function(e){return"type"in e&&"wallet-connect"===e.type}(e)?new Fd(this.bridgeConnectionStorage):new Tu(this.bridgeConnectionStorage,e,this.analytics),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload,{traceId:e.traceId});break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code,this.getSessionInfo(),e.traceId);const t=iu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet",{traceId:e.traceId})}}onWalletConnected(e,t){var n,r;const o=e.items.find(e=>"ton_addr"===e.name),i=e.items.find(e=>"ton_proof"===e.name);if(!o)throw new Fc("ton_addr connection item was not found");if(!qu(e.device.features,this.walletsRequiredFeatures))return null===(n=this.provider)||void 0===n||n.disconnect(),void this.onWalletConnectError(new Qc("Wallet does not support required features",{cause:{connectEvent:e}}));const a={device:e.device,provider:this.provider.type,account:{address:o.address,chain:o.network,walletStateInit:o.walletStateInit,publicKey:o.publicKey}};if(this.desiredChainId&&a.account.chain!==this.desiredChainId){const e=this.desiredChainId,t=a.account.chain;return null===(r=this.provider)||void 0===r||r.disconnect(),void this.onWalletConnectError(new Yc("Wallet connected to a wrong network",{cause:{expectedChainId:e,actualChainId:t}}))}if(i){const e=function(e){if(!Td(e))return"ton_proof item must be an object";if(Pd(e,["error","proof","name"]))return"ton_proof item contains extra properties";const t=Object.prototype.hasOwnProperty.call(e,"proof"),r=Object.prototype.hasOwnProperty.call(e,"error");if(!t&&!r)return"'ton_proof' item must contain either 'proof' or 'error'";if(t&&r)return"'ton_proof' item must contain either 'proof' or 'error', not both";if(t){const t=e.proof;if(!Td(t))return"Invalid 'proof' object";if(!Cd(t.timestamp))return"Invalid 'proof.timestamp'";const r=t.domain;if(!Td(r))return"Invalid 'proof.domain'";if(!Cd(r.lengthBytes))return"Invalid 'proof.domain.lengthBytes'";if(!Sd(r.value))return"Invalid 'proof.domain.value'";try{if(("undefined"!=typeof TextEncoder?(new TextEncoder).encode(r.value).length:r.value.length)!==r.lengthBytes)return"'proof.domain.lengthBytes' does not match 'proof.domain.value'"}catch(n){}if(!Sd(t.payload))return"Invalid 'proof.payload'";if(!Sd(t.signature)||!bd.test(t.signature))return"Invalid 'proof.signature' format"}if(r){const t=e.error;if(!Td(t))return"Invalid 'error' object";if(Pd(t,["code","message"]))return"ton_proof error contains extra properties";if(!Cd(t.code))return"Invalid 'error.code'";if(!Sd(t.message))return"Invalid 'error.message'"}return null}(i);let t;if(e)t={name:"ton_proof",error:{code:_c.UNKNOWN_ERROR,message:e}};else try{if("proof"in i)t={name:"ton_proof",proof:{timestamp:i.proof.timestamp,domain:{lengthBytes:i.proof.domain.lengthBytes,value:i.proof.domain.value},payload:i.proof.payload,signature:i.proof.signature}};else{if(!("error"in i))throw new Fc("Invalid data format");t={name:"ton_proof",error:{code:i.error.code,message:i.error.message}}}}catch(l){t={name:"ton_proof",error:{code:_c.UNKNOWN_ERROR,message:"Invalid data format"}}}a.connectItems={tonProof:t}}this.wallet=a;const s=this.getSessionInfo();this.tracker.trackConnectionCompleted(a,s,null==t?void 0:t.traceId)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),bu(e),e instanceof qc||e instanceof Bc)throw vu(e),e}onWalletDisconnected(e,t){const n=this.getSessionInfo();this.tracker.trackDisconnection(this.wallet,e,n,null==t?void 0:t.traceId),this.wallet=null}checkConnection(){if(!this.connected)throw new Vc}createConnectRequest(e){const t=[Object.assign({name:"ton_addr"},this.desiredChainId?{network:this.desiredChainId}:{})];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}var Bd,qd;Ud.walletsList=new Uu,Ud.isWalletInjected=e=>Lu.isWalletInjected(e),Ud.isInsideWalletBrowser=e=>Lu.isInsideWalletBrowser(e);const Hd=r(function(){if(qd)return Bd;qd=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)},{})},Bd=s}());var Vd,Kd={exports:{}};var Gd=(Vd||(Vd=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}()}(Kd)),Kd.exports);const Qd=r(Gd);var Yd,Zd,Xd,Jd,ef,tf,nf,rf,of=Object.defineProperty,af=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,df=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ff=(e,t)=>{for(var n in t||(t={}))cf.call(t,n)&&df(e,n,t[n]);if(lf)for(var n of lf(t))uf.call(t,n)&&df(e,n,t[n]);return e},pf=(e,t)=>af(e,sf(t)),hf=(e,t)=>{var n={};for(var r in e)cf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&lf)for(var r of lf(e))t.indexOf(r)<0&&uf.call(e,r)&&(n[r]=e[r]);return n},gf=(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 mf=Symbol("solid-proxy"),yf="function"==typeof Proxy,bf=Symbol("solid-track"),vf={equals:(e,t)=>e===t};let wf=ip;const xf=1,Cf=2,Sf={owned:null,cleanups:null,context:null,owner:null},kf={};var _f=null;let Ef=null,Tf=null,Pf=null,Rf=null,If=0;function Af(e,t){const n=Tf,r=_f,o=0===e.length,i=void 0===t?r:t,a=o?Sf:{owned:null,cleanups:null,context:i?i.context:null,owner:i},s=o?e:()=>e(()=>$f(()=>cp(a)));_f=a,Tf=null;try{return op(s,!0)}finally{Tf=n,_f=r}}function Of(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},vf,t):vf).equals||void 0};return[Jf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),ep(n,e))]}function jf(e,t,n){tp(np(e,t,!0,xf))}function Mf(e,t,n){tp(np(e,t,!1,xf))}function Lf(e,t,n){wf=ap;const r=np(e,t,!1,xf);n&&n.render||(r.user=!0),Rf?Rf.push(r):tp(r)}function Nf(e,t,n){n=n?Object.assign({},vf,n):vf;const r=np(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,tp(r),Jf.bind(r)}function Df(e,t,n){let r,o,i;r=!0,o=e,i={};let a=null,s=kf,l=!1,c="initialValue"in i,u=!1;const d=new Set,[f,p]=(i.storage||Of)(i.initialValue),[h,g]=Of(void 0),[m,y]=Of(void 0,{equals:!1}),[b,v]=Of(c?"ready":"unresolved");function w(e,t,n,r){return a===e&&(a=null,void 0!==r&&(c=!0),e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=kf,function(e,t){op(()=>{void 0===t&&p(()=>e),v(void 0!==t?"errored":c?"ready":"unresolved"),g(t);for(const e of d.keys())e.decrement();d.clear()},!1)}(t,n)),t}function x(){const e=f(),t=h();if(void 0!==t&&!a)throw t;return Tf&&Tf.user,e}function C(e=!0){if(!1!==e&&l)return;l=!1;const t=u?u():r;if(null==t||!1===t)return void w(a,$f(f));let n;const i=s!==kf?s:$f(()=>{try{return o(t,{value:f(),refetching:e})}catch(r){n=r}});var d;if(void 0===n)return(d=i)&&"object"==typeof d&&"then"in d?(a=i,"v"in i?(1===i.s?w(a,i.v,void 0,t):w(a,void 0,up(i.v),t),i):(l=!0,queueMicrotask(()=>l=!1),op(()=>{v(c?"refreshing":"pending"),y()},!1),i.then(e=>w(i,e,void 0,t),e=>w(i,void 0,up(e),t)))):(w(a,i,void 0,t),i);w(a,void 0,up(n),t)}Object.defineProperties(x,{state:{get:()=>b()},error:{get:()=>h()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!c)return x();const e=h();if(e&&!a)throw e;return f()}}});let S=_f;return u?jf(()=>(S=_f,C(!1))):C(!1),[x,{refetch:e=>Hf(S,()=>C(e)),mutate:p}]}function Wf(e){return op(e,!1)}function $f(e){if(null===Tf)return e();const t=Tf;Tf=null;try{return e()}finally{Tf=t}}function zf(e,t,n){const r=Array.isArray(e);let o;return n=>{let i;if(r){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();const a=$f(()=>t(i,o,n));return o=i,a}}function Ff(e){Lf(()=>$f(e))}function Uf(e){return null===_f||(null===_f.cleanups?_f.cleanups=[e]:_f.cleanups.push(e)),e}function Bf(){return Tf}function qf(){return _f}function Hf(e,t){const n=_f,r=Tf;_f=e,Tf=null;try{return op(t,!0)}catch(o){dp(o)}finally{_f=n,Tf=r}}function Vf(e){const t=Tf,n=_f;return Promise.resolve().then(()=>{Tf=t,_f=n,op(e,!1),Tf=_f=null})}const[Kf,Gf]=Of(!1);function Qf(){return[Kf,Vf]}function Yf(e,t){const n=Symbol("context");return{id:n,Provider:pp(n),defaultValue:e}}function Zf(e){let t;return _f&&_f.context&&void 0!==(t=_f.context[e.id])?t:e.defaultValue}function Xf(e){const t=Nf(e),n=Nf(()=>fp(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function Jf(){if(this.sources&&this.state)if(this.state===xf)tp(this);else{const e=Pf;Pf=null,op(()=>sp(this),!1),Pf=e}if(Tf){const e=this.observers?this.observers.length:0;Tf.sources?(Tf.sources.push(this),Tf.sourceSlots.push(e)):(Tf.sources=[this],Tf.sourceSlots=[e]),this.observers?(this.observers.push(Tf),this.observerSlots.push(Tf.sources.length-1)):(this.observers=[Tf],this.observerSlots=[Tf.sources.length-1])}return this.value}function ep(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&op(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Ef&&Ef.running;r&&Ef.disposed.has(n),(r?n.tState:n.state)||(n.pure?Pf.push(n):Rf.push(n),n.observers&&lp(n)),r||(n.state=xf)}if(Pf.length>1e6)throw Pf=[],new Error},!1)),t}function tp(e){if(!e.fn)return;cp(e);const t=If;!function(e,t,n){let r;const o=_f,i=Tf;Tf=_f=e;try{r=e.fn(t)}catch(a){return e.pure&&(e.state=xf,e.owned&&e.owned.forEach(cp),e.owned=null),e.updatedAt=n+1,dp(a)}finally{Tf=i,_f=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?ep(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function np(e,t,n,r=xf,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:_f,context:_f?_f.context:null,pure:n};return null===_f||_f!==Sf&&(_f.owned?_f.owned.push(i):_f.owned=[i]),i}function rp(e){if(0===e.state)return;if(e.state===Cf)return sp(e);if(e.suspense&&$f(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<If);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===xf)tp(e);else if(e.state===Cf){const n=Pf;Pf=null,op(()=>sp(e,t[0]),!1),Pf=n}}function op(e,t){if(Pf)return e();let n=!1;t||(Pf=[]),Rf?n=!0:Rf=[],If++;try{const t=e();return function(e){Pf&&(ip(Pf),Pf=null);if(e)return;const t=Rf;Rf=null,t.length&&op(()=>wf(t),!1)}(n),t}catch(r){n||(Rf=null),Pf=null,dp(r)}}function ip(e){for(let t=0;t<e.length;t++)rp(e[t])}function ap(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:rp(r)}for(t=0;t<n;t++)rp(e[t])}function sp(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===xf?r!==t&&(!r.updatedAt||r.updatedAt<If)&&rp(r):e===Cf&&sp(r,t)}}}function lp(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Cf,n.pure?Pf.push(n):Rf.push(n),n.observers&&lp(n))}}function cp(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.tOwned){for(t=e.tOwned.length-1;t>=0;t--)cp(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)cp(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function up(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function dp(e,t=_f){throw up(e)}function fp(e){if("function"==typeof e&&!e.length)return fp(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=fp(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function pp(e,t){return function(t){let n;return Mf(()=>n=$f(()=>(_f.context=pf(ff({},_f.context),{[e]:t.value}),Xf(()=>t.children))),void 0),n}}const hp=Symbol("fallback");function gp(e){for(let t=0;t<e.length;t++)e[t]()}function mp(e,t){return $f(()=>e(t||{}))}function yp(){return!0}const bp={get:(e,t,n)=>t===mf?n:e.get(t),has:(e,t)=>t===mf||e.has(t),set:yp,deleteProperty:yp,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:yp,deleteProperty:yp}),ownKeys:e=>e.keys()};function vp(e){return(e="function"==typeof e?e():e)?e:{}}function wp(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function xp(...e){let t=!1;for(let a=0;a<e.length;a++){const n=e[a];t=t||!!n&&mf in n,e[a]="function"==typeof n?(t=!0,Nf(n)):n}if(yf&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=vp(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in vp(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(vp(e[n])));return[...new Set(t)]}},bp);const n={},r=Object.create(null);for(let a=e.length-1;a>=0;a--){const t=e[a];if(!t)continue;const o=Object.getOwnPropertyNames(t);for(let e=o.length-1;e>=0;e--){const i=o[e];if("__proto__"===i||"constructor"===i)continue;const a=Object.getOwnPropertyDescriptor(t,i);if(r[i]){const e=n[i];e&&(a.get?e.push(a.get.bind(t)):void 0!==a.value&&e.push(()=>a.value))}else r[i]=a.get?{enumerable:!0,configurable:!0,get:wp.bind(n[i]=[a.get.bind(t)])}:void 0!==a.value?a:void 0}}const o={},i=Object.keys(r);for(let a=i.length-1;a>=0;a--){const e=i[a],t=r[e];t&&t.get?Object.defineProperty(o,e,t):o[e]=t?t.value:void 0}return o}function Cp(e,...t){if(yf&&mf in e){const n=new Set(t.length>1?t.flat():t[0]),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)},bp));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))},bp)),r}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),a=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let s=!1,l=0;for(const e of t)e.includes(o)&&(s=!0,a?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;s||(a?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}const Sp=e=>`Stale read from <${e}>.`;function kp(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Nf(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Uf(()=>gp(i)),()=>{let l,c,u=e()||[],d=u.length;return u[bf],$f(()=>{let e,t,p,h,g,m,y,b,v;if(0===d)0!==a&&(gp(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[hp],o[0]=Af(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(d),c=0;c<d;c++)r[c]=u[c],o[c]=Af(f);a=d}else{for(p=new Array(d),h=new Array(d),s&&(g=new Array(d)),m=0,y=Math.min(a,d);m<y&&r[m]===u[m];m++);for(y=a-1,b=d-1;y>=m&&b>=m&&r[y]===u[b];y--,b--)p[b]=o[y],h[b]=i[y],s&&(g[b]=s[y]);for(e=new Map,t=new Array(b+1),c=b;c>=m;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=m;l<=y;l++)v=r[l],c=e.get(v),void 0!==c&&-1!==c?(p[c]=o[l],h[c]=i[l],s&&(g[c]=s[l]),c=t[c],e.set(v,c)):i[l]();for(c=m;c<d;c++)c in p?(o[c]=p[c],i[c]=h[c],s&&(s[c]=g[c],s[c](c))):o[c]=Af(f);o=o.slice(0,a=d),r=u.slice(0)}return o});function f(e){if(i[c]=e,s){const[e,n]=Of(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function _p(e){const t=e.keyed,n=Nf(()=>e.when,void 0,void 0),r=t?n:Nf(n,void 0,{equals:(e,t)=>!e==!t});return Nf(()=>{const o=r();if(o){const i=e.children;return"function"==typeof i&&i.length>0?$f(()=>i(t?o:()=>{if(!$f(r))throw Sp("Show");return n()})):i}return e.fallback},void 0,void 0)}function Ep(e){const t=Xf(()=>e.children),n=Nf(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let t=0;t<n.length;t++){const e=t,o=n[t],i=r,a=Nf(()=>i()?void 0:o.when,void 0,void 0),s=o.keyed?a:Nf(a,void 0,{equals:(e,t)=>!e==!t});r=()=>i()||(s()?[e,a,o]:void 0)}return r});return Nf(()=>{const t=n()();if(!t)return e.fallback;const[r,o,i]=t,a=i.children;return"function"==typeof a&&a.length>0?$f(()=>a(i.keyed?o():()=>{var e;if((null==(e=$f(n)())?void 0:e[0])!==r)throw Sp("Match");return o()})):a},void 0,void 0)}function Tp(e){return e}const Pp=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Rp=new Set(["innerHTML","textContent","innerText","children"]),Ip=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ap=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const Op=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),jp=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","feDropShadow","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"]),Mp={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Lp=e=>Nf(()=>e());const Np="_$DX_DELEGATE";function Dp(e,t,n,r){let o;const i=()=>{const t=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},a=t?()=>$f(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return a.cloneNode=a,a}function Wp(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function $p(e,t){null==t?e.removeAttribute("class"):e.className=t}function zp(e,t={},n,r){const o={};return Mf(()=>o.children=Vp(e,t.children,o.children)),Mf(()=>"function"==typeof t.ref&&Fp(t.ref,e)),Mf(()=>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]=qp(e,a,null,o[a],n,i,t)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=qp(e,a,r,o[a],n,i,t)}}(e,t,n,0,o,!0)),o}function Fp(e,t,n){return $f(()=>e(t,n))}function Up(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Vp(e,t,r,n);Mf(r=>Vp(e,t(),r,n),r)}function Bp(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 qp(e,t,n,r,o,i,a){let s,l,c,u,d;if("style"===t)return function(e,t,n){if(!t)return n?Wp(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]&&(Bp(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&&(Bp(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,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&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=Op.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,"function"!=typeof n&&n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Np]||(t[Np]=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,Hp))}}([o]))}else if("attr:"===t.slice(0,5))Wp(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}(e,t.slice(5),n);else if((d="prop:"===t.slice(0,5))||(c=Rp.has(t))||!o&&((u=function(e,t){const n=Ap[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(l=Pp.has(t)))||(s=e.nodeName.includes("-")||"is"in a))d&&(t=t.slice(5),l=!0),"class"===t||"className"===t?$p(e,n):!s||l||c?e[u||t]=n:e[(f=t,f.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Mp[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):Wp(e,Ip[t]||t,n)}var f;return n}function Hp(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),a=()=>{const r=t[n];if(r&&!t.disabled){const o=t[`${n}Data`];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),e.composedPath){const n=e.composedPath();i(n[0]);for(let e=0;e<n.length-2&&(t=n[e],a());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===o)break}}else s();i(r)}function Vp(e,t,n,r,o){for(;"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("number"===i&&(t=t.toString())===n)return n;if(a){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Qp(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i)n=Qp(e,n,r);else{if("function"===i)return Mf(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Vp(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(Kp(i,t,n,o))return Mf(()=>n=Vp(e,i,n,r,!0)),()=>n;if(0===i.length){if(n=Qp(e,n,r),a)return n}else s?0===n.length?Gp(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&&Qp(e),Gp(e,i));n=i}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=Qp(e,n,r,t);Qp(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Kp(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a,s=t[i],l=n&&n[e.length];if(null==s||!0===s||!1===s);else if("object"==(a=typeof s)&&s.nodeType)e.push(s);else if(Array.isArray(s))o=Kp(e,s,l)||o;else if("function"===a)if(r){for(;"function"==typeof s;)s=s();o=Kp(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||o}else e.push(s),o=!0;else{const t=String(s);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function Gp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Qp(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 Yp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function Zp(e){const{useShadow:t}=e,n=document.createTextNode(""),r=qf();let o;return Lf(()=>{o||(o=Hf(r,()=>Nf(()=>e.children)));const i=e.mount||document.body;if(i instanceof HTMLHeadElement){const[e,t]=Of(!1),n=()=>t(!0);Af(t=>Up(i,()=>e()?t():o(),null)),Uf(n)}else{const r=Yp(e.isSVG?"g":"div",e.isSVG),a=t&&r.attachShadow?r.attachShadow({mode:"open"}):r;Object.defineProperty(r,"_$host",{get:()=>n.parentNode,configurable:!0}),Up(a,o),i.appendChild(r),e.ref&&e.ref(r),Uf(()=>i.removeChild(r))}},void 0,{render:!0}),n}function Xp(e){const[,t]=Cp(e,["component"]);return function(e,t){const n=Nf(e);return Nf(()=>{const e=n();switch(typeof e){case"function":return $f(()=>e(t));case"string":const n=jp.has(e),r=Yp(e,n);return zp(r,t,n),r}})}(()=>e.component,t)}var Jp=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(Jp||{});let eh={data:""},th=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nh=/\/\*[^]*?\*\/| +/g,rh=/\n+/g,oh=(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]?oh(a,i):i+"{"+oh(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=oh(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+=oh.p?oh.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ih={},ah=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ah(e[n]);return t}return e};function sh(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=ah(e),a=ih[i]||(ih[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!ih[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=th.exec(e.replace(nh,""));)t[4]?r.shift():t[3]?(n=t[3].replace(rh," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(rh," ").trim();return r[0]})(e);ih[a]=oh(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&ih.g?ih.g:null;return n&&(ih.g=ih[a]),l=ih[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?"":oh(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||eh),t.g,t.o,t.k);var r}sh.bind({g:1});let lh=sh.bind({k:1});const ch=Yf();function uh(e){return mp(ch.Provider,{value:e.theme,get children(){return e.children}})}function dh(){return Zf(ch)}function fh(e){let t=this||{};return(...n)=>{const r=r=>{const o=xp(r,{theme:Zf(ch)}),i=xp(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,sh.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Cp(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),zp(u,l)):u=Xp(xp({component:c},l)),u};return r.class=e=>$f(()=>sh.apply({target:t.target,p:e,g:t.g},n)),r}}const ph=new Proxy(fh,{get:(e,t)=>e(t)});function hh(){const e=fh.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const gh="tc-root",mh="tc-disable-scroll",yh="tc-using-mouse",bh=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(yh)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(yh)});return mp(hh`
2
2
  ${gh} * {
3
3
  margin: 0;
4
4
  padding: 0;
@@ -37,9 +37,9 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
37
37
  body.${yh} ${gh} *:focus {
38
38
  outline: none;
39
39
  }
40
- `,{})};function vh(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function wh(e){return e.toString()+"px"}class xh{constructor(){this.storage={}}static getInstance(){return xh.instance||(xh.instance=new xh),xh.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}class Ch extends Fc{constructor(...e){super(...e),Object.setPrototypeOf(this,Ch.prototype)}}function Sh(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function kh(...e){try{console.error("[TON_CONNECT_UI]",...e)}catch(t){}}function Eh(e,t="_self"){tg({link:e}),Sh("openLink",e,t),window.open(e,t,"noopener noreferrer")}function _h(e){Eh(e,"_blank")}function Th(e,t){const n=setTimeout(()=>{Mh("safari")||jh("android")&&Mh("firefox")||jh("windows")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),Eh(e,"_self")}function Ph(e){return gf(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Rh(e){"complete"!==document.readyState?window.addEventListener("load",()=>Ph(()=>Rh(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function Ih(){if("undefined"!=typeof window)return window}function Ah(){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 Ch("`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 xh.getInstance()}function Oh(){var e,t,n;const r=(new tc).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function jh(...e){return e.includes(Oh().os)}function Mh(...e){return e.includes(Oh().browser)}function Lh(e,t){return t+new URL(e).search}class Nh{constructor(){this.storageKey="ton-connect-ui_wallet-info",this.localStorage=Ah()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Dh{constructor(){this.storageKey="ton-connect-ui_preferred-wallet",this.localStorage=Ah()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Wh{constructor(){this.storageKey="ton-connect-ui_last-selected-wallet-info",this.localStorage=Ah()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[$h,zh]=Of({status:"closed",closeReason:null}),Fh=Nf(()=>"opened"===$h().status),[Uh,Bh]=Of({status:"closed",closeReason:null}),qh=Nf(()=>"opened"===Uh().status),Hh=Nf(()=>{const e=Uh();return"opened"===e.status?e.walletInfo:null});let Vh="undefined"!=typeof window?new Wh:void 0;const[Kh,Gh]=Of((null==Vh?void 0:Vh.getLastSelectedWalletInfo())||null),Qh=e=>{Vh||(Vh=new Wh),e?Vh.setLastSelectedWalletInfo(e):Vh.removeLastSelectedWalletInfo(),Gh(e)},[Yh,Zh]=Of(null),[Xh,Jh]=Of({walletsMenu:"explicit_wallet",wallets:[]}),[eg,tg]=Of({link:""}),ng={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Скопировать",linkCopied:"Ссылка скопирована",copied:"Скопировано",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."},dataSigned:{header:"Данные подписаны"},signDataCanceled:{header:"Подпись данных отменена"}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите TON кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете другое приложение",openWalletOnTelegram:"Открыть Wallet в Telegram",chooseOtherApplication:"Выберите другое приложение",openLink:"Открыть",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите TON кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",wrongNetwork:"Подключённый кошелёк находится в другой сети. Пожалуйста, переключите сеть в {{ name }} и попробуйте снова",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",wrongNetwork:"Подключённый кошелёк находится в другой сети. Пожалуйста, переключите сеть в {{ name }} и попробуйте снова",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",getWallet:"Скачать {{ name }}",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"},restoreModal:{title:"Восстановление",step1:{title:"Найдите вашу текущую фразу восстановления",text:"Откройте настройки кошелька и найдите фразу восстановления"},step2:{title:"Скопируйте вашу фразу восстановления",text:"Запишите её или сохраните в безопасном месте"},step3:{title:"Восстановите в поддерживаемом кошельке",text:"Введите фразу восстановления для доступа к вашему кошельку"}},allWallets:{walletsBelowNotSupported:"Кошельки ниже не поддерживают все функции подключённого сервиса. Вы можете использовать свою фразу восстановления в одном из поддерживаемых выше кошельков.",walletNotSupportService:"{{ name }} не поддерживает подключённый сервис"},featureNotSupported:{wallet:{title:"{{ name }} не поддерживает запрошенное действие",description:"Установите поддерживаемый кошелёк из списка ниже, восстановите его с помощью фразы восстановления, затем подключитесь и попробуйте снова.",info:"Узнать, как восстановить кошелёк"},version:{description:"Текущая версия {{ name }} или тип контракта кошелька не поддерживает необходимые функции. Обновите кошелёк, чтобы продолжить.",updateButton:"Обновить {{ name }}",aboutW5:"Про W5"},disconnect:{title:"Подтвердите отключение",description:"Вы будете отключены от текущего кошелька и перенаправлены на подключение {{ name }}.",button:"Отключиться"}}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},signData:{header:"Подпишите данные в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}},rg={en:og({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."},dataSigned:{header:"Data signed"},signDataCanceled:{header:"Sign data canceled"}},walletItem:{walletOn:"Wallet in",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your TON wallet",openWalletOnTelegramOrSelect:"Use Wallet in Telegram or choose other application",openWalletOnTelegram:"Connect Wallet in Telegram",chooseOtherApplication:"Choose other application",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your TON wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",wrongNetwork:"Connected wallet is on a different network. Please switch network in {{ name }} and try again",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",continueIn:"Continue in {{ name }}…",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",wrongNetwork:"Connected wallet is on a different network. Please switch network in {{ name }} and try again",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",getWallet:"Get {{ name }}",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Connect Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"},restoreModal:{title:"Restore",step1:{title:"Find your current recovery phrase",text:"Open your wallet settings and locate the recovery phrase"},step2:{title:"Copy your recovery phrase",text:"Write it down or copy it to a safe place"},step3:{title:"Restore in a supported wallet",text:"Enter the recovery phrase to access your wallet"}},allWallets:{walletsBelowNotSupported:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above.",walletNotSupportService:"{{ name }} doesn’t support connected service"},featureNotSupported:{wallet:{title:"{{ name }} doesn’t support the requested action",description:"Install a supported wallet from the list below, restore it with your recovery phrase, then connect it and try again.",info:"Learn how to restore your wallet"},version:{description:"Your current version of {{ name }} or wallet contract type doesn't support the required features. Please update it to continue.",updateButton:"Update {{ name }}",aboutW5:"About W5"},disconnect:{title:"Confirm Disconnect",description:"You will be disconnected from your current wallet and redirected to connect {{ name }}.",button:"Disconnect"}}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},signData:{header:"Sign the data in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}}),ru:og(ng)};function og(e){const t=n=>{Object.entries(n).forEach(([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach(e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]}),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}})};return t(e),e}const ig=Yf(),ag=Symbol("store-raw"),sg=Symbol("store-node"),lg=Symbol("store-has"),cg=Symbol("store-self");function ug(e){let t=e[mf];if(!t&&(Object.defineProperty(e,mf,{value:t=new Proxy(e,mg)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=n.length;o<i;o++){const i=n[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(t)})}}return t}function dg(e){let t;return null!=e&&"object"==typeof e&&(e[mf]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function fg(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[ag])return n;if(!dg(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=fg(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=n.length;s<l;s++)i=n[s],a[i].get||(o=e[i],(r=fg(o,t))!==o&&(e[i]=r))}return e}function pg(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function hg(e,t,n){if(e[t])return e[t];const[r,o]=Of(n,{equals:!1,internal:!0});return r.$=o,e[t]=r}function gg(e){Bf()&&hg(pg(e,sg),cg)()}const mg={get(e,t,n){if(t===ag)return e;if(t===mf)return n;if(t===bf)return gg(e),n;const r=pg(e,sg),o=r[t];let i=o?o():e[t];if(t===sg||t===lg||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!Bf()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=hg(r,t,i)())}return dg(i)?ug(i):i},has:(e,t)=>t===ag||t===mf||t===bf||t===sg||t===lg||"__proto__"===t||(Bf()&&hg(pg(e,lg),t)(),t in e),set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return gg(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==mf&&t!==sg?(delete n.value,delete n.writable,n.get=()=>e[mf][t],n):n}};function yg(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?(delete e[t],e[lg]&&e[lg][t]&&void 0!==o&&e[lg][t].$()):(e[t]=n,e[lg]&&e[lg][t]&&void 0===o&&e[lg][t].$());let a,s=pg(e,sg);if((a=hg(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i){for(let t=e.length;t<i;t++)(a=s[t])&&a.$();(a=hg(s,"length",i))&&a.$(e.length)}(a=s[cg])&&a.$()}function bg(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];yg(e,o,t[o])}}function vg(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)vg(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&vg(e,[o].concat(t),n);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=r;for(let r=o;r<=i;r+=a)vg(e,[r].concat(t),n);return}if(t.length>1)return void vg(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=fg(i),void 0===r||dg(o)&&dg(i)&&!Array.isArray(i)?bg(o,i):yg(e,r,i))}function wg(...[e,t]){const n=fg(e||{}),r=Array.isArray(n);return[ug(n),function(...e){Wf(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=fg(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&yg(e,n,r)}yg(e,"length",r)}else bg(e,t)}(n,e[0]):vg(n,e)})}]}const xg={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Cg(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sg(e){var t,n;return!1!==Cg(e)&&(void 0===(t=e.constructor)||!1!==Cg(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function kg(e,t){if(!e)return t;return Hd(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Sg})}const[Eg,_g]=wg({theme:Jp.LIGHT,colors:xg,borderRadius:"m"}),Tg={[Jp.LIGHT]:xg,[Jp.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Pg={[Jp.LIGHT]:void 0,[Jp.DARK]:void 0};function Rg(e,t){t&&(Pg[Jp.DARK]=kg(t[Jp.DARK],Pg[Jp.DARK]),Pg[Jp.LIGHT]=kg(t[Jp.LIGHT],Pg[Jp.LIGHT])),_g({theme:e,colors:kg(Pg[e],Tg[e])})}const Ig=ph.div`
40
+ `,{})};function vh(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function wh(e){return e.toString()+"px"}class xh{constructor(){this.storage={}}static getInstance(){return xh.instance||(xh.instance=new xh),xh.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}class Ch extends Fc{constructor(...e){super(...e),Object.setPrototypeOf(this,Ch.prototype)}}function Sh(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function kh(...e){try{console.error("[TON_CONNECT_UI]",...e)}catch(t){}}function _h(e,t="_self"){tg({link:e}),Sh("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Eh(e){_h(e,"_blank")}function Th(e,t){const n=setTimeout(()=>{Mh("safari")||jh("android")&&Mh("firefox")||jh("windows")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),_h(e,"_self")}function Ph(e){return gf(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Rh(e){"complete"!==document.readyState?window.addEventListener("load",()=>Ph(()=>Rh(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function Ih(){if("undefined"!=typeof window)return window}function Ah(){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 Ch("`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 xh.getInstance()}function Oh(){var e,t,n;const r=(new tc).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function jh(...e){return e.includes(Oh().os)}function Mh(...e){return e.includes(Oh().browser)}function Lh(e,t){return t+new URL(e).search}class Nh{constructor(){this.storageKey="ton-connect-ui_wallet-info",this.localStorage=Ah()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Dh{constructor(){this.storageKey="ton-connect-ui_preferred-wallet",this.localStorage=Ah()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Wh{constructor(){this.storageKey="ton-connect-ui_last-selected-wallet-info",this.localStorage=Ah()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[$h,zh]=Of({status:"closed",closeReason:null}),Fh=Nf(()=>"opened"===$h().status),[Uh,Bh]=Of({status:"closed",closeReason:null}),qh=Nf(()=>"opened"===Uh().status),Hh=Nf(()=>{const e=Uh();return"opened"===e.status?e.walletInfo:null});let Vh="undefined"!=typeof window?new Wh:void 0;const[Kh,Gh]=Of((null==Vh?void 0:Vh.getLastSelectedWalletInfo())||null),Qh=e=>{Vh||(Vh=new Wh),e?Vh.setLastSelectedWalletInfo(e):Vh.removeLastSelectedWalletInfo(),Gh(e)},[Yh,Zh]=Of(null),[Xh,Jh]=Of({walletsMenu:"explicit_wallet",wallets:[]}),[eg,tg]=Of({link:""}),ng={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Скопировать",linkCopied:"Ссылка скопирована",copied:"Скопировано",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."},dataSigned:{header:"Данные подписаны"},signDataCanceled:{header:"Подпись данных отменена"}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите TON кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете другое приложение",openWalletOnTelegram:"Открыть Wallet в Telegram",chooseOtherApplication:"Выберите другое приложение",openLink:"Открыть",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите TON кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",wrongNetwork:"Подключённый кошелёк находится в другой сети. Пожалуйста, переключите сеть в {{ name }} и попробуйте снова",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",wrongNetwork:"Подключённый кошелёк находится в другой сети. Пожалуйста, переключите сеть в {{ name }} и попробуйте снова",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",getWallet:"Скачать {{ name }}",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"},restoreModal:{title:"Восстановление",step1:{title:"Найдите вашу текущую фразу восстановления",text:"Откройте настройки кошелька и найдите фразу восстановления"},step2:{title:"Скопируйте вашу фразу восстановления",text:"Запишите её или сохраните в безопасном месте"},step3:{title:"Восстановите в поддерживаемом кошельке",text:"Введите фразу восстановления для доступа к вашему кошельку"}},allWallets:{walletsBelowNotSupported:"Кошельки ниже не поддерживают все функции подключённого сервиса. Вы можете использовать свою фразу восстановления в одном из поддерживаемых выше кошельков.",walletNotSupportService:"{{ name }} не поддерживает подключённый сервис"},featureNotSupported:{wallet:{title:"{{ name }} не поддерживает запрошенное действие",description:"Установите поддерживаемый кошелёк из списка ниже, восстановите его с помощью фразы восстановления, затем подключитесь и попробуйте снова.",info:"Узнать, как восстановить кошелёк"},version:{description:"Текущая версия {{ name }} или тип контракта кошелька не поддерживает необходимые функции. Обновите кошелёк, чтобы продолжить.",updateButton:"Обновить {{ name }}",aboutW5:"Про W5"},disconnect:{title:"Подтвердите отключение",description:"Вы будете отключены от текущего кошелька и перенаправлены на подключение {{ name }}.",button:"Отключиться"}}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},signData:{header:"Подпишите данные в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}},rg={en:og({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."},dataSigned:{header:"Data signed"},signDataCanceled:{header:"Sign data canceled"}},walletItem:{walletOn:"Wallet in",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your TON wallet",openWalletOnTelegramOrSelect:"Use Wallet in Telegram or choose other application",openWalletOnTelegram:"Connect Wallet in Telegram",chooseOtherApplication:"Choose other application",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your TON wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",wrongNetwork:"Connected wallet is on a different network. Please switch network in {{ name }} and try again",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",continueIn:"Continue in {{ name }}…",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",wrongNetwork:"Connected wallet is on a different network. Please switch network in {{ name }} and try again",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",getWallet:"Get {{ name }}",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Connect Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"},restoreModal:{title:"Restore",step1:{title:"Find your current recovery phrase",text:"Open your wallet settings and locate the recovery phrase"},step2:{title:"Copy your recovery phrase",text:"Write it down or copy it to a safe place"},step3:{title:"Restore in a supported wallet",text:"Enter the recovery phrase to access your wallet"}},allWallets:{walletsBelowNotSupported:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above.",walletNotSupportService:"{{ name }} doesn’t support connected service"},featureNotSupported:{wallet:{title:"{{ name }} doesn’t support the requested action",description:"Install a supported wallet from the list below, restore it with your recovery phrase, then connect it and try again.",info:"Learn how to restore your wallet"},version:{description:"Your current version of {{ name }} or wallet contract type doesn't support the required features. Please update it to continue.",updateButton:"Update {{ name }}",aboutW5:"About W5"},disconnect:{title:"Confirm Disconnect",description:"You will be disconnected from your current wallet and redirected to connect {{ name }}.",button:"Disconnect"}}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},signData:{header:"Sign the data in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}}),ru:og(ng)};function og(e){const t=n=>{Object.entries(n).forEach(([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach(e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]}),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}})};return t(e),e}const ig=Yf(),ag=Symbol("store-raw"),sg=Symbol("store-node"),lg=Symbol("store-has"),cg=Symbol("store-self");function ug(e){let t=e[mf];if(!t&&(Object.defineProperty(e,mf,{value:t=new Proxy(e,mg)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=n.length;o<i;o++){const i=n[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(t)})}}return t}function dg(e){let t;return null!=e&&"object"==typeof e&&(e[mf]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function fg(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[ag])return n;if(!dg(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=fg(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=n.length;s<l;s++)i=n[s],a[i].get||(o=e[i],(r=fg(o,t))!==o&&(e[i]=r))}return e}function pg(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function hg(e,t,n){if(e[t])return e[t];const[r,o]=Of(n,{equals:!1,internal:!0});return r.$=o,e[t]=r}function gg(e){Bf()&&hg(pg(e,sg),cg)()}const mg={get(e,t,n){if(t===ag)return e;if(t===mf)return n;if(t===bf)return gg(e),n;const r=pg(e,sg),o=r[t];let i=o?o():e[t];if(t===sg||t===lg||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!Bf()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=hg(r,t,i)())}return dg(i)?ug(i):i},has:(e,t)=>t===ag||t===mf||t===bf||t===sg||t===lg||"__proto__"===t||(Bf()&&hg(pg(e,lg),t)(),t in e),set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return gg(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==mf&&t!==sg?(delete n.value,delete n.writable,n.get=()=>e[mf][t],n):n}};function yg(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?(delete e[t],e[lg]&&e[lg][t]&&void 0!==o&&e[lg][t].$()):(e[t]=n,e[lg]&&e[lg][t]&&void 0===o&&e[lg][t].$());let a,s=pg(e,sg);if((a=hg(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i){for(let t=e.length;t<i;t++)(a=s[t])&&a.$();(a=hg(s,"length",i))&&a.$(e.length)}(a=s[cg])&&a.$()}function bg(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];yg(e,o,t[o])}}function vg(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)vg(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&vg(e,[o].concat(t),n);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=r;for(let r=o;r<=i;r+=a)vg(e,[r].concat(t),n);return}if(t.length>1)return void vg(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=fg(i),void 0===r||dg(o)&&dg(i)&&!Array.isArray(i)?bg(o,i):yg(e,r,i))}function wg(...[e,t]){const n=fg(e||{}),r=Array.isArray(n);return[ug(n),function(...e){Wf(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=fg(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&yg(e,n,r)}yg(e,"length",r)}else bg(e,t)}(n,e[0]):vg(n,e)})}]}const xg={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Cg(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sg(e){var t,n;return!1!==Cg(e)&&(void 0===(t=e.constructor)||!1!==Cg(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function kg(e,t){if(!e)return t;return Hd(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Sg})}const[_g,Eg]=wg({theme:Jp.LIGHT,colors:xg,borderRadius:"m"}),Tg={[Jp.LIGHT]:xg,[Jp.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Pg={[Jp.LIGHT]:void 0,[Jp.DARK]:void 0};function Rg(e,t){t&&(Pg[Jp.DARK]=kg(t[Jp.DARK],Pg[Jp.DARK]),Pg[Jp.LIGHT]=kg(t[Jp.LIGHT],Pg[Jp.LIGHT])),Eg({theme:e,colors:kg(Pg[e],Tg[e])})}const Ig=ph.div`
41
41
  background-color: ${e=>e.theme.colors.background.secondary};
42
- `,Ag=e=>{let t;const[n,r]=Of(null);return Lf(()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",()=>r(t)),()=>t.removeEventListener("load",()=>r(t)))}),[mp(Ep,{get when(){return n()},get children(){return n()}}),mp(Ep,{get when(){return!n()},get children(){return mp(Ig,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let Og={};try{Og=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=qg(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=qg(r),e=e.substr(n+1)}let r=Hg(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(yT){}try{const e="ton-connect-session_storage_launchParams";if(Object.entries(Og).length>0)sessionStorage.setItem(e,JSON.stringify(Og));else{const t=sessionStorage.getItem(e);t&&(Og=JSON.parse(t))}}catch(yT){}let jg="unknown";if((null==Og?void 0:Og.tgWebAppPlatform)&&(jg=null!=(Yd=Og.tgWebAppPlatform)?Yd:"unknown"),"unknown"===jg){const e=Ih();jg=null!=(Jd=null==(Xd=null==(Zd=null==e?void 0:e.Telegram)?void 0:Zd.WebApp)?void 0:Xd.platform)?Jd:"unknown"}let Mg="6.0";if((null==Og?void 0:Og.tgWebAppVersion)&&(Mg=Og.tgWebAppVersion),!Mg){const e=Ih();Mg=null!=(nf=null==(tf=null==(ef=null==e?void 0:e.Telegram)?void 0:ef.WebApp)?void 0:tf.version)?nf:"6.0"}const Lg=null==Og?void 0:Og.tgWebAppData;let Ng;try{if(Lg){let e=Hg(Lg).user;if(e){let t=JSON.parse(e);"number"==typeof t.id&&"boolean"==typeof t.is_premium&&(Ng={id:t.id,isPremium:t.is_premium})}}}catch(yT){}function Dg(...e){return e.includes(jg)}function Wg(){var e;return"unknown"!==jg||!!(null==(e=Ih())?void 0:e.TelegramWebviewProxy)}function $g(){var e;const t=!!(null==(e=Ih())?void 0:e.TelegramWebview);return(Wg()||t)&&"unknown"===jg}function zg(){Bg("web_app_expand",{})}function Fg(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Ch(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Ch(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Ug()||function(e,t){"string"!=typeof e&&(e="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(Mg,"6.1")>=0?(tg({link:r,type:"tg_link"}),Bg("web_app_open_tg_link",{path_full:r})):_h("https://t.me"+r)}function Ug(){try{const e=Ih();return!!e&&(null!=e.parent&&e!==e.parent)}catch(yT){return!1}}function Bg(e,t){try{const n=Ih();if(!n)throw new Ch("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Sh("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Sh("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!Ug())throw new Ch("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Sh("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(yT){kh(`Can't post event to parent window: ${yT}`)}}function qg(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(yT){return e}}function Hg(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=qg(r[0]),i=null==r[1]?null:qg(r[1]),t[o]=i;return t}const Vg=440,Kg=1020;function Gg(e){const t=Ih();if(!t)return"desktop"===e;if(Dg("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Kg;case"tablet":return n>Vg;default:return n<=Vg||jh("ios","android","ipad")}}function Qg(e){switch(e){case"mobile":return`@media (max-width: ${Vg}px)`;case"tablet":return`@media (max-width: ${Kg}px) (min-width: ${Vg}px)`;default:return`@media (min-width: ${Kg}px)`}}const Yg="@media (hover: none)",Zg="@media not all and (hover: none)",Xg={m:"100vh",s:"8px",none:"0"},Jg={s:.02,m:.04},em=ph.button`
42
+ `,Ag=e=>{let t;const[n,r]=Of(null);return Lf(()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",()=>r(t)),()=>t.removeEventListener("load",()=>r(t)))}),[mp(_p,{get when(){return n()},get children(){return n()}}),mp(_p,{get when(){return!n()},get children(){return mp(Ig,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let Og={};try{Og=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=qg(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=qg(r),e=e.substr(n+1)}let r=Hg(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(yT){}try{const e="ton-connect-session_storage_launchParams";if(Object.entries(Og).length>0)sessionStorage.setItem(e,JSON.stringify(Og));else{const t=sessionStorage.getItem(e);t&&(Og=JSON.parse(t))}}catch(yT){}let jg="unknown";if((null==Og?void 0:Og.tgWebAppPlatform)&&(jg=null!=(Yd=Og.tgWebAppPlatform)?Yd:"unknown"),"unknown"===jg){const e=Ih();jg=null!=(Jd=null==(Xd=null==(Zd=null==e?void 0:e.Telegram)?void 0:Zd.WebApp)?void 0:Xd.platform)?Jd:"unknown"}let Mg="6.0";if((null==Og?void 0:Og.tgWebAppVersion)&&(Mg=Og.tgWebAppVersion),!Mg){const e=Ih();Mg=null!=(nf=null==(tf=null==(ef=null==e?void 0:e.Telegram)?void 0:ef.WebApp)?void 0:tf.version)?nf:"6.0"}const Lg=null==Og?void 0:Og.tgWebAppData;let Ng;try{if(Lg){let e=Hg(Lg).user;if(e){let t=JSON.parse(e);"number"==typeof t.id&&"boolean"==typeof t.is_premium&&(Ng={id:t.id,isPremium:t.is_premium})}}}catch(yT){}function Dg(...e){return e.includes(jg)}function Wg(){var e;return"unknown"!==jg||!!(null==(e=Ih())?void 0:e.TelegramWebviewProxy)}function $g(){var e;const t=!!(null==(e=Ih())?void 0:e.TelegramWebview);return(Wg()||t)&&"unknown"===jg}function zg(){Bg("web_app_expand",{})}function Fg(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Ch(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Ch(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Ug()||function(e,t){"string"!=typeof e&&(e="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(Mg,"6.1")>=0?(tg({link:r,type:"tg_link"}),Bg("web_app_open_tg_link",{path_full:r})):Eh("https://t.me"+r)}function Ug(){try{const e=Ih();return!!e&&(null!=e.parent&&e!==e.parent)}catch(yT){return!1}}function Bg(e,t){try{const n=Ih();if(!n)throw new Ch("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Sh("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Sh("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!Ug())throw new Ch("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Sh("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(yT){kh(`Can't post event to parent window: ${yT}`)}}function qg(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(yT){return e}}function Hg(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=qg(r[0]),i=null==r[1]?null:qg(r[1]),t[o]=i;return t}const Vg=440,Kg=1020;function Gg(e){const t=Ih();if(!t)return"desktop"===e;if(Dg("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Kg;case"tablet":return n>Vg;default:return n<=Vg||jh("ios","android","ipad")}}function Qg(e){switch(e){case"mobile":return`@media (max-width: ${Vg}px)`;case"tablet":return`@media (max-width: ${Kg}px) (min-width: ${Vg}px)`;default:return`@media (min-width: ${Kg}px)`}}const Yg="@media (hover: none)",Zg="@media not all and (hover: none)",Xg={m:"100vh",s:"8px",none:"0"},Jg={s:.02,m:.04},em=ph.button`
43
43
  display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
44
44
  gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
45
45
  align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
@@ -107,7 +107,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
107
107
  transform: scale(0.92);
108
108
  }
109
109
  }
110
- `,Em=e=>{const t=tm(e),n=()=>e.icon||"close";return mp(km,xp({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[mp(Ep,{get when(){return!!e.children},get children(){return e.children}}),mp(Ep,{get when(){return!e.children},get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return"close"===n()},get children(){return mp(Sm,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"arrow"===n()},get children(){return mp(xm,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"question"===n()},get children(){return mp(Xy,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"string"!=typeof n()},get children(){return n()}})]}})}})]}}))},_m={m:"24px",s:"16px",none:"0"},Tm=ph.div`
110
+ `,_m=e=>{const t=tm(e),n=()=>e.icon||"close";return mp(km,xp({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[mp(_p,{get when(){return!!e.children},get children(){return e.children}}),mp(_p,{get when(){return!e.children},get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return"close"===n()},get children(){return mp(Sm,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"arrow"===n()},get children(){return mp(xm,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"question"===n()},get children(){return mp(Xy,{get fill(){return e.fill}})}}),mp(Tp,{get when(){return"string"!=typeof n()},get children(){return n()}})]}})}})]}}))},Em={m:"24px",s:"16px",none:"0"},Tm=ph.div`
111
111
  display: flex;
112
112
  position: fixed;
113
113
  z-index: 1000;
@@ -143,12 +143,12 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
143
143
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
144
144
 
145
145
  background-color: ${e=>e.theme.colors.background.primary};
146
- border-radius: ${e=>_m[e.theme.borderRadius]};
146
+ border-radius: ${e=>Em[e.theme.borderRadius]};
147
147
 
148
148
  ${Qg("mobile")} {
149
149
  width: 100%;
150
150
  }
151
- `,Im=ph(Em)`
151
+ `,Im=ph(_m)`
152
152
  position: absolute;
153
153
  right: 16px;
154
154
  top: 16px;
@@ -157,17 +157,17 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
157
157
  justify-content: space-between;
158
158
  align-items: center;
159
159
  padding: 16px 16px 16px 18px;
160
- border-radius: 0 0 ${e=>_m[e.theme.borderRadius]}
161
- ${e=>_m[e.theme.borderRadius]};
162
- `,Om=ph(Em)`
160
+ border-radius: 0 0 ${e=>Em[e.theme.borderRadius]}
161
+ ${e=>Em[e.theme.borderRadius]};
162
+ `,Om=ph(_m)`
163
163
  background-color: ${e=>vh(e.theme.colors.icon.secondary,.12)};
164
- `;class jm{constructor(){this.currentTime=0}}const Mm=class e{constructor(){this.currentTime=0,this.playbackRate=1,this.startTime=null,this.timeline=new jm,this.finished=Promise.resolve(this),this.effect=null,this.id="",this.pending=!1,this.playState="finished",this.replaceState="active",this.ready=Promise.resolve(this),this.oncancel=null,this.onfinish=null,this.onremove=null}static create(){return e._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(yT){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),e._instance=new e),e._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};Mm._instance=null;let Lm=Mm;function Nm(e,t,n){return"animate"in e?e.animate(t,n):Lm.create()}var Dm=Dp("<div>");const Wm=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),Uf(()=>document.body.removeEventListener("click",n))},$m=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),Uf(()=>document.body.removeEventListener("keydown",n))},zm=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Oh().os))return;window.history.pushState(bm,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),Uf(()=>{window.removeEventListener("popstate",o),Ph(()=>{var e;!0===(null==(e=window.history.state)?void 0:e[ym])&&window.history.back()})})},Fm=e=>{const t=dh(),n=tm(e);return Lf(()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=wh(-document.documentElement.scrollTop),document.body.classList.add(mh)):document.body.classList.contains(mh)&&(document.body.classList.remove(mh),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")}),mp(gm,{onBeforeEnter:e=>{const t=Gg("mobile")?200:100;Nm(e,[{opacity:0},{opacity:1}],{duration:t}),Gg("mobile")&&Nm(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Gg("mobile")?200:100,r=Nm(e,[{opacity:1},{opacity:0}],{duration:n});if(Gg("mobile")){const o=Nm(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return mp(Ep,{get when(){return e.opened},get children(){return mp(Tm,xp({"data-tc-modal":"true"},n,{get children(){var n=Dm();return Fp(zm,n,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Fp($m,n,()=>()=>e.onClose()),Fp(Wm,n,()=>()=>e.onClose()),Up(n,mp(Rm,{get class(){return e.class},get children(){return[mp(Im,{icon:"close",onClick:()=>e.onClose()}),Lp(()=>e.children)]}}),null),Up(n,mp(Ep,{get when(){return e.onClickQuestion&&e.showFooter},get children(){return mp(Am,{get children(){return[mp(Yy,{}),mp(Om,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Mf(()=>$p(n,Qd(Pm,sh`
165
- border-radius: ${_m[t.borderRadius]};
164
+ `;class jm{constructor(){this.currentTime=0}}const Mm=class e{constructor(){this.currentTime=0,this.playbackRate=1,this.startTime=null,this.timeline=new jm,this.finished=Promise.resolve(this),this.effect=null,this.id="",this.pending=!1,this.playState="finished",this.replaceState="active",this.ready=Promise.resolve(this),this.oncancel=null,this.onfinish=null,this.onremove=null}static create(){return e._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(yT){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),e._instance=new e),e._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};Mm._instance=null;let Lm=Mm;function Nm(e,t,n){return"animate"in e?e.animate(t,n):Lm.create()}var Dm=Dp("<div>");const Wm=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),Uf(()=>document.body.removeEventListener("click",n))},$m=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),Uf(()=>document.body.removeEventListener("keydown",n))},zm=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Oh().os))return;window.history.pushState(bm,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),Uf(()=>{window.removeEventListener("popstate",o),Ph(()=>{var e;!0===(null==(e=window.history.state)?void 0:e[ym])&&window.history.back()})})},Fm=e=>{const t=dh(),n=tm(e);return Lf(()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=wh(-document.documentElement.scrollTop),document.body.classList.add(mh)):document.body.classList.contains(mh)&&(document.body.classList.remove(mh),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")}),mp(gm,{onBeforeEnter:e=>{const t=Gg("mobile")?200:100;Nm(e,[{opacity:0},{opacity:1}],{duration:t}),Gg("mobile")&&Nm(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Gg("mobile")?200:100,r=Nm(e,[{opacity:1},{opacity:0}],{duration:n});if(Gg("mobile")){const o=Nm(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return mp(_p,{get when(){return e.opened},get children(){return mp(Tm,xp({"data-tc-modal":"true"},n,{get children(){var n=Dm();return Fp(zm,n,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Fp($m,n,()=>()=>e.onClose()),Fp(Wm,n,()=>()=>e.onClose()),Up(n,mp(Rm,{get class(){return e.class},get children(){return[mp(Im,{icon:"close",onClick:()=>e.onClose()}),Lp(()=>e.children)]}}),null),Up(n,mp(_p,{get when(){return e.onClickQuestion&&e.showFooter},get children(){return mp(Am,{get children(){return[mp(Yy,{}),mp(Om,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Mf(()=>$p(n,Qd(Pm,sh`
165
+ border-radius: ${Em[t.borderRadius]};
166
166
  background-color: ${t.colors.background.tint};
167
167
 
168
168
  ${Qg("mobile")} {
169
- border-radius: ${_m[t.borderRadius]}
170
- ${_m[t.borderRadius]} 0 0;
169
+ border-radius: ${Em[t.borderRadius]}
170
+ ${Em[t.borderRadius]} 0 0;
171
171
  }
172
172
  `))),n}}))}})}})},Um={m:"22px",s:"12px",none:"0"},Bm={m:"18px",s:"8px",none:"0"},qm=ph.div`
173
173
  display: grid;
@@ -309,7 +309,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
309
309
 
310
310
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
311
311
  background-color: ${e=>e.theme.colors.background.segment};
312
- `;function ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ry,oy={exports:{}};var iy=(ry||(ry=1,function(e){var t=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,a=null,s=[],l={},c=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),p(),f(),g(e,t),n>=7&&h(e),null==a&&(a=y(n,r,s)),m(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},p=function(){for(var e=v.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},h=function(e){for(var t=v.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),o[r%3+i-8-3][Math.floor(r/3)]=a},g=function(e,t){for(var n=r<<3|t,a=v.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(a>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[i-15+s][8]=l}for(s=0;s<15;s+=1)l=!e&&1==(a>>s&1),s<8?o[8][i-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l;o[i-8][8]=!e},m=function(e,t){for(var n=-1,r=i-1,a=7,s=0,l=v.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>a&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},y=function(e,t,n){for(var r=C.getRSBlocks(e,t),o=S(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=v.getErrorCorrectPolynomial(c),f=x(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var p=u+f.getLength()-a[s].length;a[s][u]=p>=0?f.getAt(p):0}}var h=0;for(u=0;u<t.length;u+=1)h+=t[u].totalCount;var g=new Array(h),m=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(g[m]=i[s][u],m+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(g[m]=a[s][u],m+=1);return g}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=k(e);break;case"Alphanumeric":n=E(e);break;case"Byte":n=_(e);break;case"Kanji":n=T(e);break;default:throw"mode:"+t}s.push(n),a=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=C.getRSBlocks(e,r),o=S(),i=0;i<s.length;i++){var a=s[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=v.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+b([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+b(r.id)+'">'+b(r.text)+"</title>":"",d+=n.text?'<description id="'+b(n.id)+'">'+b(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<l.getModuleCount();a+=1)for(s=a*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return I(n,n,function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return l.isDark(a,i)?0:1}return 1})},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=b(n),o+='"'),o+="/>"};var b=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="█",s<=n&&n<c&&s<=t&&t<c&&l.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<c&&s<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="█",f+=e<1&&t+1>=c?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),p="",r=0;r<a;r+=1)i=1,s<=r&&r<c&&s<=n&&n<c&&l.isDark(o,Math.floor((r-s)/e))&&(i=0),p+=i?u:d;for(o=0;o<e;o+=1)f+=p+"\n"}return f.substring(0,f.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=R(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o,i,a=1,s=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,f=1,p=2,h=3,g=4,m=5,y=6,b=7,v=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case f:return function(e,t){return e%2==0};case p:return function(e,t){return t%3==0};case h:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case m:return function(e,t){return e*t%2+e*t%3==0};case y:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=x([1],0),n=0;n<e;n+=1)t=t.multiply(x([1,w.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case a:return 10;case s:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case a:return 12;case s:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case a:return 14;case s:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=Math.abs(100*u/t/t-50)/5*10},o),w=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function x(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=w.gexp(w.glog(r.getAt(n))+w.glog(e.getAt(o)));return x(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=w.glog(r.getAt(0))-w.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=w.gexp(w.glog(e.getAt(o))+t);return x(n,0).mod(e)}};return r}var C=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,r){var o=function(t,n){switch(n){case u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,a=[],s=0;s<i;s+=1)for(var l=o[3*s+0],c=o[3*s+1],d=o[3*s+2],f=0;f<l;f+=1)a.push(t(c,d));return a}};return n}(),S=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},k=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},E=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},_=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},T=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return i},P=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},R=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},I=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=P(),f=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});f.write(t,r);var p=0,h=String.fromCharCode(o[p]);for(p+=1;p<o.length;){var g=String.fromCharCode(o[p]);p+=1,i.contains(h+g)?h+=g:(f.write(i.indexOf(h),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(h+g)),h=g)}return f.write(i.indexOf(h),r),f.write(n,r),f.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=P();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(oy)),oy.exports);const ay=ny(iy);function sy(e){return gf(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Ch("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(yT){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)})}var ly=Dp("<div>");const cy=e=>{let t,n,r;const[o,i]=Of(!1),[a,s]=Of(48);Lf(()=>{const o=ay(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=wh(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=wh(e),r.style.width=wh(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return mp(Zm,{get class(){return e.class},onClick:()=>{i(!0),sy(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[mp(Xm,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(n=ly(),"function"==typeof t?Fp(t,n):t=n,n),mp(Ep,{get when(){return e.imageUrl},get children(){return mp(Jm,{ref(e){"function"==typeof r?r(e):r=e},get children(){return mp(ey,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})];var n}}),mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return mp(Ep,{get when(){return o()&&!e.disableCopy},get children(){return mp(ty,{get children(){return[mp(zy,{size:"xs"}),mp(gy,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),mp(Ep,{get when(){return!e.disableCopy},get children(){return mp(Ym,{get children(){return mp(wb,{})}})}})]}})};var uy=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},dy=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Of(t),[o,i]=wg(e);return[(e,t,r)=>{const i=uy(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>uy(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>uy(o,e)}]},fy=Yf({}),py=()=>Zf(fy);const hy=ph.div`
312
+ `;function ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ry,oy={exports:{}};var iy=(ry||(ry=1,function(e){var t=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,a=null,s=[],l={},c=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),p(),f(),g(e,t),n>=7&&h(e),null==a&&(a=y(n,r,s)),m(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},p=function(){for(var e=v.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},h=function(e){for(var t=v.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),o[r%3+i-8-3][Math.floor(r/3)]=a},g=function(e,t){for(var n=r<<3|t,a=v.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(a>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[i-15+s][8]=l}for(s=0;s<15;s+=1)l=!e&&1==(a>>s&1),s<8?o[8][i-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l;o[i-8][8]=!e},m=function(e,t){for(var n=-1,r=i-1,a=7,s=0,l=v.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>a&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},y=function(e,t,n){for(var r=C.getRSBlocks(e,t),o=S(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=v.getErrorCorrectPolynomial(c),f=x(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var p=u+f.getLength()-a[s].length;a[s][u]=p>=0?f.getAt(p):0}}var h=0;for(u=0;u<t.length;u+=1)h+=t[u].totalCount;var g=new Array(h),m=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(g[m]=i[s][u],m+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(g[m]=a[s][u],m+=1);return g}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=k(e);break;case"Alphanumeric":n=_(e);break;case"Byte":n=E(e);break;case"Kanji":n=T(e);break;default:throw"mode:"+t}s.push(n),a=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=C.getRSBlocks(e,r),o=S(),i=0;i<s.length;i++){var a=s[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=v.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+b([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+b(r.id)+'">'+b(r.text)+"</title>":"",d+=n.text?'<description id="'+b(n.id)+'">'+b(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<l.getModuleCount();a+=1)for(s=a*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return I(n,n,function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return l.isDark(a,i)?0:1}return 1})},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=b(n),o+='"'),o+="/>"};var b=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="█",s<=n&&n<c&&s<=t&&t<c&&l.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<c&&s<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="█",f+=e<1&&t+1>=c?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),p="",r=0;r<a;r+=1)i=1,s<=r&&r<c&&s<=n&&n<c&&l.isDark(o,Math.floor((r-s)/e))&&(i=0),p+=i?u:d;for(o=0;o<e;o+=1)f+=p+"\n"}return f.substring(0,f.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=R(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o,i,a=1,s=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,f=1,p=2,h=3,g=4,m=5,y=6,b=7,v=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case f:return function(e,t){return e%2==0};case p:return function(e,t){return t%3==0};case h:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case m:return function(e,t){return e*t%2+e*t%3==0};case y:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=x([1],0),n=0;n<e;n+=1)t=t.multiply(x([1,w.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case a:return 10;case s:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case a:return 12;case s:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case a:return 14;case s:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=Math.abs(100*u/t/t-50)/5*10},o),w=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function x(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=w.gexp(w.glog(r.getAt(n))+w.glog(e.getAt(o)));return x(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=w.glog(r.getAt(0))-w.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=w.gexp(w.glog(e.getAt(o))+t);return x(n,0).mod(e)}};return r}var C=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,r){var o=function(t,n){switch(n){case u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,a=[],s=0;s<i;s+=1)for(var l=o[3*s+0],c=o[3*s+1],d=o[3*s+2],f=0;f<l;f+=1)a.push(t(c,d));return a}};return n}(),S=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},k=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},_=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},E=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},T=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return i},P=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},R=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},I=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=P(),f=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});f.write(t,r);var p=0,h=String.fromCharCode(o[p]);for(p+=1;p<o.length;){var g=String.fromCharCode(o[p]);p+=1,i.contains(h+g)?h+=g:(f.write(i.indexOf(h),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(h+g)),h=g)}return f.write(i.indexOf(h),r),f.write(n,r),f.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=P();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(oy)),oy.exports);const ay=ny(iy);function sy(e){return gf(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Ch("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(yT){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)})}var ly=Dp("<div>");const cy=e=>{let t,n,r;const[o,i]=Of(!1),[a,s]=Of(48);Lf(()=>{const o=ay(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=wh(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=wh(e),r.style.width=wh(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return mp(Zm,{get class(){return e.class},onClick:()=>{i(!0),sy(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[mp(Xm,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(n=ly(),"function"==typeof t?Fp(t,n):t=n,n),mp(_p,{get when(){return e.imageUrl},get children(){return mp(Jm,{ref(e){"function"==typeof r?r(e):r=e},get children(){return mp(ey,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})];var n}}),mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return mp(_p,{get when(){return o()&&!e.disableCopy},get children(){return mp(ty,{get children(){return[mp(zy,{size:"xs"}),mp(gy,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),mp(_p,{get when(){return!e.disableCopy},get children(){return mp(Ym,{get children(){return mp(wb,{})}})}})]}})};var uy=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},dy=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Of(t),[o,i]=wg(e);return[(e,t,r)=>{const i=uy(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>uy(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>uy(o,e)}]},fy=Yf({}),py=()=>Zf(fy);const hy=ph.div`
313
313
  font-style: normal;
314
314
  font-weight: ${e=>e.fontWeight};
315
315
  font-size: ${e=>e.fontSize};
@@ -402,7 +402,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
402
402
  height: 24px;
403
403
  border-radius: ${e=>wy[e.theme.borderRadius]};
404
404
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
405
- `,Ey=ph(gy)`
405
+ `,_y=ph(gy)`
406
406
  max-width: 90px;
407
407
  font-weight: 510;
408
408
  white-space: nowrap;
@@ -412,7 +412,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
412
412
  ${Qg("mobile")} {
413
413
  max-width: 80px;
414
414
  }
415
- `,_y=ph(gy)`
415
+ `,Ey=ph(gy)`
416
416
  font-weight: ${e=>e.colorPrimary?"510":"400"};
417
417
  max-width: 90px;
418
418
  white-space: nowrap;
@@ -423,7 +423,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
423
423
  ${Qg("mobile")} {
424
424
  max-width: 80px;
425
425
  }
426
- `;var Ty=Dp("<div>");const Py=e=>{let t=null;const n=()=>{const e=null==t?void 0:t.querySelector("div");if(e&&e.scrollWidth>e.clientWidth){let t=0;const n=-.4,r=.05;for(;e.scrollWidth>e.clientWidth&&t>=n;)t-=r,e.style.letterSpacing=`${t}px`;0!==t&&(t-=r,e.style.letterSpacing=`${t}px`)}};return Ff(()=>n()),Lf(()=>{n()}),mp(Cy,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[Lp(()=>Lp(()=>"string"==typeof e.icon)()?mp(Sy,{get src(){return e.icon},get badge(){return Lp(()=>!!e.badgeUrl)()&&mp(ky,{get src(){return e.badgeUrl}})}}):e.icon),(n=Ty(),Fp(e=>t=e,n),Up(n,mp(Ey,{get children(){return e.name}})),n),Lp(()=>Lp(()=>!!e.secondLine)()&&mp(_y,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}}))];var n}})},Ry=ph.h1`
426
+ `;var Ty=Dp("<div>");const Py=e=>{let t=null;const n=()=>{const e=null==t?void 0:t.querySelector("div");if(e&&e.scrollWidth>e.clientWidth){let t=0;const n=-.4,r=.05;for(;e.scrollWidth>e.clientWidth&&t>=n;)t-=r,e.style.letterSpacing=`${t}px`;0!==t&&(t-=r,e.style.letterSpacing=`${t}px`)}};return Ff(()=>n()),Lf(()=>{n()}),mp(Cy,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[Lp(()=>Lp(()=>"string"==typeof e.icon)()?mp(Sy,{get src(){return e.icon},get badge(){return Lp(()=>!!e.badgeUrl)()&&mp(ky,{get src(){return e.badgeUrl}})}}):e.icon),(n=Ty(),Fp(e=>t=e,n),Up(n,mp(_y,{get children(){return e.name}})),n),Lp(()=>Lp(()=>!!e.secondLine)()&&mp(Ey,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}}))];var n}})},Ry=ph.h1`
427
427
  font-style: normal;
428
428
  font-weight: 590;
429
429
  font-size: 20px;
@@ -472,7 +472,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
472
472
  transform: rotate(360deg);
473
473
  }
474
474
  `} 1s linear infinite;
475
- `;return Lp(()=>{return Lp(()=>"xs"===n())()?(l=Hy(),c=l.firstChild,Mf(t=>{var n=Qd(o,e.class),i=r();return n!==t.e&&Wp(l,"class",t.e=n),i!==t.t&&Wp(c,"fill",t.t=i),t},{e:void 0,t:void 0}),l):Lp(()=>"s"===n())()?(a=Vy(),s=a.firstChild,Mf(t=>{var n=Qd(o,e.class),i=r();return n!==t.e&&Wp(a,"class",t.e=n),i!==t.t&&Wp(s,"fill",t.t=i),t},{e:void 0,t:void 0}),a):(t=Ky(),i=t.firstChild,Mf(n=>{var a=Qd(o,e.class),s=r();return a!==n.e&&Wp(t,"class",n.e=a),s!==n.t&&Wp(i,"stroke",n.t=s),n},{e:void 0,t:void 0}),t);var t,i,a,s,l,c})};var Qy=Dp('<svg width=158 height=28 viewBox="0 0 158 28"fill=none xmlns=http://www.w3.org/2000/svg><path fill-rule=evenodd clip-rule=evenodd d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z"fill=#0098EA></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z"fill=white></path><path fill-rule=evenodd clip-rule=evenodd d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z">');const Yy=()=>{const e=dh();return t=Qy(),n=t.firstChild.nextSibling.nextSibling,Mf(()=>Wp(n,"fill",e.theme===Jp.DARK?e.colors.constant.white:e.colors.constant.black)),t;var t,n};var Zy=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z">');const Xy=e=>{const t=dh();return n=Zy(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.secondary)),n;var n,r};var Jy=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z">');const eb=e=>{const t=dh();return n=Jy(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var tb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z">');const nb=e=>{const t=dh();return n=tb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var rb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z">');const ob=e=>{const t=dh();return n=rb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var ib=Dp('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox="0 0 17 16"fill=none><g clip-path=url(#clip0_3676_1603)><path fill-rule=evenodd clip-rule=evenodd d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id=clip0_3676_1603><rect width=16 height=16 fill=white transform="translate(0.5 0.000488281)">');const ab=e=>{const t=dh();return n=ib(),r=n.firstChild.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var sb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z">');const lb=e=>{const t=dh();return n=sb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var cb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox="0 0 17 16"fill=none><g clip-path=url(#clip0_3676_1274)><path fill-rule=evenodd clip-rule=evenodd d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id=clip0_3676_1274><rect width=16 height=16 fill=white transform="translate(0.5 0.000976562)">');const ub=e=>{const t=dh();return n=cb(),r=n.firstChild.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var db=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z">');const fb=e=>{const t=dh();return n=db(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var pb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z">');const hb=e=>{const t=dh();return n=pb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var gb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z">');const mb=e=>{const t=dh();return n=gb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var yb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z">');const bb=e=>{const t=dh();return n=yb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.constant.white;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var vb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"><path fill-rule=evenodd clip-rule=evenodd d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z">');const wb=e=>{const t=dh(),n=()=>e.fill||t.colors.icon.secondary;return r=vb(),o=r.firstChild,Mf(e=>{var t=n(),i=n();return t!==e.e&&Wp(r,"fill",e.e=t),i!==e.t&&Wp(o,"fill",e.t=i),e},{e:void 0,t:void 0}),r;var r,o};var xb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=17 viewBox="0 0 16 17"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z">');const Cb=e=>{const t=dh();return n=xb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.secondary)),n;var n,r},Sb={m:"16px",s:"12px",none:"0"},kb={m:"6px",s:"6px",none:"0"},Eb=ph.div`
475
+ `;return Lp(()=>{return Lp(()=>"xs"===n())()?(l=Hy(),c=l.firstChild,Mf(t=>{var n=Qd(o,e.class),i=r();return n!==t.e&&Wp(l,"class",t.e=n),i!==t.t&&Wp(c,"fill",t.t=i),t},{e:void 0,t:void 0}),l):Lp(()=>"s"===n())()?(a=Vy(),s=a.firstChild,Mf(t=>{var n=Qd(o,e.class),i=r();return n!==t.e&&Wp(a,"class",t.e=n),i!==t.t&&Wp(s,"fill",t.t=i),t},{e:void 0,t:void 0}),a):(t=Ky(),i=t.firstChild,Mf(n=>{var a=Qd(o,e.class),s=r();return a!==n.e&&Wp(t,"class",n.e=a),s!==n.t&&Wp(i,"stroke",n.t=s),n},{e:void 0,t:void 0}),t);var t,i,a,s,l,c})};var Qy=Dp('<svg width=158 height=28 viewBox="0 0 158 28"fill=none xmlns=http://www.w3.org/2000/svg><path fill-rule=evenodd clip-rule=evenodd d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z"fill=#0098EA></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z"fill=white></path><path fill-rule=evenodd clip-rule=evenodd d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z">');const Yy=()=>{const e=dh();return t=Qy(),n=t.firstChild.nextSibling.nextSibling,Mf(()=>Wp(n,"fill",e.theme===Jp.DARK?e.colors.constant.white:e.colors.constant.black)),t;var t,n};var Zy=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z">');const Xy=e=>{const t=dh();return n=Zy(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.secondary)),n;var n,r};var Jy=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z">');const eb=e=>{const t=dh();return n=Jy(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var tb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z">');const nb=e=>{const t=dh();return n=tb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var rb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z">');const ob=e=>{const t=dh();return n=rb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.primary)),n;var n,r};var ib=Dp('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox="0 0 17 16"fill=none><g clip-path=url(#clip0_3676_1603)><path fill-rule=evenodd clip-rule=evenodd d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id=clip0_3676_1603><rect width=16 height=16 fill=white transform="translate(0.5 0.000488281)">');const ab=e=>{const t=dh();return n=ib(),r=n.firstChild.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var sb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 viewBox="0 0 16 16"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z">');const lb=e=>{const t=dh();return n=sb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var cb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=17 height=16 viewBox="0 0 17 16"fill=none><g clip-path=url(#clip0_3676_1274)><path fill-rule=evenodd clip-rule=evenodd d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id=clip0_3676_1274><rect width=16 height=16 fill=white transform="translate(0.5 0.000976562)">');const ub=e=>{const t=dh();return n=cb(),r=n.firstChild.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.accent)),n;var n,r};var db=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z">');const fb=e=>{const t=dh();return n=db(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var pb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z">');const hb=e=>{const t=dh();return n=pb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var gb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z">');const mb=e=>{const t=dh();return n=gb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var yb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z">');const bb=e=>{const t=dh();return n=yb(),r=n.firstChild,Mf(o=>{var i=e.class,a=e.fill||t.colors.constant.white;return i!==o.e&&Wp(n,"class",o.e=i),a!==o.t&&Wp(r,"fill",o.t=a),o},{e:void 0,t:void 0}),n;var n,r};var vb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"><path fill-rule=evenodd clip-rule=evenodd d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z">');const wb=e=>{const t=dh(),n=()=>e.fill||t.colors.icon.secondary;return r=vb(),o=r.firstChild,Mf(e=>{var t=n(),i=n();return t!==e.e&&Wp(r,"fill",e.e=t),i!==e.t&&Wp(o,"fill",e.t=i),e},{e:void 0,t:void 0}),r;var r,o};var xb=Dp('<svg xmlns=http://www.w3.org/2000/svg width=16 height=17 viewBox="0 0 16 17"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z">');const Cb=e=>{const t=dh();return n=xb(),r=n.firstChild,Mf(()=>Wp(r,"fill",e.fill||t.colors.icon.secondary)),n;var n,r},Sb={m:"16px",s:"12px",none:"0"},kb={m:"6px",s:"6px",none:"0"},_b=ph.div`
476
476
  width: 60px;
477
477
  height: 60px;
478
478
  padding: 8px;
@@ -482,11 +482,11 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
482
482
  display: grid;
483
483
  grid-template: 1fr 1fr / 1fr 1fr;
484
484
  gap: 4px;
485
- `,_b=ph(by)`
485
+ `,Eb=ph(by)`
486
486
  width: 20px;
487
487
  height: 20px;
488
488
  border-radius: ${e=>kb[e.theme.borderRadius]};
489
- `,Tb=e=>mp(Py,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return mp(Eb,{get children(){return mp(kp,{each:[0,1,2,3],children:t=>mp(_b,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),Pb="telegram-wallet",Rb="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",Ib="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",Ab="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/walletconnect-icon-288.png";const Ob=e=>{const[t]=py();return Lp(()=>Lp(()=>e.wallet.appName===Pb)()?mp(Py,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet in")},secondLine:"Telegram",get badgeUrl(){return Ib},onClick:()=>e.onClick(),get class(){return e.class}}):mp(Py,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{var n;if(e.wallet.appName!==Pb)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):"type"in(n=e.wallet)&&"wallet-connect"===n.type||!Wu(e.wallet)?void 0:t("walletItem.installed",{},"Installed")})()},secondLineColorPrimary:!1,onClick:()=>e.onClick(),get class(){return e.class}}))},jb=ph.div`
489
+ `,Tb=e=>mp(Py,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return mp(_b,{get children(){return mp(kp,{each:[0,1,2,3],children:t=>mp(Eb,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),Pb="telegram-wallet",Rb="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",Ib="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",Ab="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/walletconnect-icon-288.png";const Ob=e=>{const[t]=py();return Lp(()=>Lp(()=>e.wallet.appName===Pb)()?mp(Py,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet in")},secondLine:"Telegram",get badgeUrl(){return Ib},onClick:()=>e.onClick(),get class(){return e.class}}):mp(Py,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{var n;if(e.wallet.appName!==Pb)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):"type"in(n=e.wallet)&&"wallet-connect"===n.type||!Wu(e.wallet)?void 0:t("walletItem.installed",{},"Installed")})()},secondLineColorPrimary:!1,onClick:()=>e.onClick(),get class(){return e.class}}))},jb=ph.div`
490
490
  width: 100%;
491
491
  overflow-y: auto;
492
492
  max-height: ${e=>e.maxHeight};
@@ -571,7 +571,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
571
571
  `,ov=ph(gy)`
572
572
  margin-top: 4px;
573
573
  color: ${e=>e.theme.colors.text.secondary};
574
- `,iv=e=>{const t=tm(e);return mp(nv,xp({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[mp(rv,{get children(){return[mp(My,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),mp(Ep,{get when(){return e.text},get children(){return mp(ov,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Lp(()=>e.icon)]}}))},av=ph(Gy)`
574
+ `,iv=e=>{const t=tm(e);return mp(nv,xp({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[mp(rv,{get children(){return[mp(My,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),mp(_p,{get when(){return e.text},get children(){return mp(ov,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Lp(()=>e.icon)]}}))},av=ph(Gy)`
575
575
  align-self: center;
576
576
  `,sv=e=>{const t=Zf(Bb),[n]=py();return mp(iv,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return mp(av,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},lv=ph(qy)`
577
577
  margin-top: 2px;
@@ -616,15 +616,15 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
616
616
  display: flex;
617
617
  flex-direction: column;
618
618
  align-items: flex-end;
619
- `,Ev=ph(e=>{const t=Zf(Bb),[n,r]=Of(!1);return mp(Yb,{ref(t){var n=e.ref;"function"==typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return mp(Zb,{get children(){return[(i=Jb(),Up(i,mp(Xb,{onClick:()=>gf(null,null,function*(){const e=dd(t.account.address,t.account.chain===jc.TESTNET);yield sy(e),r(!0),setTimeout(()=>r(!1),1e3)}),get children(){return[mp(Hb,{}),mp(Ep,{get when(){return!n()},get children(){return mp(ev,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),mp(Ep,{get when(){return n()},get children(){return mp(ev,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),i),(o=Jb(),Up(o,mp(Xb,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[mp(Kb,{}),mp(ev,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),o)];var o,i}})}})})`
619
+ `,_v=ph(e=>{const t=Zf(Bb),[n,r]=Of(!1);return mp(Yb,{ref(t){var n=e.ref;"function"==typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return mp(Zb,{get children(){return[(i=Jb(),Up(i,mp(Xb,{onClick:()=>gf(null,null,function*(){const e=dd(t.account.address,t.account.chain===jc.TESTNET);yield sy(e),r(!0),setTimeout(()=>r(!1),1e3)}),get children(){return[mp(Hb,{}),mp(_p,{get when(){return!n()},get children(){return mp(ev,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),mp(_p,{get when(){return n()},get children(){return mp(ev,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),i),(o=Jb(),Up(o,mp(Xb,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[mp(Kb,{}),mp(ev,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),o)];var o,i}})}})})`
620
620
  box-sizing: border-box;
621
621
  overflow: hidden;
622
622
  margin-top: 12px;
623
- `,_v=ph(e=>{const t=function(e){const{timeout:t}=ff(ff({},pv),e),[n,r]=Of([]),[o,i]=Of([]);return Lf(zf(Yh,e=>{var n,o;if(!e||!e.showNotification)return void r(e=>e.filter(e=>"confirm-transaction"!==e.action));if(hv()===e)return;const a="confirm-transaction"===(null==(n=hv())?void 0:n.name)&&"confirm-transaction"===e.name,s="confirm-sign-data"===(null==(o=hv())?void 0:o.name)&&"confirm-sign-data"===e.name;if(a||s)return;gv(e),r(e=>e.filter(e=>"confirm-transaction"!==e.action&&"confirm-sign-data"!==e.action));const l={action:e.name};r(e=>[...e,l]);const c=setTimeout(()=>{r(e=>e.filter(e=>e!==l)),i(e=>e.filter(e=>e!==c))},t);i(e=>[...e,c])})),Uf(()=>{o().forEach(e=>clearTimeout(e))}),n}();return Up(n=vv(),mp(mm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return mp(kp,{get each(){return t()},children:e=>mp(_p,{get children(){return[mp(Tp,{get when(){return"transaction-sent"===e.action},get children(){return mp(dv,{class:fv})}}),mp(Tp,{get when(){return"transaction-canceled"===e.action},get children(){return mp(cv,{class:fv})}}),mp(Tp,{get when(){return"data-signed"===e.action},get children(){return mp(bv,{class:fv})}}),mp(Tp,{get when(){return"sign-data-canceled"===e.action},get children(){return mp(yv,{class:fv})}}),mp(Tp,{get when(){return"confirm-transaction"===e.action||"confirm-sign-data"===e.action},get children(){return mp(sv,{class:fv})}})]}})})}})),Mf(()=>$p(n,e.class)),n;var n})`
623
+ `,Ev=ph(e=>{const t=function(e){const{timeout:t}=ff(ff({},pv),e),[n,r]=Of([]),[o,i]=Of([]);return Lf(zf(Yh,e=>{var n,o;if(!e||!e.showNotification)return void r(e=>e.filter(e=>"confirm-transaction"!==e.action));if(hv()===e)return;const a="confirm-transaction"===(null==(n=hv())?void 0:n.name)&&"confirm-transaction"===e.name,s="confirm-sign-data"===(null==(o=hv())?void 0:o.name)&&"confirm-sign-data"===e.name;if(a||s)return;gv(e),r(e=>e.filter(e=>"confirm-transaction"!==e.action&&"confirm-sign-data"!==e.action));const l={action:e.name};r(e=>[...e,l]);const c=setTimeout(()=>{r(e=>e.filter(e=>e!==l)),i(e=>e.filter(e=>e!==c))},t);i(e=>[...e,c])})),Uf(()=>{o().forEach(e=>clearTimeout(e))}),n}();return Up(n=vv(),mp(mm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return mp(kp,{get each(){return t()},children:e=>mp(Ep,{get children(){return[mp(Tp,{get when(){return"transaction-sent"===e.action},get children(){return mp(dv,{class:fv})}}),mp(Tp,{get when(){return"transaction-canceled"===e.action},get children(){return mp(cv,{class:fv})}}),mp(Tp,{get when(){return"data-signed"===e.action},get children(){return mp(bv,{class:fv})}}),mp(Tp,{get when(){return"sign-data-canceled"===e.action},get children(){return mp(yv,{class:fv})}}),mp(Tp,{get when(){return"confirm-transaction"===e.action||"confirm-sign-data"===e.action},get children(){return mp(sv,{class:fv})}})]}})})}})),Mf(()=>$p(n,e.class)),n;var n})`
624
624
  > div:first-child {
625
625
  margin-top: 20px;
626
626
  }
627
- `,Tv=Math.min,Pv=Math.max,Rv=Math.round,Iv=Math.floor,Av=e=>({x:e,y:e}),Ov={left:"right",right:"left",bottom:"top",top:"bottom"},jv={start:"end",end:"start"};function Mv(e,t,n){return Pv(e,Tv(t,n))}function Lv(e,t){return"function"==typeof e?e(t):e}function Nv(e){return e.split("-")[0]}function Dv(e){return e.split("-")[1]}function Wv(e){return"x"===e?"y":"x"}function $v(e){return"y"===e?"height":"width"}const zv=new Set(["top","bottom"]);function Fv(e){return zv.has(Nv(e))?"y":"x"}function Uv(e){return Wv(Fv(e))}function Bv(e){return e.replace(/start|end/g,e=>jv[e])}const qv=["left","right"],Hv=["right","left"],Vv=["top","bottom"],Kv=["bottom","top"];function Gv(e,t,n,r){const o=Dv(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Hv:qv:t?qv:Hv;case"left":case"right":return t?Vv:Kv;default:return[]}}(Nv(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Bv)))),i}function Qv(e){return e.replace(/left|right|bottom|top/g,e=>Ov[e])}function Yv(e){return"number"!=typeof e?function(e){return ff({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Zv(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xv(e,t,n){let{reference:r,floating:o}=e;const i=Fv(t),a=Uv(t),s=$v(a),l=Nv(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Dv(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}function Jv(e,t){return gf(this,null,function*(){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Lv(t,e),h=Yv(p),g=s[f?"floating"===d?"reference":"floating":d],m=Zv(yield i.getClippingRect({element:null==(n=yield null==i.isElement?void 0:i.isElement(g))||n?g:g.contextElement||(yield null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=yield null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating),v=(yield null==i.isElement?void 0:i.isElement(b))&&(yield null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Zv(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-w.top+h.top)/v.y,bottom:(w.bottom-m.bottom+h.bottom)/v.y,left:(m.left-w.left+h.left)/v.x,right:(w.right-m.right+h.right)/v.x}})}function ew(){return"undefined"!=typeof window}function tw(e){return ow(e)?(e.nodeName||"").toLowerCase():"#document"}function nw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rw(e){var t;return null==(t=(ow(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ow(e){return!!ew()&&(e instanceof Node||e instanceof nw(e).Node)}function iw(e){return!!ew()&&(e instanceof Element||e instanceof nw(e).Element)}function aw(e){return!!ew()&&(e instanceof HTMLElement||e instanceof nw(e).HTMLElement)}function sw(e){return!(!ew()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof nw(e).ShadowRoot)}const lw=new Set(["inline","contents"]);function cw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lw.has(o)}const uw=new Set(["table","td","th"]);function dw(e){return uw.has(tw(e))}const fw=[":popover-open",":modal"];function pw(e){return fw.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const hw=["transform","translate","scale","rotate","perspective"],gw=["transform","translate","scale","rotate","perspective","filter"],mw=["paint","layout","strict","content"];function yw(e){const t=bw(),n=iw(e)?xw(e):e;return hw.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||gw.some(e=>(n.willChange||"").includes(e))||mw.some(e=>(n.contain||"").includes(e))}function bw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const vw=new Set(["html","body","#document"]);function ww(e){return vw.has(tw(e))}function xw(e){return nw(e).getComputedStyle(e)}function Cw(e){return iw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sw(e){if("html"===tw(e))return e;const t=e.assignedSlot||e.parentNode||sw(e)&&e.host||rw(e);return sw(t)?t.host:t}function kw(e){const t=Sw(e);return ww(t)?e.ownerDocument?e.ownerDocument.body:e.body:aw(t)&&cw(t)?t:kw(t)}function Ew(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=kw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=nw(o);if(i){const e=_w(a);return t.concat(a,a.visualViewport||[],cw(o)?o:[],e&&n?Ew(e):[])}return t.concat(o,Ew(o,[],n))}function _w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tw(e){const t=xw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=aw(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Rv(n)!==i||Rv(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Pw(e){return iw(e)?e:e.contextElement}function Rw(e){const t=Pw(e);if(!aw(t))return Av(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tw(t);let a=(i?Rv(n.width):n.width)/r,s=(i?Rv(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Iw=Av(0);function Aw(e){const t=nw(e);return bw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Iw}function Ow(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pw(e);let a=Av(1);t&&(r?iw(r)&&(a=Rw(r)):a=Rw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==nw(e))&&t}(i,n,r)?Aw(i):Av(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=nw(i),t=r&&iw(r)?nw(r):r;let n=e,o=_w(n);for(;o&&r&&t!==n;){const e=Rw(o),t=o.getBoundingClientRect(),r=xw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=nw(o),o=_w(n)}}return Zv({width:u,height:d,x:l,y:c})}function jw(e,t){const n=Cw(e).scrollLeft;return t?t.left+n:Ow(rw(e)).left+n}function Mw(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:jw(e,r)),y:r.top+t.scrollTop}}const Lw=new Set(["absolute","fixed"]);function Nw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=nw(e),r=rw(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=bw();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=rw(e),n=Cw(e),r=e.ownerDocument.body,o=Pv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Pv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jw(e);const s=-n.scrollTop;return"rtl"===xw(r).direction&&(a+=Pv(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(rw(e));else if(iw(t))r=function(e,t){const n=Ow(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=aw(e)?Rw(e):Av(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Aw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zv(r)}function Dw(e,t){const n=Sw(e);return!(n===t||!iw(n)||ww(n))&&("fixed"===xw(n).position||Dw(n,t))}function Ww(e,t,n){const r=aw(t),o=rw(t),i="fixed"===n,a=Ow(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Av(0);function c(){l.x=jw(o)}if(r||!r&&!i)if(("body"!==tw(t)||cw(o))&&(s=Cw(t)),r){const e=Ow(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Av(0):Mw(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function $w(e){return"static"===xw(e).position}function zw(e,t){if(!aw(e)||"fixed"===xw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return rw(e)===n&&(n=n.ownerDocument.body),n}function Fw(e,t){const n=nw(e);if(pw(e))return n;if(!aw(e)){let t=Sw(e);for(;t&&!ww(t);){if(iw(t)&&!$w(t))return t;t=Sw(t)}return n}let r=zw(e,t);for(;r&&dw(r)&&$w(r);)r=zw(r,t);return r&&ww(r)&&$w(r)&&!yw(r)?n:r||function(e){let t=Sw(e);for(;aw(t)&&!ww(t);){if(yw(t))return t;if(pw(t))return null;t=Sw(t)}return null}(e)||n}const Uw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=rw(r),s=!!t&&pw(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Av(1);const u=Av(0),d=aw(r);if((d||!d&&!i)&&(("body"!==tw(r)||cw(a))&&(l=Cw(r)),aw(r))){const e=Ow(r);c=Rw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?Av(0):Mw(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:rw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?pw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ew(e,[],!1).filter(e=>iw(e)&&"body"!==tw(e)),o=null;const i="fixed"===xw(e).position;let a=i?Sw(e):e;for(;iw(a)&&!ww(a);){const t=xw(a),n=yw(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Lw.has(o.position)||cw(a)&&!n&&Dw(e,a))?r=r.filter(e=>e!==a):o=t,a=Sw(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Nw(t,n,o);return e.top=Pv(r.top,e.top),e.right=Tv(r.right,e.right),e.bottom=Tv(r.bottom,e.bottom),e.left=Pv(r.left,e.left),e},Nw(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Fw,getElementRects:function(e){return gf(this,null,function*(){const t=this.getOffsetParent||Fw,n=this.getDimensions,r=yield n(e.floating);return{reference:Ww(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tw(e);return{width:t,height:n}},getScale:Rw,isElement:iw,isRTL:function(e){return"rtl"===xw(e).direction}};function Bw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Pw(e),u=o||i?[...c?Ew(c):[],...Ew(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=rw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h={rootMargin:-Iv(d)+"px "+-Iv(o.clientWidth-(u+f))+"px "+-Iv(o.clientHeight-(d+p))+"px "+-Iv(u)+"px",threshold:Pv(0,Tv(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Bw(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,pf(ff({},h),{root:o.ownerDocument}))}catch(y){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let g=l?Ow(e):null;return l&&function t(){const r=Ow(e);g&&!Bw(g,r)&&n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Hw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return gf(this,null,function*(){const{x:n,y:r,placement:o}=t,i=Lv(e,t),{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=i,c=hf(i,["mainAxis","crossAxis","limiter"]),u={x:n,y:r},d=yield Jv(t,c),f=Fv(Nv(o)),p=Wv(f);let h=u[p],g=u[f];if(a){const e="y"===p?"bottom":"right";h=Mv(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";g=Mv(g+d["y"===f?"top":"left"],g,g-d[e])}const m=l.fn(pf(ff({},t),{[p]:h,[f]:g}));return pf(ff({},m),{data:{x:m.x-n,y:m.y-r,enabled:{[p]:a,[f]:s}}})})}}},Vw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return gf(this,null,function*(){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,u=Lv(e,t),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0}=u,y=hf(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Nv(o),v=Fv(s),w=Nv(s)===s,x=yield null==l.isRTL?void 0:l.isRTL(c.floating),C=p||(w||!m?[Qv(s)]:function(e){const t=Qv(e);return[Bv(e),t,Bv(t)]}(s)),S="none"!==g;!p&&S&&C.push(...Gv(s,m,g,x));const k=[s,...C],E=yield Jv(t,y),_=[];let T=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&_.push(E[b]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=Dv(e),o=Uv(e),i=$v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qv(a)),[a,Qv(a)]}(o,a,x);_.push(E[e[0]],E[e[1]])}if(T=[...T,{placement:o,overflows:_}],!_.every(e=>e<=0)){var P,R;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=k[e];if(t){if(!("alignment"===f&&v!==Fv(t))||T.every(e=>Fv(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(R=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var I;const e=null==(I=T.filter(e=>{if(S){const t=Fv(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}})}}},Kw=(e,t,n)=>{const r=new Map,o=ff({platform:Uw},n),i=pf(ff({},o.platform),{_c:r});return((e,t,n)=>gf(null,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Xv(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:y,data:b,reset:v}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,p=pf(ff({},p),{[i]:ff(ff({},p[i]),b)}),v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Xv(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,pf(ff({},o),{platform:i}))};var Gw=Dp("<tc-root data-tc-dropdown-container=true>",!0,!1,!1);const Qw=()=>{const e=dh(),t=Zf(ig),n=Zf(Bb),[r,o]=Of(!1),[i,a]=Of(t.account),[s,l]=Of(!t.account);let c;const[u,d]=Of(),[f,p]=Of(),h=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=Of({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Of();Lf(()=>{let e=s();if(e)throw e.value});let c=Nf(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Kw(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Lf(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&Uf(e)}else u()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:qw,placement:"bottom-end",middleware:[Vw(),Hw()]});n.connectionRestored.then(()=>l(!1));const g=t.onStatusChange(e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)}),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return Ff(()=>{document.body.addEventListener("click",m)}),Uf(()=>{document.body.removeEventListener("click",m),g()}),mp(Xp,{component:gh,get children(){return[mp(Ep,{get when(){return s()},get children(){return mp(Cv,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return mp(Sv,{})}})}}),mp(Ep,{get when(){return!s()},get children(){return[mp(Ep,{get when(){return!i()},get children(){return mp(wv,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[mp(Ny,{get fill(){return e.colors.connectButton.foreground}}),mp(gy,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),mp(Ep,{get when(){return i()},get children(){return mp(kv,{get children(){return[mp(xv,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[mp(gy,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=dd(e.address,e.chain===jc.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),mp(xm,{direction:"bottom"})]}}),mp(Zp,{get children(){var e=Gw();return Fp(d,e),e.style.setProperty("z-index","999"),e._$owner=qf(),Up(e,mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return mp(Ep,{get when(){return r()},get children(){return mp(Ev,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Up(e,mp(_v,{}),null),Mf(t=>{var n,r,o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t.e&&(null!=(t.e=o)?e.style.setProperty("position",o):e.style.removeProperty("position")),i!==t.t&&(null!=(t.t=i)?e.style.setProperty("top",i):e.style.removeProperty("top")),a!==t.a&&(null!=(t.a=a)?e.style.setProperty("left",a):e.style.removeProperty("left")),t},{e:void 0,t:void 0,a:void 0}),e}})]}})}})]}})]}})},Yw=ph(Fm)`
627
+ `,Tv=Math.min,Pv=Math.max,Rv=Math.round,Iv=Math.floor,Av=e=>({x:e,y:e}),Ov={left:"right",right:"left",bottom:"top",top:"bottom"},jv={start:"end",end:"start"};function Mv(e,t,n){return Pv(e,Tv(t,n))}function Lv(e,t){return"function"==typeof e?e(t):e}function Nv(e){return e.split("-")[0]}function Dv(e){return e.split("-")[1]}function Wv(e){return"x"===e?"y":"x"}function $v(e){return"y"===e?"height":"width"}const zv=new Set(["top","bottom"]);function Fv(e){return zv.has(Nv(e))?"y":"x"}function Uv(e){return Wv(Fv(e))}function Bv(e){return e.replace(/start|end/g,e=>jv[e])}const qv=["left","right"],Hv=["right","left"],Vv=["top","bottom"],Kv=["bottom","top"];function Gv(e,t,n,r){const o=Dv(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Hv:qv:t?qv:Hv;case"left":case"right":return t?Vv:Kv;default:return[]}}(Nv(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Bv)))),i}function Qv(e){return e.replace(/left|right|bottom|top/g,e=>Ov[e])}function Yv(e){return"number"!=typeof e?function(e){return ff({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Zv(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xv(e,t,n){let{reference:r,floating:o}=e;const i=Fv(t),a=Uv(t),s=$v(a),l=Nv(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Dv(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}function Jv(e,t){return gf(this,null,function*(){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Lv(t,e),h=Yv(p),g=s[f?"floating"===d?"reference":"floating":d],m=Zv(yield i.getClippingRect({element:null==(n=yield null==i.isElement?void 0:i.isElement(g))||n?g:g.contextElement||(yield null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=yield null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating),v=(yield null==i.isElement?void 0:i.isElement(b))&&(yield null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Zv(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-w.top+h.top)/v.y,bottom:(w.bottom-m.bottom+h.bottom)/v.y,left:(m.left-w.left+h.left)/v.x,right:(w.right-m.right+h.right)/v.x}})}function ew(){return"undefined"!=typeof window}function tw(e){return ow(e)?(e.nodeName||"").toLowerCase():"#document"}function nw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rw(e){var t;return null==(t=(ow(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ow(e){return!!ew()&&(e instanceof Node||e instanceof nw(e).Node)}function iw(e){return!!ew()&&(e instanceof Element||e instanceof nw(e).Element)}function aw(e){return!!ew()&&(e instanceof HTMLElement||e instanceof nw(e).HTMLElement)}function sw(e){return!(!ew()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof nw(e).ShadowRoot)}const lw=new Set(["inline","contents"]);function cw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lw.has(o)}const uw=new Set(["table","td","th"]);function dw(e){return uw.has(tw(e))}const fw=[":popover-open",":modal"];function pw(e){return fw.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const hw=["transform","translate","scale","rotate","perspective"],gw=["transform","translate","scale","rotate","perspective","filter"],mw=["paint","layout","strict","content"];function yw(e){const t=bw(),n=iw(e)?xw(e):e;return hw.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||gw.some(e=>(n.willChange||"").includes(e))||mw.some(e=>(n.contain||"").includes(e))}function bw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const vw=new Set(["html","body","#document"]);function ww(e){return vw.has(tw(e))}function xw(e){return nw(e).getComputedStyle(e)}function Cw(e){return iw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sw(e){if("html"===tw(e))return e;const t=e.assignedSlot||e.parentNode||sw(e)&&e.host||rw(e);return sw(t)?t.host:t}function kw(e){const t=Sw(e);return ww(t)?e.ownerDocument?e.ownerDocument.body:e.body:aw(t)&&cw(t)?t:kw(t)}function _w(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=kw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=nw(o);if(i){const e=Ew(a);return t.concat(a,a.visualViewport||[],cw(o)?o:[],e&&n?_w(e):[])}return t.concat(o,_w(o,[],n))}function Ew(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tw(e){const t=xw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=aw(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Rv(n)!==i||Rv(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Pw(e){return iw(e)?e:e.contextElement}function Rw(e){const t=Pw(e);if(!aw(t))return Av(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tw(t);let a=(i?Rv(n.width):n.width)/r,s=(i?Rv(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Iw=Av(0);function Aw(e){const t=nw(e);return bw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Iw}function Ow(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pw(e);let a=Av(1);t&&(r?iw(r)&&(a=Rw(r)):a=Rw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==nw(e))&&t}(i,n,r)?Aw(i):Av(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=nw(i),t=r&&iw(r)?nw(r):r;let n=e,o=Ew(n);for(;o&&r&&t!==n;){const e=Rw(o),t=o.getBoundingClientRect(),r=xw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=nw(o),o=Ew(n)}}return Zv({width:u,height:d,x:l,y:c})}function jw(e,t){const n=Cw(e).scrollLeft;return t?t.left+n:Ow(rw(e)).left+n}function Mw(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:jw(e,r)),y:r.top+t.scrollTop}}const Lw=new Set(["absolute","fixed"]);function Nw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=nw(e),r=rw(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=bw();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=rw(e),n=Cw(e),r=e.ownerDocument.body,o=Pv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Pv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jw(e);const s=-n.scrollTop;return"rtl"===xw(r).direction&&(a+=Pv(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(rw(e));else if(iw(t))r=function(e,t){const n=Ow(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=aw(e)?Rw(e):Av(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Aw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zv(r)}function Dw(e,t){const n=Sw(e);return!(n===t||!iw(n)||ww(n))&&("fixed"===xw(n).position||Dw(n,t))}function Ww(e,t,n){const r=aw(t),o=rw(t),i="fixed"===n,a=Ow(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Av(0);function c(){l.x=jw(o)}if(r||!r&&!i)if(("body"!==tw(t)||cw(o))&&(s=Cw(t)),r){const e=Ow(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Av(0):Mw(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function $w(e){return"static"===xw(e).position}function zw(e,t){if(!aw(e)||"fixed"===xw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return rw(e)===n&&(n=n.ownerDocument.body),n}function Fw(e,t){const n=nw(e);if(pw(e))return n;if(!aw(e)){let t=Sw(e);for(;t&&!ww(t);){if(iw(t)&&!$w(t))return t;t=Sw(t)}return n}let r=zw(e,t);for(;r&&dw(r)&&$w(r);)r=zw(r,t);return r&&ww(r)&&$w(r)&&!yw(r)?n:r||function(e){let t=Sw(e);for(;aw(t)&&!ww(t);){if(yw(t))return t;if(pw(t))return null;t=Sw(t)}return null}(e)||n}const Uw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=rw(r),s=!!t&&pw(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Av(1);const u=Av(0),d=aw(r);if((d||!d&&!i)&&(("body"!==tw(r)||cw(a))&&(l=Cw(r)),aw(r))){const e=Ow(r);c=Rw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?Av(0):Mw(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:rw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?pw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=_w(e,[],!1).filter(e=>iw(e)&&"body"!==tw(e)),o=null;const i="fixed"===xw(e).position;let a=i?Sw(e):e;for(;iw(a)&&!ww(a);){const t=xw(a),n=yw(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Lw.has(o.position)||cw(a)&&!n&&Dw(e,a))?r=r.filter(e=>e!==a):o=t,a=Sw(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Nw(t,n,o);return e.top=Pv(r.top,e.top),e.right=Tv(r.right,e.right),e.bottom=Tv(r.bottom,e.bottom),e.left=Pv(r.left,e.left),e},Nw(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Fw,getElementRects:function(e){return gf(this,null,function*(){const t=this.getOffsetParent||Fw,n=this.getDimensions,r=yield n(e.floating);return{reference:Ww(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tw(e);return{width:t,height:n}},getScale:Rw,isElement:iw,isRTL:function(e){return"rtl"===xw(e).direction}};function Bw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Pw(e),u=o||i?[...c?_w(c):[],..._w(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=rw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h={rootMargin:-Iv(d)+"px "+-Iv(o.clientWidth-(u+f))+"px "+-Iv(o.clientHeight-(d+p))+"px "+-Iv(u)+"px",threshold:Pv(0,Tv(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Bw(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,pf(ff({},h),{root:o.ownerDocument}))}catch(y){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let g=l?Ow(e):null;return l&&function t(){const r=Ow(e);g&&!Bw(g,r)&&n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Hw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return gf(this,null,function*(){const{x:n,y:r,placement:o}=t,i=Lv(e,t),{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=i,c=hf(i,["mainAxis","crossAxis","limiter"]),u={x:n,y:r},d=yield Jv(t,c),f=Fv(Nv(o)),p=Wv(f);let h=u[p],g=u[f];if(a){const e="y"===p?"bottom":"right";h=Mv(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";g=Mv(g+d["y"===f?"top":"left"],g,g-d[e])}const m=l.fn(pf(ff({},t),{[p]:h,[f]:g}));return pf(ff({},m),{data:{x:m.x-n,y:m.y-r,enabled:{[p]:a,[f]:s}}})})}}},Vw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return gf(this,null,function*(){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,u=Lv(e,t),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0}=u,y=hf(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Nv(o),v=Fv(s),w=Nv(s)===s,x=yield null==l.isRTL?void 0:l.isRTL(c.floating),C=p||(w||!m?[Qv(s)]:function(e){const t=Qv(e);return[Bv(e),t,Bv(t)]}(s)),S="none"!==g;!p&&S&&C.push(...Gv(s,m,g,x));const k=[s,...C],_=yield Jv(t,y),E=[];let T=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&E.push(_[b]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=Dv(e),o=Uv(e),i=$v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qv(a)),[a,Qv(a)]}(o,a,x);E.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:o,overflows:E}],!E.every(e=>e<=0)){var P,R;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=k[e];if(t){if(!("alignment"===f&&v!==Fv(t))||T.every(e=>Fv(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(R=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var I;const e=null==(I=T.filter(e=>{if(S){const t=Fv(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}})}}},Kw=(e,t,n)=>{const r=new Map,o=ff({platform:Uw},n),i=pf(ff({},o.platform),{_c:r});return((e,t,n)=>gf(null,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Xv(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:y,data:b,reset:v}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,p=pf(ff({},p),{[i]:ff(ff({},p[i]),b)}),v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Xv(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,pf(ff({},o),{platform:i}))};var Gw=Dp("<tc-root data-tc-dropdown-container=true>",!0,!1,!1);const Qw=()=>{const e=dh(),t=Zf(ig),n=Zf(Bb),[r,o]=Of(!1),[i,a]=Of(t.account),[s,l]=Of(!t.account);let c;const[u,d]=Of(),[f,p]=Of(),h=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=Of({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Of();Lf(()=>{let e=s();if(e)throw e.value});let c=Nf(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Kw(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Lf(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&Uf(e)}else u()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:qw,placement:"bottom-end",middleware:[Vw(),Hw()]});n.connectionRestored.then(()=>l(!1));const g=t.onStatusChange(e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)}),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return Ff(()=>{document.body.addEventListener("click",m)}),Uf(()=>{document.body.removeEventListener("click",m),g()}),mp(Xp,{component:gh,get children(){return[mp(_p,{get when(){return s()},get children(){return mp(Cv,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return mp(Sv,{})}})}}),mp(_p,{get when(){return!s()},get children(){return[mp(_p,{get when(){return!i()},get children(){return mp(wv,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[mp(Ny,{get fill(){return e.colors.connectButton.foreground}}),mp(gy,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),mp(_p,{get when(){return i()},get children(){return mp(kv,{get children(){return[mp(xv,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[mp(gy,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=dd(e.address,e.chain===jc.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),mp(xm,{direction:"bottom"})]}}),mp(Zp,{get children(){var e=Gw();return Fp(d,e),e.style.setProperty("z-index","999"),e._$owner=qf(),Up(e,mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return mp(_p,{get when(){return r()},get children(){return mp(_v,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Up(e,mp(Ev,{}),null),Mf(t=>{var n,r,o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t.e&&(null!=(t.e=o)?e.style.setProperty("position",o):e.style.removeProperty("position")),i!==t.t&&(null!=(t.t=i)?e.style.setProperty("top",i):e.style.removeProperty("top")),a!==t.a&&(null!=(t.a=a)?e.style.setProperty("left",a):e.style.removeProperty("left")),t},{e:void 0,t:void 0,a:void 0}),e}})]}})}})]}})]}})},Yw=ph(Fm)`
628
628
  padding-left: 24px;
629
629
  padding-right: 24px;
630
630
  padding-top: 18px;
@@ -711,7 +711,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
711
711
  display: block;
712
712
  margin: 0 auto 1px;
713
713
  font-size: 15px;
714
- `;const ux=ph(Em)`
714
+ `;const ux=ph(_m)`
715
715
  position: absolute;
716
716
  top: 16px;
717
717
  left: 16px;
@@ -751,10 +751,10 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
751
751
 
752
752
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
753
753
  background-color: ${e=>e.theme.colors.background.segment};
754
- `;var gx=Dp('<svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><g clip-path=url(#clip0_5122_10355)><circle cx=8 cy=8 r=8></circle><circle cx=8 cy=11 r=1></circle><path d="M7.04994 4.99875C7.02277 4.45542 7.45598 4 8 4C8.54402 4 8.97723 4.45541 8.95006 4.99875L8.78745 8.25094C8.76647 8.67055 8.42014 9 8 9C7.57986 9 7.23353 8.67055 7.21255 8.25094L7.04994 4.99875Z"></path></g><defs><clipPath id=clip0_5122_10355><rect width=16 height=16>'),mx=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"fill=none><circle cx=14 cy=14 r=12></circle><circle cx=14 cy=18.9 r=1.4></circle><path d="M12.6658 8.89845C12.63 8.13698 13.2377 7.5 14 7.5C14.7623 7.5 15.37 8.13698 15.3342 8.89845L15.047 15.0013C15.0207 15.5604 14.5597 16.0002 14 16.0002C13.4403 16.0002 12.9793 15.5604 12.953 15.0013L12.6658 8.89845Z">');const yx=e=>{const t=dh(),n=()=>e.size,r=()=>e.fill||t.colors.icon.error;return Lp(()=>{return Lp(()=>"16"===n())()?(l=gx(),c=l.firstChild,u=c.firstChild,d=u.nextSibling,f=d.nextSibling,p=c.nextSibling.firstChild.firstChild,Mf(e=>{var n=r(),o=t.colors.constant.white,i=t.colors.constant.white,a=t.colors.constant.white;return n!==e.e&&Wp(u,"fill",e.e=n),o!==e.t&&Wp(d,"fill",e.t=o),i!==e.a&&Wp(f,"fill",e.a=i),a!==e.o&&Wp(p,"fill",e.o=a),e},{e:void 0,t:void 0,a:void 0,o:void 0}),l):Lp(()=>"28"===n())()?(o=mx(),i=o.firstChild,a=i.nextSibling,s=a.nextSibling,Mf(n=>{var l=e.class,c=r(),u=t.colors.constant.white,d=t.colors.constant.white;return l!==n.e&&Wp(o,"class",n.e=l),c!==n.t&&Wp(i,"fill",n.t=c),u!==n.a&&Wp(a,"fill",n.a=u),d!==n.o&&Wp(s,"fill",n.o=d),n},{e:void 0,t:void 0,a:void 0,o:void 0}),o):null;var o,i,a,s,l,c,u,d,f,p})},bx="wallet_connect",vx="WalletConnect";var wx=Dp("<li>");const xx=e=>{const t=Jw.connector,n=Jw.connectRequestParameters,r=()=>{t.connect({type:"wallet-connect"},"ready"===(null==n?void 0:n.state)?n.value:void 0)},[o,i]=Of(null);let a=null;const s=t=>{t.isSupportRequiredFeatures||"strict"!==e.featureCheckMode?e.onSelect(t):(e=>{i(e),null!=a&&clearTimeout(a),a=setTimeout(()=>i(null),1500)})(t)},l=()=>Db()?e.walletsList.filter(ox):e.walletsList,c=()=>l().filter(e=>e.isSupportRequiredFeatures);Jh({walletsMenu:"other_wallets",wallets:c()});const u=()=>l().filter(e=>!e.isSupportRequiredFeatures);return mp(sx,{"data-tc-wallets-modal-list":"true",get children(){return[mp(ux,{icon:"arrow",onClick:()=>e.onBack()}),mp(lx,{translationKey:"walletModal.wallets",children:"Wallets"}),mp(zb,{get maxHeight(){return Db()?void 0:510},get children(){return[mp(cx,{get children(){return[mp(kp,{get each(){return c()},children:t=>{return Up(n=wx(),mp(dx,{wallet:t,onClick:()=>e.onSelect(t)})),n;var n}}),mp(Ep,{get when(){return Lp(()=>!Wg())()&&void 0!==$d.UniversalConnectorCls&&void 0!==$d.walletConnectOptions},get children(){return mp(dx,{get wallet(){return{type:"wallet-connect",name:vx,appName:bx,imageUrl:Ab}},onClick:r})}})]}}),mp(Ep,{get when(){return u().length>0&&"hide"!==e.featureCheckMode},get children(){return[mp(fx,{get children(){return[mp(px,{translationKey:"walletModal.allWallets.walletsBelowNotSupported",children:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above."}),mp(yx,{size:"28"})]}}),mp(cx,{get children(){return mp(kp,{get each(){return u()},children:t=>{return Up(n=wx(),mp(dx,{wallet:t,onClick:()=>s(t),get withOpacity(){return"strict"===e.featureCheckMode}})),n;var n}})}}),mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return mp(Ep,{get when(){return o()},get children(){return mp(hx,{get children(){return[mp(qy,{size:"xs"}),mp(gy,{translationKey:"walletModal.allWallets.walletNotSupportService",get translationValues(){return{name:o().name}},get children(){return[Lp(()=>o().name)," doesn’t support connected service"]}})]}})}})}})]}})]}})]}})},Cx={m:"16px",s:"12px",none:"0"},Sx={m:"6px",s:"6px",none:"0"},kx=ph.div`
754
+ `;var gx=Dp('<svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><g clip-path=url(#clip0_5122_10355)><circle cx=8 cy=8 r=8></circle><circle cx=8 cy=11 r=1></circle><path d="M7.04994 4.99875C7.02277 4.45542 7.45598 4 8 4C8.54402 4 8.97723 4.45541 8.95006 4.99875L8.78745 8.25094C8.76647 8.67055 8.42014 9 8 9C7.57986 9 7.23353 8.67055 7.21255 8.25094L7.04994 4.99875Z"></path></g><defs><clipPath id=clip0_5122_10355><rect width=16 height=16>'),mx=Dp('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28 viewBox="0 0 28 28"fill=none><circle cx=14 cy=14 r=12></circle><circle cx=14 cy=18.9 r=1.4></circle><path d="M12.6658 8.89845C12.63 8.13698 13.2377 7.5 14 7.5C14.7623 7.5 15.37 8.13698 15.3342 8.89845L15.047 15.0013C15.0207 15.5604 14.5597 16.0002 14 16.0002C13.4403 16.0002 12.9793 15.5604 12.953 15.0013L12.6658 8.89845Z">');const yx=e=>{const t=dh(),n=()=>e.size,r=()=>e.fill||t.colors.icon.error;return Lp(()=>{return Lp(()=>"16"===n())()?(l=gx(),c=l.firstChild,u=c.firstChild,d=u.nextSibling,f=d.nextSibling,p=c.nextSibling.firstChild.firstChild,Mf(e=>{var n=r(),o=t.colors.constant.white,i=t.colors.constant.white,a=t.colors.constant.white;return n!==e.e&&Wp(u,"fill",e.e=n),o!==e.t&&Wp(d,"fill",e.t=o),i!==e.a&&Wp(f,"fill",e.a=i),a!==e.o&&Wp(p,"fill",e.o=a),e},{e:void 0,t:void 0,a:void 0,o:void 0}),l):Lp(()=>"28"===n())()?(o=mx(),i=o.firstChild,a=i.nextSibling,s=a.nextSibling,Mf(n=>{var l=e.class,c=r(),u=t.colors.constant.white,d=t.colors.constant.white;return l!==n.e&&Wp(o,"class",n.e=l),c!==n.t&&Wp(i,"fill",n.t=c),u!==n.a&&Wp(a,"fill",n.a=u),d!==n.o&&Wp(s,"fill",n.o=d),n},{e:void 0,t:void 0,a:void 0,o:void 0}),o):null;var o,i,a,s,l,c,u,d,f,p})},bx="wallet_connect",vx="WalletConnect";var wx=Dp("<li>");const xx=e=>{const t=Jw.connector,n=Jw.connectRequestParameters,r=()=>{t.connect({type:"wallet-connect"},"ready"===(null==n?void 0:n.state)?n.value:void 0)},[o,i]=Of(null);let a=null;const s=t=>{t.isSupportRequiredFeatures||"strict"!==e.featureCheckMode?e.onSelect(t):(e=>{i(e),null!=a&&clearTimeout(a),a=setTimeout(()=>i(null),1500)})(t)},l=()=>Db()?e.walletsList.filter(ox):e.walletsList,c=()=>l().filter(e=>e.isSupportRequiredFeatures);Jh({walletsMenu:"other_wallets",wallets:c()});const u=()=>l().filter(e=>!e.isSupportRequiredFeatures);return mp(sx,{"data-tc-wallets-modal-list":"true",get children(){return[mp(ux,{icon:"arrow",onClick:()=>e.onBack()}),mp(lx,{translationKey:"walletModal.wallets",children:"Wallets"}),mp(zb,{get maxHeight(){return Db()?void 0:510},get children(){return[mp(cx,{get children(){return[mp(kp,{get each(){return c()},children:t=>{return Up(n=wx(),mp(dx,{wallet:t,onClick:()=>e.onSelect(t)})),n;var n}}),mp(_p,{get when(){return Lp(()=>!Wg())()&&void 0!==$d.UniversalConnectorCls&&void 0!==$d.walletConnectOptions},get children(){return mp(dx,{get wallet(){return{type:"wallet-connect",name:vx,appName:bx,imageUrl:Ab}},onClick:r})}})]}}),mp(_p,{get when(){return u().length>0&&"hide"!==e.featureCheckMode},get children(){return[mp(fx,{get children(){return[mp(px,{translationKey:"walletModal.allWallets.walletsBelowNotSupported",children:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above."}),mp(yx,{size:"28"})]}}),mp(cx,{get children(){return mp(kp,{get each(){return u()},children:t=>{return Up(n=wx(),mp(dx,{wallet:t,onClick:()=>s(t),get withOpacity(){return"strict"===e.featureCheckMode}})),n;var n}})}}),mp(gm,{onBeforeEnter:e=>{Nm(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Nm(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return mp(_p,{get when(){return o()},get children(){return mp(hx,{get children(){return[mp(qy,{size:"xs"}),mp(gy,{translationKey:"walletModal.allWallets.walletNotSupportService",get translationValues(){return{name:o().name}},get children(){return[Lp(()=>o().name)," doesn’t support connected service"]}})]}})}})}})]}})]}})]}})},Cx={m:"16px",s:"12px",none:"0"},Sx={m:"6px",s:"6px",none:"0"},kx=ph.div`
755
755
  display: flex;
756
756
  flex-direction: column;
757
- `,Ex=ph.div`
757
+ `,_x=ph.div`
758
758
  flex: 1;
759
759
  margin-top: ${e=>e.qr?"0":"18px"};
760
760
  display: flex;
@@ -762,7 +762,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
762
762
  align-items: center;
763
763
  justify-content: center;
764
764
  min-height: 232px;
765
- `,_x=ph(cy)`
765
+ `,Ex=ph(cy)`
766
766
  margin-bottom: 24px;
767
767
  `,Tx=ph(Iy)`
768
768
  max-width: 288px;
@@ -771,7 +771,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
771
771
  max-width: 288px;
772
772
  text-align: center;
773
773
  margin: 0 auto 20px;
774
- `,Rx=ph(Em)`
774
+ `,Rx=ph(_m)`
775
775
  position: absolute;
776
776
  top: 16px;
777
777
  left: 16px;
@@ -805,7 +805,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
805
805
  width: 32px;
806
806
  height: 32px;
807
807
  border-radius: ${e=>Sx[e.theme.borderRadius]};
808
- `,Wx=e=>{const[t]=py();return Lp(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function $x(e,t){let n;n="string"==typeof t?t:Wg()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!pu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+hu(o)}function zx(e,t){t=ff({},t);const n=Bx(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),$g()){t.returnStrategy="back";_h($x(r.toString(),t.returnStrategy))}else if(Wg())if(Dg("ios","android","macos","tdesktop","web")){t.returnStrategy="back";Fg($x(r.toString(),t.returnStrategy))}else Dg("weba")?Fg($x(r.toString(),t)):_h($x(r.toString(),t));else if(jh("ios")){"back"===t.returnStrategy&&(Mh("safari")?t.returnStrategy="back":Mh("chrome")?t.returnStrategy="googlechrome://":Mh("firefox")?t.returnStrategy="firefox://":Mh("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Mh("chrome"),n=Mh("firefox");if((e||n)&&!t.forceRedirect){const e=$x(r.toString(),t.returnStrategy);Th(Hx(e),()=>_h(e))}else{_h($x(r.toString(),t.returnStrategy))}}else if(jh("android")){t.returnStrategy="back";const e=Mh("chrome"),n=Mh("firefox");if((e||n)&&!t.forceRedirect){const e=$x(r.toString(),t.returnStrategy);Th(Hx(e),()=>_h(e))}else{_h($x(r.toString(),t.returnStrategy))}}else if(jh("ipad")){"back"===t.returnStrategy&&(Mh("safari")?t.returnStrategy="back":Mh("chrome")?t.returnStrategy="googlechrome://":Mh("firefox")?t.returnStrategy="firefox://":Mh("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Mh("chrome"),n=Mh("firefox"),o=(e||n)&&!t.forceRedirect,i=$x(r.toString(),t.returnStrategy);if(o){Th(Hx(i),()=>_h(i))}else _h(i)}else if(jh("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=$x(r.toString(),t.returnStrategy);if(t.forceRedirect)_h(e);else{Th(Hx(e),()=>_h(e))}}else _h($x(r.toString(),t))}function Fx(e,t,n,r){if(n=ff({},n),$g())if(jh("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Eh($x(e,n.returnStrategy),"_self");else{r("universal-link");_h($x(e,n.returnStrategy))}else if(Wg())if(Dg("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=$x(e,n.returnStrategy);Fg(t,()=>{r("universal-link"),_h(t)})}else if(Dg("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),_h(o)})):(r("universal-link"),_h(o))}else if(Dg("weba")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy=location.href:Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),_h(o)})):(r("universal-link"),_h(o))}else if(Dg("web")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy=location.href:Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),_h(o)})):(r("universal-link"),_h(o))}else{r("universal-link");_h($x(e,n.returnStrategy))}else if(jh("ios"))"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Mh("chrome")?(r("universal-link"),Eh($x(e,n.returnStrategy),"_self")):(r("universal-link"),_h($x(e,n.returnStrategy)));else if(jh("android"))"back"===n.returnStrategy&&(Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),_h($x(e,n.returnStrategy));else if(jh("ipad"))"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Mh("chrome")?(r("universal-link"),Eh($x(e,n.returnStrategy),"_self")):(r("universal-link"),_h($x(e,n.returnStrategy)));else if(jh("macos","windows","linux")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),_h(o)})):(r("universal-link"),_h(o))}else r("universal-link"),_h($x(e,n.returnStrategy))}function Ux(e,t){var n,r;if(!pu(e))return function(e,t){const n=new URL(e);for(const[r,o]of Object.entries(t))null!=o&&n.searchParams.set(r,o);return n.toString()}(e,{id:t.sessionId,trace_id:t.traceId});const o=Bx(e),i=new URL(o);let a=qx((null!=(n=i.searchParams.get("startapp"))?n:"").replaceAll("--","%").replaceAll("__","=").replaceAll("-","&").replaceAll("%5F","_").replaceAll("%2D","-").replaceAll("%2E","."));const s=null!=(r=t.sessionId)?r:a.get("id"),l=t.traceId,c=["tonconnect","v","id","trace_id"],u=a.entries().filter(([e])=>!c.includes(e)),d=function(e){const t=qx();for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r);return t.toString()}(pf(ff({tonconnect:"",v:"2",id:s},Object.fromEntries(u)),{trace_id:l})).replace("=&","&");return i.searchParams.set("startapp",hu(d)),i.toString()}function Bx(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}function qx(e=""){const t=new URL("https://example.com");return t.search=e,t.searchParams}function Hx(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Vx=e=>{const[t,n]=Of("mobile"),[r,o]=Of(null);Lf(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Of(),[s,l]=Of(!0),c=Zf(ig);Uf(c.onStatusChange(()=>{},t=>{t instanceof Qc?o("missing-features"):t instanceof Yc?o("wrong-network"):e.wallet.appName!==Pb&&o("connection-declined")}));const u=()=>{var t;try{const n=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest,{traceId:null==(t=e.walletsModalState)?void 0:t.traceId});a(n)}catch(yT){}};Lf(()=>{"extension"!==$f(t)&&(ox(e.wallet)||rx(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),Qh(pf(ff({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),pu(i()))p();else{const t=!s();l(!1),Fx(i(),e.wallet.deepLink,{returnStrategy:Jw.returnStrategy,forceRedirect:t},t=>{Qh(pf(ff({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),Qh(pf(ff({},e.wallet),{openMethod:"universal-link"})),zx(i(),{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:t})},h=()=>{var t;o(null),n("extension"),Wu(e.wallet)&&(Qh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest,{traceId:null==(t=e.walletsModalState)?void 0:t.traceId}))};return ox(e.wallet)?d():ix(e.wallet)?h():f(),mp(kx,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[mp(Ep,{get when(){return!e.backDisabled},get children(){return mp(Rx,{icon:"arrow",onClick:()=>e.onBackClick()})}}),mp(Tx,{get children(){return e.wallet.name}}),mp(Ep,{get when(){return Lp(()=>"mobile"===t())()&&!r()},get children(){return mp(Px,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Lp(()=>e.wallet.name),"’s camera"]}})}}),mp(Ex,{get qr(){return"mobile"===t()},get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return r()},get children(){return[mp(Mx,{size:"s"}),mp(_p,{get children(){return[mp(Tp,{get when(){return"missing-features"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),mp(Tp,{get when(){return"connection-declined"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),mp(Tp,{get when(){return"not-supported"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Lp(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}}),mp(Tp,{get when(){return"wrong-network"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.wrongNetwork",get translationValues(){return{name:e.wallet.name}},get children(){return["Connected wallet is on a different network. Please switch network in ",Lp(()=>e.wallet.name)," and try again."]}})}})]}}),mp(Ix,{get children(){return[mp(Ep,{get when(){return"not-supported"!==r()},get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},get onClick(){return"extension"===t()?h:f},get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}}),mp(Ep,{get when(){return"missing-features"===r()},get children(){return mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Lp(()=>e.wallet.name)]}})}})}})}}),mp(Ep,{get when(){return"not-supported"===r()},get children(){return mp(nm,{onClick:()=>e.onBackClick(),get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),mp(Tp,{get when(){return"mobile"===t()},get children(){return mp(_x,{disableCopy:!1,get sourceUrl(){return $x(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),mp(Tp,{get when(){return"extension"===t()},get children(){return[mp(Ep,{get when(){return Wu(e.wallet)},get children(){return[mp(jx,{size:"s"}),mp(Lx,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name)," browser extension…"]}}),mp(Ix,{get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},onClick:h,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}})]}}),mp(Ep,{get when(){return!Wu(e.wallet)},get children(){return[mp(Lx,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Lp(()=>e.wallet.name)," browser extension"]}}),mp(Ix,{get children(){return mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get rightIcon(){return mp(lb,{})},onClick:h,get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Lp(()=>e.wallet.name)]}})}})}})}})]}})]}}),mp(Tp,{get when(){return"desktop"===t()},get children(){return[mp(Gy,{size:"m"}),mp(Lx,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name)," on desktop…"]}}),mp(Ix,{get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:f,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get rightIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Lp(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),mp(Ep,{get when(){return e.wallet.appName===Pb},get children(){return mp(Nx,{get rightIcon(){return mp(Dx,{get src(){return Ib}})},scale:"s",onClick:p,get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),mp(Ep,{get when(){return e.wallet.appName!==Pb},get children(){return mp(Ax,{get children(){return[mp(Ep,{get when(){return Lp(()=>"mobile"!==t())()&&ox(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(nb,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.mobile",children:"Mobile"})}})}}),mp(Ep,{get when(){return Lp(()=>"extension"!==t())()&&ix(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(eb,{})},onClick:h,get children(){return mp(Wx,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),mp(Ep,{get when(){return Lp(()=>"desktop"!==t())()&&rx(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(ob,{})},onClick:f,get children(){return mp(Wx,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Kx=ph.div``,Gx=ph(Em)`
808
+ `,Wx=e=>{const[t]=py();return Lp(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function $x(e,t){let n;n="string"==typeof t?t:Wg()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!pu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+hu(o)}function zx(e,t){t=ff({},t);const n=Bx(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),$g()){t.returnStrategy="back";Eh($x(r.toString(),t.returnStrategy))}else if(Wg())if(Dg("ios","android","macos","tdesktop","web")){t.returnStrategy="back";Fg($x(r.toString(),t.returnStrategy))}else Dg("weba")?Fg($x(r.toString(),t)):Eh($x(r.toString(),t));else if(jh("ios")){"back"===t.returnStrategy&&(Mh("safari")?t.returnStrategy="back":Mh("chrome")?t.returnStrategy="googlechrome://":Mh("firefox")?t.returnStrategy="firefox://":Mh("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Mh("chrome"),n=Mh("firefox");if((e||n)&&!t.forceRedirect){const e=$x(r.toString(),t.returnStrategy);Th(Hx(e),()=>Eh(e))}else{Eh($x(r.toString(),t.returnStrategy))}}else if(jh("android")){t.returnStrategy="back";const e=Mh("chrome"),n=Mh("firefox");if((e||n)&&!t.forceRedirect){const e=$x(r.toString(),t.returnStrategy);Th(Hx(e),()=>Eh(e))}else{Eh($x(r.toString(),t.returnStrategy))}}else if(jh("ipad")){"back"===t.returnStrategy&&(Mh("safari")?t.returnStrategy="back":Mh("chrome")?t.returnStrategy="googlechrome://":Mh("firefox")?t.returnStrategy="firefox://":Mh("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Mh("chrome"),n=Mh("firefox"),o=(e||n)&&!t.forceRedirect,i=$x(r.toString(),t.returnStrategy);if(o){Th(Hx(i),()=>Eh(i))}else Eh(i)}else if(jh("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=$x(r.toString(),t.returnStrategy);if(t.forceRedirect)Eh(e);else{Th(Hx(e),()=>Eh(e))}}else Eh($x(r.toString(),t))}function Fx(e,t,n,r){if(n=ff({},n),$g())if(jh("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),_h($x(e,n.returnStrategy),"_self");else{r("universal-link");Eh($x(e,n.returnStrategy))}else if(Wg())if(Dg("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=$x(e,n.returnStrategy);Fg(t,()=>{r("universal-link"),Eh(t)})}else if(Dg("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),Eh(o)})):(r("universal-link"),Eh(o))}else if(Dg("weba")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy=location.href:Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),Eh(o)})):(r("universal-link"),Eh(o))}else if(Dg("web")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy=location.href:Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),Eh(o)})):(r("universal-link"),Eh(o))}else{r("universal-link");Eh($x(e,n.returnStrategy))}else if(jh("ios"))"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Mh("chrome")?(r("universal-link"),_h($x(e,n.returnStrategy),"_self")):(r("universal-link"),Eh($x(e,n.returnStrategy)));else if(jh("android"))"back"===n.returnStrategy&&(Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Eh($x(e,n.returnStrategy));else if(jh("ipad"))"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Mh("chrome")?(r("universal-link"),_h($x(e,n.returnStrategy),"_self")):(r("universal-link"),Eh($x(e,n.returnStrategy)));else if(jh("macos","windows","linux")){"back"===n.returnStrategy&&(Mh("safari")?n.returnStrategy="none":Mh("chrome")?n.returnStrategy="googlechrome://":Mh("firefox")?n.returnStrategy="firefox://":Mh("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=$x(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Th(Lh(o,t),()=>{r("universal-link"),Eh(o)})):(r("universal-link"),Eh(o))}else r("universal-link"),Eh($x(e,n.returnStrategy))}function Ux(e,t){var n,r;if(!pu(e))return function(e,t){const n=new URL(e);for(const[r,o]of Object.entries(t))null!=o&&n.searchParams.set(r,o);return n.toString()}(e,{id:t.sessionId,trace_id:t.traceId});const o=Bx(e),i=new URL(o);let a=qx((null!=(n=i.searchParams.get("startapp"))?n:"").replaceAll("--","%").replaceAll("__","=").replaceAll("-","&").replaceAll("%5F","_").replaceAll("%2D","-").replaceAll("%2E","."));const s=null!=(r=t.sessionId)?r:a.get("id"),l=t.traceId,c=["tonconnect","v","id","trace_id"],u=a.entries().filter(([e])=>!c.includes(e)),d=function(e){const t=qx();for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r);return t.toString()}(pf(ff({tonconnect:"",v:"2",id:s},Object.fromEntries(u)),{trace_id:l})).replace("=&","&");return i.searchParams.set("startapp",hu(d)),i.toString()}function Bx(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}function qx(e=""){const t=new URL("https://example.com");return t.search=e,t.searchParams}function Hx(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Vx=e=>{const[t,n]=Of("mobile"),[r,o]=Of(null);Lf(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Of(),[s,l]=Of(!0),c=Zf(ig);Uf(c.onStatusChange(()=>{},t=>{t instanceof Qc?o("missing-features"):t instanceof Yc?o("wrong-network"):e.wallet.appName!==Pb&&o("connection-declined")}));const u=()=>{var t;try{const n=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest,{traceId:null==(t=e.walletsModalState)?void 0:t.traceId});a(n)}catch(yT){}};Lf(()=>{"extension"!==$f(t)&&(ox(e.wallet)||rx(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),Qh(pf(ff({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),pu(i()))p();else{const t=!s();l(!1),Fx(i(),e.wallet.deepLink,{returnStrategy:Jw.returnStrategy,forceRedirect:t},t=>{Qh(pf(ff({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),Qh(pf(ff({},e.wallet),{openMethod:"universal-link"})),zx(i(),{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:t})},h=()=>{var t;o(null),n("extension"),Wu(e.wallet)&&(Qh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest,{traceId:null==(t=e.walletsModalState)?void 0:t.traceId}))};return ox(e.wallet)?d():ix(e.wallet)?h():f(),mp(kx,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[mp(_p,{get when(){return!e.backDisabled},get children(){return mp(Rx,{icon:"arrow",onClick:()=>e.onBackClick()})}}),mp(Tx,{get children(){return e.wallet.name}}),mp(_p,{get when(){return Lp(()=>"mobile"===t())()&&!r()},get children(){return mp(Px,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Lp(()=>e.wallet.name),"’s camera"]}})}}),mp(_x,{get qr(){return"mobile"===t()},get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return r()},get children(){return[mp(Mx,{size:"s"}),mp(Ep,{get children(){return[mp(Tp,{get when(){return"missing-features"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),mp(Tp,{get when(){return"connection-declined"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),mp(Tp,{get when(){return"not-supported"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Lp(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}}),mp(Tp,{get when(){return"wrong-network"===r()},get children(){return mp(Lx,{translationKey:"walletModal.desktopConnectionModal.wrongNetwork",get translationValues(){return{name:e.wallet.name}},get children(){return["Connected wallet is on a different network. Please switch network in ",Lp(()=>e.wallet.name)," and try again."]}})}})]}}),mp(Ix,{get children(){return[mp(_p,{get when(){return"not-supported"!==r()},get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},get onClick(){return"extension"===t()?h:f},get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}}),mp(_p,{get when(){return"missing-features"===r()},get children(){return mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Lp(()=>e.wallet.name)]}})}})}})}}),mp(_p,{get when(){return"not-supported"===r()},get children(){return mp(nm,{onClick:()=>e.onBackClick(),get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),mp(Tp,{get when(){return"mobile"===t()},get children(){return mp(Ex,{disableCopy:!1,get sourceUrl(){return $x(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),mp(Tp,{get when(){return"extension"===t()},get children(){return[mp(_p,{get when(){return Wu(e.wallet)},get children(){return[mp(jx,{size:"s"}),mp(Lx,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name)," browser extension…"]}}),mp(Ix,{get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},onClick:h,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}})]}}),mp(_p,{get when(){return!Wu(e.wallet)},get children(){return[mp(Lx,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Lp(()=>e.wallet.name)," browser extension"]}}),mp(Ix,{get children(){return mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get rightIcon(){return mp(lb,{})},onClick:h,get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Lp(()=>e.wallet.name)]}})}})}})}})]}})]}}),mp(Tp,{get when(){return"desktop"===t()},get children(){return[mp(Gy,{size:"m"}),mp(Lx,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name)," on desktop…"]}}),mp(Ix,{get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:f,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get rightIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Lp(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),mp(_p,{get when(){return e.wallet.appName===Pb},get children(){return mp(Nx,{get rightIcon(){return mp(Dx,{get src(){return Ib}})},scale:"s",onClick:p,get children(){return mp(Wx,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),mp(_p,{get when(){return e.wallet.appName!==Pb},get children(){return mp(Ax,{get children(){return[mp(_p,{get when(){return Lp(()=>"mobile"!==t())()&&ox(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(nb,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.mobile",children:"Mobile"})}})}}),mp(_p,{get when(){return Lp(()=>"extension"!==t())()&&ix(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(eb,{})},onClick:h,get children(){return mp(Wx,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),mp(_p,{get when(){return Lp(()=>"desktop"!==t())()&&rx(e.wallet)},get children(){return mp(Ox,{appearance:"secondary",get leftIcon(){return mp(ob,{})},onClick:f,get children(){return mp(Wx,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Kx=ph.div``,Gx=ph(_m)`
809
809
  position: absolute;
810
810
  top: 16px;
811
811
  left: 16px;
@@ -842,7 +842,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
842
842
  `,iC=ph(Iy)`
843
843
  max-width: 262px;
844
844
  margin: 0 auto 8px;
845
- `,aC=ph(Em)`
845
+ `,aC=ph(_m)`
846
846
  position: absolute;
847
847
  top: 16px;
848
848
  left: 16px;
@@ -896,7 +896,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
896
896
  line-height: 20px;
897
897
  font-weight: 500;
898
898
  padding: 17px 20px 19px 20px;
899
- `,wC=e=>[mp(gC,{get children(){return e.walletInfo.name}}),mp(mC,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Lp(()=>e.walletInfo.name),"’s camera"]}}),mp(yC,{get children(){return mp(cy,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return $x(e.universalLink,"none")},disableCopy:!0})}}),mp(bC,{get children(){return[mp(vC,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),mp(vC,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return mp(Wx,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],xC=e=>{const t=dh(),[n,r]=Of(!0),[o,i]=Of(!1),[a,s]=Of(null);Lf(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=Zf(ig),c=l.onStatusChange(()=>{},e=>{s(e instanceof Qc?"missing-features":e instanceof Yc?"wrong-network":null)}),u=Nf(()=>{var t;return l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest,{traceId:null==(t=e.walletModalState)?void 0:t.traceId})}),d=()=>{if(pu(u()))return Qh(pf(ff({},e.wallet),{openMethod:"universal-link"})),void zx(u(),{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),Fx(u(),e.wallet.deepLink,{returnStrategy:Jw.returnStrategy,forceRedirect:t},t=>{Qh(pf(ff({},e.wallet),{openMethod:t}))})},[f,p]=Of(void 0),h=()=>gf(null,null,function*(){void 0!==f()&&clearTimeout(f()),yield sy(u());const e=setTimeout(()=>p(void 0),1500);p(e)}),g=()=>{s(null),i(!0),Qh(pf(ff({},e.wallet),{openMethod:"qrcode"}))},m=()=>{o()?(i(!1),Qh(pf(ff({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return Uf(c),d(),mp(rC,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[mp(Ep,{get when(){return!e.backDisabled||o()},get children(){return mp(aC,{icon:"arrow",onClick:m})}}),mp(Ep,{get when(){return o()},get children(){return mp(wC,{get universalLink(){return u()},get walletInfo(){return e.wallet},onOpenLink:d,onCopy:h,get isCopiedShown(){return f()}})}}),mp(Ep,{get when(){return!o()},get children(){return[mp(iC,{get children(){return e.wallet.name}}),mp(oC,{get children(){return[mp(Ep,{get when(){return a()},get children(){return[mp(dC,{size:"s"}),mp(_p,{get children(){return[mp(Tp,{get when(){return"missing-features"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),mp(Tp,{get when(){return"connection-declined"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"})}}),mp(Tp,{get when(){return"wrong-network"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.wrongNetwork",get translationValues(){return{name:e.wallet.name}},get children(){return["Connected wallet is on a different network. Please switch network in ",Lp(()=>e.wallet.name)," and try again."]}})}}),mp(Tp,{get when(){return"not-supported"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Lp(()=>e.wallet.name)," doesn't support the requested action. Please connect another wallet that supports it."]}})}})]}}),mp(pC,{get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return"missing-features"===a()},get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Lp(()=>e.wallet.name)]}})}})}})]}}),mp(Tp,{get when(){return"not-supported"===a()},get children(){return mp(nm,{onClick:()=>e.onBackClick(),get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}}),mp(Tp,{get when(){return"wrong-network"===a()},get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}}),mp(Tp,{get when(){return"connection-declined"===a()},get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(nm,{get leftIcon(){return mp(Cb,{get fill(){return t.colors.accent}})},onClick:g,get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})}})]}}),mp(Ep,{get when(){return!a()},get children(){return[mp(uC,{size:"s"}),mp(fC,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name),"…"]}}),mp(pC,{get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(nm,{get leftIcon(){return mp(Cb,{get fill(){return t.colors.accent}})},onClick:g,get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),mp(sC,{get children(){return[mp(lC,{get src(){return e.wallet.imageUrl}}),mp(My,{get children(){return e.wallet.name}}),mp(cC,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get children(){return mp(Wx,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},CC={m:"16px",s:"12px",none:"0"},SC={m:"6px",s:"6px",none:"0"};ph.li`
899
+ `,wC=e=>[mp(gC,{get children(){return e.walletInfo.name}}),mp(mC,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Lp(()=>e.walletInfo.name),"’s camera"]}}),mp(yC,{get children(){return mp(cy,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return $x(e.universalLink,"none")},disableCopy:!0})}}),mp(bC,{get children(){return[mp(vC,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),mp(vC,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return mp(Wx,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],xC=e=>{const t=dh(),[n,r]=Of(!0),[o,i]=Of(!1),[a,s]=Of(null);Lf(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=Zf(ig),c=l.onStatusChange(()=>{},e=>{s(e instanceof Qc?"missing-features":e instanceof Yc?"wrong-network":null)}),u=Nf(()=>{var t;return l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest,{traceId:null==(t=e.walletModalState)?void 0:t.traceId})}),d=()=>{if(pu(u()))return Qh(pf(ff({},e.wallet),{openMethod:"universal-link"})),void zx(u(),{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),Fx(u(),e.wallet.deepLink,{returnStrategy:Jw.returnStrategy,forceRedirect:t},t=>{Qh(pf(ff({},e.wallet),{openMethod:t}))})},[f,p]=Of(void 0),h=()=>gf(null,null,function*(){void 0!==f()&&clearTimeout(f()),yield sy(u());const e=setTimeout(()=>p(void 0),1500);p(e)}),g=()=>{s(null),i(!0),Qh(pf(ff({},e.wallet),{openMethod:"qrcode"}))},m=()=>{o()?(i(!1),Qh(pf(ff({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return Uf(c),d(),mp(rC,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[mp(_p,{get when(){return!e.backDisabled||o()},get children(){return mp(aC,{icon:"arrow",onClick:m})}}),mp(_p,{get when(){return o()},get children(){return mp(wC,{get universalLink(){return u()},get walletInfo(){return e.wallet},onOpenLink:d,onCopy:h,get isCopiedShown(){return f()}})}}),mp(_p,{get when(){return!o()},get children(){return[mp(iC,{get children(){return e.wallet.name}}),mp(oC,{get children(){return[mp(_p,{get when(){return a()},get children(){return[mp(dC,{size:"s"}),mp(Ep,{get children(){return[mp(Tp,{get when(){return"missing-features"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),mp(Tp,{get when(){return"connection-declined"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"})}}),mp(Tp,{get when(){return"wrong-network"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.wrongNetwork",get translationValues(){return{name:e.wallet.name}},get children(){return["Connected wallet is on a different network. Please switch network in ",Lp(()=>e.wallet.name)," and try again."]}})}}),mp(Tp,{get when(){return"not-supported"===a()},get children(){return mp(fC,{translationKey:"walletModal.mobileConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Lp(()=>e.wallet.name)," doesn't support the requested action. Please connect another wallet that supports it."]}})}})]}}),mp(pC,{get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return"missing-features"===a()},get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(Ub,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Lp(()=>e.wallet.name)]}})}})}})]}}),mp(Tp,{get when(){return"not-supported"===a()},get children(){return mp(nm,{onClick:()=>e.onBackClick(),get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}}),mp(Tp,{get when(){return"wrong-network"===a()},get children(){return mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}})}}),mp(Tp,{get when(){return"connection-declined"===a()},get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(nm,{get leftIcon(){return mp(Cb,{get fill(){return t.colors.accent}})},onClick:g,get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})}})]}}),mp(_p,{get when(){return!a()},get children(){return[mp(uC,{size:"s"}),mp(fC,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Lp(()=>e.wallet.name),"…"]}}),mp(pC,{get children(){return[mp(nm,{get leftIcon(){return mp(ab,{})},onClick:d,get children(){return mp(Wx,{translationKey:"common.retry",children:"Retry"})}}),mp(nm,{get leftIcon(){return mp(Cb,{get fill(){return t.colors.accent}})},onClick:g,get children(){return mp(Wx,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),mp(sC,{get children(){return[mp(lC,{get src(){return e.wallet.imageUrl}}),mp(My,{get children(){return e.wallet.name}}),mp(cC,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return mp(nm,{get children(){return mp(Wx,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},CC={m:"16px",s:"12px",none:"0"},SC={m:"6px",s:"6px",none:"0"};ph.li`
900
900
  width: 82px;
901
901
  min-width: 82px;
902
902
  height: 124px;
@@ -929,7 +929,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
929
929
  margin-top: 38px;
930
930
  margin-bottom: 4px;
931
931
  padding: 0 24px;
932
- `,EC=ph(Oy)`
932
+ `,_C=ph(Oy)`
933
933
  margin: ${e=>{var t;return null!=(t=e.margin)?t:"0 0 28px 0"}};
934
934
  padding: ${e=>{var t;return null!=(t=e.padding)?t:"0 24px"}};
935
935
  min-height: ${e=>{var t;return null!=(t=e.padding)?t:"44px"}};
@@ -939,7 +939,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
939
939
  `;ph(nm)`
940
940
  display: block;
941
941
  margin: 0 auto;
942
- `;const _C=ph(nm)`
942
+ `;const EC=ph(nm)`
943
943
  margin: 0 28px 24px;
944
944
  width: calc(100% - 56px);
945
945
  border-radius: ${e=>CC[e.theme.borderRadius]};
@@ -960,7 +960,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
960
960
  border-radius: ${e=>SC[e.theme.borderRadius]};
961
961
  width: 24px;
962
962
  height: 24px;
963
- `,PC=ph(Em)`
963
+ `,PC=ph(_m)`
964
964
  position: absolute;
965
965
  top: 16px;
966
966
  left: 16px;
@@ -988,7 +988,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
988
988
  line-height: 20px;
989
989
  font-weight: 500;
990
990
  padding: 17px 20px 19px 20px;
991
- `,LC=e=>[mp(IC,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),mp(AC,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),mp(OC,{get children(){return mp(cy,{get imageUrl(){return Rb},get sourceUrl(){return $x(e.universalLink,"none")},disableCopy:!0})}}),mp(jC,{get children(){return[mp(MC,{appearance:"secondary",onClick:()=>e.onOpenLink(),get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),mp(MC,{appearance:"secondary",onClick:()=>e.onCopy(),get children(){return mp(Wx,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})];function NC(e){const t=new Set(e.filter(zu).map(e=>e.bridgeUrl));return Array.from(t).map(e=>({bridgeUrl:e}))}function DC(e,t){const n=new Set(null==e?void 0:e.map(e=>e.bridgeUrl)),r=new Set(null==t?void 0:t.map(e=>e.bridgeUrl));return n.size===r.size&&[...n].every(e=>r.has(e))}var WC=Dp("<li>"),$C=Dp("<div data-tc-wallets-modal-universal-mobile=true>");const zC=e=>{const[t,n]=Of(!1),[r,o]=Of(!0),[i,a]=Of(null),s=Jw.connector,l=()=>e.walletsList.filter(e=>ox(e)&&e.appName!==Pb),c=()=>l().length>7,u=Nf(()=>NC(e.walletsList),null,{equals:DC}),d=Nf(()=>{var t,n;return null!=(n=null==(t=e.walletsList.find(e=>e.appName===Pb))?void 0:t.isSupportRequiredFeatures)&&n},null),f=()=>(i()||a(s.connect(u(),e.additionalRequest,{traceId:e.walletModalState.traceId})),i());Qh({openMethod:"universal-link"});const[p,h]=Of(void 0),g=()=>gf(null,null,function*(){void 0!==p()&&clearTimeout(p()),yield sy(f());const e=setTimeout(()=>h(void 0),1500);h(e)}),m=()=>{const e=!r();o(!1),Fx(f(),void 0,{returnStrategy:Jw.returnStrategy,forceRedirect:e},e=>{Qh({openMethod:e})})},y=()=>{a(null);const t=e.walletsList.find(e=>e.appName===Pb);if(!t||!zu(t))throw new Ch("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest,{traceId:e.walletModalState.traceId}),i=!r();o(!1),zx(n,{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:i})},b=()=>{n(!0),Qh({openMethod:"qrcode"})},v=()=>{n(!1),Qh({openMethod:"universal-link"})},w=Nf(()=>l().filter(e=>e.isSupportRequiredFeatures),null),x=Nf(()=>w().slice(0,3),null);Jh({walletsMenu:"main_screen",wallets:d()?[e.walletsList.find(e=>e.appName===Pb),...x()]:x()});const C=Nf(()=>l().filter(e=>!x().find(t=>t.appName===e.appName)).slice(0,4),null);return Up(S=$C(),mp(Ep,{get when(){return t()},get children(){return[mp(PC,{icon:"arrow",onClick:v}),mp(LC,{get universalLink(){return f()},get isCopiedShown(){return p()},onOpenLink:m,onCopy:g})]}}),null),Up(S,mp(Ep,{get when(){return!t()},get children(){return[mp(PC,{get icon(){return mp(Cb,{})},onClick:b}),mp(kC,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),mp(Ep,{get when(){return d()},get children(){return[mp(EC,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:320,children:"Use Wallet in Telegram or choose other application"}),mp(_C,{get leftIcon(){return mp(bb,{})},get rightIcon(){return mp(TC,{get src(){return Ib}})},onClick:y,scale:"s",get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Connect Wallet in Telegram"})}})]}}),mp(EC,{translationKey:"walletModal.mobileUniversalModal.chooseOtherApplication",maxWidth:342,padding:"0 24px 8px 24px",margin:"0",children:"Choose other application"}),mp(xy,{get children(){return[mp(kp,{get each(){return Lp(()=>!!c())()?x():w()},children:t=>{return Up(n=WC(),mp(Py,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n;var n}}),mp(Ep,{get when(){return c()},get children(){var t=WC();return Up(t,mp(Tb,{labelLine1:"View all",labelLine2:"wallets",get images(){return C().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})),t}})]}})]}}),null),S;var S},FC={m:"16px",s:"8px",none:"0"},UC={m:"8px",s:"4px",none:"0"},BC=ph.div`
991
+ `,LC=e=>[mp(IC,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),mp(AC,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),mp(OC,{get children(){return mp(cy,{get imageUrl(){return Rb},get sourceUrl(){return $x(e.universalLink,"none")},disableCopy:!0})}}),mp(jC,{get children(){return[mp(MC,{appearance:"secondary",onClick:()=>e.onOpenLink(),get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),mp(MC,{appearance:"secondary",onClick:()=>e.onCopy(),get children(){return mp(Wx,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})];function NC(e){const t=new Set(e.filter(zu).map(e=>e.bridgeUrl));return Array.from(t).map(e=>({bridgeUrl:e}))}function DC(e,t){const n=new Set(null==e?void 0:e.map(e=>e.bridgeUrl)),r=new Set(null==t?void 0:t.map(e=>e.bridgeUrl));return n.size===r.size&&[...n].every(e=>r.has(e))}var WC=Dp("<li>"),$C=Dp("<div data-tc-wallets-modal-universal-mobile=true>");const zC=e=>{const[t,n]=Of(!1),[r,o]=Of(!0),[i,a]=Of(null),s=Jw.connector,l=()=>e.walletsList.filter(e=>ox(e)&&e.appName!==Pb),c=()=>l().length>7,u=Nf(()=>NC(e.walletsList),null,{equals:DC}),d=Nf(()=>{var t,n;return null!=(n=null==(t=e.walletsList.find(e=>e.appName===Pb))?void 0:t.isSupportRequiredFeatures)&&n},null),f=()=>(i()||a(s.connect(u(),e.additionalRequest,{traceId:e.walletModalState.traceId})),i());Qh({openMethod:"universal-link"});const[p,h]=Of(void 0),g=()=>gf(null,null,function*(){void 0!==p()&&clearTimeout(p()),yield sy(f());const e=setTimeout(()=>h(void 0),1500);h(e)}),m=()=>{const e=!r();o(!1),Fx(f(),void 0,{returnStrategy:Jw.returnStrategy,forceRedirect:e},e=>{Qh({openMethod:e})})},y=()=>{a(null);const t=e.walletsList.find(e=>e.appName===Pb);if(!t||!zu(t))throw new Ch("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest,{traceId:e.walletModalState.traceId}),i=!r();o(!1),zx(n,{returnStrategy:Jw.returnStrategy,twaReturnUrl:Jw.twaReturnUrl,forceRedirect:i})},b=()=>{n(!0),Qh({openMethod:"qrcode"})},v=()=>{n(!1),Qh({openMethod:"universal-link"})},w=Nf(()=>l().filter(e=>e.isSupportRequiredFeatures),null),x=Nf(()=>w().slice(0,3),null);Jh({walletsMenu:"main_screen",wallets:d()?[e.walletsList.find(e=>e.appName===Pb),...x()]:x()});const C=Nf(()=>l().filter(e=>!x().find(t=>t.appName===e.appName)).slice(0,4),null);return Up(S=$C(),mp(_p,{get when(){return t()},get children(){return[mp(PC,{icon:"arrow",onClick:v}),mp(LC,{get universalLink(){return f()},get isCopiedShown(){return p()},onOpenLink:m,onCopy:g})]}}),null),Up(S,mp(_p,{get when(){return!t()},get children(){return[mp(PC,{get icon(){return mp(Cb,{})},onClick:b}),mp(kC,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),mp(_p,{get when(){return d()},get children(){return[mp(_C,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:320,children:"Use Wallet in Telegram or choose other application"}),mp(EC,{get leftIcon(){return mp(bb,{})},get rightIcon(){return mp(TC,{get src(){return Ib}})},onClick:y,scale:"s",get children(){return mp(Wx,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Connect Wallet in Telegram"})}})]}}),mp(_C,{translationKey:"walletModal.mobileUniversalModal.chooseOtherApplication",maxWidth:342,padding:"0 24px 8px 24px",margin:"0",children:"Choose other application"}),mp(xy,{get children(){return[mp(kp,{get each(){return Lp(()=>!!c())()?x():w()},children:t=>{return Up(n=WC(),mp(Py,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n;var n}}),mp(_p,{get when(){return c()},get children(){var t=WC();return Up(t,mp(Tb,{labelLine1:"View all",labelLine2:"wallets",get images(){return C().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})),t}})]}})]}}),null),S;var S},FC={m:"16px",s:"8px",none:"0"},UC={m:"8px",s:"4px",none:"0"},BC=ph.div`
992
992
  display: flex;
993
993
  flex-direction: column;
994
994
  align-items: center;
@@ -1078,7 +1078,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1078
1078
  display: flex;
1079
1079
  flex-direction: column;
1080
1080
  align-items: center;
1081
- `,JC=ph(Em)`
1081
+ `,JC=ph(_m)`
1082
1082
  position: absolute;
1083
1083
  top: 16px;
1084
1084
  left: 16px;
@@ -1131,7 +1131,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1131
1131
  padding-bottom: 31px;
1132
1132
  `,sS=ph.div`
1133
1133
  margin: 0 8px 16px 8px;
1134
- `,lS=ph(Em)`
1134
+ `,lS=ph(_m)`
1135
1135
  position: absolute;
1136
1136
  top: 16px;
1137
1137
  left: 16px;
@@ -1164,7 +1164,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1164
1164
  font-weight: 700;
1165
1165
  font-size: 22px;
1166
1166
  color: ${e=>{var t;return null==(t=e.theme)?void 0:t.colors.text.primary}};
1167
- `,hS=e=>mp(sS,{"data-tc-wallets-modal-restore":"true",get children(){return[mp(lS,{icon:"arrow",get onClick(){return e.onBackClick}}),mp(cS,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),mp(zb,{get children(){return[mp(uS,{get children(){return[mp(pS,{children:"1"}),mp(dS,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),mp(fS,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),mp(uS,{get children(){return[mp(pS,{children:"2"}),mp(dS,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),mp(fS,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),mp(uS,{get children(){return[mp(pS,{children:"3"}),mp(dS,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),mp(fS,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),gS=e=>{const[t,n]=Of(null),[r,o]=Of(!1),i=Nf(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Nf(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===Pb?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Nf(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=qu(t.features,r),a=qu(e.currentWallet.device.features,r);return o&&!a});return mp(XC,{get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return r()},get children(){return mp(hS,{onBackClick:()=>o(!1)})}}),mp(Tp,{get when(){return t()},get children(){return[mp(nS,{}),mp(XC,{get children(){return[mp(JC,{icon:"arrow",onClick:()=>n(null)}),mp(eS,{translationKey:"walletModal.featureNotSupported.disconnect.title",children:"Confirm Disconnect"}),mp(tS,{translationKey:"walletModal.featureNotSupported.disconnect.description",get translationValues(){return{name:t().name}},get children(){return["You will be disconnected from your current wallet and redirected to connect ",Lp(()=>{var e;return null==(e=t())?void 0:e.name}),"."]}}),mp(oS,{onClick:()=>gf(null,null,function*(){yield e.onDisconnect(),e.onSelect(t())}),get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.disconnect.button",children:"Disconnect"})}})]}})]}}),mp(Tp,{get when(){return s()},get children(){return[mp(ZC,{get children(){return a()}}),mp(rS,{size:"s"}),mp(iS,{translationKey:"walletModal.featureNotSupported.version.description",get translationValues(){return{name:a()}},get children(){return["Your current version of ",Lp(()=>a())," or wallet contract type doesn't support the required features. Please update it to continue."]}}),mp(aS,{get children(){return[mp(Ub,{get href(){return i().aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.version.updateButton",get translationValues(){return{name:a()}},get children(){return["Update ",Lp(()=>a())]}})}})}}),mp(Ub,{href:"https://tonkeeper.helpscoutdocs.com/article/102-w5",blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.version.aboutW5",children:"About W5"})}})}})]}})]}}),mp(Tp,{when:!0,get children(){return[mp(nS,{}),mp(rS,{size:"s"}),mp(eS,{translationKey:"walletModal.featureNotSupported.wallet.title",get translationValues(){return{name:a()}},get children(){return[Lp(()=>a())," doesn’t support the requested action"]}}),mp(nS,{})]}})]}})}})},mS=()=>{const{locale:e}=py()[1];Lf(()=>e(Jw.language)),Lf(()=>{Fh()?($b(),o()):(a(null),u("universal"),f(!1))});const t=Zf(ig),n=Zf(Bb),[r,{refetch:o}]=Df(()=>n.getWallets()),[i,a]=Of(null),[s,l]=Of(null),[c,u]=Of("universal"),[d,f]=Of(!1),p=Nf(()=>{const e=$h();return"type"in e&&"wallet-not-support-feature"===e.type}),h=Nf(()=>{var e;if("ready"!==r.state)return null;let t=nx(r(),Jw.walletsListConfiguration);const o=t.filter(Wu),i=t.filter(e=>!Wu(e));t=(o||[]).concat(i);const a=Jw.preferredWalletAppName,s=t.find(e=>ax(e,a)),l=t.filter(e=>ax(e,a)).length>=2;a&&s&&!l&&(t=[pf(ff({},s),{isPreferred:!0})].concat(t.filter(e=>!ax(e,a))));const c=t.find(e=>ax(e,Pb));c&&(t=[c].concat(t.filter(e=>!ax(e,Pb))));const u=null!=(e=null==n?void 0:n.walletsRequiredFeatures)?e:null==n?void 0:n.walletsPreferredFeatures;return t.map(e=>{var t;return pf(ff({},e),{isSupportRequiredFeatures:!u||qu(null!=(t=e.features)?t:[],u)})})}),g=()=>{var e;return"loading"===(null==(e=Jw.connectRequestParameters)?void 0:e.state)},m=Nf(()=>{var e;if(!g())return null==(e=Jw.connectRequestParameters)?void 0:e.value}),y=e=>{n.closeModal(e)},b=t.onStatusChange(e=>{e&&y("wallet-selected")},e=>{var t;if(e instanceof Qc){const n=e.cause.connectEvent.device.appName.toLowerCase(),r=null==(t=h())?void 0:t.find(e=>e.appName.toLowerCase()===n);if(!r)throw new Fc("Wallet not found");const o=r.isSupportRequiredFeatures?"missing-features":"not-supported";l(o),a(r)}}),v=()=>{u("all-wallets")},w=()=>{u("universal")},x=e=>{a(e),jS.openWalletsModal()},C=()=>{a(null),l(null)};return Uf(()=>{a(null),l(null),f(!1)}),Uf(b),mp(Yw,{get opened(){return Fh()},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>y("action-cancelled"),onClickQuestion:()=>f(e=>!e),get showFooter(){return!p()},"data-tc-wallets-modal-container":"true",get children(){return[mp(Ep,{get when(){return d()},get children(){return mp(nC,{onBackClick:()=>f(!1)})}}),mp(Ep,{get when(){return!d()},get children(){return[mp(Ep,{get when(){return g()||!h()},get children(){return[mp(Zw,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),mp(Xw,{get children(){return mp(Gy,{size:"m"})}})]}}),mp(Ep,{get when(){return Lp(()=>!g())()&&h()},get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return p()},get children(){return mp(gS,{get walletsList(){return h()},get currentWallet(){return null==n?void 0:n.wallet},onSelect:x,onSelectAllWallets:v,onDisconnect:()=>t.disconnect(),get walletsModalState(){return $h()},onClose:()=>y("action-cancelled")})}}),mp(Tp,{get when(){return i()},get children(){return mp(Xp,{get component(){return Db()?xC:Vx},get walletsModalState(){return $h()},get wallet(){return i()},get additionalRequest(){return m()},onBackClick:C,get defaultError(){return s()}})}}),mp(Tp,{get when(){return"universal"===c()},get children(){return mp(Xp,{get component(){return Db()?zC:QC},onSelect:a,get walletModalState(){return $h()},get walletsList(){return h()},get additionalRequest(){return m()},onSelectAllWallets:v})}}),mp(Tp,{get when(){return"all-wallets"===c()},get children(){return mp(xx,{get walletsList(){return h()},get featureCheckMode(){return(null==n?void 0:n.walletsRequiredFeatures)?"strict":"soft"},onBack:w,onSelect:a})}})]}})}})]}})]}})},yS=ph.div`
1167
+ `,hS=e=>mp(sS,{"data-tc-wallets-modal-restore":"true",get children(){return[mp(lS,{icon:"arrow",get onClick(){return e.onBackClick}}),mp(cS,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),mp(zb,{get children(){return[mp(uS,{get children(){return[mp(pS,{children:"1"}),mp(dS,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),mp(fS,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),mp(uS,{get children(){return[mp(pS,{children:"2"}),mp(dS,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),mp(fS,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),mp(uS,{get children(){return[mp(pS,{children:"3"}),mp(dS,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),mp(fS,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),gS=e=>{const[t,n]=Of(null),[r,o]=Of(!1),i=Nf(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Nf(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===Pb?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Nf(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=qu(t.features,r),a=qu(e.currentWallet.device.features,r);return o&&!a});return mp(XC,{get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return r()},get children(){return mp(hS,{onBackClick:()=>o(!1)})}}),mp(Tp,{get when(){return t()},get children(){return[mp(nS,{}),mp(XC,{get children(){return[mp(JC,{icon:"arrow",onClick:()=>n(null)}),mp(eS,{translationKey:"walletModal.featureNotSupported.disconnect.title",children:"Confirm Disconnect"}),mp(tS,{translationKey:"walletModal.featureNotSupported.disconnect.description",get translationValues(){return{name:t().name}},get children(){return["You will be disconnected from your current wallet and redirected to connect ",Lp(()=>{var e;return null==(e=t())?void 0:e.name}),"."]}}),mp(oS,{onClick:()=>gf(null,null,function*(){yield e.onDisconnect(),e.onSelect(t())}),get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.disconnect.button",children:"Disconnect"})}})]}})]}}),mp(Tp,{get when(){return s()},get children(){return[mp(ZC,{get children(){return a()}}),mp(rS,{size:"s"}),mp(iS,{translationKey:"walletModal.featureNotSupported.version.description",get translationValues(){return{name:a()}},get children(){return["Your current version of ",Lp(()=>a())," or wallet contract type doesn't support the required features. Please update it to continue."]}}),mp(aS,{get children(){return[mp(Ub,{get href(){return i().aboutUrl},blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.version.updateButton",get translationValues(){return{name:a()}},get children(){return["Update ",Lp(()=>a())]}})}})}}),mp(Ub,{href:"https://tonkeeper.helpscoutdocs.com/article/102-w5",blank:!0,get children(){return mp(nm,{get leftIcon(){return mp(lb,{})},get children(){return mp(Wx,{translationKey:"walletModal.featureNotSupported.version.aboutW5",children:"About W5"})}})}})]}})]}}),mp(Tp,{when:!0,get children(){return[mp(nS,{}),mp(rS,{size:"s"}),mp(eS,{translationKey:"walletModal.featureNotSupported.wallet.title",get translationValues(){return{name:a()}},get children(){return[Lp(()=>a())," doesn’t support the requested action"]}}),mp(nS,{})]}})]}})}})},mS=()=>{const{locale:e}=py()[1];Lf(()=>e(Jw.language)),Lf(()=>{Fh()?($b(),o()):(a(null),u("universal"),f(!1))});const t=Zf(ig),n=Zf(Bb),[r,{refetch:o}]=Df(()=>n.getWallets()),[i,a]=Of(null),[s,l]=Of(null),[c,u]=Of("universal"),[d,f]=Of(!1),p=Nf(()=>{const e=$h();return"type"in e&&"wallet-not-support-feature"===e.type}),h=Nf(()=>{var e;if("ready"!==r.state)return null;let t=nx(r(),Jw.walletsListConfiguration);const o=t.filter(Wu),i=t.filter(e=>!Wu(e));t=(o||[]).concat(i);const a=Jw.preferredWalletAppName,s=t.find(e=>ax(e,a)),l=t.filter(e=>ax(e,a)).length>=2;a&&s&&!l&&(t=[pf(ff({},s),{isPreferred:!0})].concat(t.filter(e=>!ax(e,a))));const c=t.find(e=>ax(e,Pb));c&&(t=[c].concat(t.filter(e=>!ax(e,Pb))));const u=null!=(e=null==n?void 0:n.walletsRequiredFeatures)?e:null==n?void 0:n.walletsPreferredFeatures;return t.map(e=>{var t;return pf(ff({},e),{isSupportRequiredFeatures:!u||qu(null!=(t=e.features)?t:[],u)})})}),g=()=>{var e;return"loading"===(null==(e=Jw.connectRequestParameters)?void 0:e.state)},m=Nf(()=>{var e;if(!g())return null==(e=Jw.connectRequestParameters)?void 0:e.value}),y=e=>{n.closeModal(e)},b=t.onStatusChange(e=>{e&&y("wallet-selected")},e=>{var t;if(e instanceof Qc){const n=e.cause.connectEvent.device.appName.toLowerCase(),r=null==(t=h())?void 0:t.find(e=>e.appName.toLowerCase()===n);if(!r)throw new Fc("Wallet not found");const o=r.isSupportRequiredFeatures?"missing-features":"not-supported";l(o),a(r)}}),v=()=>{u("all-wallets")},w=()=>{u("universal")},x=e=>{a(e),jS.openWalletsModal()},C=()=>{a(null),l(null)};return Uf(()=>{a(null),l(null),f(!1)}),Uf(b),mp(Yw,{get opened(){return Fh()},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>y("action-cancelled"),onClickQuestion:()=>f(e=>!e),get showFooter(){return!p()},"data-tc-wallets-modal-container":"true",get children(){return[mp(_p,{get when(){return d()},get children(){return mp(nC,{onBackClick:()=>f(!1)})}}),mp(_p,{get when(){return!d()},get children(){return[mp(_p,{get when(){return g()||!h()},get children(){return[mp(Zw,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),mp(Xw,{get children(){return mp(Gy,{size:"m"})}})]}}),mp(_p,{get when(){return Lp(()=>!g())()&&h()},get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return p()},get children(){return mp(gS,{get walletsList(){return h()},get currentWallet(){return null==n?void 0:n.wallet},onSelect:x,onSelectAllWallets:v,onDisconnect:()=>t.disconnect(),get walletsModalState(){return $h()},onClose:()=>y("action-cancelled")})}}),mp(Tp,{get when(){return i()},get children(){return mp(Xp,{get component(){return Db()?xC:Vx},get walletsModalState(){return $h()},get wallet(){return i()},get additionalRequest(){return m()},onBackClick:C,get defaultError(){return s()}})}}),mp(Tp,{get when(){return"universal"===c()},get children(){return mp(Xp,{get component(){return Db()?zC:QC},onSelect:a,get walletModalState(){return $h()},get walletsList(){return h()},get additionalRequest(){return m()},onSelectAllWallets:v})}}),mp(Tp,{get when(){return"all-wallets"===c()},get children(){return mp(xx,{get walletsList(){return h()},get featureCheckMode(){return(null==n?void 0:n.walletsRequiredFeatures)?"strict":"soft"},onBack:w,onSelect:a})}})]}})}})]}})]}})},yS=ph.div`
1168
1168
  display: flex;
1169
1169
  flex-direction: column;
1170
1170
  align-items: center;
@@ -1187,7 +1187,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1187
1187
  width: 16px;
1188
1188
  `,CS=ph(nm)`
1189
1189
  margin-top: 32px;
1190
- `,SS=e=>{const t=tm(e),n=Zf(Bb),[r,o]=Of(!0),[i,a]=Of(!1),[s,l]=Of(!1),[c,u]=Of(!1);let d,f;Lf(()=>{const e=Yh();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||pu(n.wallet.universalLink)&&Wg())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||pu(n.wallet.deepLink)&&Wg())&&(f=n.wallet.deepLink);const p=()=>{const e=Yh(),t="returnStrategy"in e?e.returnStrategy:Jw.returnStrategy,n=!r();o(!1);const i=Ux(d,{sessionId:e.sessionId,traceId:e.traceId});pu(d)?zx(i,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:Jw.twaReturnUrl,forceRedirect:n}):Fx(i,f,{returnStrategy:t,forceRedirect:n},()=>{})};return mp(yS,xp(t,{get children(){return[Lp(()=>e.icon),mp(bS,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),mp(vS,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),mp(Ep,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return mp(wS,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return mp(xS,{})}})}}),mp(Ep,{get when(){return i()||s()},get children(){return[mp(Ep,{get when(){return"open-wallet"!==e.showButton},get children(){return mp(CS,{onClick:()=>e.onClose(),get children(){return mp(Wx,{translationKey:"common.close",children:"Close"})}})}}),mp(Ep,{get when(){return"open-wallet"===e.showButton&&d},get children(){return mp(CS,{onClick:p,get children(){return mp(Wx,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},kS=e=>{const t=Zf(Bb),[n]=py();return mp(SS,{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 mp(Gy,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},ES=e=>mp(SS,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return mp(qy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),_S=e=>mp(SS,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return mp(zy,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),TS=e=>{const t=Zf(Bb),[n]=py();return mp(SS,{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 mp(Gy,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},PS=e=>mp(SS,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return mp(qy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),RS=e=>mp(SS,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return mp(zy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),IS=()=>mp(Fm,{get opened(){var e;return Lp(()=>null!==Yh())()&&!0===(null==(e=Yh())?void 0:e.openModal)},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>Zh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return mp(_p,{get children(){return[mp(Tp,{get when(){return"transaction-sent"===Yh().name},get children(){return mp(_S,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"transaction-canceled"===Yh().name},get children(){return mp(ES,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"confirm-transaction"===Yh().name},get children(){return mp(kS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"data-signed"===Yh().name},get children(){return mp(RS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"sign-data-canceled"===Yh().name},get children(){return mp(PS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"confirm-sign-data"===Yh().name},get children(){return mp(TS,{onClose:()=>Zh(null)})}})]}})}}),AS=()=>{const{locale:e}=py()[1];Lf(()=>e(Jw.language)),Lf(()=>{qh()&&$b()});const t=Zf(ig),n=Zf(Bb),[r,o]=Of(!1),i=()=>{var e;return"loading"===(null==(e=Jw.connectRequestParameters)?void 0:e.state)},a=Nf(()=>{var e;if(!i())return null==(e=Jw.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return Uf(t.onStatusChange(e=>{e&&s("wallet-selected")})),Uf(()=>{o(!1)}),mp(Yw,{get opened(){return qh()},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[mp(Ep,{get when(){return r()},get children(){return mp(nC,{onBackClick:()=>o(!1)})}}),mp(Ep,{get when(){return!r()},get children(){return[mp(Ep,{get when(){return i()},get children(){return[mp(Zw,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),mp(Xw,{get children(){return mp(Gy,{size:"m"})}})]}}),mp(Ep,{get when(){return!i()},get children(){return mp(Xp,{get component(){return Db()?xC:Vx},get wallet(){return Hh()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},OS=e=>{const t=dy(rg,Jw.language);return customElements.get("tc-root")||customElements.define(gh,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),mp(fy.Provider,{value:t,get children(){return mp(Bb.Provider,{get value(){return e.tonConnectUI},get children(){return mp(ig.Provider,{get value(){return Jw.connector},get children(){return[mp(bh,{}),mp(uh,{theme:Eg,get children(){return[mp(Ep,{get when(){return Jw.buttonRootId},get children(){return mp(Zp,{get mount(){return document.getElementById(Jw.buttonRootId)},get children(){return mp(Qw,{})}})}}),mp(Xp,{component:gh,get children(){return[mp(mS,{}),mp(AS,{}),mp(IS,{})]}})]}})]}})}})}})},jS={openWalletsModal:e=>{setTimeout(()=>zh(t=>{var n;return{status:"opened",traceId:null!=(n=null==e?void 0:e.traceId)?n:null==t?void 0:t.traceId,closeReason:null}}))},closeWalletsModal:e=>{setTimeout(()=>zh({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Bh({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Bh({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:(e,t)=>{setTimeout(()=>zh({status:"opened",traceId:t.traceId,closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>Zh(e))},clearAction:()=>{setTimeout(()=>Zh(null))},getSelectedWalletInfo:()=>Kh(),getLastVisibleWallets:()=>Xh(),removeSelectedWalletInfo:()=>Qh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Af(r=>{o=r,t===document?e():Up(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>mp(OS,{tonConnectUI:t}),document.getElementById(e))};class MS{constructor(e){this.consumers=[],this.state=$h(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Lf(()=>{const e=$h();this.state=e,this.consumers.forEach(t=>t(e))}),Lf(zf(Kh,(e,t)=>gf(this,null,function*(){try{const{wallets:n,walletsMenu:r}=jS.getLastVisibleWallets();if(e&&"appName"in e){if(t&&"appName"in t&&t.appName===e.appName)return;const o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(n.map(e=>e.name),e,r,"",void 0,o,this.state.traceId)}}catch(n){kh(n)}}))),Lf(zf(eg,e=>gf(this,null,function*(){try{const{wallets:n,walletsMenu:r}=jS.getLastVisibleWallets();if((t=e.link)&&(t.includes("ton_addr")||t.includes("ton--5Faddr"))){const t=Kh(),o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(n.map(e=>e.name),t&&"appName"in t?t:null,r,e.link,e.type,o,this.state.traceId)}}catch(n){kh(n)}var t})))}open(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:_u();this.tracker.trackConnectionStarted();const r=(yield this.connector.getWallets()).find($u);return r?this.connectEmbeddedWallet(r,{traceId:n}):this.openWalletsModal({traceId:n})})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),jS.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e,t){const n=n=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},n,{traceId:t.traceId})},r=Jw.connectRequestParameters;"loading"===(null==r?void 0:r.state)?this.setConnectRequestParametersCallback(n):n(null==r?void 0:r.value)}openWalletsModal(e){return gf(this,null,function*(){return Wg()&&zg(),jS.openWalletsModal({traceId:e.traceId}),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class LS{constructor(e){this.consumers=[],this.connector=e.connector,Lf(()=>{const e=Yh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class NS{constructor(e){this.consumers=[],this.state=Uh(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Lf(()=>{const e=Uh();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return gf(this,null,function*(){this.tracker.trackConnectionStarted();const t=nx(yield this.connector.getWallets(),Jw.walletsListConfiguration),n=t.find($u);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(zu).find(t=>ax(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 Ch(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),jS.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Jw.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return gf(this,null,function*(){return Wg()&&zg(),jS.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class DS{constructor(e){this.eventPrefix="ton-connect-ui-",this.tonConnectSdkVersion=null,this.eventDispatcher=null==e?void 0:e.eventDispatcher,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Ku({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return gf(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(yT){}})}setRequestVersionHandler(){return gf(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>gf(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Vu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return gf(this,null,function*(){return new Promise((e,t)=>gf(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(yT){t(yT)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(yT){}}trackWalletModalOpened(...e){try{const t=function(e,t,n,r){return{type:"wallet-modal-opened",visible_wallets:t,client_id:null!=n?n:null,custom_data:e,trace_id:null!=r?r:null}}(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackSelectedWallet(...e){try{const t=function(e,t,n,r,o,i,a,s){var l;let c=i;return!c&&o&&(c=pu(o)?"tg_link":"external_link"),{type:"selected-wallet",wallets_menu:r,visible_wallets:t,client_id:null!=a?a:null,custom_data:e,trace_id:null!=s?s:null,wallet_redirect_method:c,wallet_redirect_link:o||void 0,wallet_type:null!==(l=null==n?void 0:n.appName)&&void 0!==l?l:null}}(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){kh(yT)}}trackConnectionStarted(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionCompleted(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionError(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringStarted(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringCompleted(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringError(...e){try{const t=ed(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDisconnection(...e){try{const t=ld(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSentForSignature(...e){try{const t=nd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSigned(...e){try{const t=rd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSigningFailed(...e){try{const t=od(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSentForSignature(...e){try{const t=id(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSigned(...e){try{const t=ad(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSigningFailed(...e){try{const t=sd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}}class WS{constructor(){this.userAgent=Oh()}getLocale(){var e;return(null==(e=navigator.languages)?void 0:e[0])||navigator.language||""}getBrowser(){var e;return null!=(e=this.userAgent.browser)?e:""}getPlatform(){var e;return null!=(e=this.userAgent.os)?e:""}getTelegramUser(){return Ng}getClientEnvironment(){return Wg()?"miniapp":"web"}}class $S{constructor(e){var t;this.walletInfoStorage=new Nh,this.preferredWalletStorage=new Dh,this.walletInfo=null,this.systemThemeChangeUnsubscribe=null,this.connectionRestored=Promise.resolve(!1);let n=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Ld;if(e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Ch("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new Ud({manifestUrl:e.manifestUrl,eventDispatcher:n,walletsRequiredFeatures:e.walletsRequiredFeatures,environment:new WS,analytics:e.analytics})}this.tracker=new DS({eventDispatcher:n,tonConnectUiVersion:"2.4.0"}),this.modal=new MS({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new NS({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new LS({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Rh((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const r=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return gf(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>gf(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=kg(e,{uiPreferences:{theme:"SYSTEM"}});const o=this.preferredWalletStorage.getPreferredWalletAppName();ex({connector:this.connector,preferredWalletAppName:o}),jS.renderApp(r,this)}static getWallets(){return Ud.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?ff(ff({},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),Rg(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Rg(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?Jp.LIGHT:Jp.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?Jp.DARK:Jp.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Rg))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Pg[Jp.DARK]=kg(a[Jp.DARK],Pg[Jp.DARK]),Pg[Jp.LIGHT]=kg(a[Jp.LIGHT],Pg[Jp.LIGHT]),_g(e=>({colors:kg(Pg[e.theme],Tg[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,_g({borderRadius:s})),ex(t=>{var n,r;const o=kg(ff(ff(ff(ff({},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}),fg(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;ex({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}setConnectionNetwork(e){this.connector.setConnectionNetwork(e)}getWallets(){return gf(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>gf(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(ff(ff({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:_u();yield this.modal.open({traceId:n});const r=yield this.getSessionId(),o=jS.getLastVisibleWallets();this.tracker.trackWalletModalOpened(o.wallets.map(e=>e.name),r,null==e?void 0:e.traceId)})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return gf(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(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:_u(),r=(yield this.getWallets()).find($u);return r?yield this.connectEmbeddedWallet(r,{traceId:n}):yield this.connectExternalWallet({traceId:n})})}disconnect(e){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:_u();return this.tracker.trackDisconnection(this.wallet,"dapp"),jS.clearAction(),jS.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect({traceId:n})}sendTransaction(e,t){return gf(this,null,function*(){var n;const r=null!=(n=null==t?void 0:t.traceId)?n:_u();if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Ch("Connect wallet to send a transaction.");Wg()&&zg();const{notifications:o,modals:i,returnStrategy:a,twaReturnUrl:s}=this.getModalsAndNotificationsConfiguration(t),l=yield this.getSessionId();jS.setAction({name:"confirm-transaction",showNotification:o.includes("before"),openModal:i.includes("before"),sent:!1,sessionId:l||void 0,traceId:r});const c=new AbortController,u=()=>{var e;if(c.signal.aborted)return;jS.setAction({name:"confirm-transaction",showNotification:o.includes("before"),openModal:i.includes("before"),sent:!0,sessionId:l||void 0,traceId:r}),this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,sessionId:l||void 0,traceId:r});let n=!0;null==(e=null==t?void 0:t.onRequestSent)||e.call(t,()=>gf(this,null,function*(){if(c.signal.aborted)return;const e=!n;n=!1,yield this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,forceRedirect:e,sessionId:l||void 0,traceId:r})}))},d=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(d(),e||c.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:c.signal,traceId:r},u);return this.tracker.trackTransactionSigned(this.wallet,e,t),jS.setAction({name:"transaction-sent",showNotification:o.includes("success"),openModal:i.includes("success"),traceId:r}),t}catch(yT){if(yT instanceof Gc)throw jS.clearAction(),jS.openWalletNotSupportFeatureModal(yT.cause,{traceId:r}),yT;throw jS.setAction({name:"transaction-canceled",showNotification:o.includes("error"),openModal:i.includes("error"),traceId:r}),yT instanceof Fc?yT:(console.error(yT),new Ch("Unhandled error:"+yT))}finally{d()}})}signData(e,t){return gf(this,null,function*(){var n;const r=null!=(n=null==t?void 0:t.traceId)?n:_u();if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Ch("Connect wallet to send a transaction.");Wg()&&zg();const{notifications:o,modals:i,returnStrategy:a,twaReturnUrl:s}=this.getModalsAndNotificationsConfiguration(),l=yield this.getSessionId();jS.setAction({name:"confirm-sign-data",showNotification:o.includes("before"),openModal:i.includes("before"),signed:!1,sessionId:l||void 0,traceId:r});const c=new AbortController,u=()=>{var e;if(c.signal.aborted)return;jS.setAction({name:"confirm-sign-data",showNotification:o.includes("before"),openModal:i.includes("before"),signed:!0,sessionId:l||void 0,traceId:r}),this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,sessionId:l||void 0,traceId:r});let n=!0;null==(e=null==t?void 0:t.onRequestSent)||e.call(t,()=>{if(c.signal.aborted)return;const e=!n;n=!1,this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,forceRedirect:e,sessionId:l||void 0,traceId:r})})},d=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(d(),e||c.abort())});try{const t=yield this.waitForSignData({data:e,signal:(new AbortController).signal,traceId:r},u);return this.tracker.trackDataSigned(this.wallet,e,t),jS.setAction({name:"data-signed",showNotification:o.includes("success"),openModal:i.includes("success"),traceId:r}),t}catch(yT){if(yT instanceof Gc)throw jS.clearAction(),jS.openWalletNotSupportFeatureModal(yT.cause,{traceId:r}),yT;throw jS.setAction({name:"sign-data-canceled",showNotification:o.includes("error"),openModal:i.includes("error"),traceId:r}),yT instanceof Fc?yT:(console.error(yT),new Ch("Unhandled error:"+yT))}finally{d()}})}getSessionId(){return gf(this,null,function*(){var e,t;try{const n=null==(e=this.connector.dappSettings)?void 0:e.storage;if(n){const e=yield n.getItem("ton-connect-storage_bridge-connection");if(e){const n=JSON.parse(e);if("http"===n.type&&n.sessionCrypto){const e=new Wc(n.sessionCrypto);return e.sessionId}if("http"===n.type&&(null==(t=n.session)?void 0:t.sessionKeyPair)){const e=new Wc(n.session.sessionKeyPair);return e.sessionId}}}}catch(yT){}return null})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t,forceRedirect:n,sessionId:r,traceId:o}){if(this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)){const i=Ux(this.walletInfo.universalLink,{sessionId:r,traceId:o});pu(this.walletInfo.universalLink)?zx(i,{returnStrategy:e,twaReturnUrl:t||Jw.twaReturnUrl,forceRedirect:n||!1}):Fx(i,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:n||!1},()=>{})}}connectEmbeddedWallet(e,t){return gf(this,null,function*(){const n=n=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},n,{traceId:t.traceId})},r=Jw.connectRequestParameters;return"loading"===(null==r?void 0:r.state)?this.connectRequestParametersCallback=n:n(null==r?void 0:r.value),yield this.waitForWalletConnection({ignoreErrors:!1,traceId:t.traceId})})}connectExternalWallet(e){return gf(this,null,function*(){const t=new AbortController;jS.openWalletsModal({traceId:e.traceId});const n=this.onModalStateChange(e=>{const{status:r,closeReason:o}=e;"opened"!==r&&(n(),"action-cancelled"===o&&t.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:t.signal,traceId:e.traceId})})}waitForWalletConnection(e){return gf(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 Ch("Wallet was not connected"));const i=e=>gf(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 Ch("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 Ch("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return gf(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 Ch("Transaction was not sent"));const a=e=>gf(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Ch("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i,traceId:e.traceId}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return gf(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 Ch("SignData was not sent"));const a=e=>gf(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Ch("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=>gf(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),ex({preferredWalletAppName:e})}getSelectedWalletInfo(e){return gf(this,null,function*(){let t=jS.getSelectedWalletInfo();if(!t)return null;if(!("name"in t)){if(e.device.appName===bx)return{type:"wallet-connect",name:vx,appName:bx,imageUrl:Ab,aboutUrl:"https://reown.com/",features:e.device.features,platforms:[]};const n=nx(yield this.walletsList,Jw.walletsListConfiguration).find(t=>ax(t,e.device.appName));if(!n)throw new Ch(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);return ff(ff({},n),t)}return t})}updateWalletInfo(e){return gf(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=>ax(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 Ch(`${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 Wg()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var zS,FS={exports:{}},US=FS.exports;var BS=(zS||(zS=1,function(e,t){var r,o;r="object"==typeof window&&window||US||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}(FS,FS.exports)),FS.exports);const qS=r(BS);const HS=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?dd(this._tonConnect.account.address,!1):null}init(){const e=dc.gameInfo.name,t=dc.gameInfo.describe,n=dc.gameInfo.icon,r=window.location.origin;this.solanaPayInit(e,t,r,n);let o=this._tonConnect=new $S({manifestUrl:na.MANIFEST_URL});o.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),o.connectionRestored.then(e=>{e?(qS.publish(Pl,!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(new Gl(Nl.walletError,"The wallet info is null"));this._tonProof=r.connectItems?.tonProof;let o=r.account.address;qS.publish(Pl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t(new Gl(Nl.walletError,"Wallet connect failed"))))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t(new Gl(Nl.walletError,"Open modal error"))})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{qS.publish(Pl,!1),e()}).catch(e=>{console.log(e),t(new Gl(Nl.walletError,"Wallet disconnect error"))})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n(new Gl(Nl.walletNotConnected,"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(new Gl(Nl.walletError,"Wallet transaction error"))})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t(new Gl(Nl.signDataError,"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=`${na.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Ql.get(s).then(e=>{let t=e.data?.payload;if(!t)return i(new Gl(Nl.tokenUseError,e.message));o({address:a,payload:t})}).catch(e=>{console.log(e),i(new Gl(Nl.tokenUseError,"Load token payload error"))})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=na.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r(new Gl(Nl.tokenUseError,`${e} invalid`));let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Ql.get(na.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(new Gl(Nl.insufficientFunds,`Insufficient ${e} assets`));n(dd(a))}).catch(e=>{console.log(e),r(new Gl(Nl.tokenUseError,"Load jetton wallet error"))})})}solanaPayInit(e,t,n,r){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.init(na.TEST_MODE,e,t,n,r)}solanaPayOnEvent(e,t){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.onEvent(e,t)}solanaPayOffEvent(e){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.offEvent(e)}solanaPayConnectWallet(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.connectWallet():Promise.reject("Method not support")}solanaPayDisconnectWallet(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.disconnectWallet():Promise.reject("Method not support")}solanaPayGetWalletAddress(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.getWalletAddress():""}solanaPaySendTransaction(e,t,n){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.sendTransaction(e,t,n):Promise.reject("Method not support")}async nativeWalletConnect(){if("1060"!=na.GAME_ID)throw new Gl(Nl.walletError,"Method not support");if(!sc()){if(!window.PlutoSolPay)throw new Gl(Nl.walletError,"Method not support");return PlutoSolPay.connectWallet().then(e=>{if(!PlutoSolPay.getWalletName().includes("KuCoin"))throw PlutoSolPay.disconnectWallet(),new Gl(Nl.walletError,"Wallet not support");return e})}const e=dc.plutoId+Date.now()+nc(1,100),t=Date.now(),n=`https://www.kucoin.com/web3?scene=deeplink_web3_wallet&kc_app_url=kucoin:///wallet/dappInDiscover?url=${encodeURIComponent(`https://connecting.capybobo.io?params=${e}:connect:${t}:capybobo`)}`;window.open(n,"_blank");for(let o=1;o<=60;o++){try{const t=await Ql.get(`https://connectingapi.capybobo.io/get/${e}`);if(console.log("res: ",t),0==t.code&&t.data)return t.data}catch(r){console.log(`Attempt ${o} failed:`,r)}if(!(o<60))throw new Gl(Nl.walletError,"Connect native wallet error");await new Promise(e=>setTimeout(e,2e3))}}};const VS=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060","1061"].includes(na.GAME_ID)}get disableLoginShare(){return"1002"==na.GAME_ID}get disableAddScreen(){return!oc()||!sc()||"1057"==na.GAME_ID}init(){if(oc())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}na.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${dc.gameInfo.appUrl}?startapp=g_${na.GAME_ID}_${dc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(ic()&&sc()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{oc()||n(new Gl(Nl.openInvoiceError,"Open invoice error")),window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n(new Gl(Nl.openInvoiceError,"Open invoice error"))})})}shareMessageEnable(){return!!oc()&&window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{oc()||n(new Gl(Nl.shareError,"Share failed")),window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n(new Gl(Nl.shareError,"Share failed"));t()})})}vibrate(e){if(!ic()||!sc())return;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(new Gl(Nl.playAdError,`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(new Gl(Nl.playAdError,"Play ad error"))})})}signData(){return new Promise((e,t)=>{if(HS.connected&&HS.friendlyAddress==dc.boundWallet)return e();HS.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 uc.gameInfo();let t=(e.catalog||[]).filter(e=>e==Ll.airdrop||e==Ll.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,gameUrl:"",tags:t,orientation:e.orientation||$l.portrait};return dc.gameInfo=n,dc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject(new Gl(Nl.initError,"Init error"));await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return uc.login().then(e=>{let t=na.GAME_ID,n=dc.plutoId=e.plutoid,r=dc.firstName=e.tgfirstname,o=dc.lastName=e.tglastname,i=dc.icon=e.icon,a=e.ticket;return dc.boundWallet=e.boundwallet,dc.gameInfo.gameUrl=e.gameurl,na.TOKEN=e.token,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return uc.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,S=parseFloat(r.cocdiscount)||0,k=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;dc.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:S?m:c,cocOld:c,cocDiscount:S,pybobo:k?y:u,pyboboOld:u,pyboboDiscount:k,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=dc.purchaseData;return uc.order(n,r,o,i,e,t,a).then(e=>(dc.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 uc.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject(new Gl(Nl.orderConfirming,"The order is being confirmed"));await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return uc.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 uc.checkIn(e,t,n).then(r=>{dc.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 uc.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 uc.getItem(e).then(e=>e.v)}reqSetItem(e,t){return uc.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(zl.users),a=-1!=t.indexOf(zl.groups),s=-1!=t.indexOf(zl.channels)),uc.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return uc.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==na.GAME_ID&&uc.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{uc.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l(new Gl(Nl.walletBindInCd,"Wallet binding is in CD"));dc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return uc.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=na.GAME_ID&&"1060"!=na.GAME_ID)return;dc.gameServerId=t;let n=0,r=100;for(;;)try{const n=await uc.setGameUserId(e,t);return void(n.token&&(na.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return uc.cocGetInfo().then(e=>({coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[Fl.coc];return uc.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return uc.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return uc.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 uc.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 uc.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return uc.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return uc.spGetInfo(dc.gameServerId).then(e=>({balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Hl[na.GAME_ID],o=Ul[r];return uc.spWithdraw(dc.gameServerId,e,o,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return uc.spClaim(dc.gameServerId,e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return uc.spGetWithdrawDetail(dc.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 uc.spGetRecords(dc.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 uc.spQueryConsume(dc.gameServerId,e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return uc.spCancelWithdraw(dc.gameServerId,e).then(e=>({amount:e.amount,balance:e.balance}))}};function KS(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}const GS=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 QS(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YS=Fi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${D(n.color)}`],t[`fontSize${D(n.fontSize)}`]]}})(GS(({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}}]}))),ZS=j.forwardRef(function(e,t){const n=Bi({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=j.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${D(t)}`,`fontSize${D(n)}`]},QS,r)})(g);return d.jsxs(YS,{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 XS(e,t){function n(t,n){return d.jsx(ZS,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ZS.muiName,j.memo(j.forwardRef(n))}function JS(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ek(e){return e&&e.ownerDocument||document}function tk(e){return ek(e).defaultView||window}function nk(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function rk(e){const t=j.useRef(e);return kr(()=>{t.current=e}),j.useRef((...e)=>(0,t.current)(...e)).current}function ok(...e){const t=j.useRef(void 0),n=j.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 j.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function ik(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=sr(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=sr(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ak(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 sk(e,t){return(sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sk(e,t)}ZS.muiName="SvgIcon";var ck=I();const uk=r(ck),dk=!1,fk=M.createContext(null);var pk="unmounted",hk="exited",gk="entering",mk="entered",yk="exiting",bk=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=hk,r.appearStatus=gk):o=mk:o=t.unmountOnExit||t.mountOnEnter?pk:hk,r.state={status:o},r.nextCallback=null,r}lk(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pk?{status:hk}: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!==gk&&n!==mk&&(t=gk):n!==gk&&n!==mk||(t=yk)}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===gk){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:uk.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hk&&this.setState({status:pk})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[uk.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||dk?this.safeSetState({status:mk},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:gk},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:mk},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:uk.findDOMNode(this);t&&!dk?(this.props.onExit(r),this.safeSetState({status:yk},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:hk},function(){e.props.onExited(r)})})})):this.safeSetState({status:hk},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:uk.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===pk)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=ak(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(fk.Provider,{value:null},"function"==typeof n?n(e,r):M.cloneElement(M.Children.only(n),r))},t}(M.Component);function vk(){}function wk(e,t){var n=Object.create(null);return e&&j.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&j.isValidElement(e)?t(e):e}(e)}),n}function xk(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ck(e,t,n){var r=wk(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(j.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=j.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&j.isValidElement(c)&&(o[i]=j.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:xk(a,"exit",e),enter:xk(a,"enter",e)})):o[i]=j.cloneElement(a,{in:!1}):o[i]=j.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:xk(a,"exit",e),enter:xk(a,"enter",e)})}}),o}bk.contextType=fk,bk.propTypes={},bk.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vk,onEntering:vk,onEntered:vk,onExit:vk,onExiting:vk,onExited:vk},bk.UNMOUNTED=pk,bk.EXITED=hk,bk.ENTERING=gk,bk.ENTERED=mk,bk.EXITING=yk;var Sk=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kk=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}lk(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,wk(n.children,function(e){return j.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:xk(e,"appear",n),enter:xk(e,"enter",n),exit:xk(e,"exit",n)})})):Ck(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=wk(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=ak(e,["component","childFactory"]),o=this.state.contextValue,i=Sk(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?M.createElement(fk.Provider,{value:o},i):M.createElement(fk.Provider,{value:o},M.createElement(t,r,i))},t}(M.Component);kk.propTypes={},kk.defaultProps={component:"div",childFactory:function(e){return e}};const Ek={};function _k(e,t){const n=j.useRef(Ek);return n.current===Ek&&(n.current=e(t)),n}const Tk=[];class Pk{static create(){return new Pk}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 Rk(){const e=_k(Pk.create).current;var t;return t=e.disposeEffect,j.useEffect(t,Tk),e}const Ik=e=>e.scrollTop;function Ak(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 Ok(e){return cr("MuiPaper",e)}ur("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jk=Fi("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(GS(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Mk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiPaper"}),r=Wi(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:i,elevation:a,square:s,variant:l},f=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Kr({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ok,o)})(u);return d.jsx(jk,{as:i,ownerState:u,className:sr(f.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ar("#fff",Ci(a))}, ${Ar("#fff",Ci(a))})`}},...c.style}})});function Lk(e){return"string"==typeof e}function Nk(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Dk(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Wk(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:g,...m},internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=sr(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Nk({...o,...r}),s=Dk(r),l=Dk(o),c=t(a),u=sr(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=ok(y,h?.ref,t.ref),v="root"===e?g||c:g,w=function(e,t,n){return void 0===e||Lk(e)?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...m,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}function $k(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class zk{static create(){return new zk}static use(){const e=_k(zk.create).current,[t,n]=j.useState(!1);return e.shouldMount=t,e.setShouldMount=n,j.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 Fk=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uk=Nn`
1190
+ `,SS=e=>{const t=tm(e),n=Zf(Bb),[r,o]=Of(!0),[i,a]=Of(!1),[s,l]=Of(!1),[c,u]=Of(!1);let d,f;Lf(()=>{const e=Yh();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||pu(n.wallet.universalLink)&&Wg())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||pu(n.wallet.deepLink)&&Wg())&&(f=n.wallet.deepLink);const p=()=>{const e=Yh(),t="returnStrategy"in e?e.returnStrategy:Jw.returnStrategy,n=!r();o(!1);const i=Ux(d,{sessionId:e.sessionId,traceId:e.traceId});pu(d)?zx(i,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:Jw.twaReturnUrl,forceRedirect:n}):Fx(i,f,{returnStrategy:t,forceRedirect:n},()=>{})};return mp(yS,xp(t,{get children(){return[Lp(()=>e.icon),mp(bS,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),mp(vS,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),mp(_p,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return mp(wS,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return mp(xS,{})}})}}),mp(_p,{get when(){return i()||s()},get children(){return[mp(_p,{get when(){return"open-wallet"!==e.showButton},get children(){return mp(CS,{onClick:()=>e.onClose(),get children(){return mp(Wx,{translationKey:"common.close",children:"Close"})}})}}),mp(_p,{get when(){return"open-wallet"===e.showButton&&d},get children(){return mp(CS,{onClick:p,get children(){return mp(Wx,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},kS=e=>{const t=Zf(Bb),[n]=py();return mp(SS,{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 mp(Gy,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},_S=e=>mp(SS,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return mp(qy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),ES=e=>mp(SS,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return mp(zy,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),TS=e=>{const t=Zf(Bb),[n]=py();return mp(SS,{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 mp(Gy,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},PS=e=>mp(SS,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return mp(qy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),RS=e=>mp(SS,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return mp(zy,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),IS=()=>mp(Fm,{get opened(){var e;return Lp(()=>null!==Yh())()&&!0===(null==(e=Yh())?void 0:e.openModal)},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>Zh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return mp(Ep,{get children(){return[mp(Tp,{get when(){return"transaction-sent"===Yh().name},get children(){return mp(ES,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"transaction-canceled"===Yh().name},get children(){return mp(_S,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"confirm-transaction"===Yh().name},get children(){return mp(kS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"data-signed"===Yh().name},get children(){return mp(RS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"sign-data-canceled"===Yh().name},get children(){return mp(PS,{onClose:()=>Zh(null)})}}),mp(Tp,{get when(){return"confirm-sign-data"===Yh().name},get children(){return mp(TS,{onClose:()=>Zh(null)})}})]}})}}),AS=()=>{const{locale:e}=py()[1];Lf(()=>e(Jw.language)),Lf(()=>{qh()&&$b()});const t=Zf(ig),n=Zf(Bb),[r,o]=Of(!1),i=()=>{var e;return"loading"===(null==(e=Jw.connectRequestParameters)?void 0:e.state)},a=Nf(()=>{var e;if(!i())return null==(e=Jw.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return Uf(t.onStatusChange(e=>{e&&s("wallet-selected")})),Uf(()=>{o(!1)}),mp(Yw,{get opened(){return qh()},get enableAndroidBackHandler(){return Jw.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[mp(_p,{get when(){return r()},get children(){return mp(nC,{onBackClick:()=>o(!1)})}}),mp(_p,{get when(){return!r()},get children(){return[mp(_p,{get when(){return i()},get children(){return[mp(Zw,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),mp(Xw,{get children(){return mp(Gy,{size:"m"})}})]}}),mp(_p,{get when(){return!i()},get children(){return mp(Xp,{get component(){return Db()?xC:Vx},get wallet(){return Hh()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},OS=e=>{const t=dy(rg,Jw.language);return customElements.get("tc-root")||customElements.define(gh,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),mp(fy.Provider,{value:t,get children(){return mp(Bb.Provider,{get value(){return e.tonConnectUI},get children(){return mp(ig.Provider,{get value(){return Jw.connector},get children(){return[mp(bh,{}),mp(uh,{theme:_g,get children(){return[mp(_p,{get when(){return Jw.buttonRootId},get children(){return mp(Zp,{get mount(){return document.getElementById(Jw.buttonRootId)},get children(){return mp(Qw,{})}})}}),mp(Xp,{component:gh,get children(){return[mp(mS,{}),mp(AS,{}),mp(IS,{})]}})]}})]}})}})}})},jS={openWalletsModal:e=>{setTimeout(()=>zh(t=>{var n;return{status:"opened",traceId:null!=(n=null==e?void 0:e.traceId)?n:null==t?void 0:t.traceId,closeReason:null}}))},closeWalletsModal:e=>{setTimeout(()=>zh({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Bh({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Bh({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:(e,t)=>{setTimeout(()=>zh({status:"opened",traceId:t.traceId,closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>Zh(e))},clearAction:()=>{setTimeout(()=>Zh(null))},getSelectedWalletInfo:()=>Kh(),getLastVisibleWallets:()=>Xh(),removeSelectedWalletInfo:()=>Qh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Af(r=>{o=r,t===document?e():Up(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>mp(OS,{tonConnectUI:t}),document.getElementById(e))};class MS{constructor(e){this.consumers=[],this.state=$h(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Lf(()=>{const e=$h();this.state=e,this.consumers.forEach(t=>t(e))}),Lf(zf(Kh,(e,t)=>gf(this,null,function*(){try{const{wallets:n,walletsMenu:r}=jS.getLastVisibleWallets();if(e&&"appName"in e){if(t&&"appName"in t&&t.appName===e.appName)return;const o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(n.map(e=>e.name),e,r,"",void 0,o,this.state.traceId)}}catch(n){kh(n)}}))),Lf(zf(eg,e=>gf(this,null,function*(){try{const{wallets:n,walletsMenu:r}=jS.getLastVisibleWallets();if((t=e.link)&&(t.includes("ton_addr")||t.includes("ton--5Faddr"))){const t=Kh(),o=yield this.connector.getSessionId();this.tracker.trackSelectedWallet(n.map(e=>e.name),t&&"appName"in t?t:null,r,e.link,e.type,o,this.state.traceId)}}catch(n){kh(n)}var t})))}open(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:Eu();this.tracker.trackConnectionStarted();const r=(yield this.connector.getWallets()).find($u);return r?this.connectEmbeddedWallet(r,{traceId:n}):this.openWalletsModal({traceId:n})})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),jS.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e,t){const n=n=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},n,{traceId:t.traceId})},r=Jw.connectRequestParameters;"loading"===(null==r?void 0:r.state)?this.setConnectRequestParametersCallback(n):n(null==r?void 0:r.value)}openWalletsModal(e){return gf(this,null,function*(){return Wg()&&zg(),jS.openWalletsModal({traceId:e.traceId}),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class LS{constructor(e){this.consumers=[],this.connector=e.connector,Lf(()=>{const e=Yh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class NS{constructor(e){this.consumers=[],this.state=Uh(),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Lf(()=>{const e=Uh();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return gf(this,null,function*(){this.tracker.trackConnectionStarted();const t=nx(yield this.connector.getWallets(),Jw.walletsListConfiguration),n=t.find($u);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(zu).find(t=>ax(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 Ch(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),jS.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Jw.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return gf(this,null,function*(){return Wg()&&zg(),jS.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class DS{constructor(e){this.eventPrefix="ton-connect-ui-",this.tonConnectSdkVersion=null,this.eventDispatcher=null==e?void 0:e.eventDispatcher,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Ku({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return gf(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(yT){}})}setRequestVersionHandler(){return gf(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>gf(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Vu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return gf(this,null,function*(){return new Promise((e,t)=>gf(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(yT){t(yT)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(yT){}}trackWalletModalOpened(...e){try{const t=function(e,t,n,r){return{type:"wallet-modal-opened",visible_wallets:t,client_id:null!=n?n:null,custom_data:e,trace_id:null!=r?r:null}}(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackSelectedWallet(...e){try{const t=function(e,t,n,r,o,i,a,s){var l;let c=i;return!c&&o&&(c=pu(o)?"tg_link":"external_link"),{type:"selected-wallet",wallets_menu:r,visible_wallets:t,client_id:null!=a?a:null,custom_data:e,trace_id:null!=s?s:null,wallet_redirect_method:c,wallet_redirect_link:o||void 0,wallet_type:null!==(l=null==n?void 0:n.appName)&&void 0!==l?l:null}}(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){kh(yT)}}trackConnectionStarted(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionCompleted(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionError(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringStarted(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringCompleted(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackConnectionRestoringError(...e){try{const t=ed(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDisconnection(...e){try{const t=ld(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSentForSignature(...e){try{const t=nd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSigned(...e){try{const t=rd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackTransactionSigningFailed(...e){try{const t=od(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSentForSignature(...e){try{const t=id(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSigned(...e){try{const t=ad(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}trackDataSigningFailed(...e){try{const t=sd(this.version,...e);this.dispatchUserActionEvent(t)}catch(yT){}}}class WS{constructor(){this.userAgent=Oh()}getLocale(){var e;return(null==(e=navigator.languages)?void 0:e[0])||navigator.language||""}getBrowser(){var e;return null!=(e=this.userAgent.browser)?e:""}getPlatform(){var e;return null!=(e=this.userAgent.os)?e:""}getTelegramUser(){return Ng}getClientEnvironment(){return Wg()?"miniapp":"web"}}class $S{constructor(e){var t;this.walletInfoStorage=new Nh,this.preferredWalletStorage=new Dh,this.walletInfo=null,this.systemThemeChangeUnsubscribe=null,this.connectionRestored=Promise.resolve(!1);let n=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Ld;if(e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Ch("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new Ud({manifestUrl:e.manifestUrl,eventDispatcher:n,walletsRequiredFeatures:e.walletsRequiredFeatures,environment:new WS,analytics:e.analytics})}this.tracker=new DS({eventDispatcher:n,tonConnectUiVersion:"2.4.0"}),this.modal=new MS({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new NS({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new LS({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Rh((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const r=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return gf(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>gf(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=kg(e,{uiPreferences:{theme:"SYSTEM"}});const o=this.preferredWalletStorage.getPreferredWalletAppName();ex({connector:this.connector,preferredWalletAppName:o}),jS.renderApp(r,this)}static getWallets(){return Ud.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?ff(ff({},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),Rg(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Rg(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?Jp.LIGHT:Jp.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?Jp.DARK:Jp.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Rg))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Pg[Jp.DARK]=kg(a[Jp.DARK],Pg[Jp.DARK]),Pg[Jp.LIGHT]=kg(a[Jp.LIGHT],Pg[Jp.LIGHT]),Eg(e=>({colors:kg(Pg[e.theme],Tg[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Eg({borderRadius:s})),ex(t=>{var n,r;const o=kg(ff(ff(ff(ff({},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}),fg(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;ex({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}setConnectionNetwork(e){this.connector.setConnectionNetwork(e)}getWallets(){return gf(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>gf(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(ff(ff({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:Eu();yield this.modal.open({traceId:n});const r=yield this.getSessionId(),o=jS.getLastVisibleWallets();this.tracker.trackWalletModalOpened(o.wallets.map(e=>e.name),r,null==e?void 0:e.traceId)})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return gf(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(e){return gf(this,null,function*(){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:Eu(),r=(yield this.getWallets()).find($u);return r?yield this.connectEmbeddedWallet(r,{traceId:n}):yield this.connectExternalWallet({traceId:n})})}disconnect(e){var t;const n=null!=(t=null==e?void 0:e.traceId)?t:Eu();return this.tracker.trackDisconnection(this.wallet,"dapp"),jS.clearAction(),jS.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect({traceId:n})}sendTransaction(e,t){return gf(this,null,function*(){var n;const r=null!=(n=null==t?void 0:t.traceId)?n:Eu();if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Ch("Connect wallet to send a transaction.");Wg()&&zg();const{notifications:o,modals:i,returnStrategy:a,twaReturnUrl:s}=this.getModalsAndNotificationsConfiguration(t),l=yield this.getSessionId();jS.setAction({name:"confirm-transaction",showNotification:o.includes("before"),openModal:i.includes("before"),sent:!1,sessionId:l||void 0,traceId:r});const c=new AbortController,u=()=>{var e;if(c.signal.aborted)return;jS.setAction({name:"confirm-transaction",showNotification:o.includes("before"),openModal:i.includes("before"),sent:!0,sessionId:l||void 0,traceId:r}),this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,sessionId:l||void 0,traceId:r});let n=!0;null==(e=null==t?void 0:t.onRequestSent)||e.call(t,()=>gf(this,null,function*(){if(c.signal.aborted)return;const e=!n;n=!1,yield this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,forceRedirect:e,sessionId:l||void 0,traceId:r})}))},d=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(d(),e||c.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:c.signal,traceId:r},u);return this.tracker.trackTransactionSigned(this.wallet,e,t),jS.setAction({name:"transaction-sent",showNotification:o.includes("success"),openModal:i.includes("success"),traceId:r}),t}catch(yT){if(yT instanceof Gc)throw jS.clearAction(),jS.openWalletNotSupportFeatureModal(yT.cause,{traceId:r}),yT;throw jS.setAction({name:"transaction-canceled",showNotification:o.includes("error"),openModal:i.includes("error"),traceId:r}),yT instanceof Fc?yT:(console.error(yT),new Ch("Unhandled error:"+yT))}finally{d()}})}signData(e,t){return gf(this,null,function*(){var n;const r=null!=(n=null==t?void 0:t.traceId)?n:Eu();if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Ch("Connect wallet to send a transaction.");Wg()&&zg();const{notifications:o,modals:i,returnStrategy:a,twaReturnUrl:s}=this.getModalsAndNotificationsConfiguration(),l=yield this.getSessionId();jS.setAction({name:"confirm-sign-data",showNotification:o.includes("before"),openModal:i.includes("before"),signed:!1,sessionId:l||void 0,traceId:r});const c=new AbortController,u=()=>{var e;if(c.signal.aborted)return;jS.setAction({name:"confirm-sign-data",showNotification:o.includes("before"),openModal:i.includes("before"),signed:!0,sessionId:l||void 0,traceId:r}),this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,sessionId:l||void 0,traceId:r});let n=!0;null==(e=null==t?void 0:t.onRequestSent)||e.call(t,()=>{if(c.signal.aborted)return;const e=!n;n=!1,this.redirectAfterRequestSent({returnStrategy:a,twaReturnUrl:s,forceRedirect:e,sessionId:l||void 0,traceId:r})})},d=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(d(),e||c.abort())});try{const t=yield this.waitForSignData({data:e,signal:(new AbortController).signal,traceId:r},u);return this.tracker.trackDataSigned(this.wallet,e,t),jS.setAction({name:"data-signed",showNotification:o.includes("success"),openModal:i.includes("success"),traceId:r}),t}catch(yT){if(yT instanceof Gc)throw jS.clearAction(),jS.openWalletNotSupportFeatureModal(yT.cause,{traceId:r}),yT;throw jS.setAction({name:"sign-data-canceled",showNotification:o.includes("error"),openModal:i.includes("error"),traceId:r}),yT instanceof Fc?yT:(console.error(yT),new Ch("Unhandled error:"+yT))}finally{d()}})}getSessionId(){return gf(this,null,function*(){var e,t;try{const n=null==(e=this.connector.dappSettings)?void 0:e.storage;if(n){const e=yield n.getItem("ton-connect-storage_bridge-connection");if(e){const n=JSON.parse(e);if("http"===n.type&&n.sessionCrypto){const e=new Wc(n.sessionCrypto);return e.sessionId}if("http"===n.type&&(null==(t=n.session)?void 0:t.sessionKeyPair)){const e=new Wc(n.session.sessionKeyPair);return e.sessionId}}}}catch(yT){}return null})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t,forceRedirect:n,sessionId:r,traceId:o}){if(this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)){const i=Ux(this.walletInfo.universalLink,{sessionId:r,traceId:o});pu(this.walletInfo.universalLink)?zx(i,{returnStrategy:e,twaReturnUrl:t||Jw.twaReturnUrl,forceRedirect:n||!1}):Fx(i,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:n||!1},()=>{})}}connectEmbeddedWallet(e,t){return gf(this,null,function*(){const n=n=>{Qh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},n,{traceId:t.traceId})},r=Jw.connectRequestParameters;return"loading"===(null==r?void 0:r.state)?this.connectRequestParametersCallback=n:n(null==r?void 0:r.value),yield this.waitForWalletConnection({ignoreErrors:!1,traceId:t.traceId})})}connectExternalWallet(e){return gf(this,null,function*(){const t=new AbortController;jS.openWalletsModal({traceId:e.traceId});const n=this.onModalStateChange(e=>{const{status:r,closeReason:o}=e;"opened"!==r&&(n(),"action-cancelled"===o&&t.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:t.signal,traceId:e.traceId})})}waitForWalletConnection(e){return gf(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 Ch("Wallet was not connected"));const i=e=>gf(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 Ch("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 Ch("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return gf(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 Ch("Transaction was not sent"));const a=e=>gf(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Ch("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i,traceId:e.traceId}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return gf(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 Ch("SignData was not sent"));const a=e=>gf(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Ch("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=>gf(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),ex({preferredWalletAppName:e})}getSelectedWalletInfo(e){return gf(this,null,function*(){let t=jS.getSelectedWalletInfo();if(!t)return null;if(!("name"in t)){if(e.device.appName===bx)return{type:"wallet-connect",name:vx,appName:bx,imageUrl:Ab,aboutUrl:"https://reown.com/",features:e.device.features,platforms:[]};const n=nx(yield this.walletsList,Jw.walletsListConfiguration).find(t=>ax(t,e.device.appName));if(!n)throw new Ch(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);return ff(ff({},n),t)}return t})}updateWalletInfo(e){return gf(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=>ax(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 Ch(`${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 Wg()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var zS,FS={exports:{}},US=FS.exports;var BS=(zS||(zS=1,function(e,t){var r,o;r="object"==typeof window&&window||US||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}(FS,FS.exports)),FS.exports);const qS=r(BS);const HS=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?dd(this._tonConnect.account.address,!1):null}init(){const e=dc.gameInfo.name,t=dc.gameInfo.describe,n=dc.gameInfo.icon,r=window.location.origin;this.solanaPayInit(e,t,r,n);let o=this._tonConnect=new $S({manifestUrl:na.MANIFEST_URL});o.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),o.connectionRestored.then(e=>{e?(qS.publish(Pl,!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(new Gl(Nl.walletError,"The wallet info is null"));this._tonProof=r.connectItems?.tonProof;let o=r.account.address;qS.publish(Pl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t(new Gl(Nl.walletError,"Wallet connect failed"))))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t(new Gl(Nl.walletError,"Open modal error"))})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{qS.publish(Pl,!1),e()}).catch(e=>{console.log(e),t(new Gl(Nl.walletError,"Wallet disconnect error"))})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n(new Gl(Nl.walletNotConnected,"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(new Gl(Nl.walletError,"Wallet transaction error"))})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t(new Gl(Nl.signDataError,"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=`${na.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Ql.get(s).then(e=>{let t=e.data?.payload;if(!t)return i(new Gl(Nl.tokenUseError,e.message));o({address:a,payload:t})}).catch(e=>{console.log(e),i(new Gl(Nl.tokenUseError,"Load token payload error"))})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=na.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r(new Gl(Nl.tokenUseError,`${e} invalid`));let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Ql.get(na.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(new Gl(Nl.insufficientFunds,`Insufficient ${e} assets`));n(dd(a))}).catch(e=>{console.log(e),r(new Gl(Nl.tokenUseError,"Load jetton wallet error"))})})}solanaPayInit(e,t,n,r){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.init(na.TEST_MODE,e,t,n,r)}solanaPayOnEvent(e,t){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.onEvent(e,t)}solanaPayOffEvent(e){window.PlutoSolPay&&"1060"==na.GAME_ID&&PlutoSolPay.offEvent(e)}solanaPayConnectWallet(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.connectWallet():Promise.reject("Method not support")}solanaPayDisconnectWallet(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.disconnectWallet():Promise.reject("Method not support")}solanaPayGetWalletAddress(){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.getWalletAddress():""}solanaPaySendTransaction(e,t,n){return window.PlutoSolPay&&"1060"==na.GAME_ID?PlutoSolPay.sendTransaction(e,t,n):Promise.reject("Method not support")}async nativeWalletConnect(){if("1060"!=na.GAME_ID)throw new Gl(Nl.walletError,"Method not support");if(!sc()){if(!window.PlutoSolPay)throw new Gl(Nl.walletError,"Method not support");return PlutoSolPay.connectWallet().then(e=>{if(!PlutoSolPay.getWalletName().includes("KuCoin"))throw PlutoSolPay.disconnectWallet(),new Gl(Nl.walletError,"Wallet not support");return e})}const e=dc.plutoId+Date.now()+nc(1,100),t=Date.now(),n=`https://www.kucoin.com/web3?scene=deeplink_web3_wallet&kc_app_url=kucoin:///wallet/dappInDiscover?url=${encodeURIComponent(`https://connecting.capybobo.io?params=${e}:connect:${t}:capybobo`)}`;window.open(n,"_blank");for(let o=1;o<=60;o++){try{const t=await Ql.get(`https://connectingapi.capybobo.io/get/${e}`);if(console.log("res: ",t),0==t.code&&t.data)return t.data}catch(r){console.log(`Attempt ${o} failed:`,r)}if(!(o<60))throw new Gl(Nl.walletError,"Connect native wallet error");await new Promise(e=>setTimeout(e,2e3))}}};const VS=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060","1061"].includes(na.GAME_ID)}get disableLoginShare(){return"1002"==na.GAME_ID}get disableAddScreen(){return!oc()||!sc()||"1057"==na.GAME_ID}init(){if(oc())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}na.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${dc.gameInfo.appUrl}?startapp=g_${na.GAME_ID}_${dc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(ic()&&sc()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{oc()||n(new Gl(Nl.openInvoiceError,"Open invoice error")),window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n(new Gl(Nl.openInvoiceError,"Open invoice error"))})})}shareMessageEnable(){return!!oc()&&window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{oc()||n(new Gl(Nl.shareError,"Share failed")),window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n(new Gl(Nl.shareError,"Share failed"));t()})})}vibrate(e){if(!ic()||!sc())return;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(new Gl(Nl.playAdError,`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(new Gl(Nl.playAdError,"Play ad error"))})})}signData(){return new Promise((e,t)=>{if(HS.connected&&HS.friendlyAddress==dc.boundWallet)return e();HS.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 uc.gameInfo();let t=(e.catalog||[]).filter(e=>e==Ll.airdrop||e==Ll.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,gameUrl:"",tags:t,orientation:e.orientation||$l.portrait};return dc.gameInfo=n,dc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject(new Gl(Nl.initError,"Init error"));await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return uc.login().then(e=>{let t=na.GAME_ID,n=dc.plutoId=e.plutoid,r=dc.firstName=e.tgfirstname,o=dc.lastName=e.tglastname,i=dc.icon=e.icon,a=e.ticket;return dc.boundWallet=e.boundwallet,dc.gameInfo.gameUrl=e.gameurl,na.TOKEN=e.token,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return uc.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,S=parseFloat(r.cocdiscount)||0,k=parseFloat(r.pybobodiscount)||0,_=parseFloat(r.crocodiscount)||0;dc.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:S?m:c,cocOld:c,cocDiscount:S,pybobo:k?y:u,pyboboOld:u,pyboboDiscount:k,croco:_?b:d,crocoOld:d,crocoDiscount:_}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=dc.purchaseData;return uc.order(n,r,o,i,e,t,a).then(e=>(dc.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 uc.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject(new Gl(Nl.orderConfirming,"The order is being confirmed"));await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return uc.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 uc.checkIn(e,t,n).then(r=>{dc.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 uc.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 uc.getItem(e).then(e=>e.v)}reqSetItem(e,t){return uc.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(zl.users),a=-1!=t.indexOf(zl.groups),s=-1!=t.indexOf(zl.channels)),uc.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return uc.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==na.GAME_ID&&uc.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{uc.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l(new Gl(Nl.walletBindInCd,"Wallet binding is in CD"));dc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return uc.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=na.GAME_ID&&"1060"!=na.GAME_ID)return;dc.gameServerId=t;let n=0,r=100;for(;;)try{const n=await uc.setGameUserId(e,t);return void(n.token&&(na.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return uc.cocGetInfo().then(e=>({coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[Fl.coc];return uc.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return uc.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return uc.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 uc.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 uc.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return uc.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return uc.spGetInfo(dc.gameServerId).then(e=>({balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Hl[na.GAME_ID],o=Ul[r];return uc.spWithdraw(dc.gameServerId,e,o,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return uc.spClaim(dc.gameServerId,e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return uc.spGetWithdrawDetail(dc.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 uc.spGetRecords(dc.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 uc.spQueryConsume(dc.gameServerId,e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return uc.spCancelWithdraw(dc.gameServerId,e).then(e=>({amount:e.amount,balance:e.balance}))}};function KS(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}const GS=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 QS(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YS=Fi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${D(n.color)}`],t[`fontSize${D(n.fontSize)}`]]}})(GS(({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}}]}))),ZS=j.forwardRef(function(e,t){const n=Bi({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=j.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${D(t)}`,`fontSize${D(n)}`]},QS,r)})(g);return d.jsxs(YS,{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 XS(e,t){function n(t,n){return d.jsx(ZS,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ZS.muiName,j.memo(j.forwardRef(n))}function JS(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ek(e){return e&&e.ownerDocument||document}function tk(e){return ek(e).defaultView||window}function nk(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function rk(e){const t=j.useRef(e);return kr(()=>{t.current=e}),j.useRef((...e)=>(0,t.current)(...e)).current}function ok(...e){const t=j.useRef(void 0),n=j.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 j.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function ik(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=sr(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=sr(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ak(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 sk(e,t){return(sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sk(e,t)}ZS.muiName="SvgIcon";var ck=I();const uk=r(ck),dk=!1,fk=M.createContext(null);var pk="unmounted",hk="exited",gk="entering",mk="entered",yk="exiting",bk=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=hk,r.appearStatus=gk):o=mk:o=t.unmountOnExit||t.mountOnEnter?pk:hk,r.state={status:o},r.nextCallback=null,r}lk(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pk?{status:hk}: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!==gk&&n!==mk&&(t=gk):n!==gk&&n!==mk||(t=yk)}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===gk){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:uk.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hk&&this.setState({status:pk})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[uk.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||dk?this.safeSetState({status:mk},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:gk},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:mk},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:uk.findDOMNode(this);t&&!dk?(this.props.onExit(r),this.safeSetState({status:yk},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:hk},function(){e.props.onExited(r)})})})):this.safeSetState({status:hk},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:uk.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===pk)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=ak(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(fk.Provider,{value:null},"function"==typeof n?n(e,r):M.cloneElement(M.Children.only(n),r))},t}(M.Component);function vk(){}function wk(e,t){var n=Object.create(null);return e&&j.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&j.isValidElement(e)?t(e):e}(e)}),n}function xk(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ck(e,t,n){var r=wk(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(j.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=j.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&j.isValidElement(c)&&(o[i]=j.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:xk(a,"exit",e),enter:xk(a,"enter",e)})):o[i]=j.cloneElement(a,{in:!1}):o[i]=j.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:xk(a,"exit",e),enter:xk(a,"enter",e)})}}),o}bk.contextType=fk,bk.propTypes={},bk.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vk,onEntering:vk,onEntered:vk,onExit:vk,onExiting:vk,onExited:vk},bk.UNMOUNTED=pk,bk.EXITED=hk,bk.ENTERING=gk,bk.ENTERED=mk,bk.EXITING=yk;var Sk=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kk=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}lk(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,wk(n.children,function(e){return j.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:xk(e,"appear",n),enter:xk(e,"enter",n),exit:xk(e,"exit",n)})})):Ck(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=wk(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=ak(e,["component","childFactory"]),o=this.state.contextValue,i=Sk(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?M.createElement(fk.Provider,{value:o},i):M.createElement(fk.Provider,{value:o},M.createElement(t,r,i))},t}(M.Component);kk.propTypes={},kk.defaultProps={component:"div",childFactory:function(e){return e}};const _k={};function Ek(e,t){const n=j.useRef(_k);return n.current===_k&&(n.current=e(t)),n}const Tk=[];class Pk{static create(){return new Pk}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 Rk(){const e=Ek(Pk.create).current;var t;return t=e.disposeEffect,j.useEffect(t,Tk),e}const Ik=e=>e.scrollTop;function Ak(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 Ok(e){return cr("MuiPaper",e)}ur("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jk=Fi("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(GS(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Mk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiPaper"}),r=Wi(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:i,elevation:a,square:s,variant:l},f=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Kr({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ok,o)})(u);return d.jsx(jk,{as:i,ownerState:u,className:sr(f.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ar("#fff",Ci(a))}, ${Ar("#fff",Ci(a))})`}},...c.style}})});function Lk(e){return"string"==typeof e}function Nk(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Dk(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Wk(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:g,...m},internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=sr(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Nk({...o,...r}),s=Dk(r),l=Dk(o),c=t(a),u=sr(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=ok(y,h?.ref,t.ref),v="root"===e?g||c:g,w=function(e,t,n){return void 0===e||Lk(e)?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...m,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}function $k(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class zk{static create(){return new zk}static use(){const e=Ek(zk.create).current,[t,n]=j.useState(!1);return e.shouldMount=t,e.setShouldMount=n,j.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 Fk=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uk=Nn`
1191
1191
  0% {
1192
1192
  transform: scale(0);
1193
1193
  opacity: 0.1;
@@ -1260,7 +1260,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1260
1260
  animation-iteration-count: infinite;
1261
1261
  animation-delay: 200ms;
1262
1262
  }
1263
- `,Kk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=j.useState([]),c=j.useRef(0),u=j.useRef(null);j.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const f=j.useRef(!1),p=Rk(),h=j.useRef(null),g=j.useRef(null),m=j.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,d.jsx(Vk,{classes:{ripple:sr(o.ripple,Fk.ripple),rippleVisible:sr(o.rippleVisible,Fk.rippleVisible),ripplePulsate:sr(o.ripplePulsate,Fk.ripplePulsate),child:sr(o.child,Fk.child),childLeaving:sr(o.childLeaving,Fk.childLeaving),childPulsate:sr(o.childPulsate,Fk.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),y=j.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:g.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,m,p]),b=j.useCallback(()=>{y({},{pulsate:!0})},[y]),v=j.useCallback((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,()=>{v(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return j.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),d.jsx(Hk,{className:sr(Fk.root,o.root,i),ref:g,...a,children:d.jsx(kk,{component:null,exit:!0,children:s})})});function Gk(e){return cr("MuiButtonBase",e)}const Qk=ur("MuiButtonBase",["root","disabled","focusVisible"]),Yk=Fi("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:E,onTouchEnd:_,onTouchMove:T,onTouchStart:P,tabIndex:R=0,TouchRippleProps:I,touchRippleRef:A,type:O,...M}=n,L=j.useRef(null),N=zk.use(),D=ok(N.ref,A),[W,$]=j.useState(!1);l&&W&&$(!1),j.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),L.current.focus()}}),[]);const z=N.shouldMount&&!c&&!l;j.useEffect(()=>{W&&f&&!c&&N.pulsate()},[c,f,W,N]);const F=Xk(N,"start",S,u),U=Xk(N,"stop",y,u),B=Xk(N,"stop",b,u),q=Xk(N,"stop",E,u),H=Xk(N,"stop",e=>{W&&e.preventDefault(),k&&k(e)},u),V=Xk(N,"start",P,u),K=Xk(N,"stop",_,u),G=Xk(N,"stop",T,u),Q=Xk(N,"stop",e=>{$k(e.target)||$(!1),g&&g(e)},!1),Y=rk(e=>{L.current||(L.current=e.currentTarget),$k(e.target)&&($(!0),w&&w(e)),v&&v(e)}),Z=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=rk(e=>{f&&!e.repeat&&W&&" "===e.key&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))}),J=rk(e=>{f&&" "===e.key&&W&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),C&&C(e),m&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ee=s;"button"===ee&&(M.href||M.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===O?"button":O,te.disabled=l):(M.href||M.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=ok(t,L),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:f,tabIndex:R,focusVisible:W},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Kr({root:["root",t&&"disabled",n&&"focusVisible"]},Gk,o);return n&&r&&(i.root+=` ${r}`),i})(re);return d.jsxs(Yk,{as:ee,className:sr(oe.root,a),ownerState:re,onBlur:Q,onClick:m,onContextMenu:U,onFocus:Y,onKeyDown:X,onKeyUp:J,onMouseDown:F,onMouseLeave:H,onMouseUp:q,onDragLeave:B,onTouchEnd:K,onTouchMove:G,onTouchStart:V,ref:ne,tabIndex:l?-1:R,type:O,...te,...M,children:[i,z?d.jsx(Kk,{ref:D,center:o,...I}):null]})});function Xk(e,t,n,r=!1){return rk(o=>(n&&n(o),r||e[t](o),!0))}function Jk(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function eE(e){return cr("MuiCircularProgress",e)}ur("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const tE=44,nE=Nn`
1263
+ `,Kk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=j.useState([]),c=j.useRef(0),u=j.useRef(null);j.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const f=j.useRef(!1),p=Rk(),h=j.useRef(null),g=j.useRef(null),m=j.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,d.jsx(Vk,{classes:{ripple:sr(o.ripple,Fk.ripple),rippleVisible:sr(o.rippleVisible,Fk.rippleVisible),ripplePulsate:sr(o.ripplePulsate,Fk.ripplePulsate),child:sr(o.child,Fk.child),childLeaving:sr(o.childLeaving,Fk.childLeaving),childPulsate:sr(o.childPulsate,Fk.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),y=j.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:g.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,m,p]),b=j.useCallback(()=>{y({},{pulsate:!0})},[y]),v=j.useCallback((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,()=>{v(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return j.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),d.jsx(Hk,{className:sr(Fk.root,o.root,i),ref:g,...a,children:d.jsx(kk,{component:null,exit:!0,children:s})})});function Gk(e){return cr("MuiButtonBase",e)}const Qk=ur("MuiButtonBase",["root","disabled","focusVisible"]),Yk=Fi("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zk=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:T,onTouchStart:P,tabIndex:R=0,TouchRippleProps:I,touchRippleRef:A,type:O,...M}=n,L=j.useRef(null),N=zk.use(),D=ok(N.ref,A),[W,$]=j.useState(!1);l&&W&&$(!1),j.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),L.current.focus()}}),[]);const z=N.shouldMount&&!c&&!l;j.useEffect(()=>{W&&f&&!c&&N.pulsate()},[c,f,W,N]);const F=Xk(N,"start",S,u),U=Xk(N,"stop",y,u),B=Xk(N,"stop",b,u),q=Xk(N,"stop",_,u),H=Xk(N,"stop",e=>{W&&e.preventDefault(),k&&k(e)},u),V=Xk(N,"start",P,u),K=Xk(N,"stop",E,u),G=Xk(N,"stop",T,u),Q=Xk(N,"stop",e=>{$k(e.target)||$(!1),g&&g(e)},!1),Y=rk(e=>{L.current||(L.current=e.currentTarget),$k(e.target)&&($(!0),w&&w(e)),v&&v(e)}),Z=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=rk(e=>{f&&!e.repeat&&W&&" "===e.key&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))}),J=rk(e=>{f&&" "===e.key&&W&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),C&&C(e),m&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ee=s;"button"===ee&&(M.href||M.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===O?"button":O,te.disabled=l):(M.href||M.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=ok(t,L),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:f,tabIndex:R,focusVisible:W},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Kr({root:["root",t&&"disabled",n&&"focusVisible"]},Gk,o);return n&&r&&(i.root+=` ${r}`),i})(re);return d.jsxs(Yk,{as:ee,className:sr(oe.root,a),ownerState:re,onBlur:Q,onClick:m,onContextMenu:U,onFocus:Y,onKeyDown:X,onKeyUp:J,onMouseDown:F,onMouseLeave:H,onMouseUp:q,onDragLeave:B,onTouchEnd:K,onTouchMove:G,onTouchStart:V,ref:ne,tabIndex:l?-1:R,type:O,...te,...M,children:[i,z?d.jsx(Kk,{ref:D,center:o,...I}):null]})});function Xk(e,t,n,r=!1){return rk(o=>(n&&n(o),r||e[t](o),!0))}function Jk(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function e_(e){return cr("MuiCircularProgress",e)}ur("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const t_=44,n_=Nn`
1264
1264
  0% {
1265
1265
  transform: rotate(0deg);
1266
1266
  }
@@ -1268,7 +1268,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1268
1268
  100% {
1269
1269
  transform: rotate(360deg);
1270
1270
  }
1271
- `,rE=Nn`
1271
+ `,r_=Nn`
1272
1272
  0% {
1273
1273
  stroke-dasharray: 1px, 200px;
1274
1274
  stroke-dashoffset: 0;
@@ -1283,8 +1283,8 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1283
1283
  stroke-dasharray: 1px, 200px;
1284
1284
  stroke-dashoffset: -126px;
1285
1285
  }
1286
- `,oE="string"!=typeof nE?Ln`
1287
- animation: ${nE} 1.4s linear infinite;
1288
- `:null,iE="string"!=typeof rE?Ln`
1289
- animation: ${rE} 1.4s ease-in-out infinite;
1290
- `:null,aE=Fi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${D(n.color)}`]]}})(GS(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:oE||{animation:`${nE} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Jk()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),sE=Fi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),lE=Fi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${D(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(GS(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:iE||{animation:`${rE} 1.4s ease-in-out infinite`}}]}))),cE=Fi("circle",{name:"MuiCircularProgress",slot:"Track"})(GS(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),uE=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...p}=n,h={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:f,enableTrackSlot:a},g=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Kr({root:["root",n,`color${D(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${D(n)}`,o&&"circleDisableShrink"]},eE,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*((tE-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return d.jsx(aE,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(sE,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(cE,{className:g.track,ownerState:h,cx:tE,cy:tE,r:(tE-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(lE,{className:g.circle,style:m,ownerState:h,cx:tE,cy:tE,r:(tE-c)/2,fill:"none",strokeWidth:c})]})})});function dE(e){return parseInt(j.version,10)>=19?e?.props?.ref||null:e?.ref||null}const fE=j.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=j.useState(null),s=ok(j.isValidElement(n)?dE(n):null,t);if(kr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),kr(()=>{if(i&&!o)return nk(t,i),()=>{nk(t,null)}},[t,i,o]),o){if(j.isValidElement(n)){const e={ref:s};return j.cloneElement(n,e)}return n}return i?ck.createPortal(n,i):i}),pE=XS(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function hE(e){return cr("MuiAvatar",e)}const gE=ur("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),mE=Fi("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(GS(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),yE=Fi("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),bE=Fi(pE,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});const vE=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:i,component:a="div",slots:s={},slotProps:l={},imgProps:c,sizes:u,src:f,srcSet:p,variant:h="circular",...g}=n;let m=null;const y={...n,component:a,variant:h},b=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=j.useState(!1);return j.useEffect(()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i("loaded")},a.onerror=()=>{o&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}},[e,t,n,r]),o}({...c,..."function"==typeof l.img?l.img(y):l.img,src:f,srcSet:p}),v=f||p,w=v&&"error"!==b;y.colorDefault=!w,delete y.ownerState;const x=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Kr({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},hE,t)})(y),[C,S]=Wk("root",{ref:t,className:sr(x.root,i),elementType:mE,externalForwardedProps:{slots:s,slotProps:l,component:a,...g},ownerState:y}),[k,E]=Wk("img",{className:x.img,elementType:yE,externalForwardedProps:{slots:s,slotProps:{img:{...c,...l.img}}},additionalProps:{alt:r,src:f,srcSet:p,sizes:u},ownerState:y}),[_,T]=Wk("fallback",{className:x.fallback,elementType:bE,externalForwardedProps:{slots:s,slotProps:l},shouldForwardComponentProp:!0,ownerState:y});return m=w?d.jsx(k,{...E}):o||0===o?o:v&&r?r[0]:d.jsx(_,{...T}),d.jsx(C,{...S,children:m})});function wE(e){return cr("MuiAvatarGroup",e)}const xE=ur("MuiAvatarGroup",["root","avatar"]),CE={small:-16,medium:-8},SE=Fi("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${xE.avatar}`]:t.avatar},t.root]})(GS(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${gE.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),kE=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiAvatarGroup"}),{children:r,className:o,component:i="div",componentsProps:a,max:s=5,renderSurplus:l,slotProps:c={},slots:u={},spacing:f="medium",total:p,variant:h="circular",...g}=n;let m=s<2?2:s;const y={...n,max:s,spacing:f,component:i,variant:h},b=(e=>{const{classes:t}=e;return Kr({root:["root"],avatar:["avatar"]},wE,t)})(y),v=j.Children.toArray(r).filter(e=>j.isValidElement(e)),w=p||v.length;w===m&&(m+=1),m=Math.min(w+1,m);const x=Math.min(v.length,m-1),C=Math.max(w-m,w-x,0),S=l?l(C):`+${C}`;let k;k=y.spacing&&void 0!==CE[y.spacing]?CE[y.spacing]:0===y.spacing?0:-y.spacing||CE.medium;const E={slots:u,slotProps:{surplus:c.additionalAvatar??a?.additionalAvatar,...a,...c}},[_,T]=Wk("surplus",{elementType:vE,externalForwardedProps:E,className:b.avatar,ownerState:y,additionalProps:{variant:h}});return d.jsxs(SE,{as:i,ownerState:y,className:sr(b.root,o),ref:t,...g,style:{"--AvatarGroup-spacing":`${k}px`,...g.style},children:[C?d.jsx(_,{...T,children:S}):null,v.slice(0,x).reverse().map(e=>j.cloneElement(e,{className:sr(e.props.className,b.avatar),variant:e.props.variant||h}))]})}),EE={entering:{opacity:1},entered:{opacity:1}},_E=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=bk,...v}=e,w=j.useRef(null),x=ok(w,dE(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=C(f),k=C((e,t)=>{Ik(e);const r=Ak({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=Ak({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:k,onEntered:E,onEntering:S,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>j.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...EE[e],...m,...a.props.style},ref:x,...n})})});function TE(e){return cr("MuiBackdrop",e)}ur("MuiBackdrop",["root","invisible"]);const PE=Fi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),RE=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:f={},TransitionComponent:p,transitionDuration:h,...g}=n,m={...n,component:i,invisible:a},y=(e=>{const{classes:t,invisible:n}=e;return Kr({root:["root",n&&"invisible"]},TE,t)})(m),b={component:i,slots:{transition:p,root:l.Root,...f},slotProps:{...c,...u}},[v,w]=Wk("root",{elementType:PE,externalForwardedProps:b,className:sr(y.root,o),ownerState:m}),[x,C]=Wk("transition",{elementType:_E,externalForwardedProps:b,ownerState:m});return d.jsx(x,{in:s,timeout:h,...g,...C,children:d.jsx(v,{"aria-hidden":!0,...w,classes:y,ref:t,children:r})})}),IE=ur("MuiBox",["root"]),AE=Li(),OE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ke);return j.forwardRef(function(e,a){const s=tr(n),{className:l,component:c="div",...u}=Ge(e);return d.jsx(i,{as:c,ref:a,className:sr(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Di,defaultTheme:AE,defaultClassName:IE.root,generateClassName:ir.generate});function jE(e){return cr("MuiButton",e)}const ME=ur("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),LE=j.createContext({}),NE=j.createContext(void 0),DE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],WE=Fi(Zk,{shouldForwardProp:e=>zi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${D(n.color)}`],t[`size${D(n.size)}`],t[`${n.variant}Size${D(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(GS(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ME.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ME.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ME.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ME.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Jk()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ME.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ME.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ME.loading}`]:{color:"transparent"}}}]}})),$E=Fi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${D(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...DE]})),zE=Fi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${D(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...DE]})),FE=Fi("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),UE=Fi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),BE=j.forwardRef(function(e,t){const n=j.useContext(LE),r=j.useContext(NE),o=Bi({props:Cr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,id:m,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:x,type:C,variant:S="text",...k}=o,E=Ur(m),_=b??d.jsx(uE,{"aria-labelledby":E,color:"inherit",size:16}),T={...o,color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:f,fullWidth:g,loading:y,loadingIndicator:_,loadingPosition:v,size:w,type:C,variant:S},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Kr({root:["root",a&&"loading",i,`${i}${D(t)}`,`size${D(o)}`,`${i}Size${D(o)}`,`color${D(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${D(s)}`],startIcon:["icon","startIcon",`iconSize${D(o)}`],endIcon:["icon","endIcon",`iconSize${D(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},jE,l);return{...l,...c}})(T),R=(x||y&&"start"===v)&&d.jsx($E,{className:P.startIcon,ownerState:T,children:x||d.jsx(UE,{className:P.loadingIconPlaceholder,ownerState:T})}),I=(p||y&&"end"===v)&&d.jsx(zE,{className:P.endIcon,ownerState:T,children:p||d.jsx(UE,{className:P.loadingIconPlaceholder,ownerState:T})}),A=r||"",O="boolean"==typeof y?d.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(FE,{className:P.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(WE,{ownerState:T,className:sr(n.className,P.root,l,A),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(P.focusVisible,h),ref:t,type:C,id:y?E:m,...k,classes:P,children:[R,"end"!==v&&O,i,"end"===v&&O,I]})});function qE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function HE(e){return parseInt(tk(e).getComputedStyle(e).paddingRight,10)||0}function VE(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&qE(e,o)})}function KE(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function GE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ek(e);return t.body===e?tk(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(tk(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${HE(r)+e}px`;const t=ek(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${HE(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ek(r).body;else{const t=r.parentElement,n=tk(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const QE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function YE(e){const t=[],n=[];return Array.from(e.querySelectorAll(QE)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ZE(){return!0}function XE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YE,isEnabled:a=ZE,open:s}=e,l=j.useRef(!1),c=j.useRef(null),u=j.useRef(null),f=j.useRef(null),p=j.useRef(null),h=j.useRef(!1),g=j.useRef(null),m=ok(dE(t),g),y=j.useRef(null);j.useEffect(()=>{s&&g.current&&(h.current=!n)},[n,s]),j.useEffect(()=>{if(!s||!g.current)return;const e=ek(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),j.useEffect(()=>{if(!s||!g.current)return;const e=ek(g.current),t=t=>{y.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(g.current)),n.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return d.jsxs(j.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:m,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),d.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const JE=()=>{},e_=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&qE(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);VE(t,e.mount,e.modalRef,r,!0);const o=KE(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=KE(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=GE(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=KE(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&qE(e.modalRef,t),VE(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&qE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function t_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=j.useRef({}),f=j.useRef(null),p=j.useRef(null),h=ok(p,u),[g,m]=j.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const v=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),w=()=>{e_.mount(v(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},x=rk(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ek(f.current).body;e_.add(v(),e),p.current&&w()}),C=()=>e_.isTopModal(v()),S=rk(e=>{f.current=e,e&&(c&&C()?w():p.current&&qE(p.current,b))}),k=j.useCallback(()=>{e_.remove(v(),b)},[b]);j.useEffect(()=>()=>{k()},[k]),j.useEffect(()=>{c?x():y&&o||k()},[c,k,y,o,x]);const E=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},_=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Nk(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:E(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:_(t),open:c}},getTransitionProps:()=>({onEnter:KS(()=>{m(!1),i&&i()},s?.props.onEnter??JE),onExited:KS(()=>{m(!0),a&&a(),o&&k()},s?.props.onExited??JE)}),rootRef:h,portalRef:S,isTopModal:C,exited:g,hasTransition:y}}function n_(e){return cr("MuiModal",e)}ur("MuiModal",["root","hidden","backdrop"]);const r_=Fi("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(GS(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),o_=Fi(RE,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),i_=j.forwardRef(function(e,t){const n=Bi({name:"MuiModal",props:e}),{BackdropComponent:r=o_,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:l,container:c,component:u,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:C,onTransitionEnter:S,onTransitionExited:k,open:E,slotProps:_={},slots:T={},theme:P,...R}=n,I={...n,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:w,keepMounted:x},{getRootProps:A,getBackdropProps:O,getTransitionProps:M,portalRef:L,isTopModal:N,exited:D,hasTransition:W}=t_({...I,rootRef:t}),$={...I,exited:D},z=(e=>{const{open:t,exited:n,classes:r}=e;return Kr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},n_,r)})($),F={};if(void 0===l.props.tabIndex&&(F.tabIndex="-1"),W){const{onEnter:e,onExited:t}=M();F.onEnter=e,F.onExited=t}const U={slots:{root:f.Root,backdrop:f.Backdrop,...T},slotProps:{...p,..._}},[B,q]=Wk("root",{ref:t,elementType:r_,externalForwardedProps:{...U,...R,component:u},getSlotProps:A,ownerState:$,className:sr(a,z?.root,!$.open&&$.exited&&z?.hidden)}),[H,V]=Wk("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:sr(o?.className,z?.backdrop),ownerState:$});return x||E||W&&!D?d.jsx(fE,{ref:L,container:c,disablePortal:y,children:d.jsxs(B,{...q,children:[!w&&r?d.jsx(H,{...V}):null,d.jsx(XE,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:b,isEnabled:N,open:E,children:j.cloneElement(l,F)})]})}):null});function a_(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=tk(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const s_=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=r,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:m,onExited:y,onExiting:b,style:v,timeout:w=o,TransitionComponent:x=bk,...C}=e,S=j.useRef(null),k=ok(dE(s),S,t),E=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},_=E((e,t)=>{a_(c,e,l),Ik(e),p&&p(e,t)}),T=E((e,t)=>{const r=Ak({timeout:w,style:v,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),P=E(h),R=E(b),I=E(e=>{const t=Ak({timeout:w,style:v,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),a_(c,e,l),m&&m(e)}),A=E(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),O=j.useCallback(()=>{S.current&&a_(c,S.current,l)},[c,l]);return j.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=JS(()=>{S.current&&a_(c,S.current,l)}),t=tk(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),j.useEffect(()=>{f||O()},[f,O]),d.jsx(x,{nodeRef:S,onEnter:_,onEntered:P,onEntering:T,onExit:I,onExited:A,onExiting:R,addEndListener:e=>{i&&i(S.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>j.cloneElement(s,{ref:k,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),l_=function(e={}){const{createStyledComponent:t=uo,useThemeProps:n=fo,useTheme:r=tr,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(to,ro,no,Jr,oo,io,eo),s=j.forwardRef(function(e,t){const s=r(),l=Ge(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(l,s.breakpoints);const{className:c,children:u,columns:f=12,container:p=!1,component:h="div",direction:g="row",wrap:m="wrap",size:y={},offset:b={},spacing:v=0,rowSpacing:w=v,columnSpacing:x=v,unstable_level:C=0,...S}=l,k=i(y,s.breakpoints,e=>!1!==e),E=i(b,s.breakpoints),_=e.columns??(C?void 0:f),T=e.spacing??(C?void 0:v),P=e.rowSpacing??e.spacing??(C?void 0:w),R=e.columnSpacing??e.spacing??(C?void 0:x),I={...l,level:C,columns:_,container:p,direction:g,wrap:m,spacing:T,rowSpacing:P,columnSpacing:R,size:k,offset:E},A=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:s}=e;return Kr({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...lo(r),...ao(s),...n?so(i,t.breakpoints.keys[0]):[]]},e=>cr(o,e),{})})(I,s);return d.jsx(a,{ref:t,as:h,ownerState:I,className:sr(A.root,c),...S,children:j.Children.map(u,e=>{return j.isValidElement(e)&&(t=e,n=["Grid"],j.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName))&&p&&e.props.container?j.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e;var t,n})})});return s.muiName="Grid",s}({createStyledComponent:Fi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Bi({props:e,name:"MuiGrid"}),useTheme:Wi});function c_(e){return`scale(${e}, ${e**2})`}const u_={entering:{opacity:1,transform:c_(1)},entered:{opacity:1,transform:"none"}},d_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),f_=j.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:f,onExiting:p,style:h,timeout:g="auto",TransitionComponent:m=bk,...y}=e,b=Rk(),v=j.useRef(),w=Wi(),x=j.useRef(null),C=ok(x,dE(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=S(c),E=S((e,t)=>{Ik(e);const{duration:n,delay:r,easing:o}=Ak({style:h,timeout:g,easing:i},{mode:"enter"});let a;"auto"===g?(a=w.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:d_?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),_=S(l),T=S(p),P=S(e=>{const{duration:t,delay:n,easing:r}=Ak({style:h,timeout:g,easing:i},{mode:"exit"});let o;"auto"===g?(o=w.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:d_?o:.666*o,delay:d_?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=c_(.75),u&&u(e)}),R=S(f);return d.jsx(m,{appear:r,in:a,nodeRef:x,onEnter:E,onEntered:_,onEntering:k,onExit:P,onExited:R,onExiting:T,addEndListener:e=>{"auto"===g&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===g?null:g,...y,children:(e,{ownerState:t,...n})=>j.cloneElement(o,{style:{opacity:0,transform:c_(.75),visibility:"exited"!==e||a?void 0:"hidden",...u_[e],...h,...o.props.style},ref:C,...n})})});function p_(e){return cr("MuiPopover",e)}function h_(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function g_(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function m_(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function y_(e){return"function"==typeof e?e():e}f_&&(f_.muiSupportAuto=!0),ur("MuiPopover",["root","paper"]);const b_=Fi(i_,{name:"MuiPopover",slot:"Root"})({}),v_=Fi(Mk,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),w_=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:g={},slots:m={},slotProps:y={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:C=!1,...S}=n,k=j.useRef(),E={...n,anchorOrigin:i,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:b,TransitionComponent:v,transitionDuration:w,TransitionProps:x},_=(e=>{const{classes:t}=e;return Kr({root:["root"],paper:["paper"]},p_,t)})(E),T=j.useCallback(()=>{if("anchorPosition"===s)return a;const e=y_(o),t=(e&&1===e.nodeType?e:ek(k.current).body).getBoundingClientRect();return{top:t.top+h_(t,i.vertical),left:t.left+g_(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),P=j.useCallback(e=>({vertical:h_(e,b.vertical),horizontal:g_(e,b.horizontal)}),[b.horizontal,b.vertical]),R=j.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===s)return{top:null,left:null,transformOrigin:m_(n)};const r=T();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=tk(y_(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!==p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!==p&&l>d){const e=l-d;i-=e,n.vertical+=e}if(null!==p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:m_(n)}},[o,s,T,P,p]),[I,A]=j.useState(h),O=j.useCallback(()=>{const e=k.current;if(!e)return;const t=R(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[R]);j.useEffect(()=>(C&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[o,C,O]);j.useEffect(()=>{h&&O()}),j.useImperativeHandle(r,()=>h?{updatePosition:()=>{O()}}:null,[h,O]),j.useEffect(()=>{if(!h)return;const e=JS(()=>{O()}),t=tk(y_(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,O]);let M=w;const L={slots:{transition:v,...m},slotProps:{transition:x,paper:g,...y}},[N,D]=Wk("transition",{elementType:f_,externalForwardedProps:L,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),O()},onExited:t=>{e.onExited?.(t),A(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||N.muiSupportAuto||(M=void 0);const W=u||(o?ek(y_(o)).body:void 0),[$,{slots:z,slotProps:F,...U}]=Wk("root",{ref:t,elementType:b_,externalForwardedProps:{...L,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:ik("function"==typeof y.backdrop?y.backdrop(E):y.backdrop,{invisible:!0})},container:W,open:h},ownerState:E,className:sr(_.root,c)}),[B,q]=Wk("paper",{ref:k,className:_.paper,elementType:v_,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:I?void 0:{opacity:0}},ownerState:E});return d.jsx($,{...U,...!Lk($)&&{slots:z,slotProps:F,disableScrollLock:C},children:d.jsx(N,{...D,timeout:M,children:d.jsx(B,{...q,children:l})})})}),x_={entering:{transform:"none"},entered:{transform:"none"}},C_=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=bk,...v}=e,w=j.useRef(null),x=ok(w,dE(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=C(f),k=C((e,t)=>{Ik(e);const r=Ak({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=Ak({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:k,onEntered:E,onEntering:S,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>j.cloneElement(a,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...x_[e],...m,...a.props.style},ref:x,...n})})}),S_=function(e={}){const{createStyledComponent:t=ho,useThemeProps:n=go,componentName:r="MuiStack"}=e,o=t(yo);return j.forwardRef(function(e,t){const i=Ge(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:f,useFlexGap:p=!1,...h}=i,g={direction:s,spacing:l,useFlexGap:p},m=Kr({root:["root"]},e=>cr(r,e),{});return d.jsx(o,{as:a,ownerState:g,ref:t,className:sr(m.root,f),...h,children:c?mo(u,c):u})})}({createStyledComponent:Fi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Bi({props:e,name:"MuiStack"})});class k_ extends j.PureComponent{componentDidMount(){(Kl[na.GAME_ID]||Kl[0]).forEach(e=>{ck.preload(rc(e),{as:"image"})})}render(){return VS.disableLoginPage?this.renderLoading():"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsxs(OE,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(OE,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(uE,{color:"inherit"})})]})}renderLoading(){return d.jsxs(OE,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(OE,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(uE,{color:"inherit"})})]})}render1057(){return d.jsxs(OE,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1057_bg_1.png")})`},children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(OE,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(uE,{color:"inherit"})})]})}}class E_ extends j.PureComponent{render(){return"1041"==na.GAME_ID?this.render1041():"1048"==na.GAME_ID?this.render1048():"1057"==na.GAME_ID?this.render1057():"1060"==na.GAME_ID?this.render1060():"1061"==na.GAME_ID?this.render1061():this.renderDefault()}renderDefault(){return d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${rc("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${rc("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(OE,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${rc("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}render1057(){return d.jsx(OE,{sx:{position:"absolute",inset:10,backgroundColor:"#fff",borderRadius:2,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.8)"}})}render1060(){return d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1060_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1061(){return d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:30,borderStyle:"solid",borderImage:`url(${rc("1061_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"30 fill"}})}}const __={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class T_ extends j.PureComponent{constructor(){super(...arguments),this._aniUrl=`${rc("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(__).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=__[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?d.jsx(OE,{sx:{marginLeft:8,height:118},children:d.jsx(OE,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):d.jsx(OE,{sx:{marginLeft:8,height:118}})}}class P_ extends j.PureComponent{render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){const e=!!oc()&&window.Telegram.WebApp.isFullscreen;return d.jsx(_E,{in:!0,timeout:{enter:1e3},children:d.jsxs(OE,{sx:{width:1,top:e?"10%":"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[d.jsx(T_,{}),d.jsx(OE,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(OE,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}render1057(){return d.jsx(_E,{in:!0,timeout:{enter:1e3},children:d.jsxs(OE,{sx:{width:1,top:"6%",position:"absolute",textAlign:"center"},children:[d.jsx(OE,{component:"img",src:rc("1057_logo.png"),sx:{width:285,height:240}}),d.jsx(OE,{sx:{fontSize:24,fontWeight:"bold",color:"#fff"},children:"Catizen"})]})})}}class R_ extends j.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=Vl[e];return d.jsxs(OE,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(OE,{component:"img",src:`${rc(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(OE,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class I_ extends j.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=dc.gameInfo;return"1057"==na.GAME_ID?this.render1057(e,t,n,r):this.renderDefault(e,t,n,r)}renderDefault(e,t,n,r){return d.jsxs(OE,{sx:{pb:2},children:[d.jsxs(OE,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(OE,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(OE,{children:[d.jsx(OE,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(l_,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(l_,{children:d.jsx(R_,{tagId:e})},t))})]})]}),d.jsx(OE,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}render1057(e,t,n,r){return d.jsxs(OE,{sx:{pb:2},children:[d.jsxs(OE,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(OE,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(OE,{children:[d.jsx(OE,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#333333",textAlign:"left"},children:t}),d.jsx(l_,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(l_,{children:d.jsx(R_,{tagId:e})},t))})]})]}),d.jsx(OE,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#4c4a4a",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const A_=XS(d.jsx("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}));class O_ extends j.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i,isItalic:a}=this.props,s={color:n,fontSize:t,fontWeight:"bold",fontStyle:a?"italic":"normal",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:`"${e}"`,WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return d.jsx(OE,{content:e,sx:s,children:e})}}class j_ extends j.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout(()=>{this.setState({showCircle:!0})},600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return d.jsx(OE,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(OE,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(OE,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(OE,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(uE,{color:"inherit"})})]})})}}let M_=null;const L_=()=>{if(M_)return;const e=document.createElement("div");document.body.appendChild(e);const t=O.createRoot(e);t.render(d.jsx(j_,{})),M_={div:e,root:t}},N_=()=>{if(!M_)return;const e=M_.div;M_.root.unmount(),e.parentNode?.removeChild(e),M_=null};class D_ extends j.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout(()=>{$_(e)},500)}}componentDidMount(){this._aniTimer=window.setTimeout(()=>{this.setState({checked:!1})},2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return d.jsx(OE,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(s_,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(OE,{children:d.jsx(C_,{in:!0,timeout:{enter:1e3},children:d.jsx(OE,{sx:{display:"flex"},children:d.jsx(_E,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(OE,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const W_={},$_=e=>{const t=W_[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete W_[e]},z_=e=>{const t=nc(1,1e3)+"-"+Date.now(),n=document.createElement("div");document.body.appendChild(n);const r=O.createRoot(n);r.render(d.jsx(D_,{id:t,text:e})),W_[t]={div:n,root:r}};class F_ extends j.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!dc.plutoId)return void console.log("pluto id is null");if(!oc())return void console.log("sharing is not available outside the Telegram environment");if(!VS.shareMessageEnable())return void z_("If you are unable to share, please update Telegram to the latest version and try again.");const e=VS.formatShareLink();L_(),VS.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),VS.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{N_()})}}render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(A_,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(O_,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}render1057(){return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(OE,{component:"img",src:rc("1057_telegram.png"),sx:{width:28,height:28,mr:1,position:"relative"}}),d.jsx(O_,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}}class U_ extends j.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){qS.subscribe(_l,this.onReady)}componentWillUnmount(){qS.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return"1057"==na.GAME_ID?this.render1057(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(OE,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(OE,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(O_,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(uE,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}render1057(e,t){return d.jsx(OE,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(OE,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(O_,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(uE,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}}class B_ extends j.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{if(oc())try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{component:"img",src:rc("add_screen.png"),sx:{position:"relative"}})]})})}}class q_ extends j.PureComponent{render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(OE,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2",backgroundImage:`url(${rc("bg_1.png")})`}})}render1057(){return d.jsx(OE,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1057_bg_1.png")})`}})}}const H_=Fi(OE)(()=>({width:"100%",maxWidth:420,margin:"0 auto",position:"relative"}));class V_ extends j.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(Tl,Dl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Rl,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(OE,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(q_,{}),d.jsx(P_,{}),d.jsx(OE,{sx:{width:1,bottom:sc()?40:20,position:"absolute"},children:d.jsx(s_,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(OE,{children:[d.jsxs(H_,{children:[d.jsx(E_,{}),d.jsxs(OE,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(I_,{}),VS.disableLoginShare?null:VS.disableAddScreen?d.jsx(F_,{}):d.jsxs(OE,{sx:{height:50},children:[d.jsx(OE,{sx:{width:.8,height:50,float:"left"},children:d.jsx(F_,{})}),d.jsx(OE,{sx:{width:.18,height:50,float:"right"},children:d.jsx(B_,{})})]})]})]}),d.jsx(H_,{sx:{paddingTop:2},children:d.jsx(U_,{onClick:this.onClickPlay})})]})})})]})}}class K_ extends j.PureComponent{render(){return"1041"==na.GAME_ID||"1048"==na.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(OE,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}renderBlack(){return d.jsx(OE,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class G_ extends j.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(OE,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(OE,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(OE,{component:"img",src:rc("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(OE,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(OE,{component:"img",src:rc("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(OE,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e,t){return d.jsxs(OE,{sx:{width:1,height:60,position:"relative",pt:1.5},children:[d.jsxs(OE,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(OE,{component:"img",src:rc("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(O_,{content:e,fontSize:28,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(OE,{component:"img",src:rc("1041_title_2.png"),sx:{position:"relative",ml:2}})]}),d.jsx(OE,{component:"img",src:rc("1041_close.png"),sx:{width:32,height:32,position:"absolute",top:18,right:18},onClick:t})]})}render1048(e,t){return d.jsxs(OE,{sx:{width:1,height:70},children:[d.jsx(OE,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(OE,{component:"img",src:rc("1048_close.png"),sx:{width:52,height:52,position:"absolute",top:10,right:10},onClick:t})]})}render1057(e){return d.jsxs(d.Fragment,{children:[d.jsx(OE,{sx:{width:1,height:60,position:"relative"},children:d.jsx(OE,{sx:{width:1,height:60,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{fontSize:30,fontWeight:"bold",color:"#333333",mx:1},children:e})})}),d.jsx(OE,{sx:{mx:3,borderBottom:"2px solid #F0F0F0",position:"relative"}})]})}render1060(e,t){return d.jsxs(OE,{sx:{width:1,height:60,position:"relative",pt:1.5},children:[d.jsxs(OE,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(OE,{component:"img",src:rc("1060_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(O_,{content:e,fontSize:28,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(OE,{component:"img",src:rc("1060_title_2.png"),sx:{position:"relative",ml:2}})]}),d.jsx(OE,{component:"img",src:rc("1060_close.png"),sx:{width:32,height:32,position:"absolute",top:18,right:18},onClick:t})]})}render1061(e,t){return d.jsxs(OE,{sx:{width:1,height:60,position:"relative",pt:1.3},children:[d.jsx(OE,{sx:{position:"absolute",mx:"10px",width:"95%",height:1,borderWidth:25,borderStyle:"solid",borderImage:`url(${rc("1061_title.png")})`,borderImageRepeat:"repeat",borderImageSlice:"25 fill"}}),d.jsx(OE,{sx:{width:1,height:60,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{content:e,fontSize:40,color:"#fff",strokeColor:"#000",strokeWidth:5})})]})}}class Q_ extends j.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e,t):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(BE,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none"},variant:"outlined",onClick:t,children:e})}render1041(e,t){return d.jsxs(BE,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(OE,{sx:{position:"relative"},children:d.jsx(O_,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(BE,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}render1057(e,t){return d.jsx(BE,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#838280",borderColor:"#838280",textTransform:"none"},variant:"outlined",onClick:t,children:e})}render1060(e,t){return d.jsxs(BE,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1060_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(OE,{sx:{position:"relative"},children:d.jsx(O_,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1061(e,t){return d.jsxs(BE,{sx:{width:1,height:40,borderRadius:2.5},variant:"text",onClick:t,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1061_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}}),d.jsx(OE,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#000"},children:e})]})}}class Y_ extends j.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1060"==na.GAME_ID?this.render1060(e):"1061"==na.GAME_ID?this.render1061(e):this.renderDefault(e)}renderDefault(e){return d.jsx(BE,{sx:{width:1,height:30,borderRadius:13,fontWeight:"bold",color:"#666666",backgroundColor:"#fff",borderColor:"#787772",textTransform:"none"},variant:"outlined",onClick:e,children:"Disconnect"})}render1041(e){return d.jsxs(BE,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{sx:{position:"relative",pb:"4px"},children:d.jsx(O_,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(BE,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}render1060(e){return d.jsx(BE,{sx:{width:57,height:40},variant:"text",disableRipple:!0,onClick:e,children:d.jsx(OE,{component:"img",src:rc("1060_disconnect.png"),sx:{width:57,height:40,position:"relative"}})})}render1061(e){return d.jsxs(BE,{sx:{width:1,height:40,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1061_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#E43E3E"},children:"Disconnect"})]})}}class Z_ extends j.PureComponent{constructor(){super(...arguments),this.state={tonAddress:HS.friendlyAddress,solanaAddress:HS.solanaPayGetWalletAddress(),showDisconnect:!1,anchorEl:null},this.onWalletConnectTon=(e,t)=>{t?this.setState({tonAddress:HS.friendlyAddress}):this.setState({tonAddress:null,showDisconnect:!1})},this.onWalletConnectSolana=e=>{console.log("onWalletConnectSolana: ",e),e?this.setState({solanaAddress:HS.solanaPayGetWalletAddress()}):this.setState({solanaAddress:null,showDisconnect:!1})},this.onClickWallet=e=>{const{showDisconnect:t}=this.state;this.setState({showDisconnect:!t,anchorEl:e.currentTarget})},this.onClickDisconnect=()=>{HS.disconnect()},this.onClickDisconnectTon=()=>{HS.disconnect()},this.onClickDisconnectSolana=()=>{HS.solanaPayDisconnectWallet()},this.onClickCloseDisconnect=()=>{this.setState({showDisconnect:!1,anchorEl:null})}}componentDidMount(){qS.subscribe(Pl,this.onWalletConnectTon),HS.solanaPayOnEvent("walletConnectState",this.onWalletConnectSolana)}componentWillUnmount(){qS.unsubscribe(this.onWalletConnectTon),HS.solanaPayOffEvent("walletConnectState")}render(){return"1060"==na.GAME_ID?this.render1060():this.renderDefault()}renderDefault(){const{tonAddress:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return d.jsxs(S_,{spacing:1,sx:{float:"right",width:120},children:[d.jsx(Q_,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(Y_,{onClickDisconnect:this.onClickDisconnect}):null]})}render1060(){const{tonAddress:e,solanaAddress:t,showDisconnect:n,anchorEl:r}=this.state;if(!e&&!t)return null;let o="",i="";if(e){let t=e.length;o=e.substring(0,4)+"..."+e.substring(t-4,t)}if(t){let e=t.length;i=t.substring(0,4)+"..."+t.substring(e-4,e)}const a=n?"wallet-popover":void 0;return d.jsxs(d.Fragment,{children:[d.jsxs(OE,{children:[d.jsx(OE,{component:"img",src:rc("1060_wallet.png"),sx:{width:34,height:34,left:-36,bottom:"7px",position:"absolute"}}),d.jsx(OE,{sx:{position:"absolute",inset:0,borderImage:`url(${rc("1060_bg_3.png")})`,borderWidth:"0px 20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 20 fill"}}),d.jsx(Zk,{"aria-describedby":a,sx:{borderRadius:16,pl:"20px",pr:"10px",py:"6px"},onClick:this.onClickWallet,children:d.jsxs(kE,{spacing:14,sx:{float:"right"},children:[o?d.jsx(vE,{alt:"Ton",src:rc("1060_chain_ton.png"),sx:{width:32,height:32,border:"none !important"}}):null,i?d.jsx(vE,{alt:"Solana",src:rc("1060_chain_solana.png"),sx:{width:32,height:32,border:"none !important"}}):null]})})]}),d.jsxs(w_,{id:a,open:n,anchorEl:r,onClose:this.onClickCloseDisconnect,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{background:"transparent"}}},children:[d.jsx(OE,{sx:{position:"absolute",width:1,height:1,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1060_bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsxs(OE,{sx:{py:1},children:[o?d.jsxs(OE,{sx:{height:50,display:"grid",gridTemplateColumns:"auto 1fr auto",gap:1,alignItems:"center",px:1.5},children:[d.jsx(vE,{alt:"Ton",src:rc("1060_chain_ton.png"),sx:{width:32,height:32,border:"none !important"}}),d.jsx(O_,{content:o,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2}),d.jsx(Y_,{onClickDisconnect:this.onClickDisconnectTon})]}):null,i?d.jsxs(OE,{sx:{height:50,display:"grid",gridTemplateColumns:"auto 1fr auto",gap:1,alignItems:"center",px:1.5},children:[d.jsx(vE,{alt:"Solana",src:rc("1060_chain_solana.png"),sx:{width:32,height:32,border:"none !important"}}),d.jsx(O_,{content:i,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2}),d.jsx(Y_,{onClickDisconnect:this.onClickDisconnectSolana})]}):null]})]})]})}}class X_ extends j.PureComponent{render(){const{name:e,usd:t}=dc.purchaseData;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e,t):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(OE,{sx:{textAlign:"center",mb:2},children:[d.jsx(OE,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(OE,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(OE,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(Z_,{})})]})}render1041(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:3.5},children:[d.jsxs(OE,{sx:{textAlign:"center",mb:2},children:[d.jsx(OE,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(O_,{content:e,fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(OE,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:`= $${t.toFixed(2)}`,fontSize:20,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(OE,{sx:{position:"absolute",top:0,right:24},children:d.jsx(Z_,{})})]})}render1048(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(OE,{children:[d.jsx(OE,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(OE,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(OE,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(Z_,{})})]})}render1057(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:6,pb:3},children:[d.jsxs(OE,{children:[d.jsx(OE,{sx:{fontSize:20,fontWeight:"bold",color:"#333333",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(OE,{sx:{display:"flex",justifyContent:"center",fontSize:18,fontWeight:"bold",color:"#333333"},children:`= $${t.toFixed(2)}`})]}),d.jsx(OE,{sx:{position:"absolute",top:0,right:22,pt:1},children:d.jsx(Z_,{})})]})}render1060(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:3.5},children:[d.jsxs(OE,{sx:{textAlign:"center",mb:2},children:[d.jsx(OE,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(O_,{content:e,fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(OE,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:`= $${t.toFixed(2)}`,fontSize:20,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(OE,{sx:{position:"absolute",top:0,right:24},children:d.jsx(Z_,{})})]})}render1061(e,t){return d.jsxs(OE,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(OE,{sx:{textAlign:"center",mb:2},children:[d.jsx(OE,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(O_,{content:e,fontSize:30,color:"#fff",strokeColor:"#000",strokeWidth:4})}),d.jsx(OE,{sx:{width:"10px",height:"10px"}}),d.jsx(OE,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:`= $${t.toFixed(2)}`,fontSize:26,color:"#2FBB3F",strokeColor:"#000",strokeWidth:4})})]}),d.jsx(OE,{sx:{position:"absolute",top:15,right:12},children:d.jsx(Z_,{})})]})}}class J_ extends j.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1060"==na.GAME_ID?this.render1060(e):"1061"==na.GAME_ID?this.render1061(e):this.renderDefault(e)}renderDefault(e){return d.jsx(OE,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(OE,{component:"img",src:rc("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(OE,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(OE,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(OE,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:66,height:62,position:"relative"},children:[d.jsx(OE,{component:"img",src:rc("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pt:1.5},children:d.jsx(O_,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pb:1.5},children:d.jsx(O_,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}render1048(e){return d.jsx(OE,{sx:{top:-11,right:-18,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:52,height:66,position:"relative"},children:[d.jsx(OE,{component:"img",src:rc("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(OE,{sx:{top:17,left:-2,width:50,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(OE,{sx:{bottom:7,left:4,width:50,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1060(e){return d.jsx(OE,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:66,height:62,position:"relative"},children:[d.jsx(OE,{component:"img",src:rc("1060_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pt:1.5},children:d.jsx(O_,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pb:1.5},children:d.jsx(O_,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}render1061(e){return d.jsx(OE,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:66,height:66,position:"relative"},children:[d.jsx(OE,{component:"img",src:rc("1061_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pt:1.5},children:d.jsx(O_,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(OE,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{sx:{pb:1.5},children:d.jsx(O_,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}}class eT extends j.PureComponent{render(){return d.jsx(OE,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(OE,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(OE,{component:"img",src:rc("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(OE,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(OE,{sx:{mt:"4px"},children:d.jsx(O_,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(OE,{sx:{mt:"-4px"},children:d.jsx(O_,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(OE,{sx:{mt:"-4px"},children:d.jsx(O_,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class tT extends j.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=ql[na.GAME_ID]||ql[0],s=rc(a[e]),l=Bl[e];let c=`${e==Fl.star?t:t.toFixed(2)}`,u=`${e==Fl.star?n:n.toFixed(2)}`,d=(c+l).length;d<=13?(c+=` ${l}`,u=` ${u} ${l} `):d<=15&&(c+=` ${l}`,u=` ${u} `);const f=window.innerWidth;let p=22,h=14;return f<=390?(p=19,h=11):f<=420&&(p=20,h=12),"1041"==na.GAME_ID?this.render1041(s,c,u,r,o,p,h,!!i):"1048"==na.GAME_ID?this.render1048(s,c,u,r,o,p,h,!!i,e==Fl.coc):"1057"==na.GAME_ID?this.render1057(s,c,u,r,o,p,h,!!i):"1060"==na.GAME_ID?this.render1060(s,c,u,r,o,p,h,!!i):"1061"==na.GAME_ID?this.render1061(s,c,u,r,o,p,h,!!i):this.renderDefault(s,c,u,r,o,p,h,!!i)}renderDefault(e,t,n,r,o,i,a,s){return d.jsxs(OE,{sx:{height:50,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(O_,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(O_,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(J_,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(OE,{sx:{height:64,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(OE,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(O_,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(O_,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(J_,{discount:r})]})}render1048(e,t,n,r,o,i,a,s,l){const c=l?"1048_pay_button_1.png":"1048_pay_button_0.png";return d.jsxs(OE,{sx:{height:54,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"26px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(OE,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(O_,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(O_,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(eT,{}):null,d.jsx(J_,{discount:r})]})}render1057(e,t,n,r,o,i,a,s){return d.jsxs(OE,{sx:{height:50,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(OE,{component:"img",src:e,sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(O_,{content:t,fontSize:i,color:"#FFC65E",strokeColor:"#000",strokeWidth:3}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(O_,{content:n,fontSize:a,color:"#FFC65E",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(J_,{discount:r})]})}render1060(e,t,n,r,o,i,a,s){return d.jsxs(OE,{sx:{height:64,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1060_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(OE,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(O_,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(O_,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(J_,{discount:r})]})}render1061(e,t,n,r,o,i,a,s){return d.jsxs(OE,{sx:{height:64,position:"relative"},children:[d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1061_pay_button_0.png")})`,borderWidth:30,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"30 fill"}}),d.jsx(OE,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"10px",position:"relative"}}),d.jsx(OE,{sx:{mb:"6px"},children:d.jsx(O_,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(OE,{sx:{width:"8px"}}),r>0?d.jsx(OE,{sx:{mb:"6px"},children:d.jsx(O_,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0})}):null]}),d.jsx(J_,{discount:r})]})}}class nT extends j.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(OE,{sx:{width:1,height:140,mb:2},children:[d.jsx(OE,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1048_suggest_bg.png")})`}}),d.jsxs(OE,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(OE,{sx:{position:"absolute",width:1},children:d.jsx(OE,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(O_,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(OE,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(OE,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(O_,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(OE,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(O_,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(OE,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(O_,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(OE,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(OE,{sx:{position:"absolute",width:1},children:d.jsx(OE,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(O_,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(OE,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(O_,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(OE,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(O_,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(OE,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(O_,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(OE,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(O_,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class rT extends j.PureComponent{render(){const{onClickPay:e}=this.props;return"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1057"==na.GAME_ID?this.render1057(e):"1060"==na.GAME_ID?this.render1060(e):this.renderDefault(e)}renderDefault(e){return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"10px"},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{component:"img",src:rc("tribute.png"),sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(O_,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}render1041(e){return d.jsx(OE,{sx:{height:64,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"12px"},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(OE,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(O_,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}render1048(e){return d.jsx(OE,{sx:{height:54,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"26px"},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1048_pay_button_0.png")})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(OE,{component:"img",src:rc("tribute.png"),sx:{width:32,height:32,mr:1,mb:"4px",position:"relative"}}),d.jsx(O_,{content:"BUY VIA SBP",fontSize:22,color:"#feff9d",strokeColor:"#785131",strokeWidth:3})]})})}render1057(e){return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"26px"},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(OE,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(O_,{content:"BUY VIA SBP",fontSize:22,color:"#FFC65E",strokeColor:"#000",strokeWidth:3})]})})}render1060(e){return d.jsx(OE,{sx:{height:64,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:"12px"},variant:"text",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1060_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(OE,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(O_,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}}class oT extends j.PureComponent{constructor(){super(...arguments),this._destroyed=!1,this._loadingTimer=null,this._status=!1,this._cocInsufficient=!1,this._tokenInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{qS.publish(Tl,Dl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickStar=()=>{const e=Ul[Fl.star];L_(),VS.reqOrder(Wl.star,e).then(t=>{let n=0;VS.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,n),VS.openInvoice(t.payLink).then(()=>{n=1,this._status=!0}).catch(e=>{n=2,z_(e.message)}).finally(()=>{VS.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,n),this.onClickClose()})}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})},this.onClickTribute=()=>{const e=Ul[Fl.star];L_(),VS.reqOrder(Wl.tribute,e).then(e=>{e.payLink?window.Telegram.WebApp.openTelegramLink(e.payLink):z_("This product is not supported for this payment method."),this.onClickClose()}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})},this.onClickCati=()=>{const e=Ul[Fl.cati];HS.connect().then(()=>{L_(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})})},this.onClickPyboboTon=()=>{const e=Ul[Fl.pyboboTon];HS.connect().then(()=>{L_(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})})},this.onClickPyboboSolana=()=>{const e=Ul[Fl.pyboboSolana];HS.solanaPayConnectWallet().then(()=>{this._destroyed||(L_(),VS.reqOrder(Wl.solana,e).then(e=>(this.addLoadingTimer(),HS.solanaPaySendTransaction(e.address,e.amount,e.payload))).then(()=>{this._destroyed||(this._status=!0)}).catch(e=>{console.log(e),z_(e.message)}).finally(()=>{this._destroyed||(this.clearLoadingTimer(),this.onClickClose())}))})},this.onClickUsdt=()=>{const e=Ul[Fl.usdt];HS.connect().then(()=>{L_(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})})},this.onClickTon=()=>{const e=Ul[Fl.ton];HS.connect().then(()=>{L_(),VS.reqOrder(Wl.ton,e).then(e=>{const t=e.amount,n=e.address,r=e.payload;this.sendTransaction({amount:t,address:n,payload:r})}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})})},this.onClickCoc=()=>{const e=Ul[Fl.coc];L_(),VS.reqOrder(Wl.balance,e).then(e=>{this._status=!0}).catch(e=>{z_(e.message),26==e.code&&(this._cocInsufficient=!0,this._tokenInsufficient=!0)}).finally(()=>{N_(),this.onClickClose()})},this.onClickCroco=()=>{const e=Ul[Fl.croco];L_(),VS.reqOrder(Wl.balance,e).then(e=>{this._status=!0}).catch(e=>{z_(e.message),26==e.code&&(this._tokenInsufficient=!0)}).finally(()=>{N_(),this.onClickClose()})}}componentWillUnmount(){this.clearLoadingTimer(),this._destroyed=!0;const e=this._status,{productId:t,orderId:n,customData:r}=dc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?dc.purchaseData.orderNo:""};e||(this._cocInsufficient&&(o.cocInsufficient=!0),this._tokenInsufficient&&(o.tokenInsufficient=!0)),qS.publish(Il,o)}render(){const{usd:e,ton:t,tonOld:n,tonDiscount:r,usdt:o,usdtOld:i,usdtDiscount:a,cati:s,catiOld:l,catiDiscount:c,star:u,starOld:f,starDiscount:p,coc:h,cocOld:g,cocDiscount:m,pybobo:y,pyboboOld:b,pyboboDiscount:v,croco:w,crocoOld:x,crocoDiscount:C}=dc.purchaseData,{showSlide:S}=this.state;return d.jsxs(OE,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(K_,{}),d.jsxs(OE,{sx:{width:1,height:1,display:"flex",flexDirection:"column",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(OE,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(OE,{sx:{width:"100%",mt:"auto",pointerEvents:"none",py:1},children:d.jsx(s_,{direction:"up",in:S,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(OE,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(E_,{}),d.jsx(G_,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(X_,{}),this.cocPayEnable()&&h?d.jsx(nT,{}):null,d.jsxs(S_,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(tT,{currencyKey:Fl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.crocoPayEnable()&&w?d.jsx(tT,{currencyKey:Fl.croco,price:w,oldPrice:x,discount:C,onClickPay:this.onClickCroco}):null,this.pyboboPayEnable()&&y?d.jsxs(d.Fragment,{children:[d.jsx(tT,{currencyKey:Fl.pyboboTon,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPyboboTon}),d.jsx(tT,{currencyKey:Fl.pyboboSolana,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPyboboSolana})]}):null,this.catiPayEnable()&&s?d.jsx(tT,{currencyKey:Fl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati}):null,this.tonPayEnable()&&t?d.jsx(tT,{currencyKey:Fl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon}):null,this.usdtPayEnable()?d.jsx(tT,{currencyKey:Fl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt}):null,this.starPayEnable()?d.jsx(tT,{currencyKey:Fl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null,this.tributePayEnable()?d.jsx(rT,{onClickPay:this.onClickTribute}):null]})]})})})]})]})}sendTransaction(e){const t=HS.chain;return na.TEST_MODE&&t==jc.MAINNET?(z_("Please switch chain TESTNET"),HS.disconnect(),void this.onClickClose()):na.TEST_MODE||t!=jc.TESTNET?void HS.sendTransaction(e).then(e=>{this._destroyed||(this._status=!0)}).catch(e=>{console.log(e.message)}).finally(()=>{this._destroyed||this.onClickClose()}):(z_("Please switch chain MAINNET"),HS.disconnect(),void this.onClickClose())}starPayEnable(){return!!oc()}tributePayEnable(){if(!oc())return!1;if(!["1048"].includes(na.GAME_ID))return!1;const{usd:e}=dc.purchaseData;if(e>100)return!1;if(na.TEST_MODE)return!0;let t=(()=>{let e="",t=window.Telegram.WebApp.initDataUnsafe?.user?.language_code;t&&(e=t.split("-")[0]);return e})();return"en"==t||"ru"==t}usdtPayEnable(){return!this.onlyUsePyboboPayProduct()&&this.cryptoPayEnable()}tonPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041","1048","1060","1061"].includes(na.GAME_ID)}catiPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041"].includes(na.GAME_ID)}pyboboPayEnable(){return!!this.cryptoPayEnable()&&"1060"==na.GAME_ID}cocPayEnable(){return"1048"==na.GAME_ID}crocoPayEnable(){return!this.onlyUsePyboboPayProduct()&&"1060"==na.GAME_ID}cryptoPayEnable(){return!!na.TEST_MODE||!ac()}onlyUsePyboboPayProduct(){if("1060"!=na.GAME_ID)return!1;const{productId:e}=dc.purchaseData,t=parseInt(e);return!(t<6e5||t>61e4)}addLoadingTimer(){this._loadingTimer=window.setTimeout(()=>{this._loadingTimer=null,N_()},3e4)}clearLoadingTimer(){this._loadingTimer&&(window.clearTimeout(this._loadingTimer),this._loadingTimer=null),N_()}}class iT extends j.PureComponent{render(){const{name:e}=dc.checkInData;return d.jsxs(OE,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(OE,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(OE,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(OE,{sx:{mx:5,mt:"1048"==na.GAME_ID?3:1,position:"relative"},children:d.jsx(Z_,{})})]})}}class aT extends j.PureComponent{constructor(){super(...arguments),this.state={buttonText:HS.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){qS.subscribe(Pl,this.onWalletConnect)}componentWillUnmount(){qS.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(OE,{sx:{height:50,position:"relative"},children:d.jsxs(BE,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(OE,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class sT extends j.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{qS.publish(Tl,Dl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=dc.checkInData;this.sendTransaction({amount:e,address:n,payload:t})}).catch(e=>{console.log(e)})},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=dc.checkInData;qS.publish(Al,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(OE,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(K_,{}),d.jsxs(OE,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(OE,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(OE,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(s_,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(OE,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(E_,{}),d.jsx(G_,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(iT,{}),d.jsx(S_,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(aT,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(HS.connected)return e();HS.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=HS.chain;na.TEST_MODE&&t==jc.MAINNET?z_("Please switch chain TESTNET"):na.TEST_MODE||t!=jc.TESTNET?HS.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):z_("Please switch chain MAINNET")}verify(e){const t=HS.chain,n=HS.friendlyAddress,r=dc.checkInData.orderNo;L_(),VS.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{z_(e.message),this.onClickClose()}).finally(()=>{N_()})}}const lT=Fi(OE)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class cT extends j.PureComponent{constructor(){super(...arguments),this.state={pageId:Dl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){qS.subscribe(Tl,this.onSwitchPage),qS.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Dl.index:t=k_;break;case Dl.login:t=V_;break;case Dl.purchase:t=oT;break;case Dl.checkIn:t=sT}return t?d.jsx(lT,{children:d.jsx(t,{})}):null}}const uT=()=>{console.info(`Pluto SDK version: ${na.APP_VERSION}`),na.init(),Ql.init(),VS.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);O.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Yi,{}),d.jsx(cT,{})]}))};const dT=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{try{const e=this._handlerMap.event_playButtonClicked;if(!e)return;e.apply(null,[])}catch(n){console.error(n)}},this.onPuchaseCompleted=(e,t)=>{try{const e=this._handlerMap[Ol];e&&e.apply(null,[t]);const n=this._callbackMap[Ol];n&&(n.apply(null,[t]),this._callbackMap[Ol]=null)}catch(n){console.error(n)}},this.onCheckInCompleted=(e,t)=>{try{const e=this._handlerMap[jl];e&&e.apply(null,[t]);const n=this._callbackMap[jl];n&&(n.apply(null,[t]),this._callbackMap[jl]=null)}catch(n){console.error(n)}},qS.subscribe(Rl,this.onPlayButtonClicked),qS.subscribe(Il,this.onPuchaseCompleted),qS.subscribe(Al,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class fT extends j.PureComponent{render(){const e=dc.gameInfo.orientation==$l.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(OE,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(OE,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(OE,{component:"img",src:rc(n),sx:{position:"relative"}}),d.jsx(OE,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(OE,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let pT=null;const hT=()=>{if(pT)return;const e=document.createElement("div");document.body.appendChild(e);const t=O.createRoot(e);t.render(d.jsx(fT,{})),pT={div:e,root:t}},gT=()=>{if(!pT)return;const e=pT.div;pT.root.unmount(),e.parentNode?.removeChild(e),pT=null};const mT=new class{constructor(){this._appDidMount=!1,this._loadGameState=Ml.init,this._initialized=!1,this._logined=!1,this._purchasing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},qS.subscribe(kl,this.onAppDidMount)}init(e){e&&VS.requestFullScreen();const t=()=>{this._initialized=!0,this.addOrientationChangeListener(),VS.disableLoginPage||qS.publish(Tl,Dl.login)};return new Promise((e,n)=>{if(dc.gameInfo)return t(),e();qS.subscribeOnce(El,(r,o)=>{if(o)return t(),e();z_("Init game error, please try again later"),n(new Gl(Nl.initError,"Init error"))}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject(new Gl(Nl.logined,"Pluto sdk already login")):VS.reqLogin().then(e=>(this._logined=!0,HS.init(),e)):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize"))}ready(){this._logined?VS.disableLoginPage?qS.publish(Tl,Dl.none):qS.publish(_l,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise((a,s)=>e&&t&&n&&r?this._logined?this._purchasing?s(new Gl(Nl.purchasing,"Payment is being processed")):(dT.registerCallback(Ol,i),this._purchasing=!0,void VS.reqPurchase(e,t,n,r,o).then(()=>{this._purchasing=!1,qS.publish(Tl,Dl.purchase),a()}).catch(e=>{this._purchasing=!1,console.log(e.message),s(e)})):s(new Gl(Nl.notLogin,"Pluto sdk not login")):s(new Gl(Nl.paramError,"Params error")))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i(new Gl(Nl.checkingIn,"Check in is being processed")):(dT.registerCallback(jl,r),this._checkingIn=!0,void VS.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,qS.publish(Tl,Dl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i(new Gl(Nl.notLogin,"Pluto sdk not login")):i(new Gl(Nl.paramError,"Params error")))}share(e,t,n,r,o){if(!this._logined)return Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"));if(!oc())return Promise.reject(new Gl(Nl.shareError,"Sharing is not available outside the Telegram environment"));if(!VS.shareMessageEnable())return z_("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject(new Gl(Nl.shareError,"Method not support"));const i=VS.formatShareLink(e);return VS.reqGetShareMessage(i,t,n,r,o).then(e=>VS.shareMessage(e))}getShareLink(e){return this._logined?VS.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n(new Gl(Nl.notLogin,"Pluto sdk not login"));let r=VS.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t(new Gl(Nl.clipboardError,"Param is null"));lc(o).then(()=>{e()}).catch(()=>{cc(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?VS.reqGetItem(e):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?VS.reqSetItem(e,t):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}consumePurchase(e){return e?this._initialized?VS.reqFinishOrder(e):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}queryPurchases(){return this._initialized?VS.reqUnfinishRecord():Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize"))}onEvent(e,t){e&&t&&"function"==typeof t&&dT.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return oc()&&sc()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return oc()&&sc()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return oc()?VS.playAd(e):Promise.reject(new Gl(Nl.playAdError,"Playing ads is not available outside the Telegram environment"))}vibrate(e){oc()||console.log("Vibrate is not available outside the Telegram environment"),VS.vibrate(e)}isDesktopEnabled(){return ac()}isTelegramClient(){return ic()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!dc.gameInfo.gameUrl)return void console.log("game url is null");const t=(new Ji.Base64).encode(na.INIT_DATA),n=new URL(dc.gameInfo.gameUrl);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),oc()&&window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return na.CP_CUSTOM_LINK}getStartParam(){return na.START_PARAM}connectWallet(){return HS.connect()}disconnectWallet(){return HS.disconnect()}isConnectedWallet(){return HS.connected}getWalletRawAddress(){return HS.rawAddress}getWalletFriendlyAddress(){return HS.friendlyAddress}getWalletName(){return HS.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Ul[e];HS.connect().then(()=>VS.reqDeposit(a,t,n,r)).then(e=>HS.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return HS.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t(new Gl(Nl.notLogin,"Pluto sdk not login"));VS.signData().then(()=>{e()}).catch(e=>{e.code==Nl.walletBindInCd&&z_("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?VS.reqGetNfts():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}setGameUserId(e,t){this._logined?VS.reqSetGameUserId(e,t):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?VS.reqCocGetInfo():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocWithdraw(e,t,n){return this._logined?VS.reqCocWithdraw(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocClaim(e){return this._logined?VS.reqCocClaim(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocGetWithdrawDetail(e){return this._logined?VS.reqCocGetWithdrawDetail(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocGetRecords(e,t,n){return this._logined?VS.reqCocGetRecords(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocQueryConsume(e){return this._logined?VS.reqCocQueryConsume(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocCancelWithdraw(e){return this._logined?VS.reqCocCancelWithdraw(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetInfo(){return this._logined?VS.reqSpGetInfo():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spWithdraw(e,t,n){return this._logined?VS.reqSpWithdraw(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spClaim(e){return this._logined?VS.reqSpClaim(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetWithdrawDetail(e){return this._logined?VS.reqSpGetWithdrawDetail(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetRecords(e,t,n){return this._logined?VS.reqSpGetRecords(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spQueryConsume(e){return this._logined?VS.reqSpQueryConsume(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spCancelWithdraw(e){return this._logined?VS.reqSpCancelWithdraw(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}nativeWalletConnect(){return HS.nativeWalletConnect()}getGameInfo(){this._loadGameState==Ml.init&&(this._loadGameState=Ml.loading,VS.reqGameInfo().then(e=>{this._loadGameState=Ml.done,qS.publish(El,!0)}).catch(e=>{this._loadGameState=Ml.init,qS.publish(El,!1),console.log(e)}))}addOrientationChangeListener(){sc()&&window.screen.orientation&&(window.screen.orientation.addEventListener("change",e=>{this.checkOrientaiton()}),this.checkOrientaiton())}checkOrientaiton(){try{const e=window.screen.orientation.type;if((e.startsWith("portrait")?$l.portrait:$l.landscape)==dc.gameInfo.orientation)return void gT();hT()}catch(e){console.log(e)}}};return document.body?uT():document.addEventListener("DOMContentLoaded",e=>{uT()},{once:!0}),e.checkIn=(e,t,n="",r=null)=>mT.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>mT.cocCancelWithdraw(e),e.cocClaim=e=>mT.cocClaim(e),e.cocGetInfo=()=>mT.cocGetInfo(),e.cocGetRecords=(e,t,n)=>mT.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>mT.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>mT.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>mT.cocWithdraw(e,t,n),e.connectWallet=()=>mT.connectWallet(),e.consumePurchase=e=>mT.consumePurchase(e),e.copyShareLink=(e="")=>mT.copyShareLink(e),e.depositToken=(e,t,n,r)=>mT.depositToken(e,t,n,r),e.disconnectWallet=()=>mT.disconnectWallet(),e.getContentSafeAreaInset=()=>mT.getContentSafeAreaInset(),e.getCpCustomLink=()=>mT.getCpCustomLink(),e.getItem=e=>mT.getItem(e),e.getNfts=()=>mT.getNfts(),e.getSafeAreaInset=()=>mT.getSafeAreaInset(),e.getShareLink=(e="")=>mT.getShareLink(e),e.getStartParam=()=>mT.getStartParam(),e.getWalletFriendlyAddress=()=>mT.getWalletFriendlyAddress(),e.getWalletName=()=>mT.getWalletName(),e.getWalletRawAddress=()=>mT.getWalletRawAddress(),e.init=(e=!1)=>mT.init(e),e.isConnectedWallet=()=>mT.isConnectedWallet(),e.isDesktopEnabled=()=>mT.isDesktopEnabled(),e.isTelegramClient=()=>mT.isTelegramClient(),e.login=()=>mT.login(),e.nativeWalletConnect=()=>mT.nativeWalletConnect(),e.onEvent=(e,t)=>{mT.onEvent(e,t)},e.openGameForWeb=(e="")=>{mT.openGameForWeb(e)},e.playAd=(e="ad_event1")=>mT.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>mT.purchase(e,t,n,r,o,i),e.queryPurchases=()=>mT.queryPurchases(),e.queryPurchses=()=>mT.queryPurchases(),e.ready=()=>{mT.ready()},e.setGameUserId=(e,t=1)=>{mT.setGameUserId(e,t)},e.setItem=(e,t)=>mT.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>mT.share(e,t,n,r,o),e.signData=()=>mT.signData(),e.spCancelWithdraw=e=>mT.spCancelWithdraw(e),e.spClaim=e=>mT.spClaim(e),e.spGetInfo=()=>mT.spGetInfo(),e.spGetRecords=(e,t,n)=>mT.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>mT.spGetWithdrawDetail(e),e.spQueryConsume=e=>mT.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>mT.spWithdraw(e,t,n),e.vibrate=e=>{mT.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
1286
+ `,o_="string"!=typeof n_?Ln`
1287
+ animation: ${n_} 1.4s linear infinite;
1288
+ `:null,i_="string"!=typeof r_?Ln`
1289
+ animation: ${r_} 1.4s ease-in-out infinite;
1290
+ `:null,a_=Fi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${D(n.color)}`]]}})(GS(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:o_||{animation:`${n_} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Jk()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),s_=Fi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),l_=Fi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${D(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(GS(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:i_||{animation:`${r_} 1.4s ease-in-out infinite`}}]}))),c_=Fi("circle",{name:"MuiCircularProgress",slot:"Track"})(GS(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),u_=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...p}=n,h={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:f,enableTrackSlot:a},g=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Kr({root:["root",n,`color${D(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${D(n)}`,o&&"circleDisableShrink"]},e_,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*((t_-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return d.jsx(a_,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(s_,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(c_,{className:g.track,ownerState:h,cx:t_,cy:t_,r:(t_-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(l_,{className:g.circle,style:m,ownerState:h,cx:t_,cy:t_,r:(t_-c)/2,fill:"none",strokeWidth:c})]})})});function d_(e){return parseInt(j.version,10)>=19?e?.props?.ref||null:e?.ref||null}const f_=j.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=j.useState(null),s=ok(j.isValidElement(n)?d_(n):null,t);if(kr(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),kr(()=>{if(i&&!o)return nk(t,i),()=>{nk(t,null)}},[t,i,o]),o){if(j.isValidElement(n)){const e={ref:s};return j.cloneElement(n,e)}return n}return i?ck.createPortal(n,i):i}),p_=XS(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function h_(e){return cr("MuiAvatar",e)}const g_=ur("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),m_=Fi("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(GS(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),y_=Fi("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),b_=Fi(p_,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});const v_=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:i,component:a="div",slots:s={},slotProps:l={},imgProps:c,sizes:u,src:f,srcSet:p,variant:h="circular",...g}=n;let m=null;const y={...n,component:a,variant:h},b=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=j.useState(!1);return j.useEffect(()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i("loaded")},a.onerror=()=>{o&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}},[e,t,n,r]),o}({...c,..."function"==typeof l.img?l.img(y):l.img,src:f,srcSet:p}),v=f||p,w=v&&"error"!==b;y.colorDefault=!w,delete y.ownerState;const x=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Kr({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},h_,t)})(y),[C,S]=Wk("root",{ref:t,className:sr(x.root,i),elementType:m_,externalForwardedProps:{slots:s,slotProps:l,component:a,...g},ownerState:y}),[k,_]=Wk("img",{className:x.img,elementType:y_,externalForwardedProps:{slots:s,slotProps:{img:{...c,...l.img}}},additionalProps:{alt:r,src:f,srcSet:p,sizes:u},ownerState:y}),[E,T]=Wk("fallback",{className:x.fallback,elementType:b_,externalForwardedProps:{slots:s,slotProps:l},shouldForwardComponentProp:!0,ownerState:y});return m=w?d.jsx(k,{..._}):o||0===o?o:v&&r?r[0]:d.jsx(E,{...T}),d.jsx(C,{...S,children:m})});function w_(e){return cr("MuiAvatarGroup",e)}const x_=ur("MuiAvatarGroup",["root","avatar"]),C_={small:-16,medium:-8},S_=Fi("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${x_.avatar}`]:t.avatar},t.root]})(GS(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${g_.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),k_=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiAvatarGroup"}),{children:r,className:o,component:i="div",componentsProps:a,max:s=5,renderSurplus:l,slotProps:c={},slots:u={},spacing:f="medium",total:p,variant:h="circular",...g}=n;let m=s<2?2:s;const y={...n,max:s,spacing:f,component:i,variant:h},b=(e=>{const{classes:t}=e;return Kr({root:["root"],avatar:["avatar"]},w_,t)})(y),v=j.Children.toArray(r).filter(e=>j.isValidElement(e)),w=p||v.length;w===m&&(m+=1),m=Math.min(w+1,m);const x=Math.min(v.length,m-1),C=Math.max(w-m,w-x,0),S=l?l(C):`+${C}`;let k;k=y.spacing&&void 0!==C_[y.spacing]?C_[y.spacing]:0===y.spacing?0:-y.spacing||C_.medium;const _={slots:u,slotProps:{surplus:c.additionalAvatar??a?.additionalAvatar,...a,...c}},[E,T]=Wk("surplus",{elementType:v_,externalForwardedProps:_,className:b.avatar,ownerState:y,additionalProps:{variant:h}});return d.jsxs(S_,{as:i,ownerState:y,className:sr(b.root,o),ref:t,...g,style:{"--AvatarGroup-spacing":`${k}px`,...g.style},children:[C?d.jsx(E,{...T,children:S}):null,v.slice(0,x).reverse().map(e=>j.cloneElement(e,{className:sr(e.props.className,b.avatar),variant:e.props.variant||h}))]})}),__={entering:{opacity:1},entered:{opacity:1}},E_=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=bk,...v}=e,w=j.useRef(null),x=ok(w,d_(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=C(f),k=C((e,t)=>{Ik(e);const r=Ak({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),_=C(u),E=C(g),T=C(e=>{const t=Ak({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:k,onEntered:_,onEntering:S,onExit:T,onExited:P,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>j.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...__[e],...m,...a.props.style},ref:x,...n})})});function T_(e){return cr("MuiBackdrop",e)}ur("MuiBackdrop",["root","invisible"]);const P_=Fi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),R_=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:f={},TransitionComponent:p,transitionDuration:h,...g}=n,m={...n,component:i,invisible:a},y=(e=>{const{classes:t,invisible:n}=e;return Kr({root:["root",n&&"invisible"]},T_,t)})(m),b={component:i,slots:{transition:p,root:l.Root,...f},slotProps:{...c,...u}},[v,w]=Wk("root",{elementType:P_,externalForwardedProps:b,className:sr(y.root,o),ownerState:m}),[x,C]=Wk("transition",{elementType:E_,externalForwardedProps:b,ownerState:m});return d.jsx(x,{in:s,timeout:h,...g,...C,children:d.jsx(v,{"aria-hidden":!0,...w,classes:y,ref:t,children:r})})}),I_=ur("MuiBox",["root"]),A_=Li(),O_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ke);return j.forwardRef(function(e,a){const s=tr(n),{className:l,component:c="div",...u}=Ge(e);return d.jsx(i,{as:c,ref:a,className:sr(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Di,defaultTheme:A_,defaultClassName:I_.root,generateClassName:ir.generate});function j_(e){return cr("MuiButton",e)}const M_=ur("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),L_=j.createContext({}),N_=j.createContext(void 0),D_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],W_=Fi(Zk,{shouldForwardProp:e=>zi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${D(n.color)}`],t[`size${D(n.size)}`],t[`${n.variant}Size${D(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(GS(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${M_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${M_.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${M_.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${M_.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Jk()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${M_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${M_.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${M_.loading}`]:{color:"transparent"}}}]}})),$_=Fi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${D(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...D_]})),z_=Fi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${D(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...D_]})),F_=Fi("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),U_=Fi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),B_=j.forwardRef(function(e,t){const n=j.useContext(L_),r=j.useContext(N_),o=Bi({props:Cr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,id:m,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:x,type:C,variant:S="text",...k}=o,_=Ur(m),E=b??d.jsx(u_,{"aria-labelledby":_,color:"inherit",size:16}),T={...o,color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:f,fullWidth:g,loading:y,loadingIndicator:E,loadingPosition:v,size:w,type:C,variant:S},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Kr({root:["root",a&&"loading",i,`${i}${D(t)}`,`size${D(o)}`,`${i}Size${D(o)}`,`color${D(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${D(s)}`],startIcon:["icon","startIcon",`iconSize${D(o)}`],endIcon:["icon","endIcon",`iconSize${D(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},j_,l);return{...l,...c}})(T),R=(x||y&&"start"===v)&&d.jsx($_,{className:P.startIcon,ownerState:T,children:x||d.jsx(U_,{className:P.loadingIconPlaceholder,ownerState:T})}),I=(p||y&&"end"===v)&&d.jsx(z_,{className:P.endIcon,ownerState:T,children:p||d.jsx(U_,{className:P.loadingIconPlaceholder,ownerState:T})}),A=r||"",O="boolean"==typeof y?d.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(F_,{className:P.loadingIndicator,ownerState:T,children:E})}):null;return d.jsxs(W_,{ownerState:T,className:sr(n.className,P.root,l,A),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(P.focusVisible,h),ref:t,type:C,id:y?_:m,...k,classes:P,children:[R,"end"!==v&&O,i,"end"===v&&O,I]})});function q_(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function H_(e){return parseInt(tk(e).getComputedStyle(e).paddingRight,10)||0}function V_(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&q_(e,o)})}function K_(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function G_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ek(e);return t.body===e?tk(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(tk(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${H_(r)+e}px`;const t=ek(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${H_(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ek(r).body;else{const t=r.parentElement,n=tk(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Q_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y_(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q_)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Z_(){return!0}function X_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Y_,isEnabled:a=Z_,open:s}=e,l=j.useRef(!1),c=j.useRef(null),u=j.useRef(null),f=j.useRef(null),p=j.useRef(null),h=j.useRef(!1),g=j.useRef(null),m=ok(d_(t),g),y=j.useRef(null);j.useEffect(()=>{s&&g.current&&(h.current=!n)},[n,s]),j.useEffect(()=>{if(!s||!g.current)return;const e=ek(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),j.useEffect(()=>{if(!s||!g.current)return;const e=ek(g.current),t=t=>{y.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(g.current)),n.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return d.jsxs(j.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:m,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),d.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const J_=()=>{},eE=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&q_(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);V_(t,e.mount,e.modalRef,r,!0);const o=K_(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=K_(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=G_(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=K_(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&q_(e.modalRef,t),V_(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&q_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function tE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=j.useRef({}),f=j.useRef(null),p=j.useRef(null),h=ok(p,u),[g,m]=j.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const v=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),w=()=>{eE.mount(v(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},x=rk(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ek(f.current).body;eE.add(v(),e),p.current&&w()}),C=()=>eE.isTopModal(v()),S=rk(e=>{f.current=e,e&&(c&&C()?w():p.current&&q_(p.current,b))}),k=j.useCallback(()=>{eE.remove(v(),b)},[b]);j.useEffect(()=>()=>{k()},[k]),j.useEffect(()=>{c?x():y&&o||k()},[c,k,y,o,x]);const _=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Nk(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:_(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:c}},getTransitionProps:()=>({onEnter:KS(()=>{m(!1),i&&i()},s?.props.onEnter??J_),onExited:KS(()=>{m(!0),a&&a(),o&&k()},s?.props.onExited??J_)}),rootRef:h,portalRef:S,isTopModal:C,exited:g,hasTransition:y}}function nE(e){return cr("MuiModal",e)}ur("MuiModal",["root","hidden","backdrop"]);const rE=Fi("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(GS(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),oE=Fi(R_,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),iE=j.forwardRef(function(e,t){const n=Bi({name:"MuiModal",props:e}),{BackdropComponent:r=oE,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:l,container:c,component:u,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:C,onTransitionEnter:S,onTransitionExited:k,open:_,slotProps:E={},slots:T={},theme:P,...R}=n,I={...n,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:w,keepMounted:x},{getRootProps:A,getBackdropProps:O,getTransitionProps:M,portalRef:L,isTopModal:N,exited:D,hasTransition:W}=tE({...I,rootRef:t}),$={...I,exited:D},z=(e=>{const{open:t,exited:n,classes:r}=e;return Kr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nE,r)})($),F={};if(void 0===l.props.tabIndex&&(F.tabIndex="-1"),W){const{onEnter:e,onExited:t}=M();F.onEnter=e,F.onExited=t}const U={slots:{root:f.Root,backdrop:f.Backdrop,...T},slotProps:{...p,...E}},[B,q]=Wk("root",{ref:t,elementType:rE,externalForwardedProps:{...U,...R,component:u},getSlotProps:A,ownerState:$,className:sr(a,z?.root,!$.open&&$.exited&&z?.hidden)}),[H,V]=Wk("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:sr(o?.className,z?.backdrop),ownerState:$});return x||_||W&&!D?d.jsx(f_,{ref:L,container:c,disablePortal:y,children:d.jsxs(B,{...q,children:[!w&&r?d.jsx(H,{...V}):null,d.jsx(X_,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:b,isEnabled:N,open:_,children:j.cloneElement(l,F)})]})}):null});function aE(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=tk(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const sE=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=r,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:m,onExited:y,onExiting:b,style:v,timeout:w=o,TransitionComponent:x=bk,...C}=e,S=j.useRef(null),k=ok(d_(s),S,t),_=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},E=_((e,t)=>{aE(c,e,l),Ik(e),p&&p(e,t)}),T=_((e,t)=>{const r=Ak({timeout:w,style:v,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),P=_(h),R=_(b),I=_(e=>{const t=Ak({timeout:w,style:v,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),aE(c,e,l),m&&m(e)}),A=_(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),O=j.useCallback(()=>{S.current&&aE(c,S.current,l)},[c,l]);return j.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=JS(()=>{S.current&&aE(c,S.current,l)}),t=tk(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),j.useEffect(()=>{f||O()},[f,O]),d.jsx(x,{nodeRef:S,onEnter:E,onEntered:P,onEntering:T,onExit:I,onExited:A,onExiting:R,addEndListener:e=>{i&&i(S.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>j.cloneElement(s,{ref:k,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),lE=function(e={}){const{createStyledComponent:t=uo,useThemeProps:n=fo,useTheme:r=tr,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(to,ro,no,Jr,oo,io,eo),s=j.forwardRef(function(e,t){const s=r(),l=Ge(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(l,s.breakpoints);const{className:c,children:u,columns:f=12,container:p=!1,component:h="div",direction:g="row",wrap:m="wrap",size:y={},offset:b={},spacing:v=0,rowSpacing:w=v,columnSpacing:x=v,unstable_level:C=0,...S}=l,k=i(y,s.breakpoints,e=>!1!==e),_=i(b,s.breakpoints),E=e.columns??(C?void 0:f),T=e.spacing??(C?void 0:v),P=e.rowSpacing??e.spacing??(C?void 0:w),R=e.columnSpacing??e.spacing??(C?void 0:x),I={...l,level:C,columns:E,container:p,direction:g,wrap:m,spacing:T,rowSpacing:P,columnSpacing:R,size:k,offset:_},A=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:s}=e;return Kr({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...lo(r),...ao(s),...n?so(i,t.breakpoints.keys[0]):[]]},e=>cr(o,e),{})})(I,s);return d.jsx(a,{ref:t,as:h,ownerState:I,className:sr(A.root,c),...S,children:j.Children.map(u,e=>{return j.isValidElement(e)&&(t=e,n=["Grid"],j.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName))&&p&&e.props.container?j.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e;var t,n})})});return s.muiName="Grid",s}({createStyledComponent:Fi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Bi({props:e,name:"MuiGrid"}),useTheme:Wi});function cE(e){return`scale(${e}, ${e**2})`}const uE={entering:{opacity:1,transform:cE(1)},entered:{opacity:1,transform:"none"}},dE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fE=j.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:f,onExiting:p,style:h,timeout:g="auto",TransitionComponent:m=bk,...y}=e,b=Rk(),v=j.useRef(),w=Wi(),x=j.useRef(null),C=ok(x,d_(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=S(c),_=S((e,t)=>{Ik(e);const{duration:n,delay:r,easing:o}=Ak({style:h,timeout:g,easing:i},{mode:"enter"});let a;"auto"===g?(a=w.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:dE?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),E=S(l),T=S(p),P=S(e=>{const{duration:t,delay:n,easing:r}=Ak({style:h,timeout:g,easing:i},{mode:"exit"});let o;"auto"===g?(o=w.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:dE?o:.666*o,delay:dE?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=cE(.75),u&&u(e)}),R=S(f);return d.jsx(m,{appear:r,in:a,nodeRef:x,onEnter:_,onEntered:E,onEntering:k,onExit:P,onExited:R,onExiting:T,addEndListener:e=>{"auto"===g&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===g?null:g,...y,children:(e,{ownerState:t,...n})=>j.cloneElement(o,{style:{opacity:0,transform:cE(.75),visibility:"exited"!==e||a?void 0:"hidden",...uE[e],...h,...o.props.style},ref:C,...n})})});function pE(e){return cr("MuiPopover",e)}function hE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function gE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function mE(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function yE(e){return"function"==typeof e?e():e}fE&&(fE.muiSupportAuto=!0),ur("MuiPopover",["root","paper"]);const bE=Fi(iE,{name:"MuiPopover",slot:"Root"})({}),vE=Fi(Mk,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wE=j.forwardRef(function(e,t){const n=Bi({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:c,container:u,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:g={},slots:m={},slotProps:y={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:C=!1,...S}=n,k=j.useRef(),_={...n,anchorOrigin:i,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:b,TransitionComponent:v,transitionDuration:w,TransitionProps:x},E=(e=>{const{classes:t}=e;return Kr({root:["root"],paper:["paper"]},pE,t)})(_),T=j.useCallback(()=>{if("anchorPosition"===s)return a;const e=yE(o),t=(e&&1===e.nodeType?e:ek(k.current).body).getBoundingClientRect();return{top:t.top+hE(t,i.vertical),left:t.left+gE(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),P=j.useCallback(e=>({vertical:hE(e,b.vertical),horizontal:gE(e,b.horizontal)}),[b.horizontal,b.vertical]),R=j.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===s)return{top:null,left:null,transformOrigin:mE(n)};const r=T();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,c=a+t.width,u=tk(yE(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!==p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!==p&&l>d){const e=l-d;i-=e,n.vertical+=e}if(null!==p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:mE(n)}},[o,s,T,P,p]),[I,A]=j.useState(h),O=j.useCallback(()=>{const e=k.current;if(!e)return;const t=R(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[R]);j.useEffect(()=>(C&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[o,C,O]);j.useEffect(()=>{h&&O()}),j.useImperativeHandle(r,()=>h?{updatePosition:()=>{O()}}:null,[h,O]),j.useEffect(()=>{if(!h)return;const e=JS(()=>{O()}),t=tk(yE(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,O]);let M=w;const L={slots:{transition:v,...m},slotProps:{transition:x,paper:g,...y}},[N,D]=Wk("transition",{elementType:fE,externalForwardedProps:L,ownerState:_,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),O()},onExited:t=>{e.onExited?.(t),A(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||N.muiSupportAuto||(M=void 0);const W=u||(o?ek(yE(o)).body:void 0),[$,{slots:z,slotProps:F,...U}]=Wk("root",{ref:t,elementType:bE,externalForwardedProps:{...L,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:ik("function"==typeof y.backdrop?y.backdrop(_):y.backdrop,{invisible:!0})},container:W,open:h},ownerState:_,className:sr(E.root,c)}),[B,q]=Wk("paper",{ref:k,className:E.paper,elementType:vE,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:I?void 0:{opacity:0}},ownerState:_});return d.jsx($,{...U,...!Lk($)&&{slots:z,slotProps:F,disableScrollLock:C},children:d.jsx(N,{...D,timeout:M,children:d.jsx(B,{...q,children:l})})})}),xE={entering:{transform:"none"},entered:{transform:"none"}},CE=j.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=bk,...v}=e,w=j.useRef(null),x=ok(w,d_(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=C(f),k=C((e,t)=>{Ik(e);const r=Ak({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),c&&c(e,t)}),_=C(u),E=C(g),T=C(e=>{const t=Ak({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:k,onEntered:_,onEntering:S,onExit:T,onExited:P,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>j.cloneElement(a,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...xE[e],...m,...a.props.style},ref:x,...n})})}),SE=function(e={}){const{createStyledComponent:t=ho,useThemeProps:n=go,componentName:r="MuiStack"}=e,o=t(yo);return j.forwardRef(function(e,t){const i=Ge(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:f,useFlexGap:p=!1,...h}=i,g={direction:s,spacing:l,useFlexGap:p},m=Kr({root:["root"]},e=>cr(r,e),{});return d.jsx(o,{as:a,ownerState:g,ref:t,className:sr(m.root,f),...h,children:c?mo(u,c):u})})}({createStyledComponent:Fi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Bi({props:e,name:"MuiStack"})});class kE extends j.PureComponent{componentDidMount(){(Kl[na.GAME_ID]||Kl[0]).forEach(e=>{ck.preload(rc(e),{as:"image"})})}render(){return VS.disableLoginPage?this.renderLoading():"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsxs(O_,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(O_,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(u_,{color:"inherit"})})]})}renderLoading(){return d.jsxs(O_,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(O_,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(u_,{color:"inherit"})})]})}render1057(){return d.jsxs(O_,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1057_bg_1.png")})`},children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(O_,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(u_,{color:"inherit"})})]})}}class _E extends j.PureComponent{render(){return"1041"==na.GAME_ID?this.render1041():"1048"==na.GAME_ID?this.render1048():"1057"==na.GAME_ID?this.render1057():"1060"==na.GAME_ID?this.render1060():"1061"==na.GAME_ID?this.render1061():this.renderDefault()}renderDefault(){return d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${rc("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${rc("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(O_,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${rc("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}render1057(){return d.jsx(O_,{sx:{position:"absolute",inset:10,backgroundColor:"#fff",borderRadius:2,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.8)"}})}render1060(){return d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1060_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1061(){return d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:30,borderStyle:"solid",borderImage:`url(${rc("1061_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"30 fill"}})}}const EE={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class TE extends j.PureComponent{constructor(){super(...arguments),this._aniUrl=`${rc("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(EE).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=EE[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?d.jsx(O_,{sx:{marginLeft:8,height:118},children:d.jsx(O_,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):d.jsx(O_,{sx:{marginLeft:8,height:118}})}}class PE extends j.PureComponent{render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){const e=!!oc()&&window.Telegram.WebApp.isFullscreen;return d.jsx(E_,{in:!0,timeout:{enter:1e3},children:d.jsxs(O_,{sx:{width:1,top:e?"10%":"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[d.jsx(TE,{}),d.jsx(O_,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(O_,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}render1057(){return d.jsx(E_,{in:!0,timeout:{enter:1e3},children:d.jsxs(O_,{sx:{width:1,top:"6%",position:"absolute",textAlign:"center"},children:[d.jsx(O_,{component:"img",src:rc("1057_logo.png"),sx:{width:285,height:240}}),d.jsx(O_,{sx:{fontSize:24,fontWeight:"bold",color:"#fff"},children:"Catizen"})]})})}}class RE extends j.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=Vl[e];return d.jsxs(O_,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(O_,{component:"img",src:`${rc(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(O_,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class IE extends j.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=dc.gameInfo;return"1057"==na.GAME_ID?this.render1057(e,t,n,r):this.renderDefault(e,t,n,r)}renderDefault(e,t,n,r){return d.jsxs(O_,{sx:{pb:2},children:[d.jsxs(O_,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(O_,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(O_,{children:[d.jsx(O_,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(lE,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(lE,{children:d.jsx(RE,{tagId:e})},t))})]})]}),d.jsx(O_,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}render1057(e,t,n,r){return d.jsxs(O_,{sx:{pb:2},children:[d.jsxs(O_,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(O_,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(O_,{children:[d.jsx(O_,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#333333",textAlign:"left"},children:t}),d.jsx(lE,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(lE,{children:d.jsx(RE,{tagId:e})},t))})]})]}),d.jsx(O_,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#4c4a4a",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const AE=XS(d.jsx("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}));class OE extends j.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i,isItalic:a,isWhiteSpace:s}=this.props,l={color:n,fontSize:t,fontWeight:"bold",fontStyle:a?"italic":"normal",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em",whiteSpace:s?"normal":"nowrap","&:after":{content:`"${e}"`,WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return d.jsx(O_,{content:e,sx:l,children:e})}}class jE extends j.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout(()=>{this.setState({showCircle:!0})},600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return d.jsx(O_,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(O_,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(O_,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(O_,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(u_,{color:"inherit"})})]})})}}let ME=null;const LE=()=>{if(ME)return;const e=document.createElement("div");document.body.appendChild(e);const t=O.createRoot(e);t.render(d.jsx(jE,{})),ME={div:e,root:t}},NE=()=>{if(!ME)return;const e=ME.div;ME.root.unmount(),e.parentNode?.removeChild(e),ME=null};class DE extends j.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout(()=>{$E(e)},500)}}componentDidMount(){this._aniTimer=window.setTimeout(()=>{this.setState({checked:!1})},2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return d.jsx(O_,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(sE,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(O_,{children:d.jsx(CE,{in:!0,timeout:{enter:1e3},children:d.jsx(O_,{sx:{display:"flex"},children:d.jsx(E_,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(O_,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const WE={},$E=e=>{const t=WE[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete WE[e]},zE=e=>{const t=nc(1,1e3)+"-"+Date.now(),n=document.createElement("div");document.body.appendChild(n);const r=O.createRoot(n);r.render(d.jsx(DE,{id:t,text:e})),WE[t]={div:n,root:r}};class FE extends j.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!dc.plutoId)return void console.log("pluto id is null");if(!oc())return void console.log("sharing is not available outside the Telegram environment");if(!VS.shareMessageEnable())return void zE("If you are unable to share, please update Telegram to the latest version and try again.");const e=VS.formatShareLink();LE(),VS.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),VS.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{NE()})}}render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(AE,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(OE,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}render1057(){return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(O_,{component:"img",src:rc("1057_telegram.png"),sx:{width:28,height:28,mr:1,position:"relative"}}),d.jsx(OE,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}}class UE extends j.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){qS.subscribe(El,this.onReady)}componentWillUnmount(){qS.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return"1057"==na.GAME_ID?this.render1057(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(O_,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(O_,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(OE,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(u_,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}render1057(e,t){return d.jsx(O_,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(O_,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(OE,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(u_,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}}class BE extends j.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{if(oc())try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{component:"img",src:rc("add_screen.png"),sx:{position:"relative"}})]})})}}class qE extends j.PureComponent{render(){return"1057"==na.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(O_,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2",backgroundImage:`url(${rc("bg_1.png")})`}})}render1057(){return d.jsx(O_,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1057_bg_1.png")})`}})}}const HE=Fi(O_)(()=>({width:"100%",maxWidth:420,margin:"0 auto",position:"relative"}));class VE extends j.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(Tl,Dl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Rl,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(O_,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(qE,{}),d.jsx(PE,{}),d.jsx(O_,{sx:{width:1,bottom:sc()?40:20,position:"absolute"},children:d.jsx(sE,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(O_,{children:[d.jsxs(HE,{children:[d.jsx(_E,{}),d.jsxs(O_,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(IE,{}),VS.disableLoginShare?null:VS.disableAddScreen?d.jsx(FE,{}):d.jsxs(O_,{sx:{height:50},children:[d.jsx(O_,{sx:{width:.8,height:50,float:"left"},children:d.jsx(FE,{})}),d.jsx(O_,{sx:{width:.18,height:50,float:"right"},children:d.jsx(BE,{})})]})]})]}),d.jsx(HE,{sx:{paddingTop:2},children:d.jsx(UE,{onClick:this.onClickPlay})})]})})})]})}}class KE extends j.PureComponent{render(){return"1041"==na.GAME_ID||"1048"==na.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(O_,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}renderBlack(){return d.jsx(O_,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class GE extends j.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(O_,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(O_,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(O_,{component:"img",src:rc("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(O_,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(O_,{component:"img",src:rc("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(O_,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e,t){return d.jsxs(O_,{sx:{width:1,height:60,position:"relative",pt:1.5},children:[d.jsxs(O_,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(O_,{component:"img",src:rc("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(OE,{content:e,fontSize:28,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(O_,{component:"img",src:rc("1041_title_2.png"),sx:{position:"relative",ml:2}})]}),d.jsx(O_,{component:"img",src:rc("1041_close.png"),sx:{width:32,height:32,position:"absolute",top:18,right:18},onClick:t})]})}render1048(e,t){return d.jsxs(O_,{sx:{width:1,height:70},children:[d.jsx(O_,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(O_,{component:"img",src:rc("1048_close.png"),sx:{width:52,height:52,position:"absolute",top:10,right:10},onClick:t})]})}render1057(e){return d.jsxs(d.Fragment,{children:[d.jsx(O_,{sx:{width:1,height:60,position:"relative"},children:d.jsx(O_,{sx:{width:1,height:60,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{fontSize:30,fontWeight:"bold",color:"#333333",mx:1},children:e})})}),d.jsx(O_,{sx:{mx:3,borderBottom:"2px solid #F0F0F0",position:"relative"}})]})}render1060(e,t){return d.jsxs(O_,{sx:{width:1,height:60,position:"relative",pt:1.5},children:[d.jsxs(O_,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(O_,{component:"img",src:rc("1060_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(OE,{content:e,fontSize:28,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(O_,{component:"img",src:rc("1060_title_2.png"),sx:{position:"relative",ml:2}})]}),d.jsx(O_,{component:"img",src:rc("1060_close.png"),sx:{width:32,height:32,position:"absolute",top:18,right:18},onClick:t})]})}render1061(e,t){return d.jsxs(O_,{sx:{width:1,height:60,position:"relative",pt:1.3},children:[d.jsx(O_,{sx:{position:"absolute",mx:"10px",width:"95%",height:1,borderWidth:25,borderStyle:"solid",borderImage:`url(${rc("1061_title.png")})`,borderImageRepeat:"repeat",borderImageSlice:"25 fill"}}),d.jsx(O_,{sx:{width:1,height:60,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(OE,{content:e,fontSize:40,color:"#fff",strokeColor:"#000",strokeWidth:5})})]})}}class QE extends j.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e,t):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(B_,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none",whiteSpace:"nowrap"},variant:"outlined",onClick:t,children:e})}render1041(e,t){return d.jsxs(B_,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(O_,{sx:{position:"relative"},children:d.jsx(OE,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(B_,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}render1057(e,t){return d.jsx(B_,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#838280",borderColor:"#838280",textTransform:"none",whiteSpace:"nowrap"},variant:"outlined",onClick:t,children:e})}render1060(e,t){return d.jsxs(B_,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1060_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(O_,{sx:{position:"relative"},children:d.jsx(OE,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1061(e,t){return d.jsxs(B_,{sx:{width:1,height:40,borderRadius:2.5},variant:"text",onClick:t,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:12,borderStyle:"solid",borderImage:`url(${rc("1061_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}}),d.jsx(O_,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#000",whiteSpace:"nowrap"},children:e})]})}}class YE extends j.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1060"==na.GAME_ID?this.render1060(e):"1061"==na.GAME_ID?this.render1061(e):this.renderDefault(e)}renderDefault(e){return d.jsx(B_,{sx:{width:1,height:30,borderRadius:13,fontWeight:"bold",color:"#666666",backgroundColor:"#fff",borderColor:"#787772",textTransform:"none"},variant:"outlined",onClick:e,children:"Disconnect"})}render1041(e){return d.jsxs(B_,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{sx:{position:"relative",pb:"4px"},children:d.jsx(OE,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(B_,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}render1060(e){return d.jsx(B_,{sx:{width:57,height:40},variant:"text",disableRipple:!0,onClick:e,children:d.jsx(O_,{component:"img",src:rc("1060_disconnect.png"),sx:{width:57,height:40,position:"relative"}})})}render1061(e){return d.jsxs(B_,{sx:{width:1,height:40,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${rc("1061_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#E43E3E"},children:"Disconnect"})]})}}class ZE extends j.PureComponent{constructor(){super(...arguments),this.state={tonAddress:HS.friendlyAddress,solanaAddress:HS.solanaPayGetWalletAddress(),showDisconnect:!1,anchorEl:null},this.onWalletConnectTon=(e,t)=>{t?this.setState({tonAddress:HS.friendlyAddress}):this.setState({tonAddress:null,showDisconnect:!1})},this.onWalletConnectSolana=e=>{console.log("onWalletConnectSolana: ",e),e?this.setState({solanaAddress:HS.solanaPayGetWalletAddress()}):this.setState({solanaAddress:null,showDisconnect:!1})},this.onClickWallet=e=>{const{showDisconnect:t}=this.state;this.setState({showDisconnect:!t,anchorEl:e.currentTarget})},this.onClickDisconnect=()=>{HS.disconnect()},this.onClickDisconnectTon=()=>{HS.disconnect()},this.onClickDisconnectSolana=()=>{HS.solanaPayDisconnectWallet()},this.onClickCloseDisconnect=()=>{this.setState({showDisconnect:!1,anchorEl:null})}}componentDidMount(){qS.subscribe(Pl,this.onWalletConnectTon),HS.solanaPayOnEvent("walletConnectState",this.onWalletConnectSolana)}componentWillUnmount(){qS.unsubscribe(this.onWalletConnectTon),HS.solanaPayOffEvent("walletConnectState")}render(){return"1060"==na.GAME_ID?this.render1060():this.renderDefault()}renderDefault(){const{tonAddress:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return d.jsxs(SE,{spacing:1,sx:{float:"right",width:120},children:[d.jsx(QE,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(YE,{onClickDisconnect:this.onClickDisconnect}):null]})}render1060(){const{tonAddress:e,solanaAddress:t,showDisconnect:n,anchorEl:r}=this.state;if(!e&&!t)return null;let o="",i="";if(e){let t=e.length;o=e.substring(0,4)+"..."+e.substring(t-4,t)}if(t){let e=t.length;i=t.substring(0,4)+"..."+t.substring(e-4,e)}const a=n?"wallet-popover":void 0;return d.jsxs(d.Fragment,{children:[d.jsxs(O_,{children:[d.jsx(O_,{component:"img",src:rc("1060_wallet.png"),sx:{width:34,height:34,left:-36,bottom:"7px",position:"absolute"}}),d.jsx(O_,{sx:{position:"absolute",inset:0,borderImage:`url(${rc("1060_bg_3.png")})`,borderWidth:"0px 20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 20 fill"}}),d.jsx(Zk,{"aria-describedby":a,sx:{borderRadius:16,pl:"20px",pr:"10px",py:"6px"},onClick:this.onClickWallet,children:d.jsxs(k_,{spacing:14,sx:{float:"right"},children:[o?d.jsx(v_,{alt:"Ton",src:rc("1060_chain_ton.png"),sx:{width:32,height:32,border:"none !important"}}):null,i?d.jsx(v_,{alt:"Solana",src:rc("1060_chain_solana.png"),sx:{width:32,height:32,border:"none !important"}}):null]})})]}),d.jsxs(wE,{id:a,open:n,anchorEl:r,onClose:this.onClickCloseDisconnect,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{background:"transparent"}}},children:[d.jsx(O_,{sx:{position:"absolute",width:1,height:1,borderWidth:10,borderStyle:"solid",borderImage:`url(${rc("1060_bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsxs(O_,{sx:{py:1},children:[o?d.jsxs(O_,{sx:{height:50,display:"grid",gridTemplateColumns:"auto 1fr auto",gap:1,alignItems:"center",px:1.5},children:[d.jsx(v_,{alt:"Ton",src:rc("1060_chain_ton.png"),sx:{width:32,height:32,border:"none !important"}}),d.jsx(OE,{content:o,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2}),d.jsx(YE,{onClickDisconnect:this.onClickDisconnectTon})]}):null,i?d.jsxs(O_,{sx:{height:50,display:"grid",gridTemplateColumns:"auto 1fr auto",gap:1,alignItems:"center",px:1.5},children:[d.jsx(v_,{alt:"Solana",src:rc("1060_chain_solana.png"),sx:{width:32,height:32,border:"none !important"}}),d.jsx(OE,{content:i,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2}),d.jsx(YE,{onClickDisconnect:this.onClickDisconnectSolana})]}):null]})]})]})}}class XE extends j.PureComponent{render(){const{name:e,usd:t}=dc.purchaseData;return"1041"==na.GAME_ID?this.render1041(e,t):"1048"==na.GAME_ID?this.render1048(e,t):"1057"==na.GAME_ID?this.render1057(e,t):"1060"==na.GAME_ID?this.render1060(e,t):"1061"==na.GAME_ID?this.render1061(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(O_,{sx:{textAlign:"center",mb:2},children:[d.jsx(O_,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(O_,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(O_,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(ZE,{})})]})}render1041(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:3.5},children:[d.jsxs(O_,{sx:{textAlign:"center",mb:2},children:[d.jsx(O_,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(OE,{content:e,fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3,isWhiteSpace:!0})}),d.jsx(O_,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:`= $${t.toFixed(2)}`,fontSize:20,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(O_,{sx:{position:"absolute",top:0,right:24},children:d.jsx(ZE,{})})]})}render1048(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(O_,{children:[d.jsx(O_,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(O_,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(O_,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(ZE,{})})]})}render1057(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:6,pb:3},children:[d.jsxs(O_,{children:[d.jsx(O_,{sx:{fontSize:20,fontWeight:"bold",color:"#333333",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(O_,{sx:{display:"flex",justifyContent:"center",fontSize:18,fontWeight:"bold",color:"#333333"},children:`= $${t.toFixed(2)}`})]}),d.jsx(O_,{sx:{position:"absolute",top:0,right:22,pt:1},children:d.jsx(ZE,{})})]})}render1060(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:3.5},children:[d.jsxs(O_,{sx:{textAlign:"center",mb:2},children:[d.jsx(O_,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(OE,{content:e,fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3,isWhiteSpace:!0})}),d.jsx(O_,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:`= $${t.toFixed(2)}`,fontSize:20,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(O_,{sx:{position:"absolute",top:0,right:24},children:d.jsx(ZE,{})})]})}render1061(e,t){return d.jsxs(O_,{sx:{width:1,position:"relative",pt:6},children:[d.jsxs(O_,{sx:{textAlign:"center",mb:2},children:[d.jsx(O_,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(OE,{content:e,fontSize:30,color:"#fff",strokeColor:"#000",strokeWidth:4,isWhiteSpace:!0})}),d.jsx(O_,{sx:{width:"10px",height:"10px"}}),d.jsx(O_,{sx:{mt:0,mb:2,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:`= $${t.toFixed(2)}`,fontSize:26,color:"#2FBB3F",strokeColor:"#000",strokeWidth:4})})]}),d.jsx(O_,{sx:{position:"absolute",top:15,right:12},children:d.jsx(ZE,{})})]})}}class JE extends j.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1060"==na.GAME_ID?this.render1060(e):"1061"==na.GAME_ID?this.render1061(e):this.renderDefault(e)}renderDefault(e){return d.jsx(O_,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(O_,{component:"img",src:rc("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(O_,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(O_,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(O_,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:66,height:62,position:"relative"},children:[d.jsx(O_,{component:"img",src:rc("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pt:1.5},children:d.jsx(OE,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pb:1.5},children:d.jsx(OE,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}render1048(e){return d.jsx(O_,{sx:{top:-11,right:-18,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:52,height:66,position:"relative"},children:[d.jsx(O_,{component:"img",src:rc("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(O_,{sx:{top:17,left:-2,width:50,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(O_,{sx:{bottom:7,left:4,width:50,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1060(e){return d.jsx(O_,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:66,height:62,position:"relative"},children:[d.jsx(O_,{component:"img",src:rc("1060_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pt:1.5},children:d.jsx(OE,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pb:1.5},children:d.jsx(OE,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}render1061(e){return d.jsx(O_,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:66,height:66,position:"relative"},children:[d.jsx(O_,{component:"img",src:rc("1061_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pt:1.5},children:d.jsx(OE,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(O_,{sx:{display:"flex",height:31,justifyContent:"center",alignItems:"center"},children:d.jsx(O_,{sx:{pb:1.5},children:d.jsx(OE,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})})]})})}}class eT extends j.PureComponent{render(){return d.jsx(O_,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(O_,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(O_,{component:"img",src:rc("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(O_,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(O_,{sx:{mt:"4px"},children:d.jsx(OE,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(O_,{sx:{mt:"-4px"},children:d.jsx(OE,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(O_,{sx:{mt:"-4px"},children:d.jsx(OE,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class tT extends j.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=ql[na.GAME_ID]||ql[0],s=rc(a[e]),l=Bl[e];let c=`${e==Fl.star?t:t.toFixed(2)}`,u=`${e==Fl.star?n:n.toFixed(2)}`,d=(c+l).length;d<=13?(c+=` ${l}`,u=` ${u} ${l} `):d<=15&&(c+=` ${l}`,u=` ${u} `);const f=window.innerWidth;let p=22,h=14;return f<=390?(p=19,h=11):f<=420&&(p=20,h=12),"1041"==na.GAME_ID?this.render1041(s,c,u,r,o,p,h,!!i):"1048"==na.GAME_ID?this.render1048(s,c,u,r,o,p,h,!!i,e==Fl.coc):"1057"==na.GAME_ID?this.render1057(s,c,u,r,o,p,h,!!i):"1060"==na.GAME_ID?this.render1060(s,c,u,r,o,p,h,!!i):"1061"==na.GAME_ID?this.render1061(s,c,u,r,o,p,h,!!i):this.renderDefault(s,c,u,r,o,p,h,!!i)}renderDefault(e,t,n,r,o,i,a,s){return d.jsxs(O_,{sx:{height:50,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(OE,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(OE,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(JE,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(O_,{sx:{height:64,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(O_,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(OE,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(OE,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(JE,{discount:r})]})}render1048(e,t,n,r,o,i,a,s,l){const c=l?"1048_pay_button_1.png":"1048_pay_button_0.png";return d.jsxs(O_,{sx:{height:54,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"26px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(O_,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(OE,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(OE,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(eT,{}):null,d.jsx(JE,{discount:r})]})}render1057(e,t,n,r,o,i,a,s){return d.jsxs(O_,{sx:{height:50,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(O_,{component:"img",src:e,sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(OE,{content:t,fontSize:i,color:"#FFC65E",strokeColor:"#000",strokeWidth:3}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(OE,{content:n,fontSize:a,color:"#FFC65E",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(JE,{discount:r})]})}render1060(e,t,n,r,o,i,a,s){return d.jsxs(O_,{sx:{height:64,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1060_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(O_,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(OE,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(OE,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(JE,{discount:r})]})}render1061(e,t,n,r,o,i,a,s){return d.jsxs(O_,{sx:{height:64,position:"relative"},children:[d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"10px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1061_pay_button.png")})`,borderWidth:30,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"30 fill"}}),d.jsx(O_,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"10px",position:"relative"}}),d.jsx(O_,{sx:{mb:"6px"},children:d.jsx(OE,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(O_,{sx:{width:"8px"}}),r>0?d.jsx(O_,{sx:{mb:"6px"},children:d.jsx(OE,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0})}):null]}),d.jsx(JE,{discount:r})]})}}class nT extends j.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(O_,{sx:{width:1,height:140,mb:2},children:[d.jsx(O_,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${rc("1048_suggest_bg.png")})`}}),d.jsxs(O_,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(O_,{sx:{position:"absolute",width:1},children:d.jsx(O_,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(OE,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(O_,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(O_,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(OE,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(O_,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(OE,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(O_,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(OE,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(O_,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(O_,{sx:{position:"absolute",width:1},children:d.jsx(O_,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(OE,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(O_,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(OE,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(O_,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(OE,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(O_,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(OE,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(O_,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(OE,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(OE,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(O_,{component:"img",src:rc("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class rT extends j.PureComponent{render(){const{onClickPay:e}=this.props;return"1041"==na.GAME_ID?this.render1041(e):"1048"==na.GAME_ID?this.render1048(e):"1057"==na.GAME_ID?this.render1057(e):"1060"==na.GAME_ID?this.render1060(e):this.renderDefault(e)}renderDefault(e){return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"10px"},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(O_,{component:"img",src:rc("tribute.png"),sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(OE,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}render1041(e){return d.jsx(O_,{sx:{height:64,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"12px"},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(O_,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(OE,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}render1048(e){return d.jsx(O_,{sx:{height:54,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"26px"},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1048_pay_button_0.png")})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(O_,{component:"img",src:rc("tribute.png"),sx:{width:32,height:32,mr:1,mb:"4px",position:"relative"}}),d.jsx(OE,{content:"BUY VIA SBP",fontSize:22,color:"#feff9d",strokeColor:"#785131",strokeWidth:3})]})})}render1057(e){return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"26px"},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${rc("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(O_,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(OE,{content:"BUY VIA SBP",fontSize:22,color:"#FFC65E",strokeColor:"#000",strokeWidth:3})]})})}render1060(e){return d.jsx(O_,{sx:{height:64,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:"12px"},variant:"text",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("1060_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(O_,{component:"img",src:rc("tribute.png"),sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(OE,{content:"BUY VIA SBP",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}}class oT extends j.PureComponent{constructor(){super(...arguments),this._destroyed=!1,this._loadingTimer=null,this._status=!1,this._cocInsufficient=!1,this._tokenInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{qS.publish(Tl,Dl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickStar=()=>{const e=Ul[Fl.star];LE(),VS.reqOrder(Wl.star,e).then(t=>{let n=0;VS.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,n),VS.openInvoice(t.payLink).then(()=>{n=1,this._status=!0}).catch(e=>{n=2,zE(e.message)}).finally(()=>{VS.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,n),this.onClickClose()})}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})},this.onClickTribute=()=>{const e=Ul[Fl.star];LE(),VS.reqOrder(Wl.tribute,e).then(e=>{e.payLink?window.Telegram.WebApp.openTelegramLink(e.payLink):zE("This product is not supported for this payment method."),this.onClickClose()}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})},this.onClickCati=()=>{const e=Ul[Fl.cati];HS.connect().then(()=>{LE(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})})},this.onClickPyboboTon=()=>{const e=Ul[Fl.pyboboTon];HS.connect().then(()=>{LE(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})})},this.onClickPyboboSolana=()=>{const e=Ul[Fl.pyboboSolana];HS.solanaPayConnectWallet().then(()=>{this._destroyed||(LE(),VS.reqOrder(Wl.solana,e).then(e=>(this.addLoadingTimer(),HS.solanaPaySendTransaction(e.address,e.amount,e.payload))).then(()=>{this._destroyed||(this._status=!0)}).catch(e=>{console.log(e),zE(e.message)}).finally(()=>{this._destroyed||(this.clearLoadingTimer(),this.onClickClose())}))})},this.onClickUsdt=()=>{const e=Ul[Fl.usdt];HS.connect().then(()=>{LE(),VS.reqOrder(Wl.ton,e).then(t=>HS.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{const t=e.address,n=e.payload;this.sendTransaction({amount:"100000000",address:t,payload:n})}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})})},this.onClickTon=()=>{const e=Ul[Fl.ton];HS.connect().then(()=>{LE(),VS.reqOrder(Wl.ton,e).then(e=>{const t=e.amount,n=e.address,r=e.payload;this.sendTransaction({amount:t,address:n,payload:r})}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})})},this.onClickCoc=()=>{const e=Ul[Fl.coc];LE(),VS.reqOrder(Wl.balance,e).then(e=>{this._status=!0}).catch(e=>{zE(e.message),26==e.code&&(this._cocInsufficient=!0,this._tokenInsufficient=!0)}).finally(()=>{NE(),this.onClickClose()})},this.onClickCroco=()=>{const e=Ul[Fl.croco];LE(),VS.reqOrder(Wl.balance,e).then(e=>{this._status=!0}).catch(e=>{zE(e.message),26==e.code&&(this._tokenInsufficient=!0)}).finally(()=>{NE(),this.onClickClose()})}}componentWillUnmount(){this.clearLoadingTimer(),this._destroyed=!0;const e=this._status,{productId:t,orderId:n,customData:r}=dc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?dc.purchaseData.orderNo:""};e||(this._cocInsufficient&&(o.cocInsufficient=!0),this._tokenInsufficient&&(o.tokenInsufficient=!0)),qS.publish(Il,o)}render(){const{usd:e,ton:t,tonOld:n,tonDiscount:r,usdt:o,usdtOld:i,usdtDiscount:a,cati:s,catiOld:l,catiDiscount:c,star:u,starOld:f,starDiscount:p,coc:h,cocOld:g,cocDiscount:m,pybobo:y,pyboboOld:b,pyboboDiscount:v,croco:w,crocoOld:x,crocoDiscount:C}=dc.purchaseData,{showSlide:S}=this.state;return d.jsxs(O_,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(KE,{}),d.jsxs(O_,{sx:{width:1,height:1,display:"flex",flexDirection:"column",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(O_,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(O_,{sx:{width:"100%",mt:"auto",pointerEvents:"none",py:1},children:d.jsx(sE,{direction:"up",in:S,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(O_,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(_E,{}),d.jsx(GE,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(XE,{}),this.cocPayEnable()&&h?d.jsx(nT,{}):null,d.jsxs(SE,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(tT,{currencyKey:Fl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.crocoPayEnable()&&w?d.jsx(tT,{currencyKey:Fl.croco,price:w,oldPrice:x,discount:C,onClickPay:this.onClickCroco}):null,this.pyboboPayEnable()&&y?d.jsxs(d.Fragment,{children:[d.jsx(tT,{currencyKey:Fl.pyboboTon,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPyboboTon}),d.jsx(tT,{currencyKey:Fl.pyboboSolana,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPyboboSolana})]}):null,this.catiPayEnable()&&s?d.jsx(tT,{currencyKey:Fl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati}):null,this.tonPayEnable()&&t?d.jsx(tT,{currencyKey:Fl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon}):null,this.usdtPayEnable()?d.jsx(tT,{currencyKey:Fl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt}):null,this.starPayEnable()?d.jsx(tT,{currencyKey:Fl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null,this.tributePayEnable()?d.jsx(rT,{onClickPay:this.onClickTribute}):null]})]})})})]})]})}sendTransaction(e){const t=HS.chain;return na.TEST_MODE&&t==jc.MAINNET?(zE("Please switch chain TESTNET"),HS.disconnect(),void this.onClickClose()):na.TEST_MODE||t!=jc.TESTNET?void HS.sendTransaction(e).then(e=>{this._destroyed||(this._status=!0)}).catch(e=>{console.log(e.message)}).finally(()=>{this._destroyed||this.onClickClose()}):(zE("Please switch chain MAINNET"),HS.disconnect(),void this.onClickClose())}starPayEnable(){return!!oc()}tributePayEnable(){if(!oc())return!1;if(!["1048"].includes(na.GAME_ID))return!1;const{usd:e}=dc.purchaseData;if(e>100)return!1;if(na.TEST_MODE)return!0;let t=(()=>{let e="",t=window.Telegram.WebApp.initDataUnsafe?.user?.language_code;t&&(e=t.split("-")[0]);return e})();return"en"==t||"ru"==t}usdtPayEnable(){return!this.onlyUsePyboboPayProduct()&&this.cryptoPayEnable()}tonPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041","1048","1060","1061"].includes(na.GAME_ID)}catiPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041"].includes(na.GAME_ID)}pyboboPayEnable(){return!!this.cryptoPayEnable()&&"1060"==na.GAME_ID}cocPayEnable(){return"1048"==na.GAME_ID}crocoPayEnable(){return!this.onlyUsePyboboPayProduct()&&"1060"==na.GAME_ID}cryptoPayEnable(){return!!na.TEST_MODE||!ac()}onlyUsePyboboPayProduct(){if("1060"!=na.GAME_ID)return!1;const{productId:e}=dc.purchaseData,t=parseInt(e);return!(t<6e5||t>61e4)}addLoadingTimer(){this._loadingTimer=window.setTimeout(()=>{this._loadingTimer=null,NE()},3e4)}clearLoadingTimer(){this._loadingTimer&&(window.clearTimeout(this._loadingTimer),this._loadingTimer=null),NE()}}class iT extends j.PureComponent{render(){const{name:e}=dc.checkInData;return d.jsxs(O_,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(O_,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(O_,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(O_,{sx:{mx:5,mt:"1048"==na.GAME_ID?3:1,position:"relative"},children:d.jsx(ZE,{})})]})}}class aT extends j.PureComponent{constructor(){super(...arguments),this.state={buttonText:HS.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){qS.subscribe(Pl,this.onWalletConnect)}componentWillUnmount(){qS.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(O_,{sx:{height:50,position:"relative"},children:d.jsxs(B_,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(O_,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${rc("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(OE,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class sT extends j.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{qS.publish(Tl,Dl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=dc.checkInData;this.sendTransaction({amount:e,address:n,payload:t})}).catch(e=>{console.log(e)})},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=dc.checkInData;qS.publish(Al,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(O_,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(KE,{}),d.jsxs(O_,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(O_,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(O_,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(sE,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(O_,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(_E,{}),d.jsx(GE,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(iT,{}),d.jsx(SE,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(aT,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(HS.connected)return e();HS.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=HS.chain;na.TEST_MODE&&t==jc.MAINNET?zE("Please switch chain TESTNET"):na.TEST_MODE||t!=jc.TESTNET?HS.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):zE("Please switch chain MAINNET")}verify(e){const t=HS.chain,n=HS.friendlyAddress,r=dc.checkInData.orderNo;LE(),VS.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{zE(e.message),this.onClickClose()}).finally(()=>{NE()})}}const lT=Fi(O_)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class cT extends j.PureComponent{constructor(){super(...arguments),this.state={pageId:Dl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){qS.subscribe(Tl,this.onSwitchPage),qS.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Dl.index:t=kE;break;case Dl.login:t=VE;break;case Dl.purchase:t=oT;break;case Dl.checkIn:t=sT}return t?d.jsx(lT,{children:d.jsx(t,{})}):null}}const uT=()=>{console.info(`Pluto SDK version: ${na.APP_VERSION}`),na.init(),Ql.init(),VS.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);O.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Yi,{}),d.jsx(cT,{})]}))};const dT=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{try{const e=this._handlerMap.event_playButtonClicked;if(!e)return;e.apply(null,[])}catch(n){console.error(n)}},this.onPuchaseCompleted=(e,t)=>{try{const e=this._handlerMap[Ol];e&&e.apply(null,[t]);const n=this._callbackMap[Ol];n&&(n.apply(null,[t]),this._callbackMap[Ol]=null)}catch(n){console.error(n)}},this.onCheckInCompleted=(e,t)=>{try{const e=this._handlerMap[jl];e&&e.apply(null,[t]);const n=this._callbackMap[jl];n&&(n.apply(null,[t]),this._callbackMap[jl]=null)}catch(n){console.error(n)}},qS.subscribe(Rl,this.onPlayButtonClicked),qS.subscribe(Il,this.onPuchaseCompleted),qS.subscribe(Al,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class fT extends j.PureComponent{render(){const e=dc.gameInfo.orientation==$l.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(O_,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(O_,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(O_,{component:"img",src:rc(n),sx:{position:"relative"}}),d.jsx(O_,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(O_,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let pT=null;const hT=()=>{if(pT)return;const e=document.createElement("div");document.body.appendChild(e);const t=O.createRoot(e);t.render(d.jsx(fT,{})),pT={div:e,root:t}},gT=()=>{if(!pT)return;const e=pT.div;pT.root.unmount(),e.parentNode?.removeChild(e),pT=null};const mT=new class{constructor(){this._appDidMount=!1,this._loadGameState=Ml.init,this._initialized=!1,this._logined=!1,this._purchasing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},qS.subscribe(kl,this.onAppDidMount)}init(e){e&&VS.requestFullScreen();const t=()=>{this._initialized=!0,this.addOrientationChangeListener(),VS.disableLoginPage||qS.publish(Tl,Dl.login)};return new Promise((e,n)=>{if(dc.gameInfo)return t(),e();qS.subscribeOnce(_l,(r,o)=>{if(o)return t(),e();zE("Init game error, please try again later"),n(new Gl(Nl.initError,"Init error"))}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject(new Gl(Nl.logined,"Pluto sdk already login")):VS.reqLogin().then(e=>(this._logined=!0,HS.init(),e)):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize"))}ready(){this._logined?VS.disableLoginPage?qS.publish(Tl,Dl.none):qS.publish(El,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise((a,s)=>e&&t&&n&&r?this._logined?this._purchasing?s(new Gl(Nl.purchasing,"Payment is being processed")):(dT.registerCallback(Ol,i),this._purchasing=!0,void VS.reqPurchase(e,t,n,r,o).then(()=>{this._purchasing=!1,qS.publish(Tl,Dl.purchase),a()}).catch(e=>{this._purchasing=!1,console.log(e.message),s(e)})):s(new Gl(Nl.notLogin,"Pluto sdk not login")):s(new Gl(Nl.paramError,"Params error")))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i(new Gl(Nl.checkingIn,"Check in is being processed")):(dT.registerCallback(jl,r),this._checkingIn=!0,void VS.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,qS.publish(Tl,Dl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i(new Gl(Nl.notLogin,"Pluto sdk not login")):i(new Gl(Nl.paramError,"Params error")))}share(e,t,n,r,o){if(!this._logined)return Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"));if(!oc())return Promise.reject(new Gl(Nl.shareError,"Sharing is not available outside the Telegram environment"));if(!VS.shareMessageEnable())return zE("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject(new Gl(Nl.shareError,"Method not support"));const i=VS.formatShareLink(e);return VS.reqGetShareMessage(i,t,n,r,o).then(e=>VS.shareMessage(e))}getShareLink(e){return this._logined?VS.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n(new Gl(Nl.notLogin,"Pluto sdk not login"));let r=VS.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t(new Gl(Nl.clipboardError,"Param is null"));lc(o).then(()=>{e()}).catch(()=>{cc(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?VS.reqGetItem(e):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?VS.reqSetItem(e,t):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}consumePurchase(e){return e?this._initialized?VS.reqFinishOrder(e):Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize")):Promise.reject(new Gl(Nl.paramError,"Params error"))}queryPurchases(){return this._initialized?VS.reqUnfinishRecord():Promise.reject(new Gl(Nl.notInit,"Pluto sdk not initialize"))}onEvent(e,t){e&&t&&"function"==typeof t&&dT.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return oc()&&sc()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return oc()&&sc()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return oc()?VS.playAd(e):Promise.reject(new Gl(Nl.playAdError,"Playing ads is not available outside the Telegram environment"))}vibrate(e){oc()||console.log("Vibrate is not available outside the Telegram environment"),VS.vibrate(e)}isDesktopEnabled(){return ac()}isTelegramClient(){return ic()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!dc.gameInfo.gameUrl)return void console.log("game url is null");const t=(new Ji.Base64).encode(na.INIT_DATA),n=new URL(dc.gameInfo.gameUrl);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),oc()&&window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return na.CP_CUSTOM_LINK}getStartParam(){return na.START_PARAM}connectWallet(){return HS.connect()}disconnectWallet(){return HS.disconnect()}isConnectedWallet(){return HS.connected}getWalletRawAddress(){return HS.rawAddress}getWalletFriendlyAddress(){return HS.friendlyAddress}getWalletName(){return HS.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Ul[e];HS.connect().then(()=>VS.reqDeposit(a,t,n,r)).then(e=>HS.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return HS.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t(new Gl(Nl.notLogin,"Pluto sdk not login"));VS.signData().then(()=>{e()}).catch(e=>{e.code==Nl.walletBindInCd&&zE("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?VS.reqGetNfts():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}setGameUserId(e,t){this._logined?VS.reqSetGameUserId(e,t):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?VS.reqCocGetInfo():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocWithdraw(e,t,n){return this._logined?VS.reqCocWithdraw(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocClaim(e){return this._logined?VS.reqCocClaim(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocGetWithdrawDetail(e){return this._logined?VS.reqCocGetWithdrawDetail(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocGetRecords(e,t,n){return this._logined?VS.reqCocGetRecords(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocQueryConsume(e){return this._logined?VS.reqCocQueryConsume(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}cocCancelWithdraw(e){return this._logined?VS.reqCocCancelWithdraw(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetInfo(){return this._logined?VS.reqSpGetInfo():Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spWithdraw(e,t,n){return this._logined?VS.reqSpWithdraw(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spClaim(e){return this._logined?VS.reqSpClaim(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetWithdrawDetail(e){return this._logined?VS.reqSpGetWithdrawDetail(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spGetRecords(e,t,n){return this._logined?VS.reqSpGetRecords(e,t,n):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spQueryConsume(e){return this._logined?VS.reqSpQueryConsume(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}spCancelWithdraw(e){return this._logined?VS.reqSpCancelWithdraw(e):Promise.reject(new Gl(Nl.notLogin,"Pluto sdk not login"))}nativeWalletConnect(){return HS.nativeWalletConnect()}getGameInfo(){this._loadGameState==Ml.init&&(this._loadGameState=Ml.loading,VS.reqGameInfo().then(e=>{this._loadGameState=Ml.done,qS.publish(_l,!0)}).catch(e=>{this._loadGameState=Ml.init,qS.publish(_l,!1),console.log(e)}))}addOrientationChangeListener(){sc()&&window.screen.orientation&&(window.screen.orientation.addEventListener("change",e=>{this.checkOrientaiton()}),this.checkOrientaiton())}checkOrientaiton(){try{const e=window.screen.orientation.type;if((e.startsWith("portrait")?$l.portrait:$l.landscape)==dc.gameInfo.orientation)return void gT();hT()}catch(e){console.log(e)}}};return document.body?uT():document.addEventListener("DOMContentLoaded",e=>{uT()},{once:!0}),e.checkIn=(e,t,n="",r=null)=>mT.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>mT.cocCancelWithdraw(e),e.cocClaim=e=>mT.cocClaim(e),e.cocGetInfo=()=>mT.cocGetInfo(),e.cocGetRecords=(e,t,n)=>mT.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>mT.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>mT.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>mT.cocWithdraw(e,t,n),e.connectWallet=()=>mT.connectWallet(),e.consumePurchase=e=>mT.consumePurchase(e),e.copyShareLink=(e="")=>mT.copyShareLink(e),e.depositToken=(e,t,n,r)=>mT.depositToken(e,t,n,r),e.disconnectWallet=()=>mT.disconnectWallet(),e.getContentSafeAreaInset=()=>mT.getContentSafeAreaInset(),e.getCpCustomLink=()=>mT.getCpCustomLink(),e.getItem=e=>mT.getItem(e),e.getNfts=()=>mT.getNfts(),e.getSafeAreaInset=()=>mT.getSafeAreaInset(),e.getShareLink=(e="")=>mT.getShareLink(e),e.getStartParam=()=>mT.getStartParam(),e.getWalletFriendlyAddress=()=>mT.getWalletFriendlyAddress(),e.getWalletName=()=>mT.getWalletName(),e.getWalletRawAddress=()=>mT.getWalletRawAddress(),e.init=(e=!1)=>mT.init(e),e.isConnectedWallet=()=>mT.isConnectedWallet(),e.isDesktopEnabled=()=>mT.isDesktopEnabled(),e.isTelegramClient=()=>mT.isTelegramClient(),e.login=()=>mT.login(),e.nativeWalletConnect=()=>mT.nativeWalletConnect(),e.onEvent=(e,t)=>{mT.onEvent(e,t)},e.openGameForWeb=(e="")=>{mT.openGameForWeb(e)},e.playAd=(e="ad_event1")=>mT.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>mT.purchase(e,t,n,r,o,i),e.queryPurchases=()=>mT.queryPurchases(),e.queryPurchses=()=>mT.queryPurchases(),e.ready=()=>{mT.ready()},e.setGameUserId=(e,t=1)=>{mT.setGameUserId(e,t)},e.setItem=(e,t)=>mT.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>mT.share(e,t,n,r,o),e.signData=()=>mT.signData(),e.spCancelWithdraw=e=>mT.spCancelWithdraw(e),e.spClaim=e=>mT.spClaim(e),e.spGetInfo=()=>mT.spGetInfo(),e.spGetRecords=(e,t,n)=>mT.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>mT.spGetWithdrawDetail(e),e.spQueryConsume=e=>mT.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>mT.spWithdraw(e,t,n),e.vibrate=e=>{mT.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});