plutosdk 1.0.25-beta.7 → 1.0.25-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pluto-sdk.js +51 -51
- package/package.json +1 -1
package/dist/pluto-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function P(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,R=A.port2;A.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){y(P,0)};function O(t,n){S=y(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return R((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+A(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=R(i=n[g],r,o,s=h+A(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=R(i=i.value,r,o,s=h+A(i,g++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},j={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=j,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,L)}catch(i){L(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},P={};function A(){if(k)return P;k=1;var e=C();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},P.useFormStatus=function(){return i.H.useHostTransitionStatus()},P.version="19.2.0",P}function R(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=A(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=R();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(i(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function U(e){return{current:e}}function F(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=U(null),K=U(null),G=U(null),Q=U(null);function Y(e,t){switch(B(G,t),B(K,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(V),B(V,e)}function Z(){F(V),F(K),F(G)}function X(e){null!==e.memoizedState&&B(Q,e);var t=V.current,n=wd(t,e.type);t!==n&&(B(K,e),B(V,n))}function J(e){K.current===e&&(F(V),F(K)),Q.current===e&&(F(Q),pf._currentValue=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Pe(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ae(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Pe(r):0!==(a&=s)?o=Pe(a):n||0!==(n=s&~e)&&(o=Pe(n)):0!==(s=r&~i)?o=Pe(s):0!==a?o=Pe(a):n||0!==(n=r&~e)&&(o=Pe(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Af(e.type)}function Ue(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Fe=Math.random().toString(36).slice(2),Be="__reactFiber$"+Fe,qe="__reactProps$"+Fe,He="__reactContainer$"+Fe,Ve="__reactEvents$"+Fe,Ke="__reactListeners$"+Fe,Ge="__reactHandles$"+Fe,Qe="__reactResources$"+Fe,Ye="__reactMarker$"+Fe;function Ze(e){delete e[Be],delete e[qe],delete e[Ve],delete e[Ke],delete e[Ge]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ft(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Tt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function At(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Pt(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Rt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lt(e){return Mt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[qe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),qt=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(ep){qt=!1}var Vt=null,Kt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function Xt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Xt,this.isPropagationStopped=Xt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),sn=Jt(an),ln=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(ln),un=Jt(u({},ln,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),fn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,Pn=null;Bt&&"documentMode"in document&&(Pn=document.documentMode);var An=Bt&&"TextEvent"in window&&!Pn,Rn=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),On=String.fromCharCode(32),Mn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function Un(e){Zu(e,0)}function Fn(e){if(mt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var qn=!1;if(Bt){var Hn;if(Bt){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Hn=Vn}else Hn=!1;qn=Hn&&(!document.documentMode||9<document.documentMode)}function Gn(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Xn(e,t){if("click"===e)return Fn(t)}function Jn(e,t){if("input"===e||"change"===e)return Fn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Pr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Ar=[],Rr=0,Or=0;function Mr(){for(var e=Rr,t=Or=Rr=0;t<e;){var n=Ar[t];Ar[t++]=null;var r=Ar[t];Ar[t++]=null;var o=Ar[t];Ar[t++]=null;var i=Ar[t];if(Ar[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Nr(n,o,i)}}function Lr(e,t,n,r){Ar[Rr++]=e,Ar[Rr++]=t,Ar[Rr++]=n,Ar[Rr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Lr(e,t,n,r),$r(e)}function Ir(e,t){return Lr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(e,t,n,r){return new Wr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=zr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qr(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ur(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=zr(31,n,t,i)).elementType=P,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=jt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Mc?Mc=e:Mc.push.apply(Mc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=U(null),_o=null,To=null;function Po(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ao(e){e._currentValue=Eo.current,F(Eo)}function Ro(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ro(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ro(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Mo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function Lo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&jo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Uo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=U(null);function Zo(){var e=Yo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){B(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Uo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(jt,jt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(jt,jt);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw si=t,ei;throw t}}var si=null;function li(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=qr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return pi(n=qr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case T:return p(e,t=ai(t),n)}if(I(t)||M(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||M(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(d);f<s.length;f++)null!==(h=y(d,r,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(M(u)){if("function"!=typeof(v=M(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return Lr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ai(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ri=U(null),Oi=U(0);function Mi(e,t){B(Oi,e=Sc),B(Ri,t),Sc=e|t.baseLanes}function Li(){B(Oi,Sc),B(Ri,Ri.current)}function ji(){Sc=Oi.current,F(Ri),F(Oi)}var Ii=U(null),Ni=null;function $i(e){var t=e.alternate;B(Fi,1&Fi.current),B(Ii,e),null===Ni&&(null===t||null!==Ri.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Fi,Fi.current),B(Ii,Ii.current)}function Ui(e){F(Ii),Ni===e&&(Ni=null),F(Fi)}var Fi=U(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||jd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Lo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Pa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=N.T,a={};N.T=a;try{var s=n(o,r),l=N.S;null!==l&&l(a,s),Aa(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Aa(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Aa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Oa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ma(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ma(t),t=t.next}while(t!==r)}e.action=null}function Ma(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function La(e,t){return t}function ja(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,La)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(a){if(a===ei)throw ni;throw a}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return da().memoizedState}function Ua(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(1|t,i,n,r))}function Ba(e,t){Ua(8390656,8,e,t)}function qa(e,t){Fa(2048,8,e,t)}function Ha(e){var t=da().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&gc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Ga(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Qa(e,t,n){n=null!=n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&qi&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Hi.lanes|=e,_c|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ri.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=jr(e,t,n,r))&&(Yc(n,e,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Lr(e,t,o,0),null===mc&&Mr(),!1}catch(l){}if(null!==(n=jr(e,t,o,r)))return Yc(n,e,r),ms(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:qu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ua(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){Ua(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Hi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Hi,i=ua();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&bc||wa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ba(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Es(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function As(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function Ms(e){return(e=xi(e)).tag=3,e}function Ls(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var js=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return jo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ur(i)||void 0!==i.defaultProps||null!==n.compare?((e=qr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Fs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Mi(t,i):Li(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Mi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),Li(),zi());return Ns(e,t,o,n),t.child}function Us(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fs(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Uo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Li(),Wi(t),null!==e&&Mo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ui(t),t.memoizedState=null,e}function Hs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Vs(e,t,n,r,o){return jo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return jo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(jo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&Lo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Lo(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):Ns(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return Co(),t.flags|=256,Ns(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Jo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ac),e}function Js(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Fi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?$i(t):zi(),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return jd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(zi(),l=tl({mode:"hidden",children:l},a=t.mode),i=Hr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(null,i)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Us(null,i));else if($i(t),jd(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Mo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),js;Ld(l)||lu(),t=nl(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Fr(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Us(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Uo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(e.child,i)):($i(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=zr(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Fi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Fi,a),Ns(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Mo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Lo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Uo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Mo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Fi,Fi.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Uo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=j(e)||e,Error(r(306,t,""))}Ur(e)?(o=Es(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Vs(null,t,e,o,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,i=Es(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,wi(e,t),Ti(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Po(0,Uo,o),o!==a.cache&&Oo(t,[Uo],n,!0),_i(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,jo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Us(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Mo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),js;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Fr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return jo(t),o=Io(Uo),null===e?(null===(i=Zo())&&(i=mc,a=Fo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Uo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),_i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Po(0,Uo,o)):(o=a.cache,Po(0,Uo,o),o!==i.cache&&Oo(t,[Uo],n,!0))),Ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Me():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ao(Uo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ui(t),t):(Ui(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Ui(t),t):(Ui(t),null)}return Ui(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Ao(t.type),hl(t),null;case 19:if(F(Fi),null===(o=t.memoizedState))return hl(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)pl(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Bi(e))){for(t.flags|=128,pl(o,!1),e=a.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Fi,1&Fi.current|2),ho&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Nc&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Bi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-o.renderingStartTime>Nc&&536870912!==n&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Fi.current,B(Fi,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ui(t),ji(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&F(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ao(Uo),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ao(Uo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ui(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ui(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Fi),null;case 4:return Z(),null;case 10:return Ao(t.type),null;case 22:case 23:return Ui(t),ji(),null!==e&&F(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ao(Uo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ao(Uo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Ui(t);break;case 13:Ui(t);break;case 19:F(Fi);break;case 10:Ao(t.type);break;case 22:case 23:Ui(t),ji(),null!==e&&F(Yo);break;case 24:Ao(Uo)}}function bl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Eu(t,t.return,s)}}function vl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){Eu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){Eu(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ai(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jt));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ml=!1,Ll=!1,jl="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ai(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Fl(e,n);break;case 13:Yl(e,n),4&r&&Bl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Au.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ml,o=Ol;var i=Ml;Ol=r,(Ml=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ml=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ml||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ml||kl(n,t);var r=Dl,o=Wl;Pd(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ml||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Ad(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Ad(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ml||vl(4,n,t),zl(e,t,n);break;case 1:Ml||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ml=(r=Ml)||null!==n.memoizedState,zl(e,t,n),Ml=r;break;default:zl(e,t,n)}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){Eu(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Kf(e)}catch(n){Eu(t,t.return,n)}}function ql(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new jl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new jl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Pd(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Ul(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ll=!0);break;case 6:if(Hl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Eu(e,e.return,g)}}break;case 3:if(rf=null,i=Vl,Vl=Bd(t.containerInfo),Hl(t,e),Vl=i,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Eu(e,e.return,g)}Ll&&(Ll=!1,Ql(e));break;case 4:o=Vl,Vl=Bd(e.stateNode.containerInfo),Hl(t,e),Gl(e),Vl=o;break;case 12:default:Hl(t,e),Gl(e);break;case 31:case 19:Hl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 13:Hl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(jc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ml;if(Ol=u||i,Ml=d||c,Hl(t,e),Ml=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ml||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Rd(h,!0):Rd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Al(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Al(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Pl(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Pi(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Fl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),Cl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Jl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Eu(t,t.return,l)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),bl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Jl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Jl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Ud.get(o))&&tf(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Uo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Pc=0,Ac=0,Rc=0,Oc=null,Mc=null,Lc=!1,jc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=0,zc=null,Uc=null,Fc=0,Bc=0,qc=null,Hc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==bc?bc&-bc:null!==N.T?qu():ze()}function Qc(){if(0===Ac)if(536870912&bc&&!ho)Ac=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Ac=e}return null!==(e=Ii.current)&&(e.flags|=32),Ac}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Ac,!1)),je(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Ac,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Re(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Mr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Mc,Mc=i,null!==a&&(null===Mc?Mc=a:Mc.push.apply(Mc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Ac,!xc);break e;case 2:Mc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=jc+300-ue())){if(eu(o,t,Ac,!xc),0!==Ae(o,0,!0))break e;Fc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jt});var h=(62914560&i)===i?jc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Fc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Fc=0,nu(),mc=e,yc=n=Fr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Re(e,t),kc=!1,Rc=Ac=Pc=Tc=_c=Ec=0,Mc=Oc=null,Lc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Mr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===js?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,As(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Ac,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Mr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Mo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Ls(i=Ms(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),Uc=t,zc=e,Fc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Uc,n=Fc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Uc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Fc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Fc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Fc;if(Wc=0,Uc=zc=null,Fc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(je(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ms(2),2))&&(Ls(n,r,t,e),je(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-jc?!(2&gc)&&ru(e,0):Pc|=n,Rc===bc&&(Rc=0)),$u(e)}function Pu(e,t){0===t&&(t=Me()),null!==(e=Ir(e,t))&&(je(e,t),$u(e))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Ou=null,Mu=null,Lu=!1,ju=!1,Iu=!1,Nu=0;function $u(e){e!==Mu&&null===e.next&&(null===Mu?Ou=Mu=e:Mu=Mu.next=e),ju=!0,Lu||(Lu=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&ju){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Ae(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){ju=Lu=!1;var e=0;0!==Nu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Nu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=Uu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Mu=n)):(n=r,(0!==e||3&i)&&(ju=!0)),r=o}0!==Wc&&5!==Wc||Du(e),0!==Nu&&(Nu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Ae(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Fu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Fu(e,t){if(0!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Ae(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Uu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Fu.bind(null,e):null)}function Bu(e,t){if(Cu())return null;Zc(e,t,!0)}function qu(){if(0===Nu){var e=Vo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ku=0;Ku<_r.length;Ku++){var Gu=_r[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(br,"onAnimationEnd"),Tr(vr,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(xr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Af(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ut(function(){var r=a,o=Nt(n),s=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case br:case vr:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Ln(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=jn(n))&&(x.data=w))),(w=An?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&Ln(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||_t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&_t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":At(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&fd(e,t,"name",i.name,i,null),fd(e,t,"formEncType",i.formEncType,i,null),fd(e,t,"formMethod",i.formMethod,i,null),fd(e,t,"formTarget",i.formTarget,i,null)):(fd(e,t,"encType",i.encType,i,null),fd(e,t,"method",i.method,i,null),fd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=jt);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Lt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":At(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?_t(e,o):("number"==typeof o||"bigint"==typeof o)&&_t(e,""+o);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Ad(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Rd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Md(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function jd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Wd(e,t,n){switch(t=bd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Ud=new Map,Fd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=$.d;$.d={f:function(){var e=qd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):qd.r(e)},D:function(e){qd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){qd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){qd.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Ud.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){qd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Ud.has(i)&&(e=u({rel:"modulepreload",href:e},t),Ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){qd.X(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){qd.S(e,t,n);var r=Hd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(i))&&tf(e,n);var l=a=r.createElement("link");nt(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){qd.M(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Fd.has(o)||(Fd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var i,a,s,l,c=(c=G.current)?Bd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+vt(e)+'"]'}function Xd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",i),ef(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Qd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Ud.get(i))&&tf(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",o),t.state.loading|=4,ef(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Xd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Ud.get(a))&&nf(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),hd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=zr(3,null,null,t),e.current=i,i.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Mf=Wf(Mf,e,t,n,r,o),!0;case"mouseover":return Lf=Wf(Lf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jf.set(i,Wf(jf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Pe(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Pf(e=Nt(e))}var Tf=null;function Pf(e){if(Tf=null,null!==(e=Xe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tf=e,null}function Af(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rf=!1,Of=null,Mf=null,Lf=null,jf=new Map,If=new Map,Nf=[],$f="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Mf=null;break;case"mouseover":case"mouseout":Lf=null;break;case"pointerover":case"pointerout":jf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_f(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Ff(e,t,n){Uf(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Of&&Uf(Of)&&(Of=null),null!==Mf&&Uf(Mf)&&(Mf=null),null!==Lf&&Uf(Lf)&&(Lf=null),jf.forEach(Ff),If.forEach(Ff)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(t){Hf!==t&&(Hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hf===t&&(Hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Pf(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Mf&&qf(Mf,e),null!==Lf&&qf(Lf,e),jf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Pf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=Ps;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=gf(e,1,!1,null,0,n,i,null,a,s,l,Gf),e[He]=t.current,td(e),new Qf(t)},p.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=_s,l=Ts,c=Ps,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,je(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var M=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),L=C();const j=r(L),I=t({__proto__:null,default:j},[L]);function N(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},U={};function F(){if(D)return U;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return U.ContextConsumer=i,U.ContextProvider=a,U.Element=e,U.ForwardRef=s,U.Fragment=n,U.Lazy=d,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=l,U.SuspenseList=c,U.isContextConsumer=function(e){return h(e)===i},U.isContextProvider=function(e){return h(e)===a},U.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},U.isForwardRef=function(e){return h(e)===s},U.isFragment=function(e){return h(e)===n},U.isLazy=function(e){return h(e)===d},U.isMemo=function(e){return h(e)===u},U.isPortal=function(e){return h(e)===t},U.isProfiler=function(e){return h(e)===o},U.isStrictMode=function(e){return h(e)===r},U.isSuspense=function(e){return h(e)===l},U.isSuspenseList=function(e){return h(e)===c},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},U.typeOf=h,U}function B(){return W||(W=1,z.exports=F()),z.exports}var q=B();function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function V(e){if(L.isValidElement(e)||q.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V(e[n])}),t}function K(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{L.isValidElement(t[o])||q.isValidElementType(t[o])?r[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?r[o]=K(e[o],t[o],n):n.clone?r[o]=H(t[o])?V(t[o]):t[o]:r[o]=t[o]}),r}function G(e,t){return t?K(e,t,{clone:!1}):e}function Q(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Y={xs:0,sm:600,md:900,lg:1200,xl:1536},Z={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Y[e]}px)`},X={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Y[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function J(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Z;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Z;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:X,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Y).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function ee(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function te(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ne({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function re(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oe(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:re(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=re(e.theme,r)||{};return J(e,i,e=>{let r=oe(a,o,e);return e===r&&"string"==typeof e&&(r=oe(a,o,`${t}${"default"===e?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Ae=xe("borderRightColor"),Re=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Me=xe("outline",we),Le=xe("outlineColor"),je=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fe(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:he(t,e)});return J(e,e.borderRadius,n)}return null};je.propTypes={},je.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Pe,Ae,Re,Oe,je,Me,Le);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),Ue=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Y[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:We(t)}};return J(e,e.maxWidth,t)}return null};Ue.filterProps=["maxWidth"];const Fe=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,Ue,Fe,Be,qe,He,ie({prop:"boxSizing"}));const Ve={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:je},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Ue},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Rt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,jt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(vt=Et())&&vt<33;)St();return Pt(e)>2||Pt(vt)>3?"":" "}function Lt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function jt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&jt(vt);break;case 40:41===e&&jt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!Pt(Et());)St();return Tt(e,bt)}function $t(e){return Rt(Dt("",null,null,null,[""],e=At(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Mt(h);break;case 92:k+=Lt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ut(k+";",r,n,d-1):Ut(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function Ut(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ft(e,t){for(var n="",r=pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+Ft(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ht=function(e,t,n){for(var r=0,o=0;r=o,o=Et(),38===r&&12===o&&(t[n]=1),!Pt(o);)St();return Tt(e,bt)},Vt=function(e,t){return Rt(function(e,t){var n=-1,r=44;do{switch(Pt(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(At(e),t))},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(n))&&!r){Kt.set(e,!0);for(var o=[],i=Vt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yt(e,t){switch(function(e,t){return 45^ut(e,0)?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Xe+e+Ze+e+e;case 6828:case 4268:return Je+e+Ze+e+e;case 6165:return Je+e+Ze+"flex-"+e+e;case 5187:return Je+e+lt(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Je+e+Ze+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return Je+e+Ze+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Ze+lt(e,"shrink","negative")+e;case 5292:return Je+e+Ze+lt(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+lt(e,"-grow","")+Je+e+Ze+lt(e,"grow","positive")+e;case 4554:return Je+lt(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ut(e,t+1)){case 109:if(45!==ut(e,t+4))break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Xe+(108==ut(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch")?Yt(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ut(e,t+1))break;case 6444:switch(ut(e,ft(e)-3-(~ct(e,"!important")&&10))){case 107:return lt(e,":",":"+Je)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ut(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Ze+e+e}return e}var Zt,Xt,Jt,en,tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Yt(e.value,e.length);break;case rt:return Ft([Ct(e,{value:lt(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ft([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ft([Ct(e,{props:[lt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,":-moz-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,Ze+"input-$1")]})],r)}return""})}}],nn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||tn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Bt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Gt,Qt].concat(i,f),u=pt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ft($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||L.useLayoutEffect,Sn=L.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return L.forwardRef(function(t,n){var r=L.useContext(Sn);return e(t,r,n)})},Pn=L.createContext({}),An={}.hasOwnProperty,Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Mn=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,L.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)An.call(e,c)&&"css"!==c&&c!==Rn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Ln=function(e,t){var n=arguments;if(null==t||!An.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mn,o[1]=function(e,t){var n={};for(var r in t)An.call(t,r)&&(n[r]=t[r]);return n[Rn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};En=Ln||(Ln={}),_n||(_n=En.JSX||(En.JSX={}));var jn=Tn(function(e,t){var n=wn([e.styles],void 0,L.useContext(Pn)),r=L.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},Un=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Fn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Bn=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Un(t,n,i),l=s||zn(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=Tn(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Pn)}"string"==typeof e.className?i=sn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=wn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?zn(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),L.createElement(L.Fragment,null,L.createElement(Fn,{cache:t,serialized:h,isStringTag:"string"==typeof r}),L.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Qe({},n,r,{shouldForwardProp:Un(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function qn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return d.jsx(jn,{styles:r})}function Hn(e,t){return Bn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Bn[e]=Bn(e)});const Vn=[];function Kn(e){return Vn[0]=e,wn(Vn)}function Gn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Qn={borderRadius:4};function Yn(e=8,t=pe({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Zn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=K({breakpoints:Gn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yn(o),shape:{...Qn,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Zn,s=t.reduce((e,t)=>K(e,t),s),s.unstable_sxConfig={...Ve,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Ke({sx:e,theme:this})},s}function Jn(e=null){const t=L.useContext(Pn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function Er(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function _r(e){if(e.type)return e;if("#"===e.charAt(0))return _r(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(N(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(N(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Tr=(e,t)=>{try{return(e=>{const t=_r(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ar(e){e=_r(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Pr({type:s,values:l})}function Rr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Ar(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function Mr(e,t,n){try{return Or(e,t)}catch(r){return e}}function Lr(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function jr(e,t,n){try{return Lr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Rr(e)>.5?Lr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=L.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:L.useContext(Dr)}})}let zr=0;const Ur={...I}.useId;function Fr(e){if(void 0!==Ur){const t=Ur();return e??t}return function(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{null==t&&(zr+=1,n(`mui-${zr}`))},[t]),r}(e)}const Br={theme:void 0};function qr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hr=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Vr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Hr(i,e,`var(${r})`,s),Hr(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Kr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const Gr=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter(e=>i.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},i)}})}else"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t);var o,i};function Qr(e){return`--Grid-${e}Spacing`}function Yr(e){return`--Grid-parent-${e}Spacing`}const Zr="--Grid-columns",Xr="--Grid-parent-columns",Jr=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Xr}) - (var(${Xr}) - ${t}) * (var(${Yr("column")}) / var(${Xr})))`}),e(n,r)}),n},eo=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Xr}) + var(${Yr("column")}) * ${t} / var(${Xr}))`}),e(n,r)}),n},to=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zr]:12};return Gr(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[Zr]:r,"> *":{[Xr]:r}})}),n},no=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("row")]:o,"> *":{[Yr("row")]:o}})}),n},ro=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("column")]:o,"> *":{[Yr("column")]:o}})}),n},oo=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},io=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Qr("row")}) var(${Qr("column")})`}}),ao=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},so=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},lo=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];const co=Xn(),uo=xr("div",{name:"MuiGrid",slot:"Root"});function fo(e){return kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=L.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e),[])}const yo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...J({theme:t},ne({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=pe(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=ne({values:e.direction,base:o}),a=ne({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=K(n,J({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:he(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:he(r,t)}};var o}))}return n=function(e,...t){const n=ee(e),r=[n,...t].reduce((e,t)=>K(e,t),{});return te(Object.keys(n),r)}(t.breakpoints,n),n};const bo={black:"#000",white:"#fff"},vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wo="#f3e5f5",xo="#ce93d8",Co="#ba68c8",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Po="#f44336",Ao="#d32f2f",Ro="#c62828",Oo="#ffb74d",Mo="#ffa726",Lo="#ff9800",jo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#1976d2",zo="#1565c0",Uo="#4fc3f7",Fo="#29b6f6",Bo="#03a9f4",qo="#0288d1",Ho="#01579b",Vo="#81c784",Ko="#66bb6a",Go="#4caf50",Qo="#388e3c",Yo="#2e7d32",Zo="#1b5e20";function Xo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bo.white,default:bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jo=Xo();function ei(){return{text:{primary:bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ti=ei();function ni(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ir(e.main,o):"dark"===t&&(e.dark=Lr(e.main,i)))}function ri(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function oi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:_o,dark:Ao}:{main:Ao,light:To,dark:Ro}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Fo,light:Uo,dark:qo}:{main:qo,light:Bo,dark:Ho}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ko,light:Vo,dark:Qo}:{main:Yo,light:Go,dark:Zo}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Mo,light:Oo,dark:jo}:{main:"#ed6c02",light:Lo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:Lr(t,n)}})}function xi(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(N(20));const d=oi({...i,colorSpace:c}),f=Xn(e);let p=K(f,{mixins:(h=f.breakpoints,g=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:ui.slice(),typography:li(d,s),transitions:gi(a),zIndex:{...mi}});var h,g;return p=K(p,u),p=t.reduce((e,t)=>K(e,t),p),p.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ke({sx:e,theme:this})},p.toRuntimeSource=bi,wi(p),p}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return"string"==typeof e&&e.startsWith("hsl")?Ar(e):e}function Ai(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Pi(e[t])))}const Ri=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Mi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Mr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===jr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(jr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(jr,t.info.light,.6)),Ti(t.Alert,"successColor",r(jr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(jr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(jr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Mr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(jr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(jr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(jr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(jr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(jr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(jr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(jr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(jr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(jr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(jr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(jr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(jr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(jr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(jr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(jr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(jr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(jr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(jr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(jr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(jr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(jr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(jr,t.warning.main,.55)),Ti(t.TableCell,"border",r(jr,r(Mr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}Ai(t.background,"default"),Ai(t.background,"paper"),Ai(t.common,"background"),Ai(t.common,"onBackground"),Ai(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Pi(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Pi(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Pi(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Pi(n.contrastText))),"text"===e&&(Ai(t[e],"primary"),Ai(t[e],"secondary")),"action"===e&&(n.active&&Ai(t[e],"active"),n.selected&&Ai(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function Li(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function ji(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return xi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=xi({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Li(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Li(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Mi({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=ji(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Ui(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Fi(e){return Wr(e)}const Bi="function"==typeof Ui({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Ui(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Fi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(L.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.7",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Pa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Aa(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Ra;const Ma=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),La=la("HTMLFormElement"),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Ra.postMessage),Wa?setImmediate:za?(Ua=`axios@${Math.random()}`,Fa=[],Ra.addEventListener("message",({source:e,data:t})=>{e===Ra&&t===Ua&&Fa.length&&Fa.shift()()},!1),e=>{Fa.push(e),Ra.postMessage(Ua,"*")}):e=>setTimeout(e));var Wa,za,Ua,Fa;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ra):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:Ma,isFileList:Ca,forEach:Pa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Aa(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Pa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Pa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:La,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Aa,global:Ra,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Pa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),Ps=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,As=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ls=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&Ps(t.url))){const e=o&&i&&As.read(i);e&&a.set(o,e)}return t},js="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ls(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Us,TextEncoder:Fs}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Us),l=o&&("function"==typeof Fs?(e=>t=>e.encode(t))(new Fs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ls(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:js,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ms(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Rs((e=Ms(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ms(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ms(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ms(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ms,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Pl="ps_play_button_clicked",Al="ps_purchase_completed",Rl="ps_check_in_completed",Ol="event_purchaseCompleted",Ml="event_checkInCompleted";var Ll=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ll||{}),jl=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(jl||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e[e.croco=4]="croco",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Fl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"},1060:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"}},ql={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Hl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Vl,Kl={exports:{}};var Gl,Ql,Yl=(Vl||(Vl=1,Gl=Kl,Ql=Kl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",P="Huawei",A="LG",R="Microsoft",O="Motorola",M="Nvidia",L="OnePlus",j="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="Xiaomi",z="Zebra",U="Facebook",F="Chromium OS",B="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Q=function(e,r){for(var i,a,s,l,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)u=c[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):t:this[l[0]]=u?l[1].call(this,u,l[2]):t:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},Y=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(V(n[r][i],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,P],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,P],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,A],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[u,A],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,L],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[u,v],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[u,v],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[u,C],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[u,x],[c,h]],[/(nexus 9)/i],[s,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,K],s,[c,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[u,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[u,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[u,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[u,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[u,"Nothing"],[c,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[u,"Archos"],[c,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,s,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,s,[c,g]],[/(surface duo)/i],[s,[u,R],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,A],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,M],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,R],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,L],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,A],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,_],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,U],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,b]],[/(aeobc)\b/i],[s,[u,v],[c,b]],[/(homepod).+mac os/i],[s,[u,w],[c,b]],[/windows iot/i],[[c,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,Y,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,Y,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,B],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},J=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof J))return new J(p,m).getResult();var y=typeof e!==r&&e.navigator?e.navigator:t,b=p||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,m):X,x=y&&y.userAgent==b;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,Q.call(r,b,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,x&&y&&y.brave&&typeof y.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,Q.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[s]=t,e[c]=t,Q.call(e,b,w.device),x&&!e[c]&&v&&v.mobile&&(e[c]=h),x&&"Macintosh"==e[s]&&y&&typeof y.standalone!==r&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[s]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.os),x&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===i&&e.length>500?G(e,500):e,this},this.setUA(b),this};J.VERSION="1.0.41",J.BROWSER=H([l,d,a]),J.CPU=H([f]),J.DEVICE=H([s,u,c,p,h,m,g,y,b]),J.ENGINE=J.OS=H([l,d]),Gl.exports&&(Ql=Gl.exports=J),Ql.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Kl.exports)),Kl.exports);const Zl=r(Yl),Xl=e=>`${ta.RES_URL}${e}`,Jl=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ec=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},tc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},nc=()=>(window.Telegram.WebApp.platform||"").includes("android"),rc=()=>{const e=(new Yl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},oc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),ic=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class ac{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.get(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.post(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return ac.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return ac.post("pluto/order",s)}static getItem(e){const t={k:e};return ac.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return ac.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return ac.post("pluto/finishorder",t)}static unfinishRecord(){return ac.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return ac.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return ac.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return ac.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return ac.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return ac.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return ac.post("pluto/signdata",s)}static getNfts(){return ac.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return ac.post("pluto/setuserid",n)}static cocGetInfo(){return ac.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return ac.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return ac.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return ac.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return ac.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return ac.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return ac.post("plutococ/cancelwithdraw",t)}static spGetInfo(e){const t={sid:e};return ac.post("plutosp/info",t)}static spWithdraw(e,t,n,r,o){const i={sid:e,chainnet:"TON",wallet:t,currencycode:n,amount:r,memo:o};return ac.post("plutosp/withdraw",i)}static spClaim(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/claim",n)}static spGetWithdrawDetail(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/withdrawdetail",n)}static spGetRecords(e,t,n,r){const o={sid:e,optype:t,page:n,pagesize:r};return ac.post("plutosp/record",o)}static spQueryConsume(e,t){const n={sid:e,time:t};return ac.post("plutosp/queryconsume",n)}static spCancelWithdraw(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/cancelwithdraw",n)}}const sc=new class{constructor(){this._gameServerId=1}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameServerId(){return this._gameServerId}set gameServerId(e){this._gameServerId=e}};var lc,cc={exports:{}},uc=cc.exports;var dc=(lc||(lc=1,function(e){var t,n;t=uc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(cc)),cc.exports);const fc=r(dc);function pc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hc={exports:{}};const gc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mc;var yc=(mc||(mc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,P=f,A=p,R=h,O=g,M=m,L=y,j=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(L^=(o=(A^=(o=(E^=(o=x+L|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+A|0)<<18|o>>>14,_^=(o=(C^=(o=(j^=(o=(R^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+R|0)<<13|o>>>19)+j|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(M^=(o=(P^=(o=(S^=(o=N+M|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(P^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,O^=(o=(R^=(o=(A^=(o=(M^=(o=O+R|0)<<7|o>>>25)+O|0)<<9|o>>>23)+M|0)<<13|o>>>19)+A|0)<<18|o>>>14,N^=(o=(I^=(o=(j^=(o=(L^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+L|0)<<13|o>>>19)+j|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,P=P+f|0,A=A+p|0,R=R+h|0,O=O+g|0,M=M+m|0,L=L+y|0,j=j+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=P>>>0&255,e[29]=P>>>8&255,e[30]=P>>>16&255,e[31]=P>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=R>>>0&255,e[37]=R>>>8&255,e[38]=R>>>16&255,e[39]=R>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function P(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function A(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function L(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),m(n,0,r,0)}function j(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,P=0,A=0,R=0,O=0,M=0,L=0,j=0,I=0,N=n[0],$=n[1],D=n[2],W=n[3],z=n[4],U=n[5],F=n[6],B=n[7],q=n[8],H=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Y=n[14],Z=n[15];i+=(r=t[0])*N,a+=r*$,s+=r*D,l+=r*W,c+=r*z,u+=r*U,d+=r*F,f+=r*B,p+=r*q,h+=r*H,g+=r*V,m+=r*K,y+=r*G,b+=r*Q,v+=r*Y,w+=r*Z,a+=(r=t[1])*N,s+=r*$,l+=r*D,c+=r*W,u+=r*z,d+=r*U,f+=r*F,p+=r*B,h+=r*q,g+=r*H,m+=r*V,y+=r*K,b+=r*G,v+=r*Q,w+=r*Y,x+=r*Z,s+=(r=t[2])*N,l+=r*$,c+=r*D,u+=r*W,d+=r*z,f+=r*U,p+=r*F,h+=r*B,g+=r*q,m+=r*H,y+=r*V,b+=r*K,v+=r*G,w+=r*Q,x+=r*Y,C+=r*Z,l+=(r=t[3])*N,c+=r*$,u+=r*D,d+=r*W,f+=r*z,p+=r*U,h+=r*F,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,p+=r*z,h+=r*U,g+=r*F,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,h+=r*z,g+=r*U,m+=r*F,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*U,y+=r*F,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*U,b+=r*F,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*U,v+=r*F,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*U,w+=r*F,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,P+=r*Y,A+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*U,x+=r*F,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,P+=r*Q,A+=r*Y,R+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*U,C+=r*F,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,P+=r*G,A+=r*Q,R+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*U,k+=r*F,S+=r*B,E+=r*q,_+=r*H,T+=r*V,P+=r*K,A+=r*G,R+=r*Q,O+=r*Y,M+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*U,S+=r*F,E+=r*B,_+=r*q,T+=r*H,P+=r*V,A+=r*K,R+=r*G,O+=r*Q,M+=r*Y,L+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*U,E+=r*F,_+=r*B,T+=r*q,P+=r*H,A+=r*V,R+=r*K,O+=r*G,M+=r*Q,L+=r*Y,j+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*U),u+=38*(_+=r*F),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(A+=r*H),h+=38*(R+=r*V),g+=38*(O+=r*K),m+=38*(M+=r*G),y+=38*(L+=r*Q),b+=38*(j+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),p=t(),h=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),M(e,m),0}function B(e,t){return F(e,t,o)}function q(e,t){return n(t,32),B(e,t)}function H(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,v)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],P=this.h[5],A=this.h[6],R=this.h[7],O=this.h[8],M=this.h[9],L=this.r[0],j=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],U=this.r[8],F=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*L,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*W))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*D),f+=(A+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(R+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(M+=u>>>5|C)*(5*j))>>>13,p+=k*j,p+=S*L,p+=E*(5*F),p+=_*(5*U),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*W),p+=A*(5*D),p+=R*(5*$),p+=O*(5*N),d+=(p+=M*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*j,h+=E*L,h+=_*(5*F),d=(h+=T*(5*U))>>>13,h&=8191,h+=P*(5*z),h+=A*(5*W),h+=R*(5*D),h+=O*(5*$),g=d+=(h+=M*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*j,g+=_*L,d=(g+=T*(5*F))>>>13,g&=8191,g+=P*(5*U),g+=A*(5*z),g+=R*(5*W),g+=O*(5*D),m=d+=(g+=M*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*j,d=(m+=T*L)>>>13,m&=8191,m+=P*(5*F),m+=A*(5*U),m+=R*(5*z),m+=O*(5*W),y=d+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*j)>>>13,y&=8191,y+=P*L,y+=A*(5*F),y+=R*(5*U),y+=O*(5*z),b=d+=(y+=M*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=P*j,b+=A*L,b+=R*(5*F),b+=O*(5*U),v=d+=(b+=M*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=P*I,v+=A*j,v+=R*L,v+=O*(5*F),w=d+=(v+=M*(5*U))>>>13,w+=k*U,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=P*N,w+=A*I,w+=R*j,w+=O*L,x=d+=(w+=M*(5*F))>>>13,x+=k*F,x+=S*U,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=P*$,x+=A*N,x+=R*I,x+=O*j,k=f=8191&(d=(d=((d+=(x+=M*L)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,P=y&=8191,A=b&=8191,R=v&=8191,O=w&=8191,M=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=P,this.h[6]=A,this.h[7]=R,this.h[8]=O,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=P,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,P,A,R=new Int32Array(16),O=new Int32Array(16),M=e[0],L=e[1],j=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=e[7],z=t[0],U=t[1],F=t[2],B=t[3],q=t[4],H=t[5],V=t[6],K=t[7],Q=0;r>=128;){for(C=0;C<16;C++)k=8*C+Q,R[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=M,i=L,a=j,s=I,l=N,c=$,u=D,f=z,p=U,h=F,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,P+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),A+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,P+=65535&(S=N&$^~N&D),A+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,P+=65535&(S=G[2*C]),A+=S>>>16,S=R[C%16],T+=(E=O[C%16])>>>16,P+=65535&S,A+=S>>>16,P+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,P=65535&(S=w=65535&P|(A+=P>>>16)<<16),A=S>>>16,_+=65535&(E=(z>>>28|M<<4)^(M>>>2|z<<30)^(M>>>7|z<<25)),T+=E>>>16,P+=65535&(S=(M>>>28|z<<4)^(z>>>2|M<<30)^(z>>>7|M<<25)),A+=S>>>16,T+=(E=z&U^z&F^U&F)>>>16,P+=65535&(S=M&L^M&j^L&j),A+=S>>>16,d=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,P=65535&(S=s),A=S>>>16,T+=(E=x)>>>16,P+=65535&(S=w),A+=S>>>16,L=o,j=i,I=a,N=s=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,$=l,D=c,W=u,M=d,U=f,F=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=R[k],_=65535&(E=O[k]),T=E>>>16,P=65535&S,A=S>>>16,S=R[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,P+=65535&S,A+=S>>>16,w=R[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,P+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),A+=S>>>16,w=R[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,R[k]=65535&P|A<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,P=65535&(S=M),A=S>>>16,S=e[0],T+=(E=t[0])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&P|A<<16,t[0]=z=65535&_|T<<16,_=65535&(E=U),T=E>>>16,P=65535&(S=L),A=S>>>16,S=e[1],T+=(E=t[1])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=L=65535&P|A<<16,t[1]=U=65535&_|T<<16,_=65535&(E=F),T=E>>>16,P=65535&(S=j),A=S>>>16,S=e[2],T+=(E=t[2])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=j=65535&P|A<<16,t[2]=F=65535&_|T<<16,_=65535&(E=B),T=E>>>16,P=65535&(S=I),A=S>>>16,S=e[3],T+=(E=t[3])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&P|A<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,P=65535&(S=N),A=S>>>16,S=e[4],T+=(E=t[4])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&P|A<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,P=65535&(S=$),A=S>>>16,S=e[5],T+=(E=t[5])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&P|A<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,P=65535&(S=D),A=S>>>16,S=e[6],T+=(E=t[6])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&P|A<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,S=e[7],T+=(E=t[7])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&P|A<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),M(e,o),e[31]^=j(r)<<7}function ee(e,t,n){var r,o;for(A(e[0],i),A(e[1],a),A(e[2],a),A(e[3],i),o=255;o>=0;--o)X(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),X(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];A(r[0],u),A(r[1],d),A(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return A(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),U(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),L(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),L(o,s)?-1:(j(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:F,crypto_scalarmult_base:B,crypto_box_beforenm:H,crypto_box_afternm:V,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),V(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:Y,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:se,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:re,pack25519:M,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:U,add:Z,set25519:A,modL:oe,scalarmult:ee,scalarbase:te},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==P(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return B(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return H(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return B(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=se(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return se(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return ne(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===h(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},(le="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&le.getRandomValues?e.setPRNG(function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)le.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];ge(r)}):void 0!==pc&&(le=gc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(hc)),hc.exports);const bc=r(yc);var vc,wc,xc,Cc,kc,Sc,Ec,_c,Tc,Pc,Ac,Rc;(wc=vc||(vc={}))[wc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",wc[wc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",wc[wc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",wc[wc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",wc[wc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",wc[wc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",wc[wc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Sc[Sc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Sc[Sc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Pc=Tc||(Tc={}))[Pc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Pc[Pc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Pc[Pc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Rc=Ac||(Ac={})).MAINNET="-239",Rc.TESTNET="-3";const Oc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=fc.decodeUTF8(e)),function(e,t){const n=fc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),fc.decodeBase64(e)}(e,t);return{toString:()=>fc.encodeUTF8(n),toObject(){try{return JSON.parse(fc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Mc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Lc(e){if(e.length%2!=0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class jc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Mc(this.keyPair.publicKey)}createKeypair(){return bc.box.keyPair()}createKeypairFromString(e){return{publicKey:Lc(e.publicKey),secretKey:Lc(e.secretKey)}}createNonce(){return bc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,bc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=bc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:Mc(this.keyPair.publicKey),secretKey:Mc(this.keyPair.secretKey)}}}function Ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Nc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class $c extends Error{constructor(e,t){super(e,t),this.message=`${$c.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,$c.prototype)}get info(){return""}}$c.prefix="[TON_CONNECT_SDK_ERROR]";class Dc extends $c{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Dc.prototype)}}class Wc extends $c{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Wc.prototype)}}class zc extends $c{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Uc extends $c{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Fc extends $c{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Bc extends $c{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends $c{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends $c{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends $c{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends $c{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends $c{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends $c{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends $c{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends $c{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}const Jc={[vc.UNKNOWN_ERROR]:Xc,[vc.USER_REJECTS_ERROR]:Vc,[vc.BAD_REQUEST_ERROR]:Kc,[vc.UNKNOWN_APP_ERROR]:Gc,[vc.MANIFEST_NOT_FOUND_ERROR]:zc,[vc.MANIFEST_CONTENT_ERROR]:Wc};const eu=new class{parseError(e){let t=Xc;return e.code in Jc&&(t=Jc[e.code]||Xc),new t(e.message)}};class tu{isError(e){return"error"in e}}const nu={[kc.UNKNOWN_ERROR]:Xc,[kc.USER_REJECTS_ERROR]:Vc,[kc.BAD_REQUEST_ERROR]:Kc,[kc.UNKNOWN_APP_ERROR]:Gc};const ru=new class extends tu{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in nu&&(t=nu[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},ou={[Ec.UNKNOWN_ERROR]:Xc,[Ec.USER_REJECTS_ERROR]:Vc,[Ec.BAD_REQUEST_ERROR]:Kc,[Ec.UNKNOWN_APP_ERROR]:Gc};const iu=new class extends tu{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in ou&&(t=ou[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class au{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Nc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function su(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function lu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function cu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function uu(e,t){return Nc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function du(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function fu(e,t){var n,r;return Nc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=du(null==t?void 0:t.signal);if("function"!=typeof e)throw new $c("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new $c(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield uu(i))}}throw s})}function pu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function hu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class gu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Nc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=du(s),a.signal.aborted)throw new $c("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new $c("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Nc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Nc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield uu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new $c("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Nc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Nc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=du(null==t?void 0:t.signal);return new Promise((t,o)=>Nc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new $c("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new $c(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new $c("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Nc(this,0,void 0,function*(){var o;const i=du(r.signal).signal;if(i.aborted)return void n(new $c("Bridge connection aborted"));const a=new URL(su(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new $c("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Nc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new $c("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Nc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new au(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Nc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Nc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(su(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Oc.encode(e);yield fu(e=>Nc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new $c(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>hu(`Bridge pause failed, ${e}`))}unPause(){return Nc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Nc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>hu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Nc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new $c(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Nc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new $c("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),pu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new $c("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Nc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new $c(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function mu(e){return!("connectEvent"in e)}class yu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Nc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!mu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new jc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new jc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");if(!mu(e))throw new $c("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new $c("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Nc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!mu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class bu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new yu(e)}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getHttpConnection();return mu(n)?new bu(e,n.connectionSource):new bu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=du(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new jc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Nc(this,0,void 0,function*(){r.signal.aborted||(yield fu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(mu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new $c("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield fu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Nc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new $c("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),Lc(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Nc(this,0,void 0,function*(){return new Promise(t=>Nc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=du(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){pu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Nc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Nc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Nc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Oc.decode(e.message).toUint8Array(),Lc(e.from)));if(pu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void pu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void hu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(pu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Nc(this,0,void 0,function*(){throw new $c(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Nc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Nc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return lu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+cu(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Nc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new gu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>fu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function vu(e,t){return wu(e,[t])}function wu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let xu=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Cu(){if("undefined"!=typeof window)return window}function ku(){var e;const t=null===(e=Cu())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Su(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new $c("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return xu.getInstance()}class Eu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Eu.window;if(!Eu.isWindowContainsWallet(n,t))throw new Bc;this.connectionStorage=new yu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getInjectedConnection();return new Eu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Eu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Eu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Cu();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!vu(e,"tonconnect")||!vu(e.tonconnect,"walletInfo"))&&wu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Nc(this,0,void 0,function*(){try{pu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();pu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Nc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){pu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Nc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>pu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Nc(this,0,void 0,function*(){try{pu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);pu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){pu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{pu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Eu.window=Cu();class _u{constructor(){this.localStorage=Su()}getItem(e){return Nc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Nc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Nc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Tu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Pu(e){return Tu(e)&&e.embedded}function Au(e){return"bridgeUrl"in e}const Ru=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Ou{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Nc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Nc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Pu);return 1===e.length?e[0]:null})}fetchWalletsList(){return Nc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Qc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(hu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){hu(n),e=Ru}let t=[];try{t=Eu.getCurrentlyInjectedWallets()}catch(n){hu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Eu.isWalletInjected(e),t.embedded=Eu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function Mu(e,t){const n=e.includes("SendTransaction"),r=ju(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new qc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new qc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new qc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Lu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=ju(e,"SendTransaction");if(!t)return!1;if(!function(e,t){const n=void 0===t.minMessages||t.minMessages<=e.maxMessages,r=!t.extraCurrencyRequired||e.extraCurrencySupported;return!(!n||!r)}(t,n))return!1}if(r){const t=ju(e,"SignData");if(!t)return!1;if(!function(e,t){return t.types.every(t=>e.types.includes(t))}(t,r))return!1}return!0}function ju(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Iu(e){return{type:"response-version",version:e}}function Nu(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function $u(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Nu(e))}}function Du(e){return{type:"connection-started",custom_data:Nu(e)}}function Wu(e,t){return Object.assign({type:"connection-completed",is_success:!0},$u(e,t))}function zu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Nu(e)}}function Uu(e){return{type:"connection-restoring-started",custom_data:Nu(e)}}function Fu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},$u(e,t))}function Bu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Nu(e)}}function qu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Hu(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},$u(e,t)),qu(t,n))}function Vu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},$u(e,t)),qu(t,n))}function Ku(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},$u(e,t)),qu(t,n))}function Gu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},$u(e,t))}function Qu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},$u(e,t))}function Yu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},$u(e,t))}function Zu(e,t,n){return Object.assign({type:"disconnection",scope:n},$u(e,t))}class Xu{constructor(){this.window=Cu()}dispatchEvent(e,t){var n;return Nc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Nc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class Ju{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new Xu,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Nc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Nc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Nc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Iu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Nc(this,0,void 0,function*(){return new Promise((e,t)=>Nc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class ed{constructor(e){if(this.walletsList=new Ou,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||ku(),storage:(null==e?void 0:e.storage)||new _u},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Ou({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new Ju({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new Dc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new yu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Uc;const i=du(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new $c("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield bu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Eu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return hu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=fu(t=>Nc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Nc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=du(null==n?void 0:n.signal);if(r.signal.aborted)throw new $c("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Mu(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=Ic(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(ru.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=Ic(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(ru.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),ru.parseAndThrowError(d);const f=ru.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Nc(this,0,void 0,function*(){const n=du(null==t?void 0:t.signal);if(n.signal.aborted)throw new $c("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new qc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new qc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(iu.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),iu.parseAndThrowError(i);const a=iu.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Nc(this,0,void 0,function*(){if(!this.connected)throw new Fc;const n=du(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new $c("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){hu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Eu(this.dappSettings.storage,e.jsBridgeKey):new bu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=eu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new $c("ton_addr connection item was not found");if(!Lu(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Hc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new $c("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:xc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),pu(e),e instanceof zc||e instanceof Wc)throw hu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new Fc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}ed.walletsList=new Ou,ed.isWalletInjected=e=>Eu.isWalletInjected(e),ed.isInsideWalletBrowser=e=>Eu.isInsideWalletBrowser(e);function td(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Yc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Yc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Yc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Yc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:rd(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Oc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const nd={};for(let lS=0;lS<=255;lS++){let e=lS.toString(16);e.length<2&&(e="0"+e),nd[e]=lS}function rd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Zc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!nd.hasOwnProperty(n))throw new Zc("Invalid hex character: "+n);r[o]=nd[n]}return r}var od,id;const ad=r(function(){if(id)return od;id=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},od=s}());var sd,ld={exports:{}};var cd=(sd||(sd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ld)),ld.exports);const ud=r(cd);var dd,fd,pd,hd,gd,md,yd,bd,vd=Object.defineProperty,wd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Ed=(e,t,n)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t)=>{for(var n in t||(t={}))kd.call(t,n)&&Ed(e,n,t[n]);if(Cd)for(var n of Cd(t))Sd.call(t,n)&&Ed(e,n,t[n]);return e},Td=(e,t)=>wd(e,xd(t)),Pd=(e,t,n)=>(Ed(e,"symbol"!=typeof t?t+"":t,n),n),Ad=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Rd={};const Od=Symbol("solid-proxy"),Md=Symbol("solid-track"),Ld={equals:(e,t)=>e===t};let jd=pf;const Id=1,Nd=2,$d={owned:null,cleanups:null,context:null,owner:null},Dd={};var Wd=null;let zd=null,Ud=null,Fd=null,Bd=null,qd=0;function Hd(e,t){const n=Ud,r=Wd,o=0===e.length,i=o?$d:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>Jd(()=>yf(i)));Wd=i,Ud=null;try{return ff(a,!0)}finally{Ud=n,Wd=r}}function Vd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Ld,t):Ld).equals||void 0};return[sf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),lf(n,e))]}function Kd(e,t,n){cf(uf(e,t,!0,Id))}function Gd(e,t,n){cf(uf(e,t,!1,Id))}function Qd(e,t,n){jd=hf;const r=uf(e,t,!1,Id);r.user=!0,Bd?Bd.push(r):cf(r)}function Yd(e,t,n){n=n?Object.assign({},Ld,n):Ld;const r=uf(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,cf(r),sf.bind(r)}function Zd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=Dd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Yd(r);const f=new Set,[p,h]=(i.storage||Vd)(i.initialValue),[g,m]=Vd(void 0),[y,b]=Vd(void 0,{equals:!1}),[v,w]=Vd(u?"ready":"unresolved");if(Rd.context){let e;l=`${Rd.context.id}${Rd.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Rd.load&&(e=Rd.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=Dd,function(e,t){ff(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Ud&&Ud.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,Jd(p));const n=s!==Dd?s:Jd(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),ff(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,bf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Kd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function Xd(e){return ff(e,!1)}function Jd(e){if(null===Ud)return e();const t=Ud;Ud=null;try{return e()}finally{Ud=t}}function ef(e){Qd(()=>Jd(e))}function tf(e){return null===Wd||(null===Wd.cleanups?Wd.cleanups=[e]:Wd.cleanups.push(e)),e}function nf(){return Ud}function rf(e,t){const n=Symbol("context");return{id:n,Provider:Cf(n),defaultValue:e}}function of(e){let t;return void 0!==(t=wf(Wd,e.id))?t:e.defaultValue}function af(e){const t=Yd(e),n=Yd(()=>xf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function sf(){const e=zd;if(this.sources&&(this.state||e))if(this.state===Id||e)cf(this);else{const e=Fd;Fd=null,ff(()=>gf(this),!1),Fd=e}if(Ud){const e=this.observers?this.observers.length:0;Ud.sources?(Ud.sources.push(this),Ud.sourceSlots.push(e)):(Ud.sources=[this],Ud.sourceSlots=[e]),this.observers?(this.observers.push(Ud),this.observerSlots.push(Ud.sources.length-1)):(this.observers=[Ud],this.observerSlots=[Ud.sources.length-1])}return this.value}function lf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&ff(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=zd&&zd.running;r&&zd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?Fd.push(n):Bd.push(n),n.observers&&mf(n)),r||(n.state=Id)}if(Fd.length>1e6)throw Fd=[],new Error},!1)),t}function cf(e){if(!e.fn)return;yf(e);const t=Wd,n=Ud,r=qd;Ud=Wd=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Id,e.owned&&e.owned.forEach(yf),e.owned=null),vf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?lf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Ud=n,Wd=t}function uf(e,t,n,r=Id,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Wd,context:null,pure:n};return null===Wd||Wd!==$d&&(Wd.owned?Wd.owned.push(i):Wd.owned=[i]),i}function df(e){const t=zd;if(0===e.state||t)return;if(e.state===Nd||t)return gf(e);if(e.suspense&&Jd(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<qd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Id||t)cf(e);else if(e.state===Nd||t){const t=Fd;Fd=null,ff(()=>gf(e,n[0]),!1),Fd=t}}function ff(e,t){if(Fd)return e();let n=!1;t||(Fd=[]),Bd?n=!0:Bd=[],qd++;try{const t=e();return function(e){Fd&&(pf(Fd),Fd=null);if(e)return;const t=Bd;Bd=null,t.length&&ff(()=>jd(t),!1)}(n),t}catch(r){n||(Bd=null),Fd=null,vf(r)}}function pf(e){for(let t=0;t<e.length;t++)df(e[t])}function hf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:df(r)}var r;for(Rd.context&&(Rd.context=r),t=0;t<n;t++)df(e[t])}function gf(e,t){const n=zd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Id||n?o!==t&&df(o):(o.state===Nd||n)&&gf(o,t))}}function mf(e){const t=zd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Nd,r.pure?Fd.push(r):Bd.push(r),r.observers&&mf(r))}}function yf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)yf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function bf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function vf(e){throw e=bf(e)}function wf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:wf(e.owner,t):void 0}function xf(e){if("function"==typeof e&&!e.length)return xf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=xf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Cf(e,t){return function(t){let n;return Gd(()=>n=Jd(()=>(Wd.context={[e]:t.value},af(()=>t.children))),void 0),n}}const kf=Symbol("fallback");function Sf(e){for(let t=0;t<e.length;t++)e[t]()}function Ef(e,t){return Jd(()=>e(t||{}))}function _f(){return!0}const Tf={get:(e,t,n)=>t===Od?n:e.get(t),has:(e,t)=>t===Od||e.has(t),set:_f,deleteProperty:_f,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:_f,deleteProperty:_f}),ownKeys:e=>e.keys()};function Pf(e){return(e="function"==typeof e?e():e)?e:{}}function Af(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Od in n,e[r]="function"==typeof n?(t=!0,Yd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Pf(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Pf(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Pf(e[n])));return[...new Set(t)]}},Tf);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Rf(e,...t){const n=new Set(t.flat());if(Od in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Tf));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Tf)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Of(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Yd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return tf(()=>Sf(i)),()=>{let l,c,u=e()||[];return u[Md],Jd(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(Sf(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[kf],o[0]=Hd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Hd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Hd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Vd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Mf(e){let t=!1;const n=e.keyed,r=Yd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Yd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Jd(()=>r(o)):r}return e.fallback},void 0,void 0)}function Lf(e){let t=!1,n=!1;const r=af(()=>e.children),o=Yd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Yd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?Jd(()=>s(i)):s},void 0,void 0)}function jf(e){return e}const If=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Nf=new Set(["innerHTML","textContent","innerText","children"]),$f=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Df=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Wf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),zf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Uf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Ff="_$DX_DELEGATE";function Bf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function qf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Hf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Vf(e,t={},n,r){const o={};return Gd(()=>o.children=Jf(e,t.children,o.children)),Gd(()=>t.ref&&t.ref(e)),Gd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Zf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Zf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Kf(e,t,n){return Jd(()=>e(t,n))}function Gf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Jf(e,t,r,n);Gd(r=>Jf(e,t(),r,n),r)}function Qf(e){let t,n;return Rd.context&&(t=Rd.registry.get(n=function(){const e=Rd.context;return`${e.id}${e.count++}`}()))?(Rd.completed&&Rd.completed.add(t),Rd.registry.delete(n),t):e.cloneNode(!0)}function Yf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Zf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?qf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Yf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Yf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Wf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Ff]||(t[Ff]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Xf))}}([o]))}else if((l=Nf.has(t))||!o&&(Df[t]||(s=If.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Hf(e,n):!a||s||l?e[Df[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Uf[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):qf(e,$f[t]||t,n)}var c;return n}function Xf(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Rd.registry&&!Rd.done&&(Rd.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Jf(e,t,n,r,o){for(Rd.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Rd.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=np(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Rd.context)return n;n=np(e,n,r)}else{if("function"===i)return Gd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Jf(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(ep(i,t,n,o))return Gd(()=>n=Jf(e,i,n,r,!0)),()=>n;if(Rd.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=np(e,n,r),a)return n}else s?0===n.length?tp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&np(e),tp(e,i));n=i}else if(t instanceof Node){if(Rd.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=np(e,n,r,t);np(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function ep(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=ep(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=ep(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function tp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function np(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function rp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function op(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Rd.context){const[t,n]=Vd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Vd(!1),n=()=>t(!0);Hd(t=>Gf(r,()=>e()?t():o()(),null)),tf(()=>{Rd.context?queueMicrotask(n):n()})}else{const i=rp(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Gf(a,o()),r.appendChild(i),e.ref&&e.ref(i),tf(()=>r.removeChild(i))}return n}function ip(e){const[t,n]=Rf(e,["component"]),r=Yd(()=>t.component);return Yd(()=>{const e=r();switch(typeof e){case"function":return Jd(()=>e(n));case"string":const t=zf.has(e),r=Rd.context?Qf():rp(e,t);return Vf(r,n,t),r}})}var ap=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(ap||{});let sp={data:""},lp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cp=/\/\*[^]*?\*\/| +/g,up=/\n+/g,dp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?dp(a,i):i+"{"+dp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=dp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=dp.p?dp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},fp={},pp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+pp(e[n]);return t}return e};function hp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=pp(e),a=fp[i]||(fp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!fp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=lp.exec(e.replace(cp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(up," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(up," ").trim();return r[0]})(e);fp[a]=dp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&fp.g?fp.g:null;return n&&(fp.g=fp[a]),l=fp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":dp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||sp),t.g,t.o,t.k);var r}hp.bind({g:1});let gp=hp.bind({k:1});const mp=rf();function yp(e){return Ef(mp.Provider,{value:e.theme,get children(){return e.children}})}function bp(){return of(mp)}function vp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Af(r,{theme:of(mp)}),i=Af(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,hp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Rf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Vf(u,l)):u=ip(Af({component:c},l)),u};return r.class=e=>Jd(()=>hp.apply({target:t.target,p:e,g:t.g},n)),r}}const wp=new Proxy(vp,{get:(e,t)=>e(t)});function xp(){const e=vp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Cp="tc-root",kp="tc-disable-scroll",Sp="tc-using-mouse",Ep=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(Sp)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(Sp)});return Ef(xp`
|
|
1
|
+
var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function A(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(A)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=A,C=function(){R.postMessage(null)}}else C=function(){y(A,0)};function O(t,n){S=y(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var A=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return R((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+P(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(A,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=R(i=n[g],r,o,s=h+P(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=R(i=i.value,r,o,s=h+P(i,g++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var 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)},L={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=L,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,j)}catch(i){j(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},A={};function P(){if(k)return A;k=1;var e=C();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.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)},A.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()}},A.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))},A.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},A.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})}},A.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)},A.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})}},A.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)},A.requestFormReset=function(e){r.d.r(e)},A.unstable_batchedUpdates=function(e,t){return e(t)},A.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},A.useFormStatus=function(){return i.H.useHostTransitionStatus()},A.version="19.2.0",A}function R(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=P(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=R();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(i(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function L(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 k:return"Suspense";case S:return"SuspenseList";case A: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:L(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return L(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function F(e){return{current:e}}function U(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=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=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Ae(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 Pe(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=Ae(r):0!==(a&=s)?o=Ae(a):n||0!==(n=s&~e)&&(o=Ae(n)):0!==(s=r&~i)?o=Ae(s):0!==a?o=Ae(a):n||0!==(n=r&~e)&&(o=Ae(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Pf(e.type)}function Fe(e,t){var n=$.p;try{return $.p=e,t()}finally{$.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=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ft(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Tt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function At(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 Pt(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&&At(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&At(e,a,t[a])}function Rt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jt(e){return Mt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ft(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function 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})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,An=null;Bt&&"documentMode"in document&&(An=document.documentMode);var Pn=Bt&&"TextEvent"in window&&!An,Rn=Bt&&(!Tn||An&&8<An&&11>=An),On=String.fromCharCode(32),Mn=!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 Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function 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(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Un(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ft(Fn,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return 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"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Ar="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)},Pr=[],Rr=0,Or=0;function Mr(){for(var e=Rr,t=Or=Rr=0;t<e;){var n=Pr[t];Pr[t++]=null;var r=Pr[t];Pr[t++]=null;var o=Pr[t];Pr[t++]=null;var i=Pr[t];if(Pr[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){Pr[Rr++]=e,Pr[Rr++]=t,Pr[Rr++]=n,Pr[Rr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return jr(e,t,n,r),$r(e)}function Ir(e,t){return jr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(e,t,n,r){return new Wr(e,t,n,r)}function 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 A:return(e=zr(31,n,t,i)).elementType=A,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=Lt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Ad(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Mc?Mc=e:Mc.push.apply(Mc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=F(null),_o=null,To=null;function Ao(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Po(e){e._currentValue=Eo.current,U(Eo)}function Ro(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ro(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ro(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Mo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function jo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&Lo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=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(Lt,Lt),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(Lt,Lt);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(I(t)||M(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||M(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(d);f<s.length;f++)null!==(h=y(d,r,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(M(u)){if("function"!=typeof(v=M(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return jr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Ai(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Pi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ai(n[e],t)}var Ri=F(null),Oi=F(0);function Mi(e,t){B(Oi,e=Sc),B(Ri,t),Sc=e|t.baseLanes}function ji(){B(Oi,Sc),B(Ri,Ri.current)}function Li(){Sc=Oi.current,U(Ri),U(Oi)}var Ii=F(null),Ni=null;function $i(e){var t=e.alternate;B(Ui,1&Ui.current),B(Ii,e),null===Ni&&(null===t||null!==Ri.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Ui,Ui.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Ui,Ui.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Ui,Ui.current),B(Ii,Ii.current)}function Fi(e){U(Ii),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)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&jo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=P;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Aa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Aa(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),Pa(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Pa(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Pa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Oa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ma(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Aa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ma(t),t=t.next}while(t!==r)}e.action=null}function Ma(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ja(e,t){return t}function La(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer: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 Ia(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,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return da().memoizedState}function Fa(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function 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=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(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!==Ri.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache: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=Lr(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&&Mr(),!1}catch(l){}if(null!==(n=Lr(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=Lr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,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,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:La,useActionState:La,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Es(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Ar(e)}function Ts(e){console.error(e)}function As(e){Ar(e)}function Ps(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){Ps(e,t)},n}function Ms(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(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ls=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Lo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||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,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Ur(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return 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?Mi(t,i):ji(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Mi(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(),Wi(t),null!==e&&Mo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,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 Lo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return Lo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(Lo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&jo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&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|=Pc),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?$i(t):zi(),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return Ld(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)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Fs(null,i));else if($i(t),Ld(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Mo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),Ls;jd(l)||lu(),t=nl(e,t,n)}else jd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=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)):($i(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),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=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(Mo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=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)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Ao(0,Fo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Ao(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Mo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Ui,Ui.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Ao(0,Fo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=L(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,Ao(0,Fo,o),o!==a.cache&&Oo(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){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Ad(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Ao(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Lo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Fs(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Mo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),Ls;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=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 Lo(t),o=Io(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),Ao(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),Ao(0,Fo,o)):(o=a.cache,Ao(0,Fo,o),o!==i.cache&&Oo(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?Me():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Po(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,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(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=ko(),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 Po(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),Li(),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),Po(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 Po(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 Po(t.type),null;case 22:case 23:return Fi(t),Li(),null!==e&&U(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Po(Fo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Po(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:Po(t.type);break;case 22:case 23:Fi(t),Li(),null!==e&&U(Yo);break;case 24:Po(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{Pi(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Ad(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&&Ad(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 Al(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=Lt));else if(4!==r&&(27===r&&Ad(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Pl(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&&Ad(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ml=!1,jl=!1,Ll="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Pi(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&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=Pu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ml,o=Ol;var i=Ml;Ol=r,(Ml=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ml=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)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:Ml||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ml||kl(n,t);var r=Dl,o=Wl;Ad(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ml||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Pd(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Pd(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ml||vl(4,n,t),zl(e,t,n);break;case 1:Ml||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ml=(r=Ml)||null!==n.memoizedState,zl(e,t,n),Ml=r;break;default:zl(e,t,n)}}function 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 Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Ad(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Fl(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(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)&&(Lc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ml;if(Ol=u||i,Ml=d||c,Hl(t,e),Ml=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ml||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Rd(h,!0):Rd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Pl(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Pl(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Al(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Ai(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&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];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Fo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(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,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Ac=0,Pc=0,Rc=0,Oc=null,Mc=null,jc=!1,Lc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=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===Pc)if(536870912&bc&&!ho)Pc=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Pc=e}return null!==(e=Ii.current)&&(e.flags|=32),Pc}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Pc,!1)),Le(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Pc,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Re(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Mr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Mc,Mc=i,null!==a&&(null===Mc?Mc=a:Mc.push.apply(Mc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Pc,!xc);break e;case 2:Mc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Lc+300-ue())){if(eu(o,t,Pc,!xc),0!==Pe(o,0,!0))break e;Uc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Mc,$c,jc,t,Pc,Tc,Rc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Mc,$c,jc,t,Pc,Tc,Rc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt});var h=(62914560&i)===i?Lc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return 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&=~Ac,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uc=0,nu(),mc=e,yc=n=Ur(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Re(e,t),kc=!1,Rc=Pc=Ac=Tc=_c=Ec=0,Mc=Oc=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 Sc=t,Mr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===Ls?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,Ps(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Pc,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Mr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Mo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,js(i=Ms(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,Ps(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,Ps(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),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 ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Fc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Fc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Fc,n=Uc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Fc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Uc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Uc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Uc;if(Wc=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,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(Le(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ms(2),2))&&(js(n,r,t,e),Le(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-Lc?!(2&gc)&&ru(e,0):Ac|=n,Rc===bc&&(Rc=0)),$u(e)}function Au(e,t){0===t&&(t=Me()),null!==(e=Ir(e,t))&&(Le(e,t),$u(e))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Au(e,n)}var Ou=null,Mu=null,ju=!1,Lu=!1,Iu=!1,Nu=0;function $u(e){e!==Mu&&null===e.next&&(null===Mu?Ou=Mu=e:Mu=Mu.next=e),Lu=!0,ju||(ju=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&Lu){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Pe(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){Lu=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=Ou;null!==r;){var o=r.next,i=Fu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Mu=n)):(n=r,(0!==e||3&i)&&(Lu=!0)),r=o}0!==Wc&&5!==Wc||Du(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]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Pe(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=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!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Pe(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(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Ar(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){Ar(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(Pf(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}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 Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=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===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?jn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=Ln(n))&&(x.data=w))),(w=Pn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&jn(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=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":Pt(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=Lt);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=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":Pt(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=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Ad(e){return"head"===e}function Pd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Rd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Md(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function jd(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Wd(e,t,n){switch(t=bd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var 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={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:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=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=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Mf=Wf(Mf,e,t,n,r,o),!0;case"mouseover":return jf=Wf(jf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lf.set(i,Wf(Lf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ae(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Af(e=Nt(e))}var Tf=null;function Af(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 Pf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rf=!1,Of=null,Mf=null,jf=null,Lf=new Map,If=new Map,Nf=[],$f="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Mf=null;break;case"mouseover":case"mouseout":jf=null;break;case"pointerover":case"pointerout":Lf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void 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);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Uf(e,t,n){Ff(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Of&&Ff(Of)&&(Of=null),null!==Mf&&Ff(Mf)&&(Mf=null),null!==jf&&Ff(jf)&&(jf=null),Lf.forEach(Uf),If.forEach(Uf)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(t){Hf!==t&&(Hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hf===t&&(Hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Af(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Mf&&qf(Mf,e),null!==jf&&qf(jf,e),Lf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Af(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=As;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=As,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,Le(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var M=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),j=C();const L=r(j),I=t({__proto__:null,default:L},[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 $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},F={};function U(){if(D)return F;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return 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 W||(W=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?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Ae=xe("borderTopColor"),Pe=xe("borderRightColor"),Re=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Me=xe("outline",we),je=xe("outlineColor"),Le=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};Le.propTypes={},Le.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Ae,Pe,Re,Oe,Le,Me,je);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),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:We(t)}};return J(e,e.maxWidth,t)}return null};Fe.filterProps=["maxWidth"];const Ue=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,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:Le},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Fe},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function At(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 Pt(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Rt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,Lt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(vt=Et())&&vt<33;)St();return At(e)>2||At(vt)>3?"":" "}function jt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function Lt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&Lt(vt);break;case 40:41===e&&Lt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!At(Et());)St();return Tt(e,bt)}function $t(e){return Rt(Dt("",null,null,null,[""],e=Pt(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Mt(h);break;case 92:k+=jt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ft(k+";",r,n,d-1):Ft(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function 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),!At(o);)St();return Tt(e,bt)},Vt=function(e,t){return Rt(function(e,t){var n=-1,r=44;do{switch(At(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(Pt(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($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||j.useLayoutEffect,Sn=j.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return j.forwardRef(function(t,n){var r=j.useContext(Sn);return e(t,r,n)})},An=j.createContext({}),Pn={}.hasOwnProperty,Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Mn=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,j.useContext(An));a+=t.key+"-"+s.name;var l={};for(var c in e)Pn.call(e,c)&&"css"!==c&&c!==Rn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),j.createElement(j.Fragment,null,j.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),j.createElement(o,l))}),jn=function(e,t){var n=arguments;if(null==t||!Pn.call(t,"css"))return j.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mn,o[1]=function(e,t){var n={};for(var r in t)Pn.call(t,r)&&(n[r]=t[r]);return n[Rn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return j.createElement.apply(null,o)};En=jn||(jn={}),_n||(_n=En.JSX||(En.JSX={}));var Ln=Tn(function(e,t){var n=wn([e.styles],void 0,j.useContext(An)),r=j.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},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(An)}"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(Ln,{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(An);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?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 Ar(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 Pr(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])),Ar({type:s,values:l})}function Rr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Pr(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ar(e)}function Mr(e,t,n){try{return Or(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 Ar(e)}function Lr(e,t,n){try{return jr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ar(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Rr(e)>.5?jr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=j.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:j.useContext(Dr)}})}let zr=0;const Fr={...I}.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 kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=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",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Ao="#f44336",Po="#d32f2f",Ro="#c62828",Oo="#ffb74d",Mo="#ffa726",jo="#ff9800",Lo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#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=Ir(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:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ao,light:_o,dark:Po}:{main:Po,light:To,dark:Ro}}(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:Mo,light:Oo,dark:Lo}:{main:"#ed6c02",light:jo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`: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}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Ai(e){return"string"==typeof e&&e.startsWith("hsl")?Pr(e):e}function Pi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Ai(e[t])))}const Ri=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Mi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Mr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Lr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(Lr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Lr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Lr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Lr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(Lr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Mr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(Lr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Lr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Lr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Lr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Lr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(Lr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(Lr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(Lr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(Lr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(Lr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(Lr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(Lr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(Lr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(Lr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(Lr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(Lr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(Lr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(Lr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(Lr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(Lr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(Lr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(Lr,t.warning.main,.55)),Ti(t.TableCell,"border",r(Lr,r(Mr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}Pi(t.background,"default"),Pi(t.background,"paper"),Pi(t.common,"background"),Pi(t.common,"onBackground"),Pi(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Ai(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Ai(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Ai(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Ai(n.contrastText))),"text"===e&&(Pi(t[e],"primary"),Pi(t[e],"secondary")),"action"===e&&(n.active&&Pi(t[e],"active"),n.selected&&Pi(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function ji(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},ji(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},ji(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Mi({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=Li(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Fi(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Ui(e){return Wr(e)}const Bi="function"==typeof Fi({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Fi(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Ui({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(j.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.8",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Aa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Pa(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Ra;const Ma=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),ja=la("HTMLFormElement"),La=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Aa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Ra.postMessage),Wa?setImmediate:za?(Fa=`axios@${Math.random()}`,Ua=[],Ra.addEventListener("message",({source:e,data:t})=>{e===Ra&&t===Fa&&Ua.length&&Ua.shift()()},!1),e=>{Ua.push(e),Ra.postMessage(Fa,"*")}):e=>setTimeout(e));var Wa,za,Fa,Ua;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ra):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:Ma,isFileList:Ca,forEach:Aa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Pa(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Aa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Aa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ja,hasOwnProperty:La,hasOwnProp:La,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Pa,global:Ra,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Aa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),As=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,Ps=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const js=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&As(t.url))){const e=o&&i&&Ps.read(i);e&&a.set(o,e)}return t},Ls="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=js(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Fs,TextEncoder:Us}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Fs),l=o&&("function"==typeof Us?(e=>t=>e.encode(t))(new Us):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Fs,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=js(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:Ls,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ms(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Rs((e=Ms(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ms(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ms(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ms(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ms,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Al="ps_play_button_clicked",Pl="ps_purchase_completed",Rl="ps_check_in_completed",Ol="event_purchaseCompleted",Ml="event_checkInCompleted";var jl=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(jl||{}),Ll=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(Ll||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e[e.croco=4]="croco",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Fl={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Ul={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"},1057:{star:"1057_currency_star.png",ton:"1057_currency_ton.png",usdt:"1057_currency_usdt.png",cati:"1057_currency_cati.png"},1060:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_pybobo.png",croco:"1041_currency_croco.png"}},ql={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Hl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Vl,Kl={exports:{}};var Gl,Ql,Yl=(Vl||(Vl=1,Gl=Kl,Ql=Kl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",A="Huawei",P="LG",R="Microsoft",O="Motorola",M="Nvidia",j="OnePlus",L="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="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,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,L+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,L+" 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,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,A],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,A],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,P],[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,P],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,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,R],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,P],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,M],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,R],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,j],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,P],[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,S+"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]),Gl.exports&&(Ql=Gl.exports=J),Ql.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Kl.exports)),Kl.exports);const Zl=r(Yl),Xl=e=>`${ta.RES_URL}${e}`,Jl=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},ec=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},tc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},nc=()=>(window.Telegram.WebApp.platform||"").includes("android"),rc=()=>{const e=(new Yl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},oc=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),ic=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class ac{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.get(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Hl.post(n,t).then(t=>{if(ac.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return ac.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return ac.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return ac.post("pluto/order",s)}static getItem(e){const t={k:e};return ac.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return ac.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return ac.post("pluto/finishorder",t)}static unfinishRecord(){return ac.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return ac.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return ac.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return ac.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return ac.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return ac.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return ac.post("pluto/signdata",s)}static getNfts(){return ac.post("pluto/getnfts")}static setGameUserId(e,t){const n={userid:e,serverid:t};return ac.post("pluto/setuserid",n)}static cocGetInfo(){return ac.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return ac.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return ac.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return ac.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return ac.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return ac.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return ac.post("plutococ/cancelwithdraw",t)}static spGetInfo(e){const t={sid:e};return ac.post("plutosp/info",t)}static spWithdraw(e,t,n,r,o){const i={sid:e,chainnet:"TON",wallet:t,currencycode:n,amount:r,memo:o};return ac.post("plutosp/withdraw",i)}static spClaim(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/claim",n)}static spGetWithdrawDetail(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/withdrawdetail",n)}static spGetRecords(e,t,n,r){const o={sid:e,optype:t,page:n,pagesize:r};return ac.post("plutosp/record",o)}static spQueryConsume(e,t){const n={sid:e,time:t};return ac.post("plutosp/queryconsume",n)}static spCancelWithdraw(e,t){const n={sid:e,withdrawid:t};return ac.post("plutosp/cancelwithdraw",n)}}const sc=new class{constructor(){this._gameServerId=1}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameServerId(){return this._gameServerId}set gameServerId(e){this._gameServerId=e}};var lc,cc={exports:{}},uc=cc.exports;var dc=(lc||(lc=1,function(e){var t,n;t=uc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(cc)),cc.exports);const fc=r(dc);function pc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hc={exports:{}};const gc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mc;var yc=(mc||(mc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,A=f,P=p,R=h,O=g,M=m,j=y,L=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(j^=(o=(P^=(o=(E^=(o=x+j|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+P|0)<<18|o>>>14,_^=(o=(C^=(o=(L^=(o=(R^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+R|0)<<13|o>>>19)+L|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(M^=(o=(A^=(o=(S^=(o=N+M|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+A|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(A^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+A|0)<<18|o>>>14,O^=(o=(R^=(o=(P^=(o=(M^=(o=O+R|0)<<7|o>>>25)+O|0)<<9|o>>>23)+M|0)<<13|o>>>19)+P|0)<<18|o>>>14,N^=(o=(I^=(o=(L^=(o=(j^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+j|0)<<13|o>>>19)+L|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,A=A+f|0,P=P+p|0,R=R+h|0,O=O+g|0,M=M+m|0,j=j+y|0,L=L+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=A>>>0&255,e[29]=A>>>8&255,e[30]=A>>>16&255,e[31]=A>>>24&255,e[32]=P>>>0&255,e[33]=P>>>8&255,e[34]=P>>>16&255,e[35]=P>>>24&255,e[36]=R>>>0&255,e[37]=R>>>8&255,e[38]=R>>>16&255,e[39]=R>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=j>>>0&255,e[49]=j>>>8&255,e[50]=j>>>16&255,e[51]=j>>>24&255,e[52]=L>>>0&255,e[53]=L>>>8&255,e[54]=L>>>16&255,e[55]=L>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function A(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function P(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),m(n,0,r,0)}function L(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,A=0,P=0,R=0,O=0,M=0,j=0,L=0,I=0,N=n[0],$=n[1],D=n[2],W=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*$,s+=r*D,l+=r*W,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*$,l+=r*D,c+=r*W,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*$,c+=r*D,u+=r*W,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*$,u+=r*D,d+=r*W,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,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,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,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,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,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*F,y+=r*U,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*F,b+=r*U,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*F,v+=r*U,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,A+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*F,w+=r*U,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,A+=r*Y,P+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*F,x+=r*U,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,A+=r*Q,P+=r*Y,R+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*F,C+=r*U,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,A+=r*G,P+=r*Q,R+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*F,k+=r*U,S+=r*B,E+=r*q,_+=r*H,T+=r*V,A+=r*K,P+=r*G,R+=r*Q,O+=r*Y,M+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*F,S+=r*U,E+=r*B,_+=r*q,T+=r*H,A+=r*V,P+=r*K,R+=r*G,O+=r*Q,M+=r*Y,j+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*F,E+=r*U,_+=r*B,T+=r*q,A+=r*H,P+=r*V,R+=r*K,O+=r*G,M+=r*Q,j+=r*Y,L+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*F),u+=38*(_+=r*U),d+=38*(T+=r*B),f+=38*(A+=r*q),p+=38*(P+=r*H),h+=38*(R+=r*V),g+=38*(O+=r*K),m+=38*(M+=r*G),y+=38*(j+=r*Q),b+=38*(L+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function 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,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),M(e,m),0}function B(e,t){return 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)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],A=this.h[5],P=this.h[6],R=this.h[7],O=this.h[8],M=this.h[9],j=this.r[0],L=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],F=this.r[8],U=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*j,f+=(S+=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*W))>>>13,f&=8191,f+=(A+=s>>>1&8191)*(5*D),f+=(P+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(R+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(M+=u>>>5|C)*(5*L))>>>13,p+=k*L,p+=S*j,p+=E*(5*U),p+=_*(5*F),d=(p+=T*(5*z))>>>13,p&=8191,p+=A*(5*W),p+=P*(5*D),p+=R*(5*$),p+=O*(5*N),d+=(p+=M*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*L,h+=E*j,h+=_*(5*U),d=(h+=T*(5*F))>>>13,h&=8191,h+=A*(5*z),h+=P*(5*W),h+=R*(5*D),h+=O*(5*$),g=d+=(h+=M*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*L,g+=_*j,d=(g+=T*(5*U))>>>13,g&=8191,g+=A*(5*F),g+=P*(5*z),g+=R*(5*W),g+=O*(5*D),m=d+=(g+=M*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*L,d=(m+=T*j)>>>13,m&=8191,m+=A*(5*U),m+=P*(5*F),m+=R*(5*z),m+=O*(5*W),y=d+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*L)>>>13,y&=8191,y+=A*j,y+=P*(5*U),y+=R*(5*F),y+=O*(5*z),b=d+=(y+=M*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=A*L,b+=P*j,b+=R*(5*U),b+=O*(5*F),v=d+=(b+=M*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=A*I,v+=P*L,v+=R*j,v+=O*(5*U),w=d+=(v+=M*(5*F))>>>13,w+=k*F,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=A*N,w+=P*I,w+=R*L,w+=O*j,x=d+=(w+=M*(5*U))>>>13,x+=k*U,x+=S*F,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=A*$,x+=P*N,x+=R*I,x+=O*L,k=f=8191&(d=(d=((d+=(x+=M*j)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,A=y&=8191,P=b&=8191,R=v&=8191,O=w&=8191,M=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=A,this.h[6]=P,this.h[7]=R,this.h[8]=O,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=A,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,A,P,R=new Int32Array(16),O=new Int32Array(16),M=e[0],j=e[1],L=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=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++)k=8*C+Q,R[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=M,i=j,a=L,s=I,l=N,c=$,u=D,f=z,p=F,h=U,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,A=65535&(S=W),P=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,A+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),P+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,A+=65535&(S=N&$^~N&D),P+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,A+=65535&(S=G[2*C]),P+=S>>>16,S=R[C%16],T+=(E=O[C%16])>>>16,A+=65535&S,P+=S>>>16,A+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,A=65535&(S=w=65535&A|(P+=A>>>16)<<16),P=S>>>16,_+=65535&(E=(z>>>28|M<<4)^(M>>>2|z<<30)^(M>>>7|z<<25)),T+=E>>>16,A+=65535&(S=(M>>>28|z<<4)^(z>>>2|M<<30)^(z>>>7|M<<25)),P+=S>>>16,T+=(E=z&F^z&U^F&U)>>>16,A+=65535&(S=M&j^M&L^j&L),P+=S>>>16,d=65535&(A+=(T+=(_+=65535&E)>>>16)>>>16)|(P+=A>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,A=65535&(S=s),P=S>>>16,T+=(E=x)>>>16,A+=65535&(S=w),P+=S>>>16,j=o,L=i,I=a,N=s=65535&(A+=(T+=(_+=65535&E)>>>16)>>>16)|(P+=A>>>16)<<16,$=l,D=c,W=u,M=d,F=f,U=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=R[k],_=65535&(E=O[k]),T=E>>>16,A=65535&S,P=S>>>16,S=R[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,A+=65535&S,P+=S>>>16,w=R[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,A+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),P+=S>>>16,w=R[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,A+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,R[k]=65535&A|P<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,A=65535&(S=M),P=S>>>16,S=e[0],T+=(E=t[0])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&A|P<<16,t[0]=z=65535&_|T<<16,_=65535&(E=F),T=E>>>16,A=65535&(S=j),P=S>>>16,S=e[1],T+=(E=t[1])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=j=65535&A|P<<16,t[1]=F=65535&_|T<<16,_=65535&(E=U),T=E>>>16,A=65535&(S=L),P=S>>>16,S=e[2],T+=(E=t[2])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=L=65535&A|P<<16,t[2]=U=65535&_|T<<16,_=65535&(E=B),T=E>>>16,A=65535&(S=I),P=S>>>16,S=e[3],T+=(E=t[3])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&A|P<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,A=65535&(S=N),P=S>>>16,S=e[4],T+=(E=t[4])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&A|P<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,A=65535&(S=$),P=S>>>16,S=e[5],T+=(E=t[5])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&A|P<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,A=65535&(S=D),P=S>>>16,S=e[6],T+=(E=t[6])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&A|P<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,A=65535&(S=W),P=S>>>16,S=e[7],T+=(E=t[7])>>>16,A+=65535&S,P+=S>>>16,P+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&A|P<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),M(e,o),e[31]^=L(r)<<7}function ee(e,t,n){var r,o;for(P(e[0],i),P(e[1],a),P(e[2],a),P(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()];P(r[0],u),P(r[1],d),P(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return P(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),F(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),j(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),j(o,s)?-1:(L(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:A,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:M,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:F,add:Z,set25519:P,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!==A(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!==pc&&(le=gc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(hc)),hc.exports);const bc=r(yc);var vc,wc,xc,Cc,kc,Sc,Ec,_c,Tc,Ac,Pc,Rc;(wc=vc||(vc={}))[wc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",wc[wc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",wc[wc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",wc[wc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",wc[wc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",wc[wc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",wc[wc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Sc[Sc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Sc[Sc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Ac=Tc||(Tc={}))[Ac.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Ac[Ac.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Ac[Ac.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Ac[Ac.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Rc=Pc||(Pc={})).MAINNET="-239",Rc.TESTNET="-3";const Oc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=fc.decodeUTF8(e)),function(e,t){const n=fc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),fc.decodeBase64(e)}(e,t);return{toString:()=>fc.encodeUTF8(n),toObject(){try{return JSON.parse(fc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function Mc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function jc(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 Lc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=Mc(this.keyPair.publicKey)}createKeypair(){return bc.box.keyPair()}createKeypairFromString(e){return{publicKey:jc(e.publicKey),secretKey:jc(e.secretKey)}}createNonce(){return bc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,bc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=bc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:Mc(this.keyPair.publicKey),secretKey:Mc(this.keyPair.secretKey)}}}function Ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Nc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class $c extends Error{constructor(e,t){super(e,t),this.message=`${$c.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,$c.prototype)}get info(){return""}}$c.prefix="[TON_CONNECT_SDK_ERROR]";class Dc extends $c{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Dc.prototype)}}class Wc extends $c{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Wc.prototype)}}class zc extends $c{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Fc extends $c{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Uc extends $c{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Bc extends $c{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends $c{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends $c{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends $c{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends $c{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends $c{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends $c{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends $c{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends $c{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}const Jc={[vc.UNKNOWN_ERROR]:Xc,[vc.USER_REJECTS_ERROR]:Vc,[vc.BAD_REQUEST_ERROR]:Kc,[vc.UNKNOWN_APP_ERROR]:Gc,[vc.MANIFEST_NOT_FOUND_ERROR]:zc,[vc.MANIFEST_CONTENT_ERROR]:Wc};const eu=new class{parseError(e){let t=Xc;return e.code in Jc&&(t=Jc[e.code]||Xc),new t(e.message)}};class tu{isError(e){return"error"in e}}const nu={[kc.UNKNOWN_ERROR]:Xc,[kc.USER_REJECTS_ERROR]:Vc,[kc.BAD_REQUEST_ERROR]:Kc,[kc.UNKNOWN_APP_ERROR]:Gc};const ru=new class extends tu{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in nu&&(t=nu[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},ou={[Ec.UNKNOWN_ERROR]:Xc,[Ec.USER_REJECTS_ERROR]:Vc,[Ec.BAD_REQUEST_ERROR]:Kc,[Ec.UNKNOWN_APP_ERROR]:Gc};const iu=new class extends tu{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Xc;throw e.error.code in ou&&(t=ou[e.error.code]||Xc),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class au{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Nc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function su(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function lu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function cu(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function uu(e,t){return Nc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function du(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function fu(e,t){var n,r;return Nc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=du(null==t?void 0:t.signal);if("function"!=typeof e)throw new $c("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new $c(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield uu(i))}}throw s})}function pu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function hu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class gu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Nc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=du(s),a.signal.aborted)throw new $c("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new $c("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Nc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Nc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield uu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new $c("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Nc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Nc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=du(null==t?void 0:t.signal);return new Promise((t,o)=>Nc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new $c("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new $c(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new $c("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Nc(this,0,void 0,function*(){var o;const i=du(r.signal).signal;if(i.aborted)return void n(new $c("Bridge connection aborted"));const a=new URL(su(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new $c("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Nc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new $c("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new $c("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Nc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new au(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Nc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Nc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(su(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Oc.encode(e);yield fu(e=>Nc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new $c(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>hu(`Bridge pause failed, ${e}`))}unPause(){return Nc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Nc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>hu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Nc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new $c(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Nc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new $c("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),pu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new $c("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Nc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new $c(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function mu(e){return!("connectEvent"in e)}class yu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Nc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!mu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Nc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new Lc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new Lc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $c("Trying to read HTTP connection source while injected connection is stored");if(!mu(e))throw new $c("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new $c("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new $c("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Nc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Nc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!mu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Nc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class bu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new yu(e)}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getHttpConnection();return mu(n)?new bu(e,n.connectionSource):new bu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=du(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new Lc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Nc(this,0,void 0,function*(){r.signal.aborted||(yield fu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(mu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new $c("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield fu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Nc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new $c("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),jc(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Nc(this,0,void 0,function*(){return new Promise(t=>Nc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=du(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){pu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Nc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Nc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Nc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Oc.decode(e.message).toUint8Array(),jc(e.from)));if(pu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void pu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void hu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(pu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Nc(this,0,void 0,function*(){throw new $c(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Nc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Nc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return lu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+cu(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Nc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new gu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>fu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(pu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new gu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function vu(e,t){return wu(e,[t])}function wu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let xu=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Cu(){if("undefined"!=typeof window)return window}function ku(){var e;const t=null===(e=Cu())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Su(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new $c("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return xu.getInstance()}class Eu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Eu.window;if(!Eu.isWindowContainsWallet(n,t))throw new Bc;this.connectionStorage=new yu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Nc(this,0,void 0,function*(){const t=new yu(e),n=yield t.getInjectedConnection();return new Eu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Eu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Eu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Cu();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!vu(e,"tonconnect")||!vu(e.tonconnect,"walletInfo"))&&wu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Nc(this,0,void 0,function*(){try{pu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();pu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Nc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){pu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Nc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),pu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>pu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Nc(this,0,void 0,function*(){try{pu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);pu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){pu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{pu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Eu.window=Cu();class _u{constructor(){this.localStorage=Su()}getItem(e){return Nc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Nc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Nc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Tu(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Au(e){return Tu(e)&&e.embedded}function Pu(e){return"bridgeUrl"in e}const Ru=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Ou{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Nc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Nc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Au);return 1===e.length?e[0]:null})}fetchWalletsList(){return Nc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Qc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(hu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){hu(n),e=Ru}let t=[];try{t=Eu.getCurrentlyInjectedWallets()}catch(n){hu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Eu.isWalletInjected(e),t.embedded=Eu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function Mu(e,t){const n=e.includes("SendTransaction"),r=Lu(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new qc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new qc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new qc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function ju(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=Lu(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=Lu(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 Lu(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function Iu(e){return{type:"response-version",version:e}}function Nu(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function $u(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Nu(e))}}function Du(e){return{type:"connection-started",custom_data:Nu(e)}}function Wu(e,t){return Object.assign({type:"connection-completed",is_success:!0},$u(e,t))}function zu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Nu(e)}}function Fu(e){return{type:"connection-restoring-started",custom_data:Nu(e)}}function Uu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},$u(e,t))}function Bu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Nu(e)}}function qu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Hu(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},$u(e,t)),qu(t,n))}function Vu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},$u(e,t)),qu(t,n))}function Ku(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},$u(e,t)),qu(t,n))}function Gu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},$u(e,t))}function Qu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},$u(e,t))}function Yu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},$u(e,t))}function Zu(e,t,n){return Object.assign({type:"disconnection",scope:n},$u(e,t))}class Xu{constructor(){this.window=Cu()}dispatchEvent(e,t){var n;return Nc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Nc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class Ju{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new Xu,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Nc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Nc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Nc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Iu(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Nc(this,0,void 0,function*(){return new Promise((e,t)=>Nc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class ed{constructor(e){if(this.walletsList=new Ou,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||ku(),storage:(null==e?void 0:e.storage)||new _u},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Ou({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new Ju({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new Dc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new yu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Fc;const i=du(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new $c("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Nc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=du(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield bu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Eu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return hu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=fu(t=>Nc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Nc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=du(null==n?void 0:n.signal);if(r.signal.aborted)throw new $c("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);Mu(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=Ic(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(ru.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=Ic(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(ru.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),ru.parseAndThrowError(d);const f=ru.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Nc(this,0,void 0,function*(){const n=du(null==t?void 0:t.signal);if(n.signal.aborted)throw new $c("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new qc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new qc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(iu.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),iu.parseAndThrowError(i);const a=iu.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Nc(this,0,void 0,function*(){if(!this.connected)throw new Uc;const n=du(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new $c("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){hu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Eu(this.dappSettings.storage,e.jsBridgeKey):new bu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=eu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new $c("ton_addr connection item was not found");if(!ju(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Hc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new $c("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:xc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),pu(e),e instanceof zc||e instanceof Wc)throw hu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new Uc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}ed.walletsList=new Ou,ed.isWalletInjected=e=>Eu.isWalletInjected(e),ed.isInsideWalletBrowser=e=>Eu.isInsideWalletBrowser(e);function td(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Yc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Yc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Yc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Yc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:rd(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Oc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const nd={};for(let cS=0;cS<=255;cS++){let e=cS.toString(16);e.length<2&&(e="0"+e),nd[e]=cS}function rd(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Zc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!nd.hasOwnProperty(n))throw new Zc("Invalid hex character: "+n);r[o]=nd[n]}return r}var od,id;const ad=r(function(){if(id)return od;id=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},od=s}());var sd,ld={exports:{}};var cd=(sd||(sd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ld)),ld.exports);const ud=r(cd);var dd,fd,pd,hd,gd,md,yd,bd,vd=Object.defineProperty,wd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Ed=(e,t,n)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t)=>{for(var n in t||(t={}))kd.call(t,n)&&Ed(e,n,t[n]);if(Cd)for(var n of Cd(t))Sd.call(t,n)&&Ed(e,n,t[n]);return e},Td=(e,t)=>wd(e,xd(t)),Ad=(e,t,n)=>(Ed(e,"symbol"!=typeof t?t+"":t,n),n),Pd=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Rd={};const Od=Symbol("solid-proxy"),Md=Symbol("solid-track"),jd={equals:(e,t)=>e===t};let Ld=pf;const Id=1,Nd=2,$d={owned:null,cleanups:null,context:null,owner:null},Dd={};var Wd=null;let zd=null,Fd=null,Ud=null,Bd=null,qd=0;function Hd(e,t){const n=Fd,r=Wd,o=0===e.length,i=o?$d:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>Jd(()=>yf(i)));Wd=i,Fd=null;try{return ff(a,!0)}finally{Fd=n,Wd=r}}function Vd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},jd,t):jd).equals||void 0};return[sf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),lf(n,e))]}function Kd(e,t,n){cf(uf(e,t,!0,Id))}function Gd(e,t,n){cf(uf(e,t,!1,Id))}function Qd(e,t,n){Ld=hf;const r=uf(e,t,!1,Id);r.user=!0,Bd?Bd.push(r):cf(r)}function Yd(e,t,n){n=n?Object.assign({},jd,n):jd;const r=uf(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,cf(r),sf.bind(r)}function Zd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=Dd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Yd(r);const f=new Set,[p,h]=(i.storage||Vd)(i.initialValue),[g,m]=Vd(void 0),[y,b]=Vd(void 0,{equals:!1}),[v,w]=Vd(u?"ready":"unresolved");if(Rd.context){let e;l=`${Rd.context.id}${Rd.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Rd.load&&(e=Rd.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=Dd,function(e,t){ff(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Fd&&Fd.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,Jd(p));const n=s!==Dd?s:Jd(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),ff(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,bf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Kd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function Xd(e){return ff(e,!1)}function Jd(e){if(null===Fd)return e();const t=Fd;Fd=null;try{return e()}finally{Fd=t}}function ef(e){Qd(()=>Jd(e))}function tf(e){return null===Wd||(null===Wd.cleanups?Wd.cleanups=[e]:Wd.cleanups.push(e)),e}function nf(){return Fd}function rf(e,t){const n=Symbol("context");return{id:n,Provider:Cf(n),defaultValue:e}}function of(e){let t;return void 0!==(t=wf(Wd,e.id))?t:e.defaultValue}function af(e){const t=Yd(e),n=Yd(()=>xf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function sf(){const e=zd;if(this.sources&&(this.state||e))if(this.state===Id||e)cf(this);else{const e=Ud;Ud=null,ff(()=>gf(this),!1),Ud=e}if(Fd){const e=this.observers?this.observers.length:0;Fd.sources?(Fd.sources.push(this),Fd.sourceSlots.push(e)):(Fd.sources=[this],Fd.sourceSlots=[e]),this.observers?(this.observers.push(Fd),this.observerSlots.push(Fd.sources.length-1)):(this.observers=[Fd],this.observerSlots=[Fd.sources.length-1])}return this.value}function lf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&ff(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=zd&&zd.running;r&&zd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?Ud.push(n):Bd.push(n),n.observers&&mf(n)),r||(n.state=Id)}if(Ud.length>1e6)throw Ud=[],new Error},!1)),t}function cf(e){if(!e.fn)return;yf(e);const t=Wd,n=Fd,r=qd;Fd=Wd=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Id,e.owned&&e.owned.forEach(yf),e.owned=null),vf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?lf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Fd=n,Wd=t}function uf(e,t,n,r=Id,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Wd,context:null,pure:n};return null===Wd||Wd!==$d&&(Wd.owned?Wd.owned.push(i):Wd.owned=[i]),i}function df(e){const t=zd;if(0===e.state||t)return;if(e.state===Nd||t)return gf(e);if(e.suspense&&Jd(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<qd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Id||t)cf(e);else if(e.state===Nd||t){const t=Ud;Ud=null,ff(()=>gf(e,n[0]),!1),Ud=t}}function ff(e,t){if(Ud)return e();let n=!1;t||(Ud=[]),Bd?n=!0:Bd=[],qd++;try{const t=e();return function(e){Ud&&(pf(Ud),Ud=null);if(e)return;const t=Bd;Bd=null,t.length&&ff(()=>Ld(t),!1)}(n),t}catch(r){n||(Bd=null),Ud=null,vf(r)}}function pf(e){for(let t=0;t<e.length;t++)df(e[t])}function hf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:df(r)}var r;for(Rd.context&&(Rd.context=r),t=0;t<n;t++)df(e[t])}function gf(e,t){const n=zd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Id||n?o!==t&&df(o):(o.state===Nd||n)&&gf(o,t))}}function mf(e){const t=zd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Nd,r.pure?Ud.push(r):Bd.push(r),r.observers&&mf(r))}}function yf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)yf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function bf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function vf(e){throw e=bf(e)}function wf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:wf(e.owner,t):void 0}function xf(e){if("function"==typeof e&&!e.length)return xf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=xf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Cf(e,t){return function(t){let n;return Gd(()=>n=Jd(()=>(Wd.context={[e]:t.value},af(()=>t.children))),void 0),n}}const kf=Symbol("fallback");function Sf(e){for(let t=0;t<e.length;t++)e[t]()}function Ef(e,t){return Jd(()=>e(t||{}))}function _f(){return!0}const Tf={get:(e,t,n)=>t===Od?n:e.get(t),has:(e,t)=>t===Od||e.has(t),set:_f,deleteProperty:_f,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:_f,deleteProperty:_f}),ownKeys:e=>e.keys()};function Af(e){return(e="function"==typeof e?e():e)?e:{}}function Pf(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Od in n,e[r]="function"==typeof n?(t=!0,Yd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Af(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Af(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Af(e[n])));return[...new Set(t)]}},Tf);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Rf(e,...t){const n=new Set(t.flat());if(Od in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Tf));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Tf)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Of(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Yd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return tf(()=>Sf(i)),()=>{let l,c,u=e()||[];return u[Md],Jd(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(Sf(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[kf],o[0]=Hd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Hd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Hd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Vd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function Mf(e){let t=!1;const n=e.keyed,r=Yd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Yd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Jd(()=>r(o)):r}return e.fallback},void 0,void 0)}function jf(e){let t=!1,n=!1;const r=af(()=>e.children),o=Yd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Yd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?Jd(()=>s(i)):s},void 0,void 0)}function Lf(e){return e}const If=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Nf=new Set(["innerHTML","textContent","innerText","children"]),$f=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Df=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Wf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),zf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ff={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Uf="_$DX_DELEGATE";function Bf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function qf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Hf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Vf(e,t={},n,r){const o={};return Gd(()=>o.children=Jf(e,t.children,o.children)),Gd(()=>t.ref&&t.ref(e)),Gd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Zf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Zf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Kf(e,t,n){return Jd(()=>e(t,n))}function Gf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Jf(e,t,r,n);Gd(r=>Jf(e,t(),r,n),r)}function Qf(e){let t,n;return Rd.context&&(t=Rd.registry.get(n=function(){const e=Rd.context;return`${e.id}${e.count++}`}()))?(Rd.completed&&Rd.completed.add(t),Rd.registry.delete(n),t):e.cloneNode(!0)}function Yf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Zf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?qf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Yf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Yf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Wf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[Uf]||(t[Uf]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Xf))}}([o]))}else if((l=Nf.has(t))||!o&&(Df[t]||(s=If.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Hf(e,n):!a||s||l?e[Df[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Ff[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):qf(e,$f[t]||t,n)}var c;return n}function Xf(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Rd.registry&&!Rd.done&&(Rd.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Jf(e,t,n,r,o){for(Rd.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Rd.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=np(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Rd.context)return n;n=np(e,n,r)}else{if("function"===i)return Gd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=Jf(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(ep(i,t,n,o))return Gd(()=>n=Jf(e,i,n,r,!0)),()=>n;if(Rd.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=np(e,n,r),a)return n}else s?0===n.length?tp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&np(e),tp(e,i));n=i}else if(t instanceof Node){if(Rd.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=np(e,n,r,t);np(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function ep(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=ep(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=ep(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function tp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function np(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function rp(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function op(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Rd.context){const[t,n]=Vd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Vd(!1),n=()=>t(!0);Hd(t=>Gf(r,()=>e()?t():o()(),null)),tf(()=>{Rd.context?queueMicrotask(n):n()})}else{const i=rp(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Gf(a,o()),r.appendChild(i),e.ref&&e.ref(i),tf(()=>r.removeChild(i))}return n}function ip(e){const[t,n]=Rf(e,["component"]),r=Yd(()=>t.component);return Yd(()=>{const e=r();switch(typeof e){case"function":return Jd(()=>e(n));case"string":const t=zf.has(e),r=Rd.context?Qf():rp(e,t);return Vf(r,n,t),r}})}var ap=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(ap||{});let sp={data:""},lp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cp=/\/\*[^]*?\*\/| +/g,up=/\n+/g,dp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?dp(a,i):i+"{"+dp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=dp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=dp.p?dp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},fp={},pp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+pp(e[n]);return t}return e};function hp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=pp(e),a=fp[i]||(fp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!fp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=lp.exec(e.replace(cp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(up," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(up," ").trim();return r[0]})(e);fp[a]=dp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&fp.g?fp.g:null;return n&&(fp.g=fp[a]),l=fp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":dp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||sp),t.g,t.o,t.k);var r}hp.bind({g:1});let gp=hp.bind({k:1});const mp=rf();function yp(e){return Ef(mp.Provider,{value:e.theme,get children(){return e.children}})}function bp(){return of(mp)}function vp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Pf(r,{theme:of(mp)}),i=Pf(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,hp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Rf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Vf(u,l)):u=ip(Pf({component:c},l)),u};return r.class=e=>Jd(()=>hp.apply({target:t.target,p:e,g:t.g},n)),r}}const wp=new Proxy(vp,{get:(e,t)=>e(t)});function xp(){const e=vp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Cp="tc-root",kp="tc-disable-scroll",Sp="tc-using-mouse",Ep=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(Sp)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(Sp)});return Ef(xp`
|
|
2
2
|
${Cp} * {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
@@ -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.${Sp} ${Cp} *:focus {
|
|
38
38
|
outline: none;
|
|
39
39
|
}
|
|
40
|
-
`,{})};function _p(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 Tp(e){return e.toString()+"px"}const Pp=class{constructor(){Pd(this,"storage",{})}static getInstance(){return Pp.instance||(Pp.instance=new Pp),Pp.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}};let Ap=Pp;Pd(Ap,"instance");class Rp extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Rp.prototype)}}function Op(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function Mp(e,t="_self"){Op("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Lp(e){Mp(e,"_blank")}function jp(e,t){const n=setTimeout(()=>{Up("safari")||zp("android")&&Up("firefox")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),Mp(e,"_self")}function Ip(e){return Ad(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Np(e){"complete"!==document.readyState?window.addEventListener("load",()=>Ip(()=>Np(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function $p(){if("undefined"!=typeof window)return window}function Dp(){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 Rp("`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 Ap.getInstance()}function Wp(){var e,t,n;const r=(new Zl).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 zp(...e){return e.includes(Wp().os)}function Up(...e){return e.includes(Wp().browser)}function Fp(e,t){return t+new URL(e).search}class Bp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=Dp()}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 qp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=Dp()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Hp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=Dp()}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[Vp,Kp]=Vd({status:"closed",closeReason:null}),Gp=Yd(()=>"opened"===Vp().status),[Qp,Yp]=Vd({status:"closed",closeReason:null}),Zp=Yd(()=>"opened"===Qp().status),Xp=Yd(()=>{const e=Qp();return"opened"===e.status?e.walletInfo:null});let Jp="undefined"!=typeof window?new Hp:void 0;const[eh,th]=Vd((null==Jp?void 0:Jp.getLastSelectedWalletInfo())||null),nh=e=>{Jp||(Jp=new Hp),e?Jp.setLastSelectedWalletInfo(e):Jp.removeLastSelectedWalletInfo(),th(e)},[rh,oh]=Vd(null),ih={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",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",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"}},ah={en:sh({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",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",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:sh(ih)};function sh(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 lh=rf(),ch=Symbol("store-raw"),uh=Symbol("store-node"),dh=Symbol("store-name");function fh(e,t){let n=e[Od];if(!n&&(Object.defineProperty(e,Od,{value:n=new Proxy(e,vh)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function ph(e){let t;return null!=e&&"object"==typeof e&&(e[Od]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function hh(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[ch])return n;if(!ph(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=hh(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=hh(o,t))!==o&&(e[i]=r))}return e}function gh(e){let t=e[uh];return t||Object.defineProperty(e,uh,{value:t={}}),t}function mh(e,t,n){return e[t]||(e[t]=bh(n))}function yh(e){if(nf()){const t=gh(e);(t._||(t._=bh()))()}}function bh(e){const[t,n]=Vd(e,{equals:!1,internal:!0});return t.$=n,t}const vh={get(e,t,n){if(t===ch)return e;if(t===Od)return n;if(t===Md)return yh(e),n;const r=gh(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===uh||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!nf()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=mh(r,t,i)())}return ph(i)?fh(i):i},has(e,t){return t===ch||t===Od||t===Md||t===uh||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return yh(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Od&&t!==uh&&t!==dh?(delete n.value,delete n.writable,n.get=()=>e[Od][t],n):n}};function wh(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[t]=n;let a,s=gh(e);(a=mh(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i&&(a=mh(s,"length",i))&&a.$(e.length),(a=s._)&&a.$()}function xh(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];wh(e,o,t[o])}}function Ch(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++)Ch(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Ch(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)Ch(e,[r].concat(t),n);return}if(t.length>1)return void Ch(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=hh(i),void 0===r||ph(o)&&ph(i)&&!Array.isArray(i)?xh(o,i):wh(e,r,i))}function kh(...[e,t]){const n=hh(e||{}),r=Array.isArray(n);return[fh(n),function(...e){Xd(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=hh(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&&wh(e,n,r)}wh(e,"length",r)}else xh(e,t)}(n,e[0]):Ch(n,e)})}]}const Sh={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 Eh(e){return"[object Object]"===Object.prototype.toString.call(e)}function _h(e){var t,n;return!1!==Eh(e)&&(void 0===(t=e.constructor)||!1!==Eh(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Th(e,t){if(!e)return t;return ad(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:_h})}const[Ph,Ah]=kh({theme:ap.LIGHT,colors:Sh,borderRadius:"m"}),Rh={[ap.LIGHT]:Sh,[ap.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"}}},Oh={[ap.LIGHT]:void 0,[ap.DARK]:void 0};function Mh(e,t){t&&(Oh[ap.DARK]=Th(t[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(t[ap.LIGHT],Oh[ap.LIGHT])),Ah({theme:e,colors:Th(Oh[e],Rh[e])})}const Lh=wp.div`
|
|
40
|
+
`,{})};function _p(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 Tp(e){return e.toString()+"px"}const Ap=class{constructor(){Ad(this,"storage",{})}static getInstance(){return Ap.instance||(Ap.instance=new Ap),Ap.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}};let Pp=Ap;Ad(Pp,"instance");class Rp extends $c{constructor(...e){super(...e),Object.setPrototypeOf(this,Rp.prototype)}}function Op(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function Mp(e,t="_self"){Op("openLink",e,t),window.open(e,t,"noopener noreferrer")}function jp(e){Mp(e,"_blank")}function Lp(e,t){const n=setTimeout(()=>{Fp("safari")||zp("android")&&Fp("firefox")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),Mp(e,"_self")}function Ip(e){return Pd(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Np(e){"complete"!==document.readyState?window.addEventListener("load",()=>Ip(()=>Np(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function $p(){if("undefined"!=typeof window)return window}function Dp(){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 Rp("`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 Pp.getInstance()}function Wp(){var e,t,n;const r=(new Zl).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 zp(...e){return e.includes(Wp().os)}function Fp(...e){return e.includes(Wp().browser)}function Up(e,t){return t+new URL(e).search}class Bp{constructor(){Ad(this,"localStorage"),Ad(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=Dp()}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 qp{constructor(){Ad(this,"localStorage"),Ad(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=Dp()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Hp{constructor(){Ad(this,"localStorage"),Ad(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=Dp()}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[Vp,Kp]=Vd({status:"closed",closeReason:null}),Gp=Yd(()=>"opened"===Vp().status),[Qp,Yp]=Vd({status:"closed",closeReason:null}),Zp=Yd(()=>"opened"===Qp().status),Xp=Yd(()=>{const e=Qp();return"opened"===e.status?e.walletInfo:null});let Jp="undefined"!=typeof window?new Hp:void 0;const[eh,th]=Vd((null==Jp?void 0:Jp.getLastSelectedWalletInfo())||null),nh=e=>{Jp||(Jp=new Hp),e?Jp.setLastSelectedWalletInfo(e):Jp.removeLastSelectedWalletInfo(),th(e)},[rh,oh]=Vd(null),ih={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",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",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"}},ah={en:sh({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",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",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:sh(ih)};function sh(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 lh=rf(),ch=Symbol("store-raw"),uh=Symbol("store-node"),dh=Symbol("store-name");function fh(e,t){let n=e[Od];if(!n&&(Object.defineProperty(e,Od,{value:n=new Proxy(e,vh)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function ph(e){let t;return null!=e&&"object"==typeof e&&(e[Od]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function hh(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[ch])return n;if(!ph(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=hh(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=hh(o,t))!==o&&(e[i]=r))}return e}function gh(e){let t=e[uh];return t||Object.defineProperty(e,uh,{value:t={}}),t}function mh(e,t,n){return e[t]||(e[t]=bh(n))}function yh(e){if(nf()){const t=gh(e);(t._||(t._=bh()))()}}function bh(e){const[t,n]=Vd(e,{equals:!1,internal:!0});return t.$=n,t}const vh={get(e,t,n){if(t===ch)return e;if(t===Od)return n;if(t===Md)return yh(e),n;const r=gh(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===uh||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!nf()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=mh(r,t,i)())}return ph(i)?fh(i):i},has(e,t){return t===ch||t===Od||t===Md||t===uh||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return yh(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Od&&t!==uh&&t!==dh?(delete n.value,delete n.writable,n.get=()=>e[Od][t],n):n}};function wh(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[t]=n;let a,s=gh(e);(a=mh(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i&&(a=mh(s,"length",i))&&a.$(e.length),(a=s._)&&a.$()}function xh(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];wh(e,o,t[o])}}function Ch(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++)Ch(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Ch(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)Ch(e,[r].concat(t),n);return}if(t.length>1)return void Ch(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=hh(i),void 0===r||ph(o)&&ph(i)&&!Array.isArray(i)?xh(o,i):wh(e,r,i))}function kh(...[e,t]){const n=hh(e||{}),r=Array.isArray(n);return[fh(n),function(...e){Xd(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=hh(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&&wh(e,n,r)}wh(e,"length",r)}else xh(e,t)}(n,e[0]):Ch(n,e)})}]}const Sh={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 Eh(e){return"[object Object]"===Object.prototype.toString.call(e)}function _h(e){var t,n;return!1!==Eh(e)&&(void 0===(t=e.constructor)||!1!==Eh(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Th(e,t){if(!e)return t;return ad(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:_h})}const[Ah,Ph]=kh({theme:ap.LIGHT,colors:Sh,borderRadius:"m"}),Rh={[ap.LIGHT]:Sh,[ap.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"}}},Oh={[ap.LIGHT]:void 0,[ap.DARK]:void 0};function Mh(e,t){t&&(Oh[ap.DARK]=Th(t[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(t[ap.LIGHT],Oh[ap.LIGHT])),Ph({theme:e,colors:Th(Oh[e],Rh[e])})}const jh=wp.div`
|
|
41
41
|
background-color: ${e=>e.theme.colors.background.secondary};
|
|
42
|
-
`,
|
|
42
|
+
`,Lh=e=>{let t;const[n,r]=Vd(null);return Qd(()=>{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)))}),[Ef(Mf,{get when(){return n()},get children(){return n()}}),Ef(Mf,{get when(){return!n()},get children(){return Ef(jh,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let Ih={};try{Ih=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Hh(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=Hh(r),e=e.substr(n+1)}let r=function(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=Hh(r[0]),i=null==r[1]?null:Hh(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(lS){}let Nh="unknown";if((null==Ih?void 0:Ih.tgWebAppPlatform)&&(Nh=null!=(dd=Ih.tgWebAppPlatform)?dd:"unknown"),"unknown"===Nh){const e=$p();Nh=null!=(hd=null==(pd=null==(fd=null==e?void 0:e.Telegram)?void 0:fd.WebApp)?void 0:pd.platform)?hd:"unknown"}let $h="6.0";if((null==Ih?void 0:Ih.tgWebAppVersion)&&($h=Ih.tgWebAppVersion),!$h){const e=$p();$h=null!=(yd=null==(md=null==(gd=null==e?void 0:e.Telegram)?void 0:gd.WebApp)?void 0:md.version)?yd:"6.0"}function Dh(...e){return e.includes(Nh)}function Wh(){var e;return"unknown"!==Nh||!!(null==(e=$p())?void 0:e.TelegramWebviewProxy)}function zh(){var e;const t=!!(null==(e=$p())?void 0:e.TelegramWebview);return(Wh()||t)&&"unknown"===Nh}function Fh(){qh("web_app_expand",{})}function Uh(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Rp(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Rp(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Bh()||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}($h,"6.1")>=0?qh("web_app_open_tg_link",{path_full:r}):jp("https://t.me"+r)}function Bh(){try{const e=$p();return!!e&&(null!=e.parent&&e!==e.parent)}catch(lS){return!1}}function qh(e,t){try{const n=$p();if(!n)throw new Rp("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Op("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Op("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!Bh())throw new Rp("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Op("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(lS){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${lS}`)}}function Hh(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(lS){return e}}const Vh=440,Kh=1020;function Gh(e){const t=$p();if(!t)return"desktop"===e;if(Dh("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Kh;case"tablet":return n>Vh;default:return n<=Vh||zp("ios","android","ipad")}}function Qh(e){switch(e){case"mobile":return`@media (max-width: ${Vh}px)`;case"tablet":return`@media (max-width: ${Kh}px) (min-width: ${Vh}px)`;default:return`@media (min-width: ${Kh}px)`}}const Yh="@media (hover: none)",Zh="@media not all and (hover: none)",Xh={m:"100vh",s:"8px",none:"0"},Jh={s:.02,m:.04},eg=wp.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"};
|
|
@@ -75,7 +75,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
75
75
|
transform: ${e=>e.disabled?"unset":`scale(${1-2*Jh[e.scale]})`};
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
`;function tg(e){const t=Jd(()=>Object.keys(e).filter(e=>e.startsWith("data-"))),[n]=Rf(e,t);return n}const ng=e=>{const t=tg(e);return Ef(eg,
|
|
78
|
+
`;function tg(e){const t=Jd(()=>Object.keys(e).filter(e=>e.startsWith("data-"))),[n]=Rf(e,t);return n}const ng=e=>{const t=tg(e);return Ef(eg,Pf({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[Yd(()=>e.leftIcon),Yd(()=>e.children),Yd(()=>e.rightIcon)]}}))};function rg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const og=e=>{let t,n=!0;const[r,o]=Vd(),[i,a]=Vd(),s=af(()=>e.children),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:p}=e,h=Yd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}});function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...p),Xd(()=>{r()!==t&&o(t),i()===t&&a(void 0)}),u&&u(t),"inout"===e.mode&&m(t,s))};const d=h().enterClass.split(" "),f=h().enterActiveClass.split(" "),p=h().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),rg(()=>{t.classList.remove(...d),t.classList.add(...p),c&&c(t,()=>n()),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))})}s&&!e.mode?a(t):o(t)}function m(t,n){const i=h().exitClass.split(" "),a=h().exitActiveClass.split(" "),s=h().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),p&&p(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),rg(()=>{n.classList.remove(...i),n.classList.add(...s)}),f&&f(n,()=>l()),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return Kd(r=>{for(t=s();"function"==typeof t;)t=t();return Jd(()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t))}),[r,i]};function ig(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const ag=e=>{const t=af(()=>e.children),n=Yd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=Vd();let d=[],f=!0;return Kd(()=>{const e=t(),c=[...e],p=new Set(e),h=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),y=n().enterToClass.split(" "),b=n().exitClass.split(" "),v=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!h.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...y),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),rg(()=>{n.classList.remove(...g),n.classList.add(...y),o&&o(n,()=>e()),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))})}}for(let t=0;t<d.length;t++){const e=d[t];if(!p.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...v),e.classList.remove(...w),l&&l(e),d=d.filter(t=>t!==e),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...b),e.classList.add(...v),rg(()=>{e.classList.remove(...b),e.classList.add(...w)}),s&&s(e,()=>n()),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)}),Qd(e=>{const t=c();return t.forEach(t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=ig(t)):e.set(t,n={pos:ig(t),new:!f}),n.new&&t.addEventListener("transitionend",()=>{n.new=!1,t.parentNode&&(n.newPos=ig(t))},{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=ig(t)}),f?(f=!1,e):(t.forEach(t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}}),document.body.offsetHeight,t.forEach(t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}}),e)},new Map),c};const sg="androidBackHandler",lg={[sg]:!0},cg=Bf('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),ug={left:0,top:90,right:180,bottom:270},dg=e=>{const t=bp();return Ef(wp("svg")`
|
|
79
79
|
transform: rotate(${e=>ug[e.svgDirection]}deg);
|
|
80
80
|
transition: transform 0.1s ease-in-out;
|
|
81
81
|
`,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=cg.cloneNode(!0);return Gd(()=>qf(n,"fill",e.fill||t.colors.icon.secondary)),n}})},fg=Bf('<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.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z"></path></svg>'),pg=e=>{const t=bp();return(()=>{const n=fg.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},hg=wp.button`
|
|
@@ -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
|
-
`,gg=e=>{const t=tg(e),n=()=>e.icon||"close";return Ef(hg,
|
|
110
|
+
`,gg=e=>{const t=tg(e),n=()=>e.icon||"close";return Ef(hg,Pf({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[Ef(Mf,{get when(){return!!e.children},get children(){return e.children}}),Ef(Mf,{get when(){return!e.children},get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return"close"===n()},get children(){return Ef(pg,{get fill(){return e.fill}})}}),Ef(Lf,{get when(){return"arrow"===n()},get children(){return Ef(dg,{get fill(){return e.fill}})}}),Ef(Lf,{get when(){return"question"===n()},get children(){return Ef(Wm,{get fill(){return e.fill}})}}),Ef(Lf,{get when(){return"string"!=typeof n()},get children(){return n()}})]}})}})]}}))},mg={m:"24px",s:"16px",none:"0"},yg=wp.div`
|
|
111
111
|
display: flex;
|
|
112
112
|
position: fixed;
|
|
113
113
|
z-index: 1000;
|
|
@@ -159,7 +159,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
159
159
|
${e=>mg[e.theme.borderRadius]};
|
|
160
160
|
`,Cg=wp(gg)`
|
|
161
161
|
background-color: ${e=>_p(e.theme.colors.icon.secondary,.12)};
|
|
162
|
-
`;class kg{constructor(){
|
|
162
|
+
`;class kg{constructor(){Ad(this,"currentTime",0)}}const Sg=class{constructor(){Ad(this,"currentTime",0),Ad(this,"playbackRate",1),Ad(this,"startTime",null),Ad(this,"timeline",new kg),Ad(this,"finished",Promise.resolve(this)),Ad(this,"effect",null),Ad(this,"id",""),Ad(this,"pending",!1),Ad(this,"playState","finished"),Ad(this,"replaceState","active"),Ad(this,"ready",Promise.resolve(this)),Ad(this,"oncancel",null),Ad(this,"onfinish",null),Ad(this,"onremove",null)}static create(){return Sg._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(lS){}}("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."),Sg._instance=new Sg),Sg._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Eg=Sg;function _g(e,t,n){return"animate"in e?e.animate(t,n):Eg.create()}Ad(Eg,"_instance",null);const Tg=Bf("<div></div>"),Ag=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),tf(()=>document.body.removeEventListener("click",n))},Pg=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),tf(()=>document.body.removeEventListener("keydown",n))},Rg=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Wp().os))return;window.history.pushState(lg,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),tf(()=>{window.removeEventListener("popstate",o),Ip(()=>{var e;!0===(null==(e=window.history.state)?void 0:e[sg])&&window.history.back()})})},Og=e=>{const t=bp(),n=tg(e);return Qd(()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Tp(-document.documentElement.scrollTop),document.body.classList.add(kp)):(document.body.classList.remove(kp),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")}),Ef(og,{onBeforeEnter:e=>{const t=Gh("mobile")?200:100;_g(e,[{opacity:0},{opacity:1}],{duration:t}),Gh("mobile")&&_g(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Gh("mobile")?200:100,r=_g(e,[{opacity:1},{opacity:0}],{duration:n});if(Gh("mobile")){const o=_g(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 Ef(Mf,{get when(){return e.opened},get children(){return Ef(yg,Pf({"data-tc-modal":"true"},n,{get children(){const n=Tg.cloneNode(!0);return Kf(Rg,n,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Kf(Pg,n,()=>()=>e.onClose()),Kf(Ag,n,()=>()=>e.onClose()),Gf(n,Ef(vg,{get class(){return e.class},get children(){return[Ef(wg,{icon:"close",onClick:()=>e.onClose()}),Yd(()=>e.children)]}}),null),Gf(n,Ef(Mf,{get when(){return e.onClickQuestion&&e.showFooter},get children(){return Ef(xg,{get children(){return[Ef($m,{}),Ef(Cg,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Gd(()=>Hf(n,ud(bg,hp`
|
|
163
163
|
border-radius: ${mg[t.borderRadius]};
|
|
164
164
|
background-color: ${t.colors.background.tint};
|
|
165
165
|
|
|
@@ -167,7 +167,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
167
167
|
border-radius: ${mg[t.borderRadius]}
|
|
168
168
|
${mg[t.borderRadius]} 0 0;
|
|
169
169
|
}
|
|
170
|
-
`))),n}}))}})}})},Mg={m:"22px",s:"12px",none:"0"},
|
|
170
|
+
`))),n}}))}})}})},Mg={m:"22px",s:"12px",none:"0"},jg={m:"18px",s:"8px",none:"0"},Lg=wp.div`
|
|
171
171
|
display: grid;
|
|
172
172
|
grid-template: 1fr / 1fr 1fr;
|
|
173
173
|
width: fit-content;
|
|
@@ -187,7 +187,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
187
187
|
height: calc(100% - 8px);
|
|
188
188
|
width: calc(50% - 4px);
|
|
189
189
|
|
|
190
|
-
border-radius: ${e=>
|
|
190
|
+
border-radius: ${e=>jg[e.theme.borderRadius]};
|
|
191
191
|
background-color: ${e=>e.theme.colors.background.segment};
|
|
192
192
|
|
|
193
193
|
transform: ${e=>e.right?"translateX(100%)":"translateX(0)"};
|
|
@@ -222,7 +222,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
222
222
|
align-items: center;
|
|
223
223
|
justify-content: center;
|
|
224
224
|
transition: transform 0.125s ease-in-out;
|
|
225
|
-
`,
|
|
225
|
+
`,Fg=wp.button`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
228
|
justify-content: center;
|
|
@@ -258,7 +258,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
`,
|
|
261
|
+
`,Ug=wp.div`
|
|
262
262
|
position: relative;
|
|
263
263
|
display: flex;
|
|
264
264
|
justify-content: center;
|
|
@@ -287,7 +287,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
287
287
|
display: flex;
|
|
288
288
|
align-items: center;
|
|
289
289
|
justify-content: center;
|
|
290
|
-
`,qg=wp(
|
|
290
|
+
`,qg=wp(Lh)`
|
|
291
291
|
width: ${e=>Tp(e.size)};
|
|
292
292
|
height: ${e=>Tp(e.size)};
|
|
293
293
|
border-radius: ${e=>Wg[e.theme.borderRadius]};
|
|
@@ -307,14 +307,14 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
307
307
|
|
|
308
308
|
filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
|
|
309
309
|
background-color: ${e=>e.theme.colors.background.segment};
|
|
310
|
-
`;var Vg={exports:{}};!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=k(),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=S(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=k(),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 R(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+="<";break;case">":t+=">";break;case"&":t+="&";break;case'"':t+=""";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=A(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={};return 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},n}(),k=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},S=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},A=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},R=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}(Vg);const Kg=Vg.exports;function Gg(e){return Ad(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Rp("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(sS){}!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)})}const Qg=Bf("<div></div>"),Yg=e=>{let t,n,r;const[o,i]=Vd(!1),[a,s]=Vd(48);Qd(()=>{const o=Kg(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=Tp(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Tp(e),r.style.width=Tp(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return Ef(Ug,{get class(){return e.class},onClick:()=>{i(!0),Gg(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[Ef(Fg,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=Qg.cloneNode(!0);return"function"==typeof t?Kf(t,e):t=e,e})(),Ef(Mf,{get when(){return e.imageUrl},get children(){return Ef(Bg,{ref(e){"function"==typeof r?r(e):r=e},get children(){return Ef(qg,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Ef(og,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Ef(Mf,{get when(){return o()&&!e.disableCopy},get children(){return Ef(Hg,{get children(){return[Ef(Tm,{size:"xs"}),Ef(nm,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Ef(Mf,{get when(){return!e.disableCopy},get children(){return Ef(zg,{get children(){return Ef(sy,{})}})}})]}})};var Zg=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},Xg=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Vd(t),[o,i]=kh(e);return[(e,t,r)=>{const i=Zg(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>Zg(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>Zg(o,e)}]},Jg=rf({}),em=()=>of(Jg);const tm=wp.div`
|
|
310
|
+
`;var Vg={exports:{}};!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=k(),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=S(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=k(),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 R(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+="<";break;case">":t+=">";break;case"&":t+="&";break;case'"':t+=""";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=P(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={};return 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},n}(),k=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},S=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},A=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},P=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},R=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=A(),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=A();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}(Vg);const Kg=Vg.exports;function Gg(e){return Pd(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Rp("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(lS){}!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)})}const Qg=Bf("<div></div>"),Yg=e=>{let t,n,r;const[o,i]=Vd(!1),[a,s]=Vd(48);Qd(()=>{const o=Kg(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=Tp(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Tp(e),r.style.width=Tp(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return Ef(Fg,{get class(){return e.class},onClick:()=>{i(!0),Gg(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[Ef(Ug,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=Qg.cloneNode(!0);return"function"==typeof t?Kf(t,e):t=e,e})(),Ef(Mf,{get when(){return e.imageUrl},get children(){return Ef(Bg,{ref(e){"function"==typeof r?r(e):r=e},get children(){return Ef(qg,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Ef(og,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Ef(Mf,{get when(){return o()&&!e.disableCopy},get children(){return Ef(Hg,{get children(){return[Ef(Tm,{size:"xs"}),Ef(nm,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Ef(Mf,{get when(){return!e.disableCopy},get children(){return Ef(zg,{get children(){return Ef(sy,{})}})}})]}})};var Zg=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},Xg=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Vd(t),[o,i]=kh(e);return[(e,t,r)=>{const i=Zg(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>Zg(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>Zg(o,e)}]},Jg=rf({}),em=()=>of(Jg);const tm=wp.div`
|
|
311
311
|
font-style: normal;
|
|
312
312
|
font-weight: ${e=>e.fontWeight};
|
|
313
313
|
font-size: ${e=>e.fontSize};
|
|
314
314
|
line-height: ${e=>e.lineHeight};
|
|
315
315
|
|
|
316
316
|
color: ${e=>e.color};
|
|
317
|
-
`,nm=e=>{const t=bp(),[n]=em();let r;const o=
|
|
317
|
+
`,nm=e=>{const t=bp(),[n]=em();let r;const o=Pf({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return Qd(()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")}),Ef(tm,{get fontSize(){return o.fontSize},get fontWeight(){return o.fontWeight},get lineHeight(){return o.lineHeight},get color(){return e.color||t.colors.text.primary},get class(){return o.class},ref(e){"function"==typeof r?r(e):r=e},"data-tc-text":"true",get children(){var e;return Yd(()=>!!o.translationKey)()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},rm=wp.div`
|
|
318
318
|
position: relative;
|
|
319
319
|
|
|
320
320
|
&::after {
|
|
@@ -328,7 +328,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
328
328
|
border: 0.5px solid rgba(0, 0, 0, 0.08);
|
|
329
329
|
border-radius: inherit;
|
|
330
330
|
}
|
|
331
|
-
`,om=wp(
|
|
331
|
+
`,om=wp(Lh)`
|
|
332
332
|
width: 100%;
|
|
333
333
|
height: 100%;
|
|
334
334
|
border-radius: inherit;
|
|
@@ -393,7 +393,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
393
393
|
border-radius: ${e=>am[e.theme.borderRadius]};
|
|
394
394
|
margin-bottom: 8px;
|
|
395
395
|
position: relative;
|
|
396
|
-
`,dm=wp(
|
|
396
|
+
`,dm=wp(Lh)`
|
|
397
397
|
position: absolute;
|
|
398
398
|
right: -6px;
|
|
399
399
|
bottom: -6px;
|
|
@@ -462,7 +462,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
462
462
|
margin-bottom: 0;
|
|
463
463
|
|
|
464
464
|
cursor: default;
|
|
465
|
-
`,xm=e=>{const[t]=em();return Ef(wm,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return Yd(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Cm=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),km=e=>{const t=bp();return(()=>{const n=Cm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Sm=Bf('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Em=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),_m=Bf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Tm=e=>{const t=bp(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Yd((()=>{const o=Yd(()=>"xs"===n());return()=>o()?(()=>{const n=Sm.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&qf(n,"class",a._v$=s),l!==a._v$2&&qf(o,"fill",a._v$2=l),c!==a._v$3&&qf(i,"stroke",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Yd(()=>"s"===n());return()=>o()?(()=>{const n=Em.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&qf(n,"class",a._v$4=s),l!==a._v$5&&qf(o,"fill",a._v$5=l),c!==a._v$6&&qf(i,"fill",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=_m.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&qf(n,"class",a._v$7=s),l!==a._v$8&&qf(o,"fill",a._v$8=l),c!==a._v$9&&qf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},
|
|
465
|
+
`,xm=e=>{const[t]=em();return Ef(wm,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return Yd(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Cm=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),km=e=>{const t=bp();return(()=>{const n=Cm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Sm=Bf('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Em=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),_m=Bf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Tm=e=>{const t=bp(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Yd((()=>{const o=Yd(()=>"xs"===n());return()=>o()?(()=>{const n=Sm.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&qf(n,"class",a._v$=s),l!==a._v$2&&qf(o,"fill",a._v$2=l),c!==a._v$3&&qf(i,"stroke",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Yd(()=>"s"===n());return()=>o()?(()=>{const n=Em.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&qf(n,"class",a._v$4=s),l!==a._v$5&&qf(o,"fill",a._v$5=l),c!==a._v$6&&qf(i,"fill",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=_m.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&qf(n,"class",a._v$7=s),l!==a._v$8&&qf(o,"fill",a._v$8=l),c!==a._v$9&&qf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Am=Bf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Pm=Bf('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Rm=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),Om=e=>{const t=bp(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return Yd((()=>{const o=Yd(()=>"m"===n());return()=>o()?(()=>{const n=Am.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&qf(n,"class",a._v$=s),l!==a._v$2&&qf(o,"fill",a._v$2=l),c!==a._v$3&&qf(i,"fill",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Yd(()=>"s"===n());return()=>o()?(()=>{const n=Pm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&qf(n,"class",a._v$4=s),l!==a._v$5&&qf(o,"fill",a._v$5=l),c!==a._v$6&&qf(i,"stroke",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Rm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Gd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&qf(n,"class",a._v$7=s),l!==a._v$8&&qf(o,"fill",a._v$8=l),c!==a._v$9&&qf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Mm=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),jm=Bf('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),Lm=Bf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Im=e=>{const t=bp(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=hp`
|
|
466
466
|
animation: ${gp`
|
|
467
467
|
0% {
|
|
468
468
|
transform: rotate(0deg);
|
|
@@ -471,7 +471,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
471
471
|
transform: rotate(360deg);
|
|
472
472
|
}
|
|
473
473
|
`} 1s linear infinite;
|
|
474
|
-
`;return Yd((()=>{const t=Yd(()=>"xs"===n());return()=>t()?(()=>{const t=Mm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$&&qf(t,"class",i._v$=a),s!==i._v$2&&qf(n,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=Yd(()=>"s"===n());return()=>t()?(()=>{const t=Lm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$3&&qf(t,"class",i._v$3=a),s!==i._v$4&&qf(n,"fill",i._v$4=s),i},{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=jm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$5&&qf(t,"class",i._v$5=a),s!==i._v$6&&qf(n,"stroke",i._v$6=s),i},{_v$5:void 0,_v$6:void 0}),t})()})()})())},Nm=Bf('<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"></path></svg>'),$m=()=>{const e=bp();return(()=>{const t=Nm.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return Gd(()=>qf(n,"fill",e.theme===ap.DARK?e.colors.constant.white:e.colors.constant.black)),t})()},Dm=Bf('<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"></path></svg>'),Wm=e=>{const t=bp();return(()=>{const n=Dm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},zm=Bf('<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"></path></svg>'),Um=e=>{const t=bp();return(()=>{const n=zm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Fm=Bf('<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"></path></svg>'),Bm=e=>{const t=bp();return(()=>{const n=Fm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},qm=Bf('<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"></path></svg>'),Hm=e=>{const t=bp();return(()=>{const n=qm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Vm=Bf('<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)"></rect></clipPath></defs></svg>'),Km=e=>{const t=bp();return(()=>{const n=Vm.cloneNode(!0),r=n.firstChild.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Gm=Bf('<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"></path></svg>'),Qm=e=>{const t=bp();return(()=>{const n=Gm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Ym=Bf('<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)"></rect></clipPath></defs></svg>'),Zm=e=>{const t=bp();return(()=>{const n=Ym.cloneNode(!0),r=n.firstChild.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Xm=Bf('<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"></path></svg>'),Jm=e=>{const t=bp();return(()=>{const n=Xm.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ey=Bf('<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"></path></svg>'),ty=e=>{const t=bp();return(()=>{const n=ey.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ny=Bf('<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"></path></svg>'),ry=e=>{const t=bp();return(()=>{const n=ny.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},oy=Bf('<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"></path></svg>'),iy=e=>{const t=bp();return(()=>{const n=oy.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ay=Bf('<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"></path></svg>'),sy=e=>{const t=bp(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=ay.cloneNode(!0),t=e.firstChild;return Gd(r=>{const o=n(),i=n();return o!==r._v$&&qf(e,"fill",r._v$=o),i!==r._v$2&&qf(t,"fill",r._v$2=i),r},{_v$:void 0,_v$2:void 0}),e})()},ly=Bf('<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"></path></svg>'),cy=e=>{const t=bp();return(()=>{const n=ly.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},uy={m:"16px",s:"12px",none:"0"},dy={m:"6px",s:"6px",none:"0"},fy=wp.div`
|
|
474
|
+
`;return Yd((()=>{const t=Yd(()=>"xs"===n());return()=>t()?(()=>{const t=Mm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$&&qf(t,"class",i._v$=a),s!==i._v$2&&qf(n,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=Yd(()=>"s"===n());return()=>t()?(()=>{const t=jm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$3&&qf(t,"class",i._v$3=a),s!==i._v$4&&qf(n,"fill",i._v$4=s),i},{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=Lm.cloneNode(!0),n=t.firstChild;return Gd(i=>{const a=ud(o,e.class),s=r();return a!==i._v$5&&qf(t,"class",i._v$5=a),s!==i._v$6&&qf(n,"stroke",i._v$6=s),i},{_v$5:void 0,_v$6:void 0}),t})()})()})())},Nm=Bf('<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"></path></svg>'),$m=()=>{const e=bp();return(()=>{const t=Nm.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return Gd(()=>qf(n,"fill",e.theme===ap.DARK?e.colors.constant.white:e.colors.constant.black)),t})()},Dm=Bf('<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"></path></svg>'),Wm=e=>{const t=bp();return(()=>{const n=Dm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},zm=Bf('<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"></path></svg>'),Fm=e=>{const t=bp();return(()=>{const n=zm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Um=Bf('<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"></path></svg>'),Bm=e=>{const t=bp();return(()=>{const n=Um.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},qm=Bf('<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"></path></svg>'),Hm=e=>{const t=bp();return(()=>{const n=qm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.primary)),n})()},Vm=Bf('<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)"></rect></clipPath></defs></svg>'),Km=e=>{const t=bp();return(()=>{const n=Vm.cloneNode(!0),r=n.firstChild.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Gm=Bf('<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"></path></svg>'),Qm=e=>{const t=bp();return(()=>{const n=Gm.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Ym=Bf('<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)"></rect></clipPath></defs></svg>'),Zm=e=>{const t=bp();return(()=>{const n=Ym.cloneNode(!0),r=n.firstChild.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.accent)),n})()},Xm=Bf('<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"></path></svg>'),Jm=e=>{const t=bp();return(()=>{const n=Xm.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ey=Bf('<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"></path></svg>'),ty=e=>{const t=bp();return(()=>{const n=ey.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ny=Bf('<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"></path></svg>'),ry=e=>{const t=bp();return(()=>{const n=ny.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},oy=Bf('<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"></path></svg>'),iy=e=>{const t=bp();return(()=>{const n=oy.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},ay=Bf('<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"></path></svg>'),sy=e=>{const t=bp(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=ay.cloneNode(!0),t=e.firstChild;return Gd(r=>{const o=n(),i=n();return o!==r._v$&&qf(e,"fill",r._v$=o),i!==r._v$2&&qf(t,"fill",r._v$2=i),r},{_v$:void 0,_v$2:void 0}),e})()},ly=Bf('<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"></path></svg>'),cy=e=>{const t=bp();return(()=>{const n=ly.cloneNode(!0),r=n.firstChild;return Gd(()=>qf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},uy={m:"16px",s:"12px",none:"0"},dy={m:"6px",s:"6px",none:"0"},fy=wp.div`
|
|
475
475
|
width: 60px;
|
|
476
476
|
height: 60px;
|
|
477
477
|
padding: 8px;
|
|
@@ -517,7 +517,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
517
517
|
`,[xy,Cy]=Vd((null==(bd=$p())?void 0:bd.innerHeight)||0);$p()&&window.addEventListener("resize",()=>Cy(window.innerHeight));const[ky,Sy]=Vd(Gh("mobile")),Ey=()=>Sy(Gh("mobile"));$p()&&(window.addEventListener("resize",()=>Ey()),window.addEventListener("load",()=>Ey(),{once:!0}));const _y=e=>{const[t,n]=Vd(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:xy()-(ky()?150:200)+"px";return[Ef(wy,{get isShown(){return t()}}),Ef(vy,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Ty=wp.a`
|
|
518
518
|
display: block;
|
|
519
519
|
text-decoration: unset;
|
|
520
|
-
`,
|
|
520
|
+
`,Ay=e=>Ef(Ty,Pf({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},()=>e.blank?{rel:"noreferrer noopener"}:{},{get children(){return e.children}})),Py=rf(),Ry=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),Oy=e=>{const t=bp();return(()=>{const n=Ry.cloneNode(!0),r=n.firstChild;return Gd(o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&qf(n,"class",o._v$=i),a!==o._v$2&&qf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},My=Bf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),jy=e=>{const t=bp(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=My.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return Gd(e=>{const o=n(),i=n();return o!==e._v$&&qf(t,"fill",e._v$=o),i!==e._v$2&&qf(r,"fill",e._v$2=i),e},{_v$:void 0,_v$2:void 0}),e})()},Ly={m:"8px",s:"4px",none:"0"},Iy={m:"16px",s:"8px",none:"0"},Ny=wp.div`
|
|
521
521
|
width: 256px;
|
|
522
522
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
523
523
|
border-radius: ${e=>Iy[e.theme.borderRadius]};
|
|
@@ -538,7 +538,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
538
538
|
|
|
539
539
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
540
540
|
border: none;
|
|
541
|
-
border-radius: ${e=>
|
|
541
|
+
border-radius: ${e=>Ly[e.theme.borderRadius]};
|
|
542
542
|
cursor: pointer;
|
|
543
543
|
|
|
544
544
|
transition: background-color, transform 0.1s ease-in-out;
|
|
@@ -550,7 +550,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
550
550
|
&:active {
|
|
551
551
|
transform: scale(0.96);
|
|
552
552
|
}
|
|
553
|
-
`,Wy=Bf("<li></li>"),zy=e=>Ef(nm,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),
|
|
553
|
+
`,Wy=Bf("<li></li>"),zy=e=>Ef(nm,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),Fy={m:"16px",s:"8px",none:"0"},Uy=wp.div`
|
|
554
554
|
width: 256px;
|
|
555
555
|
padding: 12px 16px;
|
|
556
556
|
display: flex;
|
|
@@ -558,7 +558,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
558
558
|
|
|
559
559
|
background-color: ${e=>e.theme.colors.background.primary};
|
|
560
560
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
|
|
561
|
-
border-radius: ${e=>
|
|
561
|
+
border-radius: ${e=>Fy[e.theme.borderRadius]};
|
|
562
562
|
`,By=wp.div`
|
|
563
563
|
width: 192px;
|
|
564
564
|
|
|
@@ -568,9 +568,9 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
568
568
|
`,qy=wp(nm)`
|
|
569
569
|
margin-top: 4px;
|
|
570
570
|
color: ${e=>e.theme.colors.text.secondary};
|
|
571
|
-
`,Hy=e=>{const t=tg(e);return Ef(
|
|
571
|
+
`,Hy=e=>{const t=tg(e);return Ef(Uy,Pf({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[Ef(By,{get children(){return[Ef(xm,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),Ef(Mf,{get when(){return e.text},get children(){return Ef(qy,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Yd(()=>e.icon)]}}))},Vy=wp(Im)`
|
|
572
572
|
align-self: center;
|
|
573
|
-
`,Ky=e=>{const t=of(
|
|
573
|
+
`,Ky=e=>{const t=of(Py),[n]=em();return Ef(Hy,{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 Ef(Vy,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Gy=wp(Om)`
|
|
574
574
|
margin-top: 2px;
|
|
575
575
|
`,Qy=e=>Ef(Hy,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return Ef(Gy,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),Yy=wp(Tm)`
|
|
576
576
|
margin-top: 2px;
|
|
@@ -613,15 +613,15 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
613
613
|
display: flex;
|
|
614
614
|
flex-direction: column;
|
|
615
615
|
align-items: flex-end;
|
|
616
|
-
`,fb=wp(e=>{const t=of(
|
|
616
|
+
`,fb=wp(e=>{const t=of(Py),[n,r]=Vd(!1);return Ef(Ny,{ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return Ef($y,{get children(){return[(()=>{const e=Wy.cloneNode(!0);return Gf(e,Ef(Dy,{onClick:()=>Pd(void 0,null,function*(){const e=td(t.account.address,t.account.chain===Pc.TESTNET);yield Gg(e),r(!0),setTimeout(()=>r(!1),1e3)}),get children(){return[Ef(Oy,{}),Ef(Mf,{get when(){return!n()},get children(){return Ef(zy,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),Ef(Mf,{get when(){return n()},get children(){return Ef(zy,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=Wy.cloneNode(!0);return Gf(n,Ef(Dy,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[Ef(jy,{}),Ef(zy,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})})`
|
|
617
617
|
box-sizing: border-box;
|
|
618
618
|
overflow: hidden;
|
|
619
619
|
margin-top: 12px;
|
|
620
|
-
`,pb=wp(e=>{const t=nb();return(()=>{const n=ab.cloneNode(!0);return Gf(n,Ef(ag,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Ef(Of,{get each(){return t()},children:e=>Ef(
|
|
620
|
+
`,pb=wp(e=>{const t=nb();return(()=>{const n=ab.cloneNode(!0);return Gf(n,Ef(ag,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Ef(Of,{get each(){return t()},children:e=>Ef(jf,{get children(){return[Ef(Lf,{get when(){return"transaction-sent"===e.action},get children(){return Ef(Zy,{class:Xy})}}),Ef(Lf,{get when(){return"transaction-canceled"===e.action},get children(){return Ef(Qy,{class:Xy})}}),Ef(Lf,{get when(){return"data-signed"===e.action},get children(){return Ef(ib,{class:Xy})}}),Ef(Lf,{get when(){return"sign-data-canceled"===e.action},get children(){return Ef(ob,{class:Xy})}}),Ef(Lf,{get when(){return"confirm-transaction"===e.action||"confirm-sign-data"===e.action},get children(){return Ef(Ky,{class:Xy})}})]}})})}})),Gd(()=>Hf(n,e.class)),n})()})`
|
|
621
621
|
> div:first-child {
|
|
622
622
|
margin-top: 20px;
|
|
623
623
|
}
|
|
624
|
-
`;function hb(e){return e.split("-")[0]}function gb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(hb(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(hb(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function mb(e){return Td(_d({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function yb(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bb(e){return yb(e).getComputedStyle(e)}function vb(e){return Sb(e)?(e.nodeName||"").toLowerCase():""}let wb;function xb(){if(wb)return wb;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(wb=e.brands.map(e=>e.brand+"/"+e.version).join(" "),wb):navigator.userAgent}function Cb(e){return e instanceof yb(e).HTMLElement}function kb(e){return e instanceof yb(e).Element}function Sb(e){return e instanceof yb(e).Node}function Eb(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof yb(e).ShadowRoot||e instanceof ShadowRoot}function _b(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bb(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Tb(e){return["table","td","th"].includes(vb(e))}function Pb(e){const t=/firefox/i.test(xb()),n=bb(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(e=>n.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=n.contain;return null!=t&&t.includes(e)})}function Ab(){return!/^((?!chrome|android).)*safari/i.test(xb())}function Rb(e){return["html","body","#document"].includes(vb(e))}const Ob=Math.min,Mb=Math.max,Lb=Math.round,jb={x:1,y:1};function Ib(e){const t=!kb(e)&&e.contextElement?e.contextElement:kb(e)?e:null;if(!t)return jb;const n=t.getBoundingClientRect(),r=bb(t);if("border-box"!==r.boxSizing)return Cb(t)?{x:t.offsetWidth>0&&Lb(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Lb(n.height)/t.offsetHeight||1}:jb;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Nb(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=jb;t&&(r?kb(r)&&(c=Ib(r)):c=Ib(e));const u=kb(e)?yb(e):window,d=!Ab()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,p=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,h=l.width/c.x,g=l.height/c.y;return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}function $b(e){return((Sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Db(e){return kb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wb(e){return Nb($b(e)).left+Db(e).scrollLeft}function zb(e,t,n){const r=Cb(t),o=$b(t),i=Nb(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==vb(t)||_b(o))&&(a=Db(t)),Cb(t)){const e=Nb(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Wb(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Ub(e){if("html"===vb(e))return e;const t=e.assignedSlot||e.parentNode||(Eb(e)?e.host:null)||$b(e);return Eb(t)?t.host:t}function Fb(e){return Cb(e)&&"fixed"!==bb(e).position?e.offsetParent:null}function Bb(e){const t=yb(e);let n=Fb(e);for(;n&&Tb(n)&&"static"===bb(n).position;)n=Fb(n);return n&&("html"===vb(n)||"body"===vb(n)&&"static"===bb(n).position&&!Pb(n))?t:n||function(e){let t=Ub(e);for(;Cb(t)&&!Rb(t);){if(Pb(t))return t;t=Ub(t)}return null}(e)||t}function qb(e){const t=Ub(e);return Rb(t)?e.ownerDocument.body:Cb(t)&&_b(t)?t:qb(t)}function Hb(e,t){var n;void 0===t&&(t=[]);const r=qb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yb(r);return o?t.concat(i,i.visualViewport||[],_b(r)?r:[]):t.concat(r,Hb(r))}function Vb(e,t,n){return"viewport"===t?mb(function(e,t){const n=yb(e),r=$b(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=Ab();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):kb(t)?function(e,t){const n=Nb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Cb(e)?Ib(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):mb(function(e){var t;const n=$b(e),r=Db(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Mb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Wb(e);const l=-r.scrollTop;return"rtl"===bb(o||n).direction&&(s+=Mb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}($b(e)))}const Kb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Hb(e).filter(e=>kb(e)&&"body"!==vb(e)),o=null;const i="fixed"===bb(e).position;let a=i?Ub(e):e;for(;kb(a)&&!Rb(a);){const e=bb(a),t=Pb(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter(e=>e!==a),a=Ub(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Vb(t,n,o);return e.top=Mb(r.top,e.top),e.right=Ob(r.right,e.right),e.bottom=Ob(r.bottom,e.bottom),e.left=Mb(r.left,e.left),e},Vb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Cb(n),i=$b(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==vb(n)||_b(i))&&(a=Db(n)),Cb(n))){const e=Nb(n);s=Ib(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:kb,getDimensions:function(e){if(Cb(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Nb(e);return{width:t.width,height:t.height}},getOffsetParent:Bb,getDocumentElement:$b,getScale:Ib,getElementRects(e){return Ad(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Bb,i=this.getDimensions;return{reference:zb(t,yield o(n),r),floating:_d({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===bb(e).direction};function Gb(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...kb(e)?Hb(e):e.contextElement?Hb(e.contextElement):[],...Hb(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let u,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),kb(e)&&!s&&d.observe(e),kb(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Nb(e):null;return s&&function t(){const r=Nb(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const Qb=(e,t,n)=>{const r=new Map,o=_d({platform:Kb},n),i=Td(_d({},o.platform),{_c:r});return((e,t,n)=>Ad(void 0,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);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gb(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=Td(_d({},p),{[i]:_d(_d({},p[i]),b)}),"production"!=={}.NODE_ENV&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),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}=gb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,Td(_d({},o),{platform:i}))};const Yb=Bf('<tc-root data-tc-dropdown-container="true"></tc-root>'),Zb=()=>{const e=bp(),t=of(lh),n=of(Ay),[r,o]=Vd(!1),[i,a]=Vd(t.account),[s,l]=Vd(!t.account);let c;const[u,d]=Vd(),[f,p]=Vd(),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]=Vd({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Vd();Qd(()=>{let e=s();if(e)throw e.value});let c=Yd(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Qb(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Qd(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&tf(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:Gb,placement:"bottom-end"});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 ef(()=>{document.body.addEventListener("click",m)}),tf(()=>{document.body.removeEventListener("click",m),g()}),Ef(ip,{component:Cp,get children(){return[Ef(Mf,{get when(){return s()},get children(){return Ef(cb,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(ub,{})}})}}),Ef(Mf,{get when(){return!s()},get children(){return[Ef(Mf,{get when(){return!i()},get children(){return Ef(sb,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Ef(km,{get fill(){return e.colors.connectButton.foreground}}),Ef(nm,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Ef(Mf,{get when(){return i()},get children(){return Ef(db,{get children(){return[Ef(lb,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Ef(nm,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=td(e.address,e.chain===Ac.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),Ef(dg,{direction:"bottom"})]}}),Ef(op,{get children(){const e=Jd(()=>document.importNode(Yb,!0));return Kf(d,e),e.style.setProperty("z-index","999"),e._$owner=Wd,Gf(e,Ef(og,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Ef(Mf,{get when(){return r()},get children(){return Ef(fb,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Gf(e,Ef(pb,{}),null),Gd(t=>{var n,r;const o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t},{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},Xb=wp(Og)`
|
|
624
|
+
`;function hb(e){return e.split("-")[0]}function gb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(hb(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(hb(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function mb(e){return Td(_d({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function yb(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bb(e){return yb(e).getComputedStyle(e)}function vb(e){return Sb(e)?(e.nodeName||"").toLowerCase():""}let wb;function xb(){if(wb)return wb;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(wb=e.brands.map(e=>e.brand+"/"+e.version).join(" "),wb):navigator.userAgent}function Cb(e){return e instanceof yb(e).HTMLElement}function kb(e){return e instanceof yb(e).Element}function Sb(e){return e instanceof yb(e).Node}function Eb(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof yb(e).ShadowRoot||e instanceof ShadowRoot}function _b(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bb(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Tb(e){return["table","td","th"].includes(vb(e))}function Ab(e){const t=/firefox/i.test(xb()),n=bb(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(e=>n.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=n.contain;return null!=t&&t.includes(e)})}function Pb(){return!/^((?!chrome|android).)*safari/i.test(xb())}function Rb(e){return["html","body","#document"].includes(vb(e))}const Ob=Math.min,Mb=Math.max,jb=Math.round,Lb={x:1,y:1};function Ib(e){const t=!kb(e)&&e.contextElement?e.contextElement:kb(e)?e:null;if(!t)return Lb;const n=t.getBoundingClientRect(),r=bb(t);if("border-box"!==r.boxSizing)return Cb(t)?{x:t.offsetWidth>0&&jb(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&jb(n.height)/t.offsetHeight||1}:Lb;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Nb(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Lb;t&&(r?kb(r)&&(c=Ib(r)):c=Ib(e));const u=kb(e)?yb(e):window,d=!Pb()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,p=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,h=l.width/c.x,g=l.height/c.y;return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}function $b(e){return((Sb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Db(e){return kb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wb(e){return Nb($b(e)).left+Db(e).scrollLeft}function zb(e,t,n){const r=Cb(t),o=$b(t),i=Nb(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==vb(t)||_b(o))&&(a=Db(t)),Cb(t)){const e=Nb(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Wb(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Fb(e){if("html"===vb(e))return e;const t=e.assignedSlot||e.parentNode||(Eb(e)?e.host:null)||$b(e);return Eb(t)?t.host:t}function Ub(e){return Cb(e)&&"fixed"!==bb(e).position?e.offsetParent:null}function Bb(e){const t=yb(e);let n=Ub(e);for(;n&&Tb(n)&&"static"===bb(n).position;)n=Ub(n);return n&&("html"===vb(n)||"body"===vb(n)&&"static"===bb(n).position&&!Ab(n))?t:n||function(e){let t=Fb(e);for(;Cb(t)&&!Rb(t);){if(Ab(t))return t;t=Fb(t)}return null}(e)||t}function qb(e){const t=Fb(e);return Rb(t)?e.ownerDocument.body:Cb(t)&&_b(t)?t:qb(t)}function Hb(e,t){var n;void 0===t&&(t=[]);const r=qb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yb(r);return o?t.concat(i,i.visualViewport||[],_b(r)?r:[]):t.concat(r,Hb(r))}function Vb(e,t,n){return"viewport"===t?mb(function(e,t){const n=yb(e),r=$b(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=Pb();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):kb(t)?function(e,t){const n=Nb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Cb(e)?Ib(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):mb(function(e){var t;const n=$b(e),r=Db(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Mb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Wb(e);const l=-r.scrollTop;return"rtl"===bb(o||n).direction&&(s+=Mb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}($b(e)))}const Kb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Hb(e).filter(e=>kb(e)&&"body"!==vb(e)),o=null;const i="fixed"===bb(e).position;let a=i?Fb(e):e;for(;kb(a)&&!Rb(a);){const e=bb(a),t=Ab(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter(e=>e!==a),a=Fb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Vb(t,n,o);return e.top=Mb(r.top,e.top),e.right=Ob(r.right,e.right),e.bottom=Ob(r.bottom,e.bottom),e.left=Mb(r.left,e.left),e},Vb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Cb(n),i=$b(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==vb(n)||_b(i))&&(a=Db(n)),Cb(n))){const e=Nb(n);s=Ib(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:kb,getDimensions:function(e){if(Cb(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Nb(e);return{width:t.width,height:t.height}},getOffsetParent:Bb,getDocumentElement:$b,getScale:Ib,getElementRects(e){return Pd(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Bb,i=this.getDimensions;return{reference:zb(t,yield o(n),r),floating:_d({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===bb(e).direction};function Gb(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...kb(e)?Hb(e):e.contextElement?Hb(e.contextElement):[],...Hb(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let u,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),kb(e)&&!s&&d.observe(e),kb(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Nb(e):null;return s&&function t(){const r=Nb(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const Qb=(e,t,n)=>{const r=new Map,o=_d({platform:Kb},n),i=Td(_d({},o.platform),{_c:r});return((e,t,n)=>Pd(void 0,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);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gb(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=Td(_d({},p),{[i]:_d(_d({},p[i]),b)}),"production"!=={}.NODE_ENV&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),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}=gb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,Td(_d({},o),{platform:i}))};const Yb=Bf('<tc-root data-tc-dropdown-container="true"></tc-root>'),Zb=()=>{const e=bp(),t=of(lh),n=of(Py),[r,o]=Vd(!1),[i,a]=Vd(t.account),[s,l]=Vd(!t.account);let c;const[u,d]=Vd(),[f,p]=Vd(),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]=Vd({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Vd();Qd(()=>{let e=s();if(e)throw e.value});let c=Yd(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Qb(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Qd(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&tf(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:Gb,placement:"bottom-end"});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 ef(()=>{document.body.addEventListener("click",m)}),tf(()=>{document.body.removeEventListener("click",m),g()}),Ef(ip,{component:Cp,get children(){return[Ef(Mf,{get when(){return s()},get children(){return Ef(cb,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(ub,{})}})}}),Ef(Mf,{get when(){return!s()},get children(){return[Ef(Mf,{get when(){return!i()},get children(){return Ef(sb,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Ef(km,{get fill(){return e.colors.connectButton.foreground}}),Ef(nm,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Ef(Mf,{get when(){return i()},get children(){return Ef(db,{get children(){return[Ef(lb,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Ef(nm,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=td(e.address,e.chain===Pc.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),Ef(dg,{direction:"bottom"})]}}),Ef(op,{get children(){const e=Jd(()=>document.importNode(Yb,!0));return Kf(d,e),e.style.setProperty("z-index","999"),e._$owner=Wd,Gf(e,Ef(og,{onBeforeEnter:e=>{_g(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{_g(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Ef(Mf,{get when(){return r()},get children(){return Ef(fb,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Gf(e,Ef(pb,{}),null),Gd(t=>{var n,r;const o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t},{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},Xb=wp(Og)`
|
|
625
625
|
padding-left: 24px;
|
|
626
626
|
padding-right: 24px;
|
|
627
627
|
padding-top: 18px;
|
|
@@ -651,7 +651,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
651
651
|
min-width: 84px;
|
|
652
652
|
text-align: center;
|
|
653
653
|
font-weight: 590;
|
|
654
|
-
`,wp(e=>{const t="tabBar"+Math.floor(1e4*Math.random());return Ef(
|
|
654
|
+
`,wp(e=>{const t="tabBar"+Math.floor(1e4*Math.random());return Ef(Lg,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[Ef(Ig,{get right(){return 1===e.selectedTabIndex}}),Ef($g,{get isActive(){return 0===e.selectedTabIndex},get children(){return[Ef(Ng,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),Yd(()=>e.tab1)]}}),Ef($g,{get isActive(){return 1===e.selectedTabIndex},get children(){return[Ef(Ng,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),Yd(()=>e.tab2)]}})]}})})`
|
|
655
655
|
margin: 0 auto 22px;
|
|
656
656
|
`;const[tv,nv]=kh({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function rv(e){return"jsBridgeKey"in e?Td(_d({},e),{injected:ed.isWalletInjected(e.jsBridgeKey),embedded:ed.isInsideWalletBrowser(e.jsBridgeKey)}):e}function ov(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(rv),e=o.map(e=>{const t=i.find(t=>t[r]===e[r]);return i=i.filter(t=>t[r]!==e[r]),void 0===t?e:t}).concat(i)),e):e}function iv(e){return e.platforms.some(e=>["macos","linux","windows"].includes(e))}function av(e){return e.platforms.some(e=>["ios","android"].includes(e))}function sv(e){return e.platforms.some(e=>["chrome","firefox","safari"].includes(e))}function lv(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const cv=wp.div`
|
|
657
657
|
display: flex;
|
|
@@ -764,11 +764,11 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
764
764
|
`,Tv=wp(ym)`
|
|
765
765
|
max-width: 288px;
|
|
766
766
|
margin: 0 auto 2px;
|
|
767
|
-
`,
|
|
767
|
+
`,Av=wp(vm)`
|
|
768
768
|
max-width: 288px;
|
|
769
769
|
text-align: center;
|
|
770
770
|
margin: 0 auto 20px;
|
|
771
|
-
`,
|
|
771
|
+
`,Pv=wp(gg)`
|
|
772
772
|
position: absolute;
|
|
773
773
|
top: 16px;
|
|
774
774
|
left: 16px;
|
|
@@ -781,10 +781,10 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
781
781
|
padding-bottom: 0;
|
|
782
782
|
`,Mv=wp(ng)`
|
|
783
783
|
margin-bottom: 24px;
|
|
784
|
-
`,
|
|
784
|
+
`,jv=wp(Im)`
|
|
785
785
|
margin-bottom: 18px;
|
|
786
786
|
margin-top: 2px;
|
|
787
|
-
`,
|
|
787
|
+
`,Lv=wp(Om)`
|
|
788
788
|
margin-bottom: 16px;
|
|
789
789
|
`,Iv=wp(vm)`
|
|
790
790
|
color: ${e=>e.theme.colors.text.secondary};
|
|
@@ -798,11 +798,11 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
798
798
|
border-radius: ${e=>Cv[e.theme.borderRadius]};
|
|
799
799
|
font-size: 16px;
|
|
800
800
|
line-height: 20px;
|
|
801
|
-
`,$v=wp(
|
|
801
|
+
`,$v=wp(Lh)`
|
|
802
802
|
width: 32px;
|
|
803
803
|
height: 32px;
|
|
804
804
|
border-radius: ${e=>kv[e.theme.borderRadius]};
|
|
805
|
-
`,Dv=e=>{const[t]=em();return Yd(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function Wv(e,t){let n;n="string"==typeof t?t:Wh()?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(!lu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+cu(o)}function zv(e,t){t=_d({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),zh()){t.returnStrategy="back";Lp(Wv(r.toString(),t.returnStrategy))}else if(Wh())if(Dh("ios","android","macos","tdesktop","web")){t.returnStrategy="back";Fh(Wv(r.toString(),t.returnStrategy))}else Dh("weba")?Fh(Wv(r.toString(),t)):Lp(Wv(r.toString(),t));else if(zp("ios")){"back"===t.returnStrategy&&(Up("safari")?t.returnStrategy="back":Up("chrome")?t.returnStrategy="googlechrome://":Up("firefox")?t.returnStrategy="firefox://":Up("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Up("chrome"),n=Up("firefox");if((e||n)&&!t.forceRedirect){const e=Wv(r.toString(),t.returnStrategy);jp(Fv(e),()=>Lp(e))}else{Lp(Wv(r.toString(),t.returnStrategy))}}else if(zp("android")){t.returnStrategy="back";const e=Up("chrome"),n=Up("firefox");if((e||n)&&!t.forceRedirect){const e=Wv(r.toString(),t.returnStrategy);jp(Fv(e),()=>Lp(e))}else{Lp(Wv(r.toString(),t.returnStrategy))}}else if(zp("ipad")){"back"===t.returnStrategy&&(Up("safari")?t.returnStrategy="back":Up("chrome")?t.returnStrategy="googlechrome://":Up("firefox")?t.returnStrategy="firefox://":Up("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Up("chrome"),n=Up("firefox"),o=(e||n)&&!t.forceRedirect,i=Wv(r.toString(),t.returnStrategy);if(o){jp(Fv(i),()=>Lp(i))}else Lp(i)}else if(zp("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Wv(r.toString(),t.returnStrategy);if(t.forceRedirect)Lp(e);else{jp(Fv(e),()=>Lp(e))}}else Lp(Wv(r.toString(),t))}function Uv(e,t,n,r){if(n=_d({},n),zh())if(zp("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self");else{r("universal-link");Lp(Wv(e,n.returnStrategy))}else if(Wh())if(Dh("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Wv(e,n.returnStrategy);Fh(t,()=>{r("universal-link"),Lp(t)})}else if(Dh("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),jp(Fp(o,t),()=>{r("universal-link"),Lp(o)})):(r("universal-link"),Lp(o))}else if(Dh("weba")){"back"===n.returnStrategy&&(Up("safari")?n.returnStrategy=location.href:Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),jp(Fp(o,t),()=>{r("universal-link"),Lp(o)})):(r("universal-link"),Lp(o))}else if(Dh("web")){"back"===n.returnStrategy&&(Up("safari")?n.returnStrategy=location.href:Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),jp(Fp(o,t),()=>{r("universal-link"),Lp(o)})):(r("universal-link"),Lp(o))}else{r("universal-link");Lp(Wv(e,n.returnStrategy))}else if(zp("ios"))"back"===n.returnStrategy&&(Up("safari")?n.returnStrategy="none":Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Up("chrome")?(r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self")):(r("universal-link"),Lp(Wv(e,n.returnStrategy)));else if(zp("android"))"back"===n.returnStrategy&&(Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Lp(Wv(e,n.returnStrategy));else if(zp("ipad"))"back"===n.returnStrategy&&(Up("safari")?n.returnStrategy="none":Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Up("chrome")?(r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self")):(r("universal-link"),Lp(Wv(e,n.returnStrategy)));else if(zp("macos","windows","linux")){"back"===n.returnStrategy&&(Up("safari")?n.returnStrategy="none":Up("chrome")?n.returnStrategy="googlechrome://":Up("firefox")?n.returnStrategy="firefox://":Up("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),jp(Fp(o,t),()=>{r("universal-link"),Lp(o)})):(r("universal-link"),Lp(o))}else r("universal-link"),Lp(Wv(e,n.returnStrategy))}function Fv(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Bv=e=>{const[t,n]=Vd("mobile"),[r,o]=Vd(null);Qd(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Vd(),[s,l]=Vd(!0),c=of(lh);tf(c.onStatusChange(()=>{},t=>{t instanceof Hc?o("missing-features"):e.wallet.appName!==gy&&o("connection-declined")}));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(sS){}};Qd(()=>{"extension"!==Jd(t)&&(av(e.wallet)||iv(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),nh(Td(_d({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),lu(i()))p();else{const t=!s();l(!1),Uv(i(),e.wallet.deepLink,{returnStrategy:tv.returnStrategy,forceRedirect:t},t=>{nh(Td(_d({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),nh(Td(_d({},e.wallet),{openMethod:"universal-link"})),zv(i(),{returnStrategy:tv.returnStrategy,twaReturnUrl:tv.twaReturnUrl,forceRedirect:t})},h=()=>{o(null),n("extension"),Tu(e.wallet)&&(nh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return av(e.wallet)?d():sv(e.wallet)?h():f(),Ef(Sv,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Ef(Mf,{get when(){return!e.backDisabled},get children(){return Ef(Av,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Ef(Tv,{get children(){return e.wallet.name}}),Ef(Mf,{get when(){return Yd(()=>"mobile"===t())()&&!r()},get children(){return Ef(Pv,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Yd(()=>e.wallet.name),"’s camera"]}})}}),Ef(Ev,{get qr(){return"mobile"===t()},get children(){return Ef(Lf,{get children(){return[Ef(jf,{get when(){return r()},get children(){return[Ef(jv,{size:"s"}),Ef(Lf,{get children(){return[Ef(jf,{get when(){return"missing-features"===r()},get children(){return Ef(Iv,{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"})}}),Ef(jf,{get when(){return"connection-declined"===r()},get children(){return Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),Ef(jf,{get when(){return"not-supported"===r()},get children(){return Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Yd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Ef(Rv,{get children(){return[Ef(Mf,{get when(){return"not-supported"!==r()},get children(){return Ef(ng,{get leftIcon(){return Ef(Km,{})},get onClick(){return"extension"===t()?h:f},get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}})}}),Ef(Mf,{get when(){return"missing-features"===r()},get children(){return Ef(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get leftIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Yd(()=>e.wallet.name)]}})}})}})}}),Ef(Mf,{get when(){return"not-supported"===r()},get children(){return Ef(ng,{onClick:()=>e.onBackClick(),get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),Ef(jf,{get when(){return"mobile"===t()},get children(){return Ef(_v,{disableCopy:!1,get sourceUrl(){return Wv(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Ef(jf,{get when(){return"extension"===t()},get children(){return[Ef(Mf,{get when(){return Tu(e.wallet)},get children(){return[Ef(Lv,{size:"s"}),Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Yd(()=>e.wallet.name)," browser extension…"]}}),Ef(Rv,{get children(){return Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Ef(Mf,{get when(){return!Tu(e.wallet)},get children(){return[Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Yd(()=>e.wallet.name)," browser extension"]}}),Ef(Rv,{get children(){return Ef(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get rightIcon(){return Ef(Qm,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Yd(()=>e.wallet.name)]}})}})}})}})]}})]}}),Ef(jf,{get when(){return"desktop"===t()},get children(){return[Ef(Im,{size:"m"}),Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Yd(()=>e.wallet.name)," on desktop…"]}}),Ef(Rv,{get children(){return[Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:f,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}}),Ef(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get rightIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Yd(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),Ef(Mf,{get when(){return e.wallet.appName===gy},get children(){return Ef(Nv,{get rightIcon(){return Ef($v,{get src(){return yy}})},scale:"s",onClick:p,get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Ef(Mf,{get when(){return e.wallet.appName!==gy},get children(){return Ef(Ov,{get children(){return[Ef(Mf,{get when(){return Yd(()=>"mobile"!==t())()&&av(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Bm,{})},onClick:d,get children(){return Ef(Dv,{translationKey:"common.mobile",children:"Mobile"})}})}}),Ef(Mf,{get when(){return Yd(()=>"extension"!==t())()&&sv(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Um,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Ef(Mf,{get when(){return Yd(()=>"desktop"!==t())()&&iv(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Hm,{})},onClick:f,get children(){return Ef(Dv,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},qv=wp.div``,Hv=wp(gg)`
|
|
805
|
+
`,Dv=e=>{const[t]=em();return Yd(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function Wv(e,t){let n;n="string"==typeof t?t:Wh()?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(!lu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+cu(o)}function zv(e,t){t=_d({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),zh()){t.returnStrategy="back";jp(Wv(r.toString(),t.returnStrategy))}else if(Wh())if(Dh("ios","android","macos","tdesktop","web")){t.returnStrategy="back";Uh(Wv(r.toString(),t.returnStrategy))}else Dh("weba")?Uh(Wv(r.toString(),t)):jp(Wv(r.toString(),t));else if(zp("ios")){"back"===t.returnStrategy&&(Fp("safari")?t.returnStrategy="back":Fp("chrome")?t.returnStrategy="googlechrome://":Fp("firefox")?t.returnStrategy="firefox://":Fp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Fp("chrome"),n=Fp("firefox");if((e||n)&&!t.forceRedirect){const e=Wv(r.toString(),t.returnStrategy);Lp(Uv(e),()=>jp(e))}else{jp(Wv(r.toString(),t.returnStrategy))}}else if(zp("android")){t.returnStrategy="back";const e=Fp("chrome"),n=Fp("firefox");if((e||n)&&!t.forceRedirect){const e=Wv(r.toString(),t.returnStrategy);Lp(Uv(e),()=>jp(e))}else{jp(Wv(r.toString(),t.returnStrategy))}}else if(zp("ipad")){"back"===t.returnStrategy&&(Fp("safari")?t.returnStrategy="back":Fp("chrome")?t.returnStrategy="googlechrome://":Fp("firefox")?t.returnStrategy="firefox://":Fp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Fp("chrome"),n=Fp("firefox"),o=(e||n)&&!t.forceRedirect,i=Wv(r.toString(),t.returnStrategy);if(o){Lp(Uv(i),()=>jp(i))}else jp(i)}else if(zp("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Wv(r.toString(),t.returnStrategy);if(t.forceRedirect)jp(e);else{Lp(Uv(e),()=>jp(e))}}else jp(Wv(r.toString(),t))}function Fv(e,t,n,r){if(n=_d({},n),zh())if(zp("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self");else{r("universal-link");jp(Wv(e,n.returnStrategy))}else if(Wh())if(Dh("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Wv(e,n.returnStrategy);Uh(t,()=>{r("universal-link"),jp(t)})}else if(Dh("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Lp(Up(o,t),()=>{r("universal-link"),jp(o)})):(r("universal-link"),jp(o))}else if(Dh("weba")){"back"===n.returnStrategy&&(Fp("safari")?n.returnStrategy=location.href:Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Lp(Up(o,t),()=>{r("universal-link"),jp(o)})):(r("universal-link"),jp(o))}else if(Dh("web")){"back"===n.returnStrategy&&(Fp("safari")?n.returnStrategy=location.href:Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Lp(Up(o,t),()=>{r("universal-link"),jp(o)})):(r("universal-link"),jp(o))}else{r("universal-link");jp(Wv(e,n.returnStrategy))}else if(zp("ios"))"back"===n.returnStrategy&&(Fp("safari")?n.returnStrategy="none":Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Fp("chrome")?(r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self")):(r("universal-link"),jp(Wv(e,n.returnStrategy)));else if(zp("android"))"back"===n.returnStrategy&&(Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),jp(Wv(e,n.returnStrategy));else if(zp("ipad"))"back"===n.returnStrategy&&(Fp("safari")?n.returnStrategy="none":Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Fp("chrome")?(r("universal-link"),Mp(Wv(e,n.returnStrategy),"_self")):(r("universal-link"),jp(Wv(e,n.returnStrategy)));else if(zp("macos","windows","linux")){"back"===n.returnStrategy&&(Fp("safari")?n.returnStrategy="none":Fp("chrome")?n.returnStrategy="googlechrome://":Fp("firefox")?n.returnStrategy="firefox://":Fp("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Wv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Lp(Up(o,t),()=>{r("universal-link"),jp(o)})):(r("universal-link"),jp(o))}else r("universal-link"),jp(Wv(e,n.returnStrategy))}function Uv(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Bv=e=>{const[t,n]=Vd("mobile"),[r,o]=Vd(null);Qd(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Vd(),[s,l]=Vd(!0),c=of(lh);tf(c.onStatusChange(()=>{},t=>{t instanceof Hc?o("missing-features"):e.wallet.appName!==gy&&o("connection-declined")}));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(lS){}};Qd(()=>{"extension"!==Jd(t)&&(av(e.wallet)||iv(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),nh(Td(_d({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),lu(i()))p();else{const t=!s();l(!1),Fv(i(),e.wallet.deepLink,{returnStrategy:tv.returnStrategy,forceRedirect:t},t=>{nh(Td(_d({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),nh(Td(_d({},e.wallet),{openMethod:"universal-link"})),zv(i(),{returnStrategy:tv.returnStrategy,twaReturnUrl:tv.twaReturnUrl,forceRedirect:t})},h=()=>{o(null),n("extension"),Tu(e.wallet)&&(nh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return av(e.wallet)?d():sv(e.wallet)?h():f(),Ef(Sv,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Ef(Mf,{get when(){return!e.backDisabled},get children(){return Ef(Pv,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Ef(Tv,{get children(){return e.wallet.name}}),Ef(Mf,{get when(){return Yd(()=>"mobile"===t())()&&!r()},get children(){return Ef(Av,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Yd(()=>e.wallet.name),"’s camera"]}})}}),Ef(Ev,{get qr(){return"mobile"===t()},get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return r()},get children(){return[Ef(Lv,{size:"s"}),Ef(jf,{get children(){return[Ef(Lf,{get when(){return"missing-features"===r()},get children(){return Ef(Iv,{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"})}}),Ef(Lf,{get when(){return"connection-declined"===r()},get children(){return Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),Ef(Lf,{get when(){return"not-supported"===r()},get children(){return Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Yd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Ef(Rv,{get children(){return[Ef(Mf,{get when(){return"not-supported"!==r()},get children(){return Ef(ng,{get leftIcon(){return Ef(Km,{})},get onClick(){return"extension"===t()?h:f},get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}})}}),Ef(Mf,{get when(){return"missing-features"===r()},get children(){return Ef(Ay,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get leftIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Yd(()=>e.wallet.name)]}})}})}})}}),Ef(Mf,{get when(){return"not-supported"===r()},get children(){return Ef(ng,{onClick:()=>e.onBackClick(),get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),Ef(Lf,{get when(){return"mobile"===t()},get children(){return Ef(_v,{disableCopy:!1,get sourceUrl(){return Wv(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Ef(Lf,{get when(){return"extension"===t()},get children(){return[Ef(Mf,{get when(){return Tu(e.wallet)},get children(){return[Ef(jv,{size:"s"}),Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Yd(()=>e.wallet.name)," browser extension…"]}}),Ef(Rv,{get children(){return Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Ef(Mf,{get when(){return!Tu(e.wallet)},get children(){return[Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Yd(()=>e.wallet.name)," browser extension"]}}),Ef(Rv,{get children(){return Ef(Ay,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get rightIcon(){return Ef(Qm,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Yd(()=>e.wallet.name)]}})}})}})}})]}})]}}),Ef(Lf,{get when(){return"desktop"===t()},get children(){return[Ef(Im,{size:"m"}),Ef(Iv,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Yd(()=>e.wallet.name)," on desktop…"]}}),Ef(Rv,{get children(){return[Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:f,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}}),Ef(Ay,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get rightIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Yd(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),Ef(Mf,{get when(){return e.wallet.appName===gy},get children(){return Ef(Nv,{get rightIcon(){return Ef($v,{get src(){return yy}})},scale:"s",onClick:p,get children(){return Ef(Dv,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Ef(Mf,{get when(){return e.wallet.appName!==gy},get children(){return Ef(Ov,{get children(){return[Ef(Mf,{get when(){return Yd(()=>"mobile"!==t())()&&av(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Bm,{})},onClick:d,get children(){return Ef(Dv,{translationKey:"common.mobile",children:"Mobile"})}})}}),Ef(Mf,{get when(){return Yd(()=>"extension"!==t())()&&sv(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Fm,{})},onClick:h,get children(){return Ef(Dv,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Ef(Mf,{get when(){return Yd(()=>"desktop"!==t())()&&iv(e.wallet)},get children(){return Ef(Mv,{appearance:"secondary",get leftIcon(){return Ef(Hm,{})},onClick:f,get children(){return Ef(Dv,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},qv=wp.div``,Hv=wp(gg)`
|
|
806
806
|
position: absolute;
|
|
807
807
|
top: 16px;
|
|
808
808
|
left: 16px;
|
|
@@ -828,7 +828,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
828
828
|
align-items: center;
|
|
829
829
|
justify-content: center;
|
|
830
830
|
gap: 8px;
|
|
831
|
-
`,Xv="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",Jv=e=>Ef(qv,{"data-tc-wallets-modal-info":"true",get children(){return[Ef(Hv,{icon:"arrow",onClick:()=>e.onBackClick()}),Ef(Vv,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Ef(_y,{get children(){return[Ef(Kv,{get children(){return[Ef(Jm,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Ef(Yv,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Ef(Kv,{get children(){return[Ef(ty,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Ef(Yv,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Ef(Kv,{get children(){return[Ef(ry,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Ef(Yv,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Ef(Zv,{get children(){return Ef(
|
|
831
|
+
`,Xv="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",Jv=e=>Ef(qv,{"data-tc-wallets-modal-info":"true",get children(){return[Ef(Hv,{icon:"arrow",onClick:()=>e.onBackClick()}),Ef(Vv,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Ef(_y,{get children(){return[Ef(Kv,{get children(){return[Ef(Jm,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Ef(Yv,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Ef(Kv,{get children(){return[Ef(ty,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Ef(Yv,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Ef(Kv,{get children(){return[Ef(ry,{class:Gv}),Ef(Qv,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Ef(Yv,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Ef(Zv,{get children(){return Ef(Ay,{get href(){return Xv},blank:!0,get children(){return Ef(ng,{get rightIcon(){return Ef(Zm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),ew=wp.div``,tw=wp.div`
|
|
832
832
|
flex: 1;
|
|
833
833
|
margin-top: 18px;
|
|
834
834
|
display: flex;
|
|
@@ -849,11 +849,11 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
849
849
|
align-items: center;
|
|
850
850
|
gap: 12px;
|
|
851
851
|
border-top: 0.5px solid ${e=>_p(e.theme.colors.icon.secondary,.2)};
|
|
852
|
-
`,iw=wp(
|
|
852
|
+
`,iw=wp(Lh)`
|
|
853
853
|
width: 36px;
|
|
854
854
|
height: 36px;
|
|
855
855
|
border-radius: 10px;
|
|
856
|
-
`,aw=wp(
|
|
856
|
+
`,aw=wp(Ay)`
|
|
857
857
|
margin-left: auto;
|
|
858
858
|
`,sw=wp(Im)`
|
|
859
859
|
margin-bottom: 18px;
|
|
@@ -893,7 +893,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
893
893
|
line-height: 20px;
|
|
894
894
|
font-weight: 500;
|
|
895
895
|
padding: 17px 20px 19px 20px;
|
|
896
|
-
`,yw=e=>[Ef(fw,{get children(){return e.walletInfo.name}}),Ef(pw,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Yd(()=>e.walletInfo.name),"’s camera"]}}),Ef(hw,{get children(){return Ef(Yg,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Wv(e.universalLink,"none")},disableCopy:!0})}}),Ef(gw,{get children(){return[Ef(mw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return Ef(Dv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Ef(mw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return Ef(Dv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],bw=e=>{const t=bp(),[n,r]=Vd(!0),[o,i]=Vd(!1),[a,s]=Vd(null);Qd(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=of(lh),c=l.onStatusChange(()=>{},()=>{s(null)}),u=Yd(()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest)),d=()=>{if(lu(u()))return nh(Td(_d({},e.wallet),{openMethod:"universal-link"})),void zv(u(),{returnStrategy:tv.returnStrategy,twaReturnUrl:tv.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),
|
|
896
|
+
`,yw=e=>[Ef(fw,{get children(){return e.walletInfo.name}}),Ef(pw,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Yd(()=>e.walletInfo.name),"’s camera"]}}),Ef(hw,{get children(){return Ef(Yg,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Wv(e.universalLink,"none")},disableCopy:!0})}}),Ef(gw,{get children(){return[Ef(mw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return Ef(Dv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Ef(mw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return Ef(Dv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],bw=e=>{const t=bp(),[n,r]=Vd(!0),[o,i]=Vd(!1),[a,s]=Vd(null);Qd(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=of(lh),c=l.onStatusChange(()=>{},()=>{s(null)}),u=Yd(()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest)),d=()=>{if(lu(u()))return nh(Td(_d({},e.wallet),{openMethod:"universal-link"})),void zv(u(),{returnStrategy:tv.returnStrategy,twaReturnUrl:tv.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),Fv(u(),e.wallet.deepLink,{returnStrategy:tv.returnStrategy,forceRedirect:t},t=>{nh(Td(_d({},e.wallet),{openMethod:t}))})},[f,p]=Vd(void 0),h=()=>Pd(void 0,null,function*(){void 0!==f()&&clearTimeout(f()),yield Gg(u());const e=setTimeout(()=>p(void 0),1500);p(e)}),g=()=>{s(null),i(!0),nh(Td(_d({},e.wallet),{openMethod:"qrcode"}))},m=()=>{o()?(i(!1),nh(Td(_d({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return tf(c),d(),Ef(ew,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[Ef(Mf,{get when(){return!e.backDisabled||o()},get children(){return Ef(rw,{icon:"arrow",onClick:m})}}),Ef(Mf,{get when(){return o()},get children(){return Ef(yw,{get universalLink(){return u()},get walletInfo(){return e.wallet},onOpenLink:d,onCopy:h,get isCopiedShown(){return f()}})}}),Ef(Mf,{get when(){return!o()},get children(){return[Ef(nw,{get children(){return e.wallet.name}}),Ef(tw,{get children(){return[Ef(Mf,{get when(){return a()},get children(){return[Ef(lw,{size:"s"}),Ef(jf,{get children(){return[Ef(Lf,{get when(){return"missing-features"===a()},get children(){return Ef(cw,{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"})}}),Ef(Lf,{get when(){return"connection-declined"===a()},get children(){return Ef(cw,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"})}}),Ef(Lf,{get when(){return"not-supported"===a()},get children(){return Ef(cw,{translationKey:"walletModal.mobileConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Yd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Ef(uw,{get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return"missing-features"===a()},get children(){return[Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:d,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}}),Ef(Ay,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get leftIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.mobileConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Yd(()=>e.wallet.name)]}})}})}})]}}),Ef(Lf,{get when(){return"not-supported"===a()},get children(){return Ef(ng,{onClick:()=>e.onBackClick(),get children(){return Ef(Dv,{translationKey:"walletModal.mobileConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}}),Ef(Lf,{get when(){return"connection-declined"===a()},get children(){return[Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:d,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}}),Ef(ng,{get leftIcon(){return Ef(cy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Ef(Dv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})}})]}}),Ef(Mf,{get when(){return!a()},get children(){return[Ef(sw,{size:"s"}),Ef(cw,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Yd(()=>e.wallet.name),"…"]}}),Ef(uw,{get children(){return[Ef(ng,{get leftIcon(){return Ef(Km,{})},onClick:d,get children(){return Ef(Dv,{translationKey:"common.retry",children:"Retry"})}}),Ef(ng,{get leftIcon(){return Ef(cy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Ef(Dv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),Ef(ow,{get children(){return[Ef(iw,{get src(){return e.wallet.imageUrl}}),Ef(xm,{get children(){return e.wallet.name}}),Ef(aw,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Ef(ng,{get children(){return Ef(Dv,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},vw={m:"16px",s:"12px",none:"0"},ww={m:"6px",s:"6px",none:"0"};wp.li`
|
|
897
897
|
width: 82px;
|
|
898
898
|
min-width: 82px;
|
|
899
899
|
height: 124px;
|
|
@@ -952,7 +952,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
952
952
|
margin: 0 16px 24px;
|
|
953
953
|
width: calc(100% - 32px);
|
|
954
954
|
}
|
|
955
|
-
`,Sw=wp(
|
|
955
|
+
`,Sw=wp(Lh)`
|
|
956
956
|
background-color: transparent;
|
|
957
957
|
border-radius: ${e=>ww[e.theme.borderRadius]};
|
|
958
958
|
width: 24px;
|
|
@@ -964,10 +964,10 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
964
964
|
`,_w={m:"16px",s:"8px",none:"0"},Tw=wp(ym)`
|
|
965
965
|
margin-bottom: 2px;
|
|
966
966
|
padding: 0 52px;
|
|
967
|
-
`,
|
|
967
|
+
`,Aw=wp(vm)`
|
|
968
968
|
margin-bottom: 20px;
|
|
969
969
|
padding: 0 64px;
|
|
970
|
-
`,
|
|
970
|
+
`,Pw=wp.div`
|
|
971
971
|
padding: 0 24px 16px;
|
|
972
972
|
`,Rw=wp.div`
|
|
973
973
|
display: flex;
|
|
@@ -985,16 +985,16 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
985
985
|
line-height: 20px;
|
|
986
986
|
font-weight: 500;
|
|
987
987
|
padding: 17px 20px 19px 20px;
|
|
988
|
-
`,Mw=e=>[Ef(Tw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Ef(
|
|
988
|
+
`,Mw=e=>[Ef(Tw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Ef(Aw,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),Ef(Pw,{get children(){return Ef(Yg,{get imageUrl(){return my},get sourceUrl(){return Wv(e.universalLink,"none")},disableCopy:!0})}}),Ef(Rw,{get children(){return[Ef(Ow,{appearance:"secondary",onClick:()=>e.onOpenLink(),get children(){return Ef(Dv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Ef(Ow,{appearance:"secondary",onClick:()=>e.onCopy(),get children(){return Ef(Dv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})];function jw(e){const t=new Set(e.filter(Pu).map(e=>e.bridgeUrl));return Array.from(t).map(e=>({bridgeUrl:e}))}function Lw(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))}const Iw=Bf("<li></li>"),Nw=Bf('<div data-tc-wallets-modal-universal-mobile="true"></div>'),$w=e=>{const[t,n]=Vd(!1),[r,o]=Vd(!0),[i,a]=Vd(null),s=tv.connector,l=()=>e.walletsList.filter(e=>av(e)&&e.appName!==gy),c=()=>l().length>7,u=Yd(()=>jw(e.walletsList),null,{equals:Lw}),d=Yd(()=>{var t,n;return null!=(n=null==(t=e.walletsList.find(e=>e.appName===gy))?void 0:t.isSupportRequiredFeatures)&&n},null),f=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());nh({openMethod:"universal-link"});const[p,h]=Vd(void 0),g=()=>Pd(void 0,null,function*(){void 0!==p()&&clearTimeout(p()),yield Gg(f());const e=setTimeout(()=>h(void 0),1500);h(e)}),m=()=>{const e=!r();o(!1),Fv(f(),void 0,{returnStrategy:tv.returnStrategy,forceRedirect:e},e=>{nh({openMethod:e})})},y=()=>{a(null);const t=e.walletsList.find(e=>e.appName===gy);if(!t||!Pu(t))throw new Rp("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),zv(n,{returnStrategy:tv.returnStrategy,twaReturnUrl:tv.twaReturnUrl,forceRedirect:i})},b=()=>{n(!0),nh({openMethod:"qrcode"})},v=()=>{n(!1),nh({openMethod:"universal-link"})},w=Yd(()=>l().filter(e=>e.isSupportRequiredFeatures),null),x=Yd(()=>w().slice(0,3),null),C=Yd(()=>l().filter(e=>!x().find(t=>t.appName===e.appName)).slice(0,4),null);return(()=>{const n=Nw.cloneNode(!0);return Gf(n,Ef(Mf,{get when(){return t()},get children(){return[Ef(Ew,{icon:"arrow",onClick:v}),Ef(Mw,{get universalLink(){return f()},get isCopiedShown(){return p()},onOpenLink:m,onCopy:g})]}}),null),Gf(n,Ef(Mf,{get when(){return!t()},get children(){return[Ef(Ew,{get icon(){return Ef(cy,{})},onClick:b}),Ef(xw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Ef(Mf,{get when(){return d()},get children(){return[Ef(Cw,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:320,children:"Use Wallet in Telegram or choose other application"}),Ef(kw,{get leftIcon(){return Ef(iy,{})},get rightIcon(){return Ef(Sw,{get src(){return yy}})},onClick:y,scale:"s",get children(){return Ef(Dv,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Connect Wallet in Telegram"})}})]}}),Ef(Cw,{translationKey:"walletModal.mobileUniversalModal.chooseOtherApplication",maxWidth:342,padding:"0 24px 8px 24px",margin:"0",children:"Choose other application"}),Ef(lm,{get children(){return[Ef(Of,{get each(){return Yd(()=>!!c())()?x():w()},children:t=>(()=>{const n=Iw.cloneNode(!0);return Gf(n,Ef(gm,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),Ef(Mf,{get when(){return c()},get children(){const t=Iw.cloneNode(!0);return Gf(t,Ef(hy,{labelLine1:"View all",labelLine2:"wallets",get images(){return C().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})),t}})]}})]}}),null),n})()},Dw={m:"16px",s:"8px",none:"0"},Ww={m:"8px",s:"4px",none:"0"},zw=wp.div`
|
|
989
989
|
display: flex;
|
|
990
990
|
flex-direction: column;
|
|
991
991
|
align-items: center;
|
|
992
992
|
padding-bottom: 16px;
|
|
993
|
-
`,
|
|
993
|
+
`,Fw=wp(vm)`
|
|
994
994
|
max-width: 320px;
|
|
995
995
|
margin-top: 2px;
|
|
996
996
|
margin-bottom: 20px;
|
|
997
|
-
`,
|
|
997
|
+
`,Uw=wp(vm)`
|
|
998
998
|
margin-bottom: 16px;
|
|
999
999
|
`,Bw=wp(Yg)`
|
|
1000
1000
|
margin-bottom: 24px;
|
|
@@ -1051,7 +1051,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1051
1051
|
&:active {
|
|
1052
1052
|
transform: scale(0.96);
|
|
1053
1053
|
}
|
|
1054
|
-
`,wp(
|
|
1054
|
+
`,wp(Lh)`
|
|
1055
1055
|
width: 24px;
|
|
1056
1056
|
height: 24px;
|
|
1057
1057
|
|
|
@@ -1066,7 +1066,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1066
1066
|
`,wp(nm)`
|
|
1067
1067
|
color: ${e=>e.theme.colors.text.secondary};
|
|
1068
1068
|
font-size: 16px;
|
|
1069
|
-
`;const Hw=Bf("<li></li>"),Vw=e=>{const[t,n]=Vd(!1),r=tv.connector,o=Yd(()=>
|
|
1069
|
+
`;const Hw=Bf("<li></li>"),Vw=e=>{const[t,n]=Vd(!1),r=tv.connector,o=Yd(()=>jw(e.walletsList),null,{equals:Lw});nh({openMethod:"qrcode"});const i=Yd(()=>r.connect(o(),e.additionalRequest)),a=Yd(()=>e.walletsList.filter(e=>e.isSupportRequiredFeatures),null),s=Yd(()=>a().slice(0,3),null),l=Yd(()=>e.walletsList.filter(e=>!s().find(t=>t.appName===e.appName)).slice(0,4),null);return Ef(zw,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[Ef(ym,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),Ef(Fw,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),Ef(Bw,{get sourceUrl(){return Wv(i(),"none")},get disableCopy(){return t()},get imageUrl(){return my}}),Ef(Uw,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),Ef(qw,{get children(){return[Ef(Of,{get each(){return s()},children:t=>(()=>{const n=Hw.cloneNode(!0);return Gf(n,Ef(by,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),Ef(hy,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})]}})]}})},Kw={m:"16px",s:"8px",none:"0"},Gw=wp(ym)`
|
|
1070
1070
|
max-width: 288px;
|
|
1071
1071
|
margin: 0 auto 38px;
|
|
1072
1072
|
`,Qw=wp.div`
|
|
@@ -1159,7 +1159,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1159
1159
|
font-weight: 700;
|
|
1160
1160
|
font-size: 22px;
|
|
1161
1161
|
color: ${e=>{var t;return null==(t=e.theme)?void 0:t.colors.text.primary}};
|
|
1162
|
-
`,dx=e=>Ef(ox,{"data-tc-wallets-modal-restore":"true",get children(){return[Ef(ix,{icon:"arrow",get onClick(){return e.onBackClick}}),Ef(ax,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),Ef(_y,{get children(){return[Ef(sx,{get children(){return[Ef(ux,{children:"1"}),Ef(lx,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),Ef(cx,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),Ef(sx,{get children(){return[Ef(ux,{children:"2"}),Ef(lx,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),Ef(cx,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),Ef(sx,{get children(){return[Ef(ux,{children:"3"}),Ef(lx,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),Ef(cx,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),fx=e=>{const[t,n]=Vd(null),[r,o]=Vd(!1),i=Yd(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Yd(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===gy?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Yd(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=
|
|
1162
|
+
`,dx=e=>Ef(ox,{"data-tc-wallets-modal-restore":"true",get children(){return[Ef(ix,{icon:"arrow",get onClick(){return e.onBackClick}}),Ef(ax,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),Ef(_y,{get children(){return[Ef(sx,{get children(){return[Ef(ux,{children:"1"}),Ef(lx,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),Ef(cx,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),Ef(sx,{get children(){return[Ef(ux,{children:"2"}),Ef(lx,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),Ef(cx,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),Ef(sx,{get children(){return[Ef(ux,{children:"3"}),Ef(lx,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),Ef(cx,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),fx=e=>{const[t,n]=Vd(null),[r,o]=Vd(!1),i=Yd(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Yd(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===gy?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Yd(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=ju(t.features,r),a=ju(e.currentWallet.device.features,r);return o&&!a});return Ef(Qw,{get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return r()},get children(){return Ef(dx,{onBackClick:()=>o(!1)})}}),Ef(Lf,{get when(){return t()},get children(){return[Ef(Jw,{}),Ef(Qw,{get children(){return[Ef(Yw,{icon:"arrow",onClick:()=>n(null)}),Ef(Zw,{translationKey:"walletModal.featureNotSupported.disconnect.title",children:"Confirm Disconnect"}),Ef(Xw,{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 ",Yd(()=>{var e;return null==(e=t())?void 0:e.name}),"."]}}),Ef(tx,{onClick:()=>Pd(void 0,null,function*(){yield e.onDisconnect(),e.onSelect(t())}),get children(){return Ef(Dv,{translationKey:"walletModal.featureNotSupported.disconnect.button",children:"Disconnect"})}})]}})]}}),Ef(Lf,{get when(){return s()},get children(){return[Ef(Gw,{get children(){return a()}}),Ef(ex,{size:"s"}),Ef(nx,{translationKey:"walletModal.featureNotSupported.version.description",get translationValues(){return{name:a()}},get children(){return["Your current version of ",Yd(()=>a())," or wallet contract type doesn't support the required features. Please update it to continue."]}}),Ef(rx,{get children(){return[Ef(Ay,{get href(){return i().aboutUrl},blank:!0,get children(){return Ef(ng,{get leftIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.featureNotSupported.version.updateButton",get translationValues(){return{name:a()}},get children(){return["Update ",Yd(()=>a())]}})}})}}),Ef(Ay,{href:"https://tonkeeper.helpscoutdocs.com/article/102-w5",blank:!0,get children(){return Ef(ng,{get leftIcon(){return Ef(Qm,{})},get children(){return Ef(Dv,{translationKey:"walletModal.featureNotSupported.version.aboutW5",children:"About W5"})}})}})]}})]}}),Ef(Lf,{when:!0,get children(){return[Ef(Jw,{}),Ef(ex,{size:"s"}),Ef(Zw,{translationKey:"walletModal.featureNotSupported.wallet.title",get translationValues(){return{name:a()}},get children(){return[Yd(()=>a())," doesn’t support the requested action"]}}),Ef(Jw,{})]}})]}})}})},px=()=>{const{locale:e}=em()[1];Qd(()=>e(tv.language)),Qd(()=>{Gp()?Ey():(i(null),c("universal"),d(!1))});const t=of(lh),n=of(Py),[r]=Zd(()=>n.getWallets()),[o,i]=Vd(null),[a,s]=Vd(null),[l,c]=Vd("universal"),[u,d]=Vd(!1),f=Yd(()=>{const e=Vp();return"type"in e&&"wallet-not-support-feature"===e.type}),p=Yd(()=>{var e;if("ready"!==r.state)return null;let t=ov(r(),tv.walletsListConfiguration);const o=t.filter(Tu),i=t.filter(e=>!Tu(e));t=(o||[]).concat(i);const a=tv.preferredWalletAppName,s=t.find(e=>lv(e,a)),l=t.filter(e=>lv(e,a)).length>=2;a&&s&&!l&&(t=[Td(_d({},s),{isPreferred:!0})].concat(t.filter(e=>!lv(e,a))));const c=t.find(e=>lv(e,gy));c&&(t=[c].concat(t.filter(e=>!lv(e,gy))));const u=null!=(e=null==n?void 0:n.walletsRequiredFeatures)?e:null==n?void 0:n.walletsPreferredFeatures;return t.map(e=>{var t;return Td(_d({},e),{isSupportRequiredFeatures:!u||ju(null!=(t=e.features)?t:[],u)})})}),h=()=>{var e;return"loading"===(null==(e=tv.connectRequestParameters)?void 0:e.state)},g=Yd(()=>{var e;if(!h())return null==(e=tv.connectRequestParameters)?void 0:e.value}),m=e=>{n.closeModal(e)},y=t.onStatusChange(e=>{e&&m("wallet-selected")},e=>{var t;if(e instanceof Hc){const n=e.cause.connectEvent.device.appName.toLowerCase(),r=null==(t=p())?void 0:t.find(e=>e.appName.toLowerCase()===n);if(!r)throw new $c("Wallet not found");const o=r.isSupportRequiredFeatures?"missing-features":"not-supported";s(o),i(r)}}),b=()=>{c("all-wallets")},v=()=>{c("universal")},w=e=>{i(e),Rx.openWalletsModal()},x=()=>{i(null),s(null)};return tf(()=>{i(null),s(null),d(!1)}),tf(y),Ef(Xb,{get opened(){return Gp()},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>m("action-cancelled"),onClickQuestion:()=>d(e=>!e),get showFooter(){return!f()},"data-tc-wallets-modal-container":"true",get children(){return[Ef(Mf,{get when(){return u()},get children(){return Ef(Jv,{onBackClick:()=>d(!1)})}}),Ef(Mf,{get when(){return!u()},get children(){return[Ef(Mf,{get when(){return h()||!p()},get children(){return[Ef(Jb,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Ef(ev,{get children(){return Ef(Im,{size:"m"})}})]}}),Ef(Mf,{get when(){return Yd(()=>!h())()&&p()},get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return f()},get children(){return Ef(fx,{get walletsList(){return p()},get currentWallet(){return null==n?void 0:n.wallet},onSelect:w,onSelectAllWallets:b,onDisconnect:()=>t.disconnect(),get walletsModalState(){return Vp()},onClose:()=>m("action-cancelled")})}}),Ef(Lf,{get when(){return o()},get children(){return Ef(ip,{get component(){return ky()?bw:Bv},get wallet(){return o()},get additionalRequest(){return g()},onBackClick:x,get defaultError(){return a()}})}}),Ef(Lf,{get when(){return"universal"===l()},get children(){return Ef(ip,{get component(){return ky()?$w:Vw},onSelect:i,get walletsList(){return p()},get additionalRequest(){return g()},onSelectAllWallets:b})}}),Ef(Lf,{get when(){return"all-wallets"===l()},get children(){return Ef(xv,{get walletsList(){return p()},get featureCheckMode(){return(null==n?void 0:n.walletsRequiredFeatures)?"strict":"soft"},onBack:v,onSelect:i})}})]}})}})]}})]}})},hx=wp.div`
|
|
1163
1163
|
display: flex;
|
|
1164
1164
|
flex-direction: column;
|
|
1165
1165
|
align-items: center;
|
|
@@ -1182,7 +1182,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1182
1182
|
width: 16px;
|
|
1183
1183
|
`,vx=wp(ng)`
|
|
1184
1184
|
margin-top: 32px;
|
|
1185
|
-
`,wx=e=>{const t=tg(e),n=of(Ay),[r,o]=Vd(!0),[i,a]=Vd(!1),[s,l]=Vd(!1),[c,u]=Vd(!1);let d,f;Qd(()=>{const e=rh();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||lu(n.wallet.universalLink)&&Wh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||lu(n.wallet.deepLink)&&Wh())&&(f=n.wallet.deepLink);const p=()=>{const e=rh(),t="returnStrategy"in e?e.returnStrategy:tv.returnStrategy,n=!r();o(!1),lu(d)?zv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:tv.twaReturnUrl,forceRedirect:n}):Uv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Ef(hx,Af(t,{get children(){return[Yd(()=>e.icon),Ef(gx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Ef(mx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Ef(Mf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Ef(yx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(bx,{})}})}}),Ef(Mf,{get when(){return i()||s()},get children(){return[Ef(Mf,{get when(){return"open-wallet"!==e.showButton},get children(){return Ef(vx,{onClick:()=>e.onClose(),get children(){return Ef(Dv,{translationKey:"common.close",children:"Close"})}})}}),Ef(Mf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Ef(vx,{onClick:p,get children(){return Ef(Dv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},xx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Cx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),kx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Ef(Tm,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Sx=e=>{const t=of(Ay),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Ex=e=>Ef(wx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),_x=e=>Ef(wx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Ef(Tm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Tx=()=>Ef(Og,{get opened(){var e;return Yd(()=>null!==rh())()&&!0===(null==(e=rh())?void 0:e.openModal)},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>oh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Ef(Lf,{get children(){return[Ef(jf,{get when(){return"transaction-sent"===rh().name},get children(){return Ef(kx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"transaction-canceled"===rh().name},get children(){return Ef(Cx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-transaction"===rh().name},get children(){return Ef(xx,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"data-signed"===rh().name},get children(){return Ef(_x,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"sign-data-canceled"===rh().name},get children(){return Ef(Ex,{onClose:()=>oh(null)})}}),Ef(jf,{get when(){return"confirm-sign-data"===rh().name},get children(){return Ef(Sx,{onClose:()=>oh(null)})}})]}})}}),Px=()=>{const{locale:e}=em()[1];Qd(()=>e(tv.language)),Qd(()=>{Zp()&&Ey()});const t=of(lh),n=of(Ay),[r,o]=Vd(!1),i=()=>{var e;return"loading"===(null==(e=tv.connectRequestParameters)?void 0:e.state)},a=Yd(()=>{var e;if(!i())return null==(e=tv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return tf(t.onStatusChange(e=>{e&&s("wallet-selected")})),tf(()=>{o(!1)}),Ef(Xb,{get opened(){return Zp()},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Ef(Mf,{get when(){return r()},get children(){return Ef(Jv,{onBackClick:()=>o(!1)})}}),Ef(Mf,{get when(){return!r()},get children(){return[Ef(Mf,{get when(){return i()},get children(){return[Ef(Jb,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Ef(ev,{get children(){return Ef(Im,{size:"m"})}})]}}),Ef(Mf,{get when(){return!i()},get children(){return Ef(ip,{get component(){return ky()?bw:Bv},get wallet(){return Xp()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ax=e=>{const t=Xg(ah,tv.language);return customElements.define(Cp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Ef(Jg.Provider,{value:t,get children(){return Ef(Ay.Provider,{get value(){return e.tonConnectUI},get children(){return Ef(lh.Provider,{get value(){return tv.connector},get children(){return[Ef(Ep,{}),Ef(yp,{theme:Ph,get children(){return[Ef(Mf,{get when(){return tv.buttonRootId},get children(){return Ef(op,{get mount(){return document.getElementById(tv.buttonRootId)},get children(){return Ef(Zb,{})}})}}),Ef(ip,{component:Cp,get children(){return[Ef(px,{}),Ef(Px,{}),Ef(Tx,{})]}})]}})]}})}})}})},Rx={openWalletsModal:()=>{setTimeout(()=>Kp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Kp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Yp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Yp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Kp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>oh(e))},clearAction:()=>{setTimeout(()=>oh(null))},getSelectedWalletInfo:()=>eh(),removeSelectedWalletInfo:()=>nh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Hd(r=>{o=r,t===document?e():Gf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Ef(Ax,{tonConnectUI:t}),document.getElementById(e))};class Ox{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Vp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Vp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Pu);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Mx{constructor(e){Pd(this,"connector"),Pd(this,"consumers",[]),this.connector=e.connector,Qd(()=>{const e=rh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class Lx{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Qp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Qp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Ad(this,null,function*(){this.tracker.trackConnectionStarted();const t=ov(yield this.connector.getWallets(),tv.walletsListConfiguration),n=t.find(Pu);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Au).find(t=>lv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Rp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Ad(this,null,function*(){return Wh()&&Uh(),Rx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class jx{constructor(e){var t;Pd(this,"eventPrefix","ton-connect-ui-"),Pd(this,"tonConnectUiVersion"),Pd(this,"tonConnectSdkVersion",null),Pd(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Xu,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Ad(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(sS){}})}setRequestVersionHandler(){return Ad(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Ad(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Iu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Ad(this,null,function*(){return new Promise((e,t)=>Ad(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(sS){t(sS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(sS){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringStarted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringCompleted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(sS){}}}class Ix{constructor(e){if(Pd(this,"walletInfoStorage",new Bp),Pd(this,"preferredWalletStorage",new qp),Pd(this,"tracker"),Pd(this,"walletInfo",null),Pd(this,"systemThemeChangeUnsubscribe",null),Pd(this,"actionsConfiguration"),Pd(this,"walletsList"),Pd(this,"_walletsRequiredFeatures"),Pd(this,"_walletsPreferredFeatures"),Pd(this,"connectRequestParametersCallback"),Pd(this,"connector"),Pd(this,"modal"),Pd(this,"singleWalletModal"),Pd(this,"transactionModal"),Pd(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Rp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new ed({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new jx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Ox({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Lx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Mx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Np((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Ad(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Ad(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Th(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();nv({connector:this.connector,preferredWalletAppName:n}),Rx.renderApp(t,this)}static getWallets(){return ed.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?_d(_d({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Mh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Mh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?ap.LIGHT:ap.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?ap.DARK:ap.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Mh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Oh[ap.DARK]=Th(a[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(a[ap.LIGHT],Oh[ap.LIGHT]),Ah(e=>({colors:Th(Oh[e.theme],Rh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Ah({borderRadius:s})),nv(t=>{var n,r;const o=Th(_d(_d(_d(_d({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),hh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;nv({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Ad(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Ad(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(_d(_d({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Ad(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Ad(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Ad(this,null,function*(){const e=(yield this.getWallets()).find(Pu);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Rx.clearAction(),Rx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Ad(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Rx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{l()}})}signData(e){return Ad(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Uh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Rx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(sS){if(sS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(sS.cause),sS;throw Rx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),sS instanceof $c?sS:(console.error(sS),new Rp("Unhandled error:"+sS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(lu(this.walletInfo.universalLink)?zv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||tv.twaReturnUrl,forceRedirect:!1}):Uv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Ad(this,null,function*(){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Ad(this,null,function*(){const e=new AbortController;Rx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Ad(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Rp("Wallet was not connected"));const i=e=>Ad(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Rp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Rp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"));const a=e=>Ad(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Ad(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"));const a=e=>Ad(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Ad(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),nv({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Ad(this,null,function*(){let t,n=Rx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=ov(yield this.walletsList,tv.walletsListConfiguration).find(t=>lv(t,e.device.appName));if(!r)throw new Rp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=_d(_d({},r),n)}return t})}updateWalletInfo(e){return Ad(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>lv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Rp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Wh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Nx,$x={exports:{}},Dx=$x.exports;var Wx=(Nx||(Nx=1,function(e,t){var r,o;r="object"==typeof window&&window||Dx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}($x,$x.exports)),$x.exports);const zx=r(Wx);const Ux=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?td(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new Ix({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(zx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;zx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{zx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Hl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Hl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const Fx=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060"].includes(ta.GAME_ID)}get disableLoginShare(){return"1002"==ta.GAME_ID}init(){if(Jl())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${sc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${sc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(rc()&&Jl()&&ec()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Ux.connected&&Ux.friendlyAddress==sc.boundWallet)return e();Ux.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await ac.gameInfo();let t=(e.catalog||[]).filter(e=>e==jl.airdrop||e==jl.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return sc.gameInfo=n,sc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return ac.login().then(e=>{let t=ta.GAME_ID,n=sc.plutoId=e.plutoid,r=sc.firstName=e.tgfirstname,o=sc.lastName=e.tglastname,i=sc.icon=e.icon,a=e.ticket;return sc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return ac.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;sc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=sc.purchaseData;return ac.order(n,r,o,i,e,t,a).then(e=>(sc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await ac.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return ac.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return ac.checkIn(e,t,n).then(r=>{sc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await ac.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return ac.getItem(e).then(e=>e.v)}reqSetItem(e,t){return ac.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),ac.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return ac.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&ac.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{ac.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});sc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return ac.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=ta.GAME_ID&&"1060"!=ta.GAME_ID)return;sc.gameServerId=t;let n=0,r=100;for(;;)try{const n=await ac.setGameUserId(e,t);return void(n.token&&(ta.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return ac.cocGetInfo().then(e=>({coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[zl.coc];return ac.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return ac.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return ac.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return ac.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return ac.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return ac.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return ac.spGetInfo(sc.gameServerId).then(e=>({balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Ul[zl.croco];return ac.spWithdraw(sc.gameServerId,e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return ac.spClaim(sc.gameServerId,e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return ac.spGetWithdrawDetail(sc.gameServerId,e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return ac.spGetRecords(sc.gameServerId,e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return ac.spQueryConsume(sc.gameServerId,e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return ac.spCancelWithdraw(sc.gameServerId,e).then(e=>({amount:e.amount,balance:e.balance}))}},Bx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function qx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Bx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Vx=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,h=L.isValidElement(r)&&"svg"===r.type,g={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Kr({root:["root","inherit"!==t&&`color${$(t)}`,`fontSize${$(n)}`]},qx,r)})(g);return d.jsxs(Hx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Kx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Gx(e){const t=L.useRef(e);return Sr(()=>{t.current=e}),L.useRef((...e)=>(0,t.current)(...e)).current}function Qx(...e){const t=L.useRef(void 0),n=L.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return L.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Yx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Zx(e,t){return(Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zx(e,t)}Vx.muiName="SvgIcon";const Jx=r(R()),eC=!1,tC=j.createContext(null);var nC="unmounted",rC="exited",oC="entering",iC="entered",aC="exiting",sC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=rC,r.appearStatus=oC):o=iC:o=t.unmountOnExit||t.mountOnEnter?nC:rC,r.state={status:o},r.nextCallback=null,r}Xx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nC?{status:rC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oC&&n!==iC&&(t=oC):n!==oC&&n!==iC||(t=aC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rC&&this.setState({status:nC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Jx.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||eC?this.safeSetState({status:iC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:oC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:iC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Jx.findDOMNode(this);t&&!eC?(this.props.onExit(r),this.safeSetState({status:aC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:rC},function(){e.props.onExited(r)})})})):this.safeSetState({status:rC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Yx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(tC.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function lC(){}function cC(e,t){var n=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)}),n}function uC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dC(e,t,n){var r=cC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(L.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})):o[i]=L.cloneElement(a,{in:!1}):o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})}}),o}sC.contextType=tC,sC.propTypes={},sC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lC,onEntering:lC,onEntered:lC,onExit:lC,onExiting:lC,onExited:lC},sC.UNMOUNTED=nC,sC.EXITED=rC,sC.ENTERING=oC,sC.ENTERED=iC,sC.EXITING=aC;var fC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,cC(n.children,function(e){return L.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:uC(e,"appear",n),enter:uC(e,"enter",n),exit:uC(e,"exit",n)})})):dC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yx(e,["component","childFactory"]),o=this.state.contextValue,i=fC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(tC.Provider,{value:o},i):j.createElement(tC.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);pC.propTypes={},pC.defaultProps={component:"div",childFactory:function(e){return e}};const hC={};function gC(e,t){const n=L.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const mC=[];class yC{static create(){return new yC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bC(){const e=gC(yC.create).current;var t;return t=e.disposeEffect,L.useEffect(t,mC),e}const vC=e=>e.scrollTop;function wC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function xC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class CC{static create(){return new CC}static use(){const e=gC(CC.create).current,[t,n]=L.useState(!1);return e.shouldMount=t,e.setShouldMount=n,L.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const kC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),SC=Nn`
|
|
1185
|
+
`,wx=e=>{const t=tg(e),n=of(Py),[r,o]=Vd(!0),[i,a]=Vd(!1),[s,l]=Vd(!1),[c,u]=Vd(!1);let d,f;Qd(()=>{const e=rh();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||lu(n.wallet.universalLink)&&Wh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||lu(n.wallet.deepLink)&&Wh())&&(f=n.wallet.deepLink);const p=()=>{const e=rh(),t="returnStrategy"in e?e.returnStrategy:tv.returnStrategy,n=!r();o(!1),lu(d)?zv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:tv.twaReturnUrl,forceRedirect:n}):Fv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Ef(hx,Pf(t,{get children(){return[Yd(()=>e.icon),Ef(gx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Ef(mx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Ef(Mf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Ef(yx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Ef(bx,{})}})}}),Ef(Mf,{get when(){return i()||s()},get children(){return[Ef(Mf,{get when(){return"open-wallet"!==e.showButton},get children(){return Ef(vx,{onClick:()=>e.onClose(),get children(){return Ef(Dv,{translationKey:"common.close",children:"Close"})}})}}),Ef(Mf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Ef(vx,{onClick:p,get children(){return Ef(Dv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},xx=e=>{const t=of(Py),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Cx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),kx=e=>Ef(wx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Ef(Tm,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Sx=e=>{const t=of(Py),[n]=em();return Ef(wx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Ef(Im,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Ex=e=>Ef(wx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Ef(Om,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),_x=e=>Ef(wx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Ef(Tm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Tx=()=>Ef(Og,{get opened(){var e;return Yd(()=>null!==rh())()&&!0===(null==(e=rh())?void 0:e.openModal)},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>oh(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Ef(jf,{get children(){return[Ef(Lf,{get when(){return"transaction-sent"===rh().name},get children(){return Ef(kx,{onClose:()=>oh(null)})}}),Ef(Lf,{get when(){return"transaction-canceled"===rh().name},get children(){return Ef(Cx,{onClose:()=>oh(null)})}}),Ef(Lf,{get when(){return"confirm-transaction"===rh().name},get children(){return Ef(xx,{onClose:()=>oh(null)})}}),Ef(Lf,{get when(){return"data-signed"===rh().name},get children(){return Ef(_x,{onClose:()=>oh(null)})}}),Ef(Lf,{get when(){return"sign-data-canceled"===rh().name},get children(){return Ef(Ex,{onClose:()=>oh(null)})}}),Ef(Lf,{get when(){return"confirm-sign-data"===rh().name},get children(){return Ef(Sx,{onClose:()=>oh(null)})}})]}})}}),Ax=()=>{const{locale:e}=em()[1];Qd(()=>e(tv.language)),Qd(()=>{Zp()&&Ey()});const t=of(lh),n=of(Py),[r,o]=Vd(!1),i=()=>{var e;return"loading"===(null==(e=tv.connectRequestParameters)?void 0:e.state)},a=Yd(()=>{var e;if(!i())return null==(e=tv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return tf(t.onStatusChange(e=>{e&&s("wallet-selected")})),tf(()=>{o(!1)}),Ef(Xb,{get opened(){return Zp()},get enableAndroidBackHandler(){return tv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Ef(Mf,{get when(){return r()},get children(){return Ef(Jv,{onBackClick:()=>o(!1)})}}),Ef(Mf,{get when(){return!r()},get children(){return[Ef(Mf,{get when(){return i()},get children(){return[Ef(Jb,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Ef(ev,{get children(){return Ef(Im,{size:"m"})}})]}}),Ef(Mf,{get when(){return!i()},get children(){return Ef(ip,{get component(){return ky()?bw:Bv},get wallet(){return Xp()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Px=e=>{const t=Xg(ah,tv.language);return customElements.define(Cp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Ef(Jg.Provider,{value:t,get children(){return Ef(Py.Provider,{get value(){return e.tonConnectUI},get children(){return Ef(lh.Provider,{get value(){return tv.connector},get children(){return[Ef(Ep,{}),Ef(yp,{theme:Ah,get children(){return[Ef(Mf,{get when(){return tv.buttonRootId},get children(){return Ef(op,{get mount(){return document.getElementById(tv.buttonRootId)},get children(){return Ef(Zb,{})}})}}),Ef(ip,{component:Cp,get children(){return[Ef(px,{}),Ef(Ax,{}),Ef(Tx,{})]}})]}})]}})}})}})},Rx={openWalletsModal:()=>{setTimeout(()=>Kp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Kp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Yp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Yp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Kp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>oh(e))},clearAction:()=>{setTimeout(()=>oh(null))},getSelectedWalletInfo:()=>eh(),removeSelectedWalletInfo:()=>nh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Hd(r=>{o=r,t===document?e():Gf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Ef(Px,{tonConnectUI:t}),document.getElementById(e))};class Ox{constructor(e){Ad(this,"connector"),Ad(this,"setConnectRequestParametersCallback"),Ad(this,"consumers",[]),Ad(this,"tracker"),Ad(this,"state",Vp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Vp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Pd(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Au);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Pd(this,null,function*(){return Wh()&&Fh(),Rx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Mx{constructor(e){Ad(this,"connector"),Ad(this,"consumers",[]),this.connector=e.connector,Qd(()=>{const e=rh();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class jx{constructor(e){Ad(this,"connector"),Ad(this,"setConnectRequestParametersCallback"),Ad(this,"consumers",[]),Ad(this,"tracker"),Ad(this,"state",Qp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Qd(()=>{const e=Qp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Pd(this,null,function*(){this.tracker.trackConnectionStarted();const t=ov(yield this.connector.getWallets(),tv.walletsListConfiguration),n=t.find(Au);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Pu).find(t=>lv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Rp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Pd(this,null,function*(){return Wh()&&Fh(),Rx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Lx{constructor(e){var t;Ad(this,"eventPrefix","ton-connect-ui-"),Ad(this,"tonConnectUiVersion"),Ad(this,"tonConnectSdkVersion",null),Ad(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Xu,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Nu({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Pd(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(lS){}})}setRequestVersionHandler(){return Pd(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Pd(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Iu(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Pd(this,null,function*(){return new Promise((e,t)=>Pd(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(lS){t(lS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(lS){}}trackConnectionStarted(...e){try{const t=Du(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackConnectionCompleted(...e){try{const t=Wu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackConnectionError(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackConnectionRestoringStarted(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackConnectionRestoringCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackConnectionRestoringError(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackDisconnection(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackTransactionSentForSignature(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackTransactionSigned(...e){try{const t=Vu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackTransactionSigningFailed(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackDataSentForSignature(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackDataSigned(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}trackDataSigningFailed(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(lS){}}}class Ix{constructor(e){if(Ad(this,"walletInfoStorage",new Bp),Ad(this,"preferredWalletStorage",new qp),Ad(this,"tracker"),Ad(this,"walletInfo",null),Ad(this,"systemThemeChangeUnsubscribe",null),Ad(this,"actionsConfiguration"),Ad(this,"walletsList"),Ad(this,"_walletsRequiredFeatures"),Ad(this,"_walletsPreferredFeatures"),Ad(this,"connectRequestParametersCallback"),Ad(this,"connector"),Ad(this,"modal"),Ad(this,"singleWalletModal"),Ad(this,"transactionModal"),Ad(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Rp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new ed({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new Lx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Ox({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new jx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Mx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Np((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Pd(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Pd(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Th(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();nv({connector:this.connector,preferredWalletAppName:n}),Rx.renderApp(t,this)}static getWallets(){return ed.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?_d(_d({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Mh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Mh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?ap.LIGHT:ap.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?ap.DARK:ap.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Mh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Oh[ap.DARK]=Th(a[ap.DARK],Oh[ap.DARK]),Oh[ap.LIGHT]=Th(a[ap.LIGHT],Oh[ap.LIGHT]),Ph(e=>({colors:Th(Oh[e.theme],Rh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Ph({borderRadius:s})),nv(t=>{var n,r;const o=Th(_d(_d(_d(_d({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),hh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;nv({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Pd(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Pd(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(_d(_d({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Pd(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Pd(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Pd(this,null,function*(){const e=(yield this.getWallets()).find(Au);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Rx.clearAction(),Rx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Pd(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Fh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Rx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Rx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(lS){if(lS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(lS.cause),lS;throw Rx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),lS instanceof $c?lS:(console.error(lS),new Rp("Unhandled error:"+lS))}finally{l()}})}signData(e){return Pd(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Rp("Connect wallet to send a transaction.");Wh()&&Fh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Rx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Rx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(lS){if(lS instanceof qc)throw Rx.clearAction(),Rx.openWalletNotSupportFeatureModal(lS.cause),lS;throw Rx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),lS instanceof $c?lS:(console.error(lS),new Rp("Unhandled error:"+lS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(lu(this.walletInfo.universalLink)?zv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||tv.twaReturnUrl,forceRedirect:!1}):Fv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Pd(this,null,function*(){const t=t=>{nh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=tv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Pd(this,null,function*(){const e=new AbortController;Rx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Pd(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Rp("Wallet was not connected"));const i=e=>Pd(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Rp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Rp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Pd(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"));const a=e=>Pd(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Rp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Pd(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"));const a=e=>Pd(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Rp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Pd(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),nv({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Pd(this,null,function*(){let t,n=Rx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=ov(yield this.walletsList,tv.walletsListConfiguration).find(t=>lv(t,e.device.appName));if(!r)throw new Rp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=_d(_d({},r),n)}return t})}updateWalletInfo(e){return Pd(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>lv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Rp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Wh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Nx,$x={exports:{}},Dx=$x.exports;var Wx=(Nx||(Nx=1,function(e,t){var r,o;r="object"==typeof window&&window||Dx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}($x,$x.exports)),$x.exports);const zx=r(Wx);const Fx=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?td(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new Ix({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(zx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;zx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{zx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Hl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Hl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const Ux=new class{constructor(){this._adConfigs={},this._adControllers={}}get disableLoginPage(){return["1041","1048","1060"].includes(ta.GAME_ID)}get disableLoginShare(){return"1002"==ta.GAME_ID}get disableAddScreen(){return!rc()||"1057"==ta.GAME_ID}init(){if(Jl())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${sc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${sc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(rc()&&Jl()&&ec()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Fx.connected&&Fx.friendlyAddress==sc.boundWallet)return e();Fx.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await ac.gameInfo();let t=(e.catalog||[]).filter(e=>e==Ll.airdrop||e==Ll.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return sc.gameInfo=n,sc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return ac.login().then(e=>{let t=ta.GAME_ID,n=sc.plutoId=e.plutoid,r=sc.firstName=e.tgfirstname,o=sc.lastName=e.tglastname,i=sc.icon=e.icon,a=e.ticket;return sc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return ac.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;sc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=sc.purchaseData;return ac.order(n,r,o,i,e,t,a).then(e=>(sc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await ac.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return ac.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return ac.checkIn(e,t,n).then(r=>{sc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await ac.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return ac.getItem(e).then(e=>e.v)}reqSetItem(e,t){return ac.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),ac.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return ac.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&ac.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{ac.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});sc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return ac.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e,t){if("1048"!=ta.GAME_ID&&"1060"!=ta.GAME_ID)return;sc.gameServerId=t;let n=0,r=100;for(;;)try{const n=await ac.setGameUserId(e,t);return void(n.token&&(ta.TOKEN=n.token))}catch(o){if(n++,n>=100)throw o;await new Promise(e=>setTimeout(e,r)),r*=1.2}}reqCocGetInfo(){return ac.cocGetInfo().then(e=>({coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Fl[zl.coc];return ac.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return ac.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return ac.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return ac.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return ac.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return ac.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return ac.spGetInfo(sc.gameServerId).then(e=>({balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Fl[zl.croco];return ac.spWithdraw(sc.gameServerId,e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return ac.spClaim(sc.gameServerId,e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return ac.spGetWithdrawDetail(sc.gameServerId,e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return ac.spGetRecords(sc.gameServerId,e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return ac.spQueryConsume(sc.gameServerId,e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return ac.spCancelWithdraw(sc.gameServerId,e).then(e=>({amount:e.amount,balance:e.balance}))}},Bx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function qx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Bx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Vx=j.forwardRef(function(e,t){const n=Ui({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${$(t)}`,`fontSize${$(n)}`]},qx,r)})(g);return d.jsxs(Hx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Kx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Gx(e){const t=j.useRef(e);return Sr(()=>{t.current=e}),j.useRef((...e)=>(0,t.current)(...e)).current}function Qx(...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 Yx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Zx(e,t){return(Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zx(e,t)}Vx.muiName="SvgIcon";const Jx=r(R()),eC=!1,tC=L.createContext(null);var nC="unmounted",rC="exited",oC="entering",iC="entered",aC="exiting",sC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=rC,r.appearStatus=oC):o=iC:o=t.unmountOnExit||t.mountOnEnter?nC:rC,r.state={status:o},r.nextCallback=null,r}Xx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nC?{status:rC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oC&&n!==iC&&(t=oC):n!==oC&&n!==iC||(t=aC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rC&&this.setState({status:nC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Jx.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||eC?this.safeSetState({status:iC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:oC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:iC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Jx.findDOMNode(this);t&&!eC?(this.props.onExit(r),this.safeSetState({status:aC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:rC},function(){e.props.onExited(r)})})})):this.safeSetState({status:rC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Jx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Yx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L.createElement(tC.Provider,{value:null},"function"==typeof n?n(e,r):L.cloneElement(L.Children.only(n),r))},t}(L.Component);function lC(){}function cC(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 uC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dC(e,t,n){var r=cC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(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:uC(a,"exit",e),enter:uC(a,"enter",e)})):o[i]=j.cloneElement(a,{in:!1}):o[i]=j.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:uC(a,"exit",e),enter:uC(a,"enter",e)})}}),o}sC.contextType=tC,sC.propTypes={},sC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lC,onEntering:lC,onEntered:lC,onExit:lC,onExiting:lC,onExited:lC},sC.UNMOUNTED=nC,sC.EXITED=rC,sC.ENTERING=oC,sC.ENTERED=iC,sC.EXITING=aC;var fC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xx(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,cC(n.children,function(e){return j.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:uC(e,"appear",n),enter:uC(e,"enter",n),exit:uC(e,"exit",n)})})):dC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yx(e,["component","childFactory"]),o=this.state.contextValue,i=fC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?L.createElement(tC.Provider,{value:o},i):L.createElement(tC.Provider,{value:o},L.createElement(t,r,i))},t}(L.Component);pC.propTypes={},pC.defaultProps={component:"div",childFactory:function(e){return e}};const hC={};function gC(e,t){const n=j.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const mC=[];class yC{static create(){return new yC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bC(){const e=gC(yC.create).current;var t;return t=e.disposeEffect,j.useEffect(t,mC),e}const vC=e=>e.scrollTop;function wC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function xC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class CC{static create(){return new CC}static use(){const e=gC(CC.create).current,[t,n]=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 kC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),SC=Nn`
|
|
1186
1186
|
0% {
|
|
1187
1187
|
transform: scale(0);
|
|
1188
1188
|
opacity: 0.1;
|
|
@@ -1212,7 +1212,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1212
1212
|
100% {
|
|
1213
1213
|
transform: scale(1);
|
|
1214
1214
|
}
|
|
1215
|
-
`,TC=zi("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),
|
|
1215
|
+
`,TC=zi("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),AC=zi(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=j.useState(!1),p=sr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=sr(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||f(!0),j.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),d.jsx("span",{className:p,style:h,children:d.jsx("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
1216
1216
|
opacity: 0;
|
|
1217
1217
|
position: absolute;
|
|
1218
1218
|
|
|
@@ -1255,7 +1255,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1255
1255
|
animation-iteration-count: infinite;
|
|
1256
1256
|
animation-delay: 200ms;
|
|
1257
1257
|
}
|
|
1258
|
-
`,
|
|
1258
|
+
`,PC=j.forwardRef(function(e,t){const n=Ui({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=bC(),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(AC,{classes:{ripple:sr(o.ripple,kC.ripple),rippleVisible:sr(o.rippleVisible,kC.rippleVisible),ripplePulsate:sr(o.ripplePulsate,kC.ripplePulsate),child:sr(o.child,kC.child),childLeaving:sr(o.childLeaving,kC.childLeaving),childPulsate:sr(o.childPulsate,kC.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(TC,{className:sr(kC.root,o.root,i),ref:g,...a,children:d.jsx(pC,{component:null,exit:!0,children:s})})});function RC(e){return cr("MuiButtonBase",e)}const OC=ur("MuiButtonBase",["root","disabled","focusVisible"]),MC=zi("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"},[`&.${OC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jC=j.forwardRef(function(e,t){const n=Ui({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:k,onMouseLeave:S,onMouseUp:E,onTouchEnd:_,onTouchMove:T,onTouchStart:A,tabIndex:P=0,TouchRippleProps:R,touchRippleRef:O,type:M,...L}=n,I=j.useRef(null),N=CC.use(),$=Qx(N.ref,O),[D,W]=j.useState(!1);l&&D&&W(!1),j.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),I.current.focus()}}),[]);const z=N.shouldMount&&!c&&!l;j.useEffect(()=>{D&&f&&!c&&N.pulsate()},[c,f,D,N]);const F=LC(N,"start",k,u),U=LC(N,"stop",y,u),B=LC(N,"stop",b,u),q=LC(N,"stop",E,u),H=LC(N,"stop",e=>{D&&e.preventDefault(),S&&S(e)},u),V=LC(N,"start",A,u),K=LC(N,"stop",_,u),G=LC(N,"stop",T,u),Q=LC(N,"stop",e=>{xC(e.target)||W(!1),g&&g(e)},!1),Y=Gx(e=>{I.current||(I.current=e.currentTarget),xC(e.target)&&(W(!0),w&&w(e)),v&&v(e)}),Z=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=Gx(e=>{f&&!e.repeat&&D&&" "===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=Gx(e=>{f&&" "===e.key&&D&&!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&&(L.href||L.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===M?"button":M,te.disabled=l):(L.href||L.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Qx(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:f,tabIndex:P,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Kr({root:["root",t&&"disabled",n&&"focusVisible"]},RC,o);return n&&r&&(i.root+=` ${r}`),i})(re);return d.jsxs(MC,{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:P,type:M,...te,...L,children:[i,z?d.jsx(PC,{ref:$,center:o,...R}):null]})});function LC(e,t,n,r=!1){return Gx(o=>(n&&n(o),r||e[t](o),!0))}function IC(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 NC(e){return cr("MuiCircularProgress",e)}ur("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $C=44,DC=Nn`
|
|
1259
1259
|
0% {
|
|
1260
1260
|
transform: rotate(0deg);
|
|
1261
1261
|
}
|
|
@@ -1280,6 +1280,6 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
|
|
|
1280
1280
|
}
|
|
1281
1281
|
`,zC="string"!=typeof DC?In`
|
|
1282
1282
|
animation: ${DC} 1.4s linear infinite;
|
|
1283
|
-
`:null,
|
|
1283
|
+
`:null,FC="string"!=typeof WC?In`
|
|
1284
1284
|
animation: ${WC} 1.4s ease-in-out infinite;
|
|
1285
|
-
`:null,FC=zi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${$(n.color)}`]]}})(Bx(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:zC||{animation:`${DC} 1.4s linear infinite`}},...Object.entries(e.palette).filter(IC()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BC=zi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qC=zi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Bx(({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:UC||{animation:`${WC} 1.4s ease-in-out infinite`}}]}))),HC=zi("circle",{name:"MuiCircularProgress",slot:"Track"})(Bx(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),VC=L.forwardRef(function(e,t){const n=Fi({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${$(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${$(n)}`,o&&"circleDisableShrink"]},NC,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*(($C-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(FC,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(BC,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(HC,{className:g.track,ownerState:h,cx:$C,cy:$C,r:($C-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(qC,{className:g.circle,style:m,ownerState:h,cx:$C,cy:$C,r:($C-c)/2,fill:"none",strokeWidth:c})]})})});function KC(e){return parseInt(L.version,10)>=19?e?.props?.ref||null:e?.ref||null}const GC={entering:{opacity:1},entered:{opacity:1}},QC=L.forwardRef(function(e,t){const n=$i(),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=sC,...v}=e,w=L.useRef(null),x=Qx(w,KC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{vC(e);const r=wC({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=wC({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:S,onEntered:E,onEntering:k,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>L.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...GC[e],...m,...a.props.style},ref:x,...n})})}),YC=ur("MuiBox",["root"]),ZC=ji(),XC=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 L.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:Ni,defaultTheme:ZC,defaultClassName:YC.root,generateClassName:ir.generate});function JC(e){return cr("MuiButton",e)}const ek=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"]),tk=L.createContext({}),nk=L.createContext(void 0),rk=[{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}}}],ok=zi(LC,{shouldForwardProp:e=>Wi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Bx(({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"},[`&.${ek.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]},[`&.${ek.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ek.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)",[`&.${ek.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(IC()).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"},[`&.${ek.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ek.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}),[`&.${ek.loading}`]:{color:"transparent"}}}]}})),ik=zi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${$(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}},...rk]})),ak=zi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${$(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}},...rk]})),sk=zi("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}}]})),lk=zi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ck=L.forwardRef(function(e,t){const n=L.useContext(tk),r=L.useContext(nk),o=Fi({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:k="text",...S}=o,E=Fr(m),_=b??d.jsx(VC,{"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:k},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}${$(t)}`,`size${$(o)}`,`${i}Size${$(o)}`,`color${$(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${$(s)}`],startIcon:["icon","startIcon",`iconSize${$(o)}`],endIcon:["icon","endIcon",`iconSize${$(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},JC,l);return{...l,...c}})(T),A=(x||y&&"start"===v)&&d.jsx(ik,{className:P.startIcon,ownerState:T,children:x||d.jsx(lk,{className:P.loadingIconPlaceholder,ownerState:T})}),R=(p||y&&"end"===v)&&d.jsx(ak,{className:P.endIcon,ownerState:T,children:p||d.jsx(lk,{className:P.loadingIconPlaceholder,ownerState:T})}),O=r||"",M="boolean"==typeof y?d.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(sk,{className:P.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(ok,{ownerState:T,className:sr(n.className,P.root,l,O),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(P.focusVisible,h),ref:t,type:C,id:y?E:m,...S,classes:P,children:[A,"end"!==v&&M,i,"end"===v&&M,R]})});function uk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Kx(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 dk=L.forwardRef(function(e,t){const n=$i(),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=sC,...C}=e,k=L.useRef(null),S=Qx(KC(s),k,t),E=e=>t=>{e&&(void 0===t?e(k.current):e(k.current,t))},_=E((e,t)=>{uk(c,e,l),vC(e),p&&p(e,t)}),T=E((e,t)=>{const r=wC({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),A=E(b),R=E(e=>{const t=wC({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),uk(c,e,l),m&&m(e)}),O=E(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),M=L.useCallback(()=>{k.current&&uk(c,k.current,l)},[c,l]);return L.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{k.current&&uk(c,k.current,l)}),t=Kx(k.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),L.useEffect(()=>{f||M()},[f,M]),d.jsx(x,{nodeRef:k,onEnter:_,onEntered:P,onEntering:T,onExit:R,onExited:O,onExiting:A,addEndListener:e=>{i&&i(k.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>L.cloneElement(s,{ref:S,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),fk=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=L.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,...k}=l,S=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),A=e.columnSpacing??e.spacing??(C?void 0:x),R={...l,level:C,columns:_,container:p,direction:g,wrap:m,spacing:T,rowSpacing:P,columnSpacing:A,size:S,offset:E},O=((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),{})})(R,s);return d.jsx(a,{ref:t,as:h,ownerState:R,className:sr(O.root,c),...k,children:L.Children.map(u,e=>{return L.isValidElement(e)&&(t=e,n=["Grid"],L.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName))&&p&&e.props.container?L.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e;var t,n})})});return s.muiName="Grid",s}({createStyledComponent:zi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Fi({props:e,name:"MuiGrid"}),useTheme:$i}),pk={entering:{transform:"none"},entered:{transform:"none"}},hk=L.forwardRef(function(e,t){const n=$i(),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=sC,...v}=e,w=L.useRef(null),x=Qx(w,KC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{vC(e);const r=wC({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=wC({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:S,onEntered:E,onEntering:k,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>L.cloneElement(a,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...pk[e],...m,...a.props.style},ref:x,...n})})}),gk=function(e={}){const{createStyledComponent:t=ho,useThemeProps:n=go,componentName:r="MuiStack"}=e,o=t(yo);return L.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:zi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Fi({props:e,name:"MuiStack"})});class mk extends L.PureComponent{componentDidMount(){}render(){return Fx.disableLoginPage?d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(XC,{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(XC,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(VC,{color:"inherit"})})]}):d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"}})}}class yk extends L.PureComponent{render(){return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041():"1048"==ta.GAME_ID?this.render1048():this.renderDefault()}renderDefault(){return d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${Xl("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${Xl("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${Xl("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(XC,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${Xl("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}}const bk={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 vk extends L.PureComponent{constructor(){super(...arguments),this._aniUrl=`${Xl("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(bk).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=bk[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(XC,{sx:{marginLeft:8,height:118},children:d.jsx(XC,{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(XC,{sx:{marginLeft:8,height:118}})}}class wk extends L.PureComponent{render(){const e=window.Telegram.WebApp.isFullscreen;return d.jsx(QC,{in:!0,timeout:{enter:1e3},children:d.jsxs(XC,{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(vk,{}),d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(XC,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}class xk extends L.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=ql[e];return d.jsxs(XC,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(XC,{component:"img",src:`${Xl(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(XC,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Ck extends L.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=sc.gameInfo;return d.jsxs(XC,{sx:{pb:2},children:[d.jsxs(XC,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(XC,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(XC,{children:[d.jsx(XC,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(fk,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(fk,{children:d.jsx(xk,{tagId:e})},t))})]})]}),d.jsx(XC,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const kk=function(e){function t(t,n){return d.jsx(Vx,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=Vx.muiName,L.memo(L.forwardRef(t))}(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 Sk extends L.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(XC,{content:e,sx:s,children:e})}}class Ek extends L.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(XC,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(XC,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(XC,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(XC,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(VC,{color:"inherit"})})]})})}}let _k=null;const Tk=()=>{if(_k)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(Ek,{})),_k={div:e,root:t}},Pk=()=>{if(!_k)return;const e=_k.div;_k.root.unmount(),e.parentNode?.removeChild(e),_k=null};class Ak extends L.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(()=>{Ok(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(XC,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(dk,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(XC,{children:d.jsx(hk,{in:!0,timeout:{enter:1e3},children:d.jsx(XC,{sx:{display:"flex"},children:d.jsx(QC,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(XC,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const Rk={},Ok=e=>{const t=Rk[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete Rk[e]},Mk=e=>{const t=(n=1,r=1e3,Math.floor(Math.random()*(r-n+1)+n)+"-"+Date.now());var n,r;const o=document.createElement("div");document.body.appendChild(o);const i=M.createRoot(o);i.render(d.jsx(Ak,{id:t,text:e})),Rk[t]={div:o,root:i}};class Lk extends L.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!sc.plutoId)return void console.log("pluto id is null");if(!Jl())return void console.log("sharing is not available outside the Telegram environment");if(!Fx.shareMessageEnable())return void Mk("If you are unable to share, please update Telegram to the latest version and try again.");const e=Fx.formatShareLink();Tk(),Fx.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),Fx.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{Pk()})}}render(){return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(kk,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(Sk,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class jk extends L.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){zx.subscribe(El,this.onReady)}componentWillUnmount(){zx.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?d.jsx(XC,{sx:{height:50,position:"relative",mx:1.25},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Sk,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):d.jsxs(XC,{sx:{height:50,position:"relative",mx:1.25},children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(XC,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(Sk,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(VC,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}class Ik extends L.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{component:"img",src:Xl("add_screen.png"),sx:{position:"relative"}})]})})}}const Nk=zi(XC)(()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"}));class $k extends L.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_l,Nl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Pl,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${Xl("bg_1.png")})`}}),d.jsx(wk,{}),d.jsx(XC,{sx:{width:1,bottom:rc()?40:20,position:"absolute"},children:d.jsx(dk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(XC,{children:[d.jsxs(Nk,{children:[d.jsx(yk,{}),d.jsxs(XC,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(Ck,{}),Fx.disableLoginShare?null:rc()?d.jsxs(XC,{sx:{height:50},children:[d.jsx(XC,{sx:{width:.8,height:50,float:"left"},children:d.jsx(Lk,{})}),d.jsx(XC,{sx:{width:.18,height:50,float:"right"},children:d.jsx(Ik,{})})]}):d.jsx(Lk,{})]})]}),d.jsx(Nk,{sx:{paddingTop:2},children:d.jsx(jk,{onClick:this.onClickPlay})})]})})})]})}}class Dk extends L.PureComponent{render(){return"1041"==ta.GAME_ID||"1048"==ta.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(XC,{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(XC,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class Wk extends L.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(XC,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(XC,{component:"img",src:Xl("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(XC,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(XC,{component:"img",src:Xl("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(XC,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e){return d.jsx(XC,{sx:{width:1,height:60,position:"relative",pt:2},children:d.jsxs(XC,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(XC,{component:"img",src:Xl("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(Sk,{content:e,fontSize:32,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(XC,{component:"img",src:Xl("1041_title_2.png"),sx:{position:"relative",ml:2}})]})})}render1048(e,t){return d.jsxs(XC,{sx:{width:1,height:70},children:[d.jsx(XC,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(Sk,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(XC,{component:"img",src:Xl("1048_close.png"),sx:{width:52,height:52,position:"absolute",top:10,right:10},onClick:t})]})}}class zk extends L.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(ck,{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(ck,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${Xl("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(XC,{sx:{position:"relative"},children:d.jsx(Sk,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(ck,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}}class Uk extends L.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(ck,{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(ck,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",pb:"4px"},children:d.jsx(Sk,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(ck,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}}class Fk extends L.PureComponent{constructor(){super(...arguments),this.state={address:Ux.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Ux.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Ux.disconnect()}}componentDidMount(){zx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){zx.unsubscribe(this.onWalletConnect)}render(){const{address: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(gk,{spacing:1,sx:{float:"right",width:114},children:[d.jsx(zk,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(Uk,{onClickDisconnect:this.onClickDisconnect}):null]})}}class Bk extends L.PureComponent{render(){const{name:e,usd:t}=sc.purchaseData;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(XC,{sx:{textAlign:"center",mb:2},children:[d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(XC,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(Fk,{})})]})}render1041(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(XC,{sx:{textAlign:"center",mb:2},children:[d.jsx(XC,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(Sk,{content:e,fontSize:24,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(XC,{sx:{mt:1,mb:3,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:24,pt:1},children:d.jsx(Fk,{})})]})}render1048(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(XC,{children:[d.jsx(XC,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(XC,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(Fk,{})})]})}}class qk extends L.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(XC,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(XC,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(XC,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:66,height:62,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{position:"relative",justifyItems:"center",pt:"11px"},children:d.jsx(Sk,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{position:"relative",justifyItems:"center",mt:"-7px"},children:d.jsx(Sk,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})})}render1048(e){return d.jsx(XC,{sx:{top:-11,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:52,height:66,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{top:17,left:-8,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(XC,{sx:{bottom:7,left:-2,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}}class Hk extends L.PureComponent{render(){return d.jsx(XC,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(XC,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(XC,{sx:{mt:"4px"},children:d.jsx(Sk,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{mt:"-4px"},children:d.jsx(Sk,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{mt:"-4px"},children:d.jsx(Sk,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class Vk extends L.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=Bl[ta.GAME_ID]||Bl[0],s=Xl(a[e]),l=Fl[e];let c=`${e==zl.star?t:t.toFixed(2)}`,u=`${e==zl.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"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(s,c,u,r,o,p,h,!!i):"1048"==ta.GAME_ID?this.render1048(s,c,u,r,o,p,h,!!i,e==zl.coc):this.renderDefault(s,c,u,r,o,p,h,!!i)}renderDefault(e,t,n,r,o,i,a,s){return d.jsxs(XC,{sx:{height:50,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3,"& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"contained",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(qk,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(XC,{sx:{height:64,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(qk,{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(XC,{sx:{height:54,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:"26px","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(Hk,{}):null,d.jsx(qk,{discount:r})]})}}class Kk extends L.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(XC,{sx:{width:1,height:140,mb:2},children:[d.jsx(XC,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Xl("1048_suggest_bg.png")})`}}),d.jsxs(XC,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(XC,{sx:{position:"absolute",width:1},children:d.jsx(XC,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(Sk,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(XC,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(XC,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(XC,{sx:{position:"absolute",width:1},children:d.jsx(XC,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(Sk,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(XC,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(Sk,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(XC,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(Sk,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(XC,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(Sk,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class Gk extends L.PureComponent{constructor(){super(...arguments),this._status=!1,this._cocInsufficient=!1,this._tokenInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{zx.publish(_l,Nl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickStar=()=>{const e=Ul[zl.star];Tk(),Fx.reqOrder($l.star,e).then(t=>{Fx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,0),Fx.openInvoice(t.payLink).then(()=>{Fx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,1),this._status=!0,this.onClickClose()}).catch(n=>{console.log(n),Fx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,2),Mk(n.message)})}).catch(e=>{Mk(e.message)}).finally(()=>{Pk()})},this.onClickCati=()=>{const e=Ul[zl.cati];this.connectWallet().then(()=>(Tk(),Fx.reqOrder($l.tonConnect,e))).then(t=>Ux.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Pk()})},this.onClickPybobo=()=>{const e=Ul[zl.pybobo];this.connectWallet().then(()=>(Tk(),Fx.reqOrder($l.tonConnect,e))).then(t=>Ux.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Pk()})},this.onClickTon=()=>{const e=Ul[zl.ton];this.connectWallet().then(()=>(Tk(),Fx.reqOrder($l.tonConnect,e))).then(e=>{this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Pk()})},this.onClickUsdt=()=>{const e=Ul[zl.usdt];this.connectWallet().then(()=>(Tk(),Fx.reqOrder($l.tonConnect,e))).then(t=>Ux.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Pk()})},this.onClickCoc=()=>{const e=Ul[zl.coc];Tk(),Fx.reqOrder($l.coc,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._cocInsufficient=!0,this.onClickClose()):Mk(e.message)}).finally(()=>{Pk()})},this.onClickCroco=()=>{const e=Ul[zl.croco];Tk(),Fx.reqOrder($l.croco,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._tokenInsufficient=!0,this.onClickClose()):Mk(e.message)}).finally(()=>{Pk()})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=sc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?sc.purchaseData.orderNo:""};this._cocInsufficient&&(o.cocInsufficient=!0),this._tokenInsufficient&&(o.tokenInsufficient=!0),zx.publish(Al,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}=sc.purchaseData,{showSlide:k}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(Dk,{}),d.jsxs(XC,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(XC,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(XC,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:4,"@media (max-height: 480px)":{top:10}},children:d.jsx(dk,{direction:"up",in:k,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(XC,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(yk,{}),d.jsx(Wk,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(Bk,{}),this.cocPayEnable()&&h?d.jsx(Kk,{}):null,d.jsxs(gk,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(Vk,{currencyKey:zl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.crocoPayEnable()&&w?d.jsx(Vk,{currencyKey:zl.croco,price:w,oldPrice:x,discount:C,onClickPay:this.onClickCroco}):null,this.catiPayEnable()?d.jsx(Vk,{currencyKey:zl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati}):null,this.pyboboPayEnable()?d.jsx(Vk,{currencyKey:zl.pybobo,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPybobo}):null,this.tonPayEnable()?d.jsx(Vk,{currencyKey:zl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon}):null,this.usdtPayEnable()?d.jsx(Vk,{currencyKey:zl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt}):null,this.starPayEnable()?d.jsx(Vk,{currencyKey:zl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null]})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Ux.connected)return e();Ux.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Ux.chain;ta.TEST_MODE&&t==Ac.MAINNET?Mk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Ac.TESTNET?Ux.sendTransaction(e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{console.log(e.message)}):Mk("Please switch chain MAINNET")}starPayEnable(){return!!Jl()}usdtPayEnable(){return!this.onlyUsePyboboPayProduct()&&this.cryptoPayEnable()}tonPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041","1048","1060"].includes(ta.GAME_ID)}catiPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041"].includes(ta.GAME_ID)}pyboboPayEnable(){return this.onlyUsePyboboPayProduct()}cocPayEnable(){return"1048"==ta.GAME_ID}crocoPayEnable(){return"1060"==ta.GAME_ID}cryptoPayEnable(){return!!ta.TEST_MODE||!tc()&&!nc()}onlyUsePyboboPayProduct(){if("1060"!=ta.GAME_ID)return!1;const{productId:e}=sc.purchaseData,t=parseInt(e);return!(t<6e5||t>61e4)}}class Qk extends L.PureComponent{render(){const{name:e}=sc.checkInData;return d.jsxs(XC,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(XC,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(XC,{sx:{mx:5,mt:"1048"==ta.GAME_ID?3:1,position:"relative"},children:d.jsx(Fk,{})})]})}}class Yk extends L.PureComponent{constructor(){super(...arguments),this.state={buttonText:Ux.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){zx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){zx.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Sk,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Zk extends L.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{zx.publish(_l,Nl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=sc.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}=sc.checkInData;zx.publish(Rl,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(Dk,{}),d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(XC,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(XC,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(dk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(XC,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(yk,{}),d.jsx(Wk,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(Qk,{}),d.jsx(gk,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(Yk,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Ux.connected)return e();Ux.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Ux.chain;ta.TEST_MODE&&t==Ac.MAINNET?Mk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Ac.TESTNET?Ux.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):Mk("Please switch chain MAINNET")}verify(e){const t=Ux.chain,n=Ux.friendlyAddress,r=sc.checkInData.orderNo;Tk(),Fx.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{Mk(e.message),this.onClickClose()}).finally(()=>{Pk()})}}const Xk=zi(XC)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class Jk extends L.PureComponent{constructor(){super(...arguments),this.state={pageId:Nl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){zx.subscribe(_l,this.onSwitchPage),zx.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Nl.index:t=mk;break;case Nl.login:t=$k;break;case Nl.purchase:t=Gk;break;case Nl.checkIn:t=Zk}return t?d.jsx(Xk,{children:d.jsx(t,{})}):null}}const eS=()=>{console.info(`Pluto SDK version: ${ta.APP_VERSION}`),ta.init(),Hl.init(),Fx.init(),Ux.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);M.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Qi,{}),d.jsx(Jk,{})]}))};const tS=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[Ml];e&&e.apply(null,[t]);const n=this._callbackMap[Ml];n&&(n.apply(null,[t]),this._callbackMap[Ml]=null)}catch(n){console.error(n)}},zx.subscribe(Pl,this.onPlayButtonClicked),zx.subscribe(Al,this.onPuchaseCompleted),zx.subscribe(Rl,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class nS extends L.PureComponent{render(){const e=sc.gameInfo.orientation==Dl.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(XC,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(XC,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(XC,{component:"img",src:Xl(n),sx:{position:"relative"}}),d.jsx(XC,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(XC,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let rS=null;const oS=()=>{if(rS)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(nS,{})),rS={div:e,root:t}},iS=()=>{if(!rS)return;const e=rS.div;rS.root.unmount(),e.parentNode?.removeChild(e),rS=null};const aS=new class{constructor(){this._appDidMount=!1,this._loadGameState=Ll.init,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},zx.subscribe(kl,this.onAppDidMount)}init(e){return e&&Fx.requestFullScreen(),new Promise((e,t)=>{if(sc.gameInfo)return this._initialized=!0,this.addOrientationChangeListener(),e();zx.subscribeOnce(Sl,(n,r)=>{if(r)return this._initialized=!0,this.addOrientationChangeListener(),e();Mk("Init game error, please try again later"),t({code:Il.initError,message:"Init error"})}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject({code:Il.logined,message:"Pluto sdk already login"}):Fx.reqLogin().then(e=>(this._logined=!0,e)):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}ready(){this._logined?Fx.disableLoginPage?zx.publish(_l,Nl.none):zx.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._purchaseing?s({code:Il.purchaseing,message:"Payment is being processed"}):(tS.registerCallback(Ol,i),this._purchaseing=!0,void Fx.reqPurchase(e,t,n,r,o).then(()=>{this._purchaseing=!1,zx.publish(_l,Nl.purchase),a()}).catch(e=>{this._purchaseing=!1,console.log(e.message),s(e)})):s({code:Il.notLogin,message:"Pluto sdk not login"}):s({code:Il.paramError,message:"Params error"}))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i({code:Il.checkingIn,message:"Check in is being processed"}):(tS.registerCallback(Ml,r),this._checkingIn=!0,void Fx.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,zx.publish(_l,Nl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i({code:Il.notLogin,message:"Pluto sdk not login"}):i({code:Il.paramError,message:"Params error"}))}share(e,t,n,r,o){if(!this._logined)return Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"});if(!Jl())return Promise.reject({code:Il.shareError,message:"Sharing is not available outside the Telegram environment"});if(!Fx.shareMessageEnable())return Mk("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject({code:Il.shareError,message:"Method not support"});const i=Fx.formatShareLink(e);return Fx.reqGetShareMessage(i,t,n,r,o).then(e=>Fx.shareMessage(e))}getShareLink(e){return this._logined?Fx.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n({code:Il.notLogin,message:"Pluto sdk not login"});let r=Fx.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t({code:Il.clipboardError,message:"Param is null"});oc(o).then(()=>{e()}).catch(()=>{ic(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?Fx.reqGetItem(e):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?Fx.reqSetItem(e,t):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}consumePurchase(e){return this._initialized?e?Fx.reqFinishOrder(e):Promise.reject({code:Il.paramError,message:"Params error"}):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}queryPurchases(){return this._initialized?Fx.reqUnfinishRecord():Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&tS.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return rc()&&Jl()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return rc()&&Jl()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return Jl()?Fx.playAd(e):Promise.reject({code:Il.playAdError,message:"Playing ads is not available outside the Telegram environment"})}vibrate(e){Jl()||console.log("Vibrate is not available outside the Telegram environment"),Fx.vibrate(e)}isDesktopEnabled(){return ec()&&(tc()||nc())}isTelegramClient(){return ec()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!ta.GAME_URL)return void console.log("game url is null");const t=(new Xi.Base64).encode(ta.INIT_DATA),n=new URL(ta.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return ta.CP_CUSTOM_LINK}getStartParam(){return ta.START_PARAM}connectWallet(){return Ux.connect()}disconnectWallet(){return Ux.disconnect()}isConnectedWallet(){return Ux.connected}getWalletRawAddress(){return Ux.rawAddress}getWalletFriendlyAddress(){return Ux.friendlyAddress}getWalletName(){return Ux.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Ul[e];Ux.connect().then(()=>Fx.reqDeposit(a,t,n,r)).then(e=>Ux.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return Ux.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t({code:Il.notLogin,message:"Pluto sdk not login"});Fx.signData().then(()=>{e()}).catch(e=>{e.code==Il.walletBindInCd&&Mk("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?Fx.reqGetNfts():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}setGameUserId(e,t){this._logined?Fx.reqSetGameUserId(e,t):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?Fx.reqCocGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocWithdraw(e,t,n){return this._logined?Fx.reqCocWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocClaim(e){return this._logined?Fx.reqCocClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetWithdrawDetail(e){return this._logined?Fx.reqCocGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetRecords(e,t,n){return this._logined?Fx.reqCocGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocQueryConsume(e){return this._logined?Fx.reqCocQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocCancelWithdraw(e){return this._logined?Fx.reqCocCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetInfo(){return this._logined?Fx.reqSpGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spWithdraw(e,t,n){return this._logined?Fx.reqSpWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spClaim(e){return this._logined?Fx.reqSpClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetWithdrawDetail(e){return this._logined?Fx.reqSpGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetRecords(e,t,n){return this._logined?Fx.reqSpGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spQueryConsume(e){return this._logined?Fx.reqSpQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spCancelWithdraw(e){return this._logined?Fx.reqSpCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}getGameInfo(){this._loadGameState==Ll.init&&(this._loadGameState=Ll.loading,Fx.reqGameInfo().then(e=>{this._loadGameState=Ll.done,zx.publish(Sl,!0),Fx.disableLoginPage||zx.publish(_l,Nl.login)}).catch(e=>{this._loadGameState=Ll.init,zx.publish(Sl,!1),console.log(e)}))}addOrientationChangeListener(){rc()&&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")?Dl.portrait:Dl.landscape)==sc.gameInfo.orientation)return void iS();oS()}catch(e){console.log(e)}}};return document.body?eS():document.addEventListener("DOMContentLoaded",e=>{eS()}),e.checkIn=(e,t,n="",r=null)=>aS.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>aS.cocCancelWithdraw(e),e.cocClaim=e=>aS.cocClaim(e),e.cocGetInfo=()=>aS.cocGetInfo(),e.cocGetRecords=(e,t,n)=>aS.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>aS.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>aS.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>aS.cocWithdraw(e,t,n),e.connectWallet=()=>aS.connectWallet(),e.consumePurchase=e=>aS.consumePurchase(e),e.copyShareLink=(e="")=>aS.copyShareLink(e),e.depositToken=(e,t,n,r)=>aS.depositToken(e,t,n,r),e.disconnectWallet=()=>aS.disconnectWallet(),e.getContentSafeAreaInset=()=>aS.getContentSafeAreaInset(),e.getCpCustomLink=()=>aS.getCpCustomLink(),e.getItem=e=>aS.getItem(e),e.getNfts=()=>aS.getNfts(),e.getSafeAreaInset=()=>aS.getSafeAreaInset(),e.getShareLink=(e="")=>aS.getShareLink(e),e.getStartParam=()=>aS.getStartParam(),e.getWalletFriendlyAddress=()=>aS.getWalletFriendlyAddress(),e.getWalletName=()=>aS.getWalletName(),e.getWalletRawAddress=()=>aS.getWalletRawAddress(),e.init=(e=!1)=>aS.init(e),e.isConnectedWallet=()=>aS.isConnectedWallet(),e.isDesktopEnabled=()=>aS.isDesktopEnabled(),e.isTelegramClient=()=>aS.isTelegramClient(),e.login=()=>aS.login(),e.onEvent=(e,t)=>{aS.onEvent(e,t)},e.openGameForWeb=(e="")=>{aS.openGameForWeb(e)},e.playAd=(e="ad_event1")=>aS.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>aS.purchase(e,t,n,r,o,i),e.queryPurchases=()=>aS.queryPurchases(),e.queryPurchses=()=>aS.queryPurchases(),e.ready=()=>{aS.ready()},e.setGameUserId=(e,t=1)=>{aS.setGameUserId(e,t)},e.setItem=(e,t)=>aS.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>aS.share(e,t,n,r,o),e.signData=()=>aS.signData(),e.spCancelWithdraw=e=>aS.spCancelWithdraw(e),e.spClaim=e=>aS.spClaim(e),e.spGetInfo=()=>aS.spGetInfo(),e.spGetRecords=(e,t,n)=>aS.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>aS.spGetWithdrawDetail(e),e.spQueryConsume=e=>aS.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>aS.spWithdraw(e,t,n),e.vibrate=e=>{aS.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
|
|
1285
|
+
`:null,UC=zi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${$(n.color)}`]]}})(Bx(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:zC||{animation:`${DC} 1.4s linear infinite`}},...Object.entries(e.palette).filter(IC()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BC=zi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qC=zi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Bx(({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:FC||{animation:`${WC} 1.4s ease-in-out infinite`}}]}))),HC=zi("circle",{name:"MuiCircularProgress",slot:"Track"})(Bx(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),VC=j.forwardRef(function(e,t){const n=Ui({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${$(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${$(n)}`,o&&"circleDisableShrink"]},NC,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*(($C-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(UC,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(BC,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(HC,{className:g.track,ownerState:h,cx:$C,cy:$C,r:($C-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(qC,{className:g.circle,style:m,ownerState:h,cx:$C,cy:$C,r:($C-c)/2,fill:"none",strokeWidth:c})]})})});function KC(e){return parseInt(j.version,10)>=19?e?.props?.ref||null:e?.ref||null}const GC={entering:{opacity:1},entered:{opacity:1}},QC=j.forwardRef(function(e,t){const n=$i(),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=sC,...v}=e,w=j.useRef(null),x=Qx(w,KC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{vC(e);const r=wC({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=wC({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)}),A=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:A,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",...GC[e],...m,...a.props.style},ref:x,...n})})}),YC=ur("MuiBox",["root"]),ZC=Li(),XC=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:Ni,defaultTheme:ZC,defaultClassName:YC.root,generateClassName:ir.generate});function JC(e){return cr("MuiButton",e)}const ek=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"]),tk=j.createContext({}),nk=j.createContext(void 0),rk=[{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}}}],ok=zi(jC,{shouldForwardProp:e=>Wi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Bx(({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"},[`&.${ek.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]},[`&.${ek.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ek.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)",[`&.${ek.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(IC()).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"},[`&.${ek.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ek.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}),[`&.${ek.loading}`]:{color:"transparent"}}}]}})),ik=zi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${$(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}},...rk]})),ak=zi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${$(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}},...rk]})),sk=zi("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}}]})),lk=zi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ck=j.forwardRef(function(e,t){const n=j.useContext(tk),r=j.useContext(nk),o=Ui({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:k="text",...S}=o,E=Ur(m),_=b??d.jsx(VC,{"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:k},A=(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}${$(t)}`,`size${$(o)}`,`${i}Size${$(o)}`,`color${$(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${$(s)}`],startIcon:["icon","startIcon",`iconSize${$(o)}`],endIcon:["icon","endIcon",`iconSize${$(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},JC,l);return{...l,...c}})(T),P=(x||y&&"start"===v)&&d.jsx(ik,{className:A.startIcon,ownerState:T,children:x||d.jsx(lk,{className:A.loadingIconPlaceholder,ownerState:T})}),R=(p||y&&"end"===v)&&d.jsx(ak,{className:A.endIcon,ownerState:T,children:p||d.jsx(lk,{className:A.loadingIconPlaceholder,ownerState:T})}),O=r||"",M="boolean"==typeof y?d.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(sk,{className:A.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(ok,{ownerState:T,className:sr(n.className,A.root,l,O),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(A.focusVisible,h),ref:t,type:C,id:y?E:m,...S,classes:A,children:[P,"end"!==v&&M,i,"end"===v&&M,R]})});function uk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Kx(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 dk=j.forwardRef(function(e,t){const n=$i(),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=sC,...C}=e,k=j.useRef(null),S=Qx(KC(s),k,t),E=e=>t=>{e&&(void 0===t?e(k.current):e(k.current,t))},_=E((e,t)=>{uk(c,e,l),vC(e),p&&p(e,t)}),T=E((e,t)=>{const r=wC({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)}),A=E(h),P=E(b),R=E(e=>{const t=wC({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),uk(c,e,l),m&&m(e)}),O=E(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),M=j.useCallback(()=>{k.current&&uk(c,k.current,l)},[c,l]);return j.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{k.current&&uk(c,k.current,l)}),t=Kx(k.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),j.useEffect(()=>{f||M()},[f,M]),d.jsx(x,{nodeRef:k,onEnter:_,onEntered:A,onEntering:T,onExit:R,onExited:O,onExiting:P,addEndListener:e=>{i&&i(k.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>j.cloneElement(s,{ref:S,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),fk=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,...k}=l,S=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),A=e.rowSpacing??e.spacing??(C?void 0:w),P=e.columnSpacing??e.spacing??(C?void 0:x),R={...l,level:C,columns:_,container:p,direction:g,wrap:m,spacing:T,rowSpacing:A,columnSpacing:P,size:S,offset:E},O=((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),{})})(R,s);return d.jsx(a,{ref:t,as:h,ownerState:R,className:sr(O.root,c),...k,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:zi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ui({props:e,name:"MuiGrid"}),useTheme:$i}),pk={entering:{transform:"none"},entered:{transform:"none"}},hk=j.forwardRef(function(e,t){const n=$i(),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=sC,...v}=e,w=j.useRef(null),x=Qx(w,KC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{vC(e);const r=wC({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=wC({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)}),A=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:A,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",...pk[e],...m,...a.props.style},ref:x,...n})})}),gk=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:zi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ui({props:e,name:"MuiStack"})});class mk extends j.PureComponent{componentDidMount(){}render(){return Ux.disableLoginPage?this.renderLoading():"1057"==ta.GAME_ID?this.render1057():this.renderDefault()}renderLoading(){return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(XC,{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(XC,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(VC,{color:"inherit"})})]})}renderDefault(){return d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"}})}render1057(){return d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Xl("1057_bg_1.png")})`}})}}class yk extends j.PureComponent{render(){return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041():"1048"==ta.GAME_ID?this.render1048():"1057"==ta.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${Xl("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${Xl("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${Xl("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(XC,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${Xl("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}render1057(){return d.jsx(XC,{sx:{position:"absolute",inset:10,backgroundColor:"#fff",borderRadius:2,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.8)"}})}}const bk={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 vk extends j.PureComponent{constructor(){super(...arguments),this._aniUrl=`${Xl("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(bk).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=bk[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(XC,{sx:{marginLeft:8,height:118},children:d.jsx(XC,{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(XC,{sx:{marginLeft:8,height:118}})}}class wk extends j.PureComponent{render(){return"1057"==ta.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){const e=window.Telegram.WebApp.isFullscreen;return d.jsx(QC,{in:!0,timeout:{enter:1e3},children:d.jsxs(XC,{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(vk,{}),d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(XC,{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(QC,{in:!0,timeout:{enter:1e3},children:d.jsxs(XC,{sx:{width:1,top:"6%",position:"absolute",textAlign:"center"},children:[d.jsx(XC,{component:"img",src:Xl("1057_logo.png"),sx:{width:285,height:240}}),d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",color:"#fff"},children:"Catizen"})]})})}}class xk extends j.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=ql[e];return d.jsxs(XC,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(XC,{component:"img",src:`${Xl(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(XC,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Ck extends j.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=sc.gameInfo;return"1057"==ta.GAME_ID?this.render1057(e,t,n,r):this.renderDefault(e,t,n,r)}renderDefault(e,t,n,r){return d.jsxs(XC,{sx:{pb:2},children:[d.jsxs(XC,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(XC,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(XC,{children:[d.jsx(XC,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(fk,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(fk,{children:d.jsx(xk,{tagId:e})},t))})]})]}),d.jsx(XC,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}render1057(e,t,n,r){return d.jsxs(XC,{sx:{pb:2},children:[d.jsxs(XC,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(XC,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(XC,{children:[d.jsx(XC,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#333333",textAlign:"left"},children:t}),d.jsx(fk,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(fk,{children:d.jsx(xk,{tagId:e})},t))})]})]}),d.jsx(XC,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#4c4a4a",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const kk=function(e){function t(t,n){return d.jsx(Vx,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=Vx.muiName,j.memo(j.forwardRef(t))}(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 Sk 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(XC,{content:e,sx:s,children:e})}}class Ek 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(XC,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(XC,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(XC,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(XC,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(VC,{color:"inherit"})})]})})}}let _k=null;const Tk=()=>{if(_k)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(Ek,{})),_k={div:e,root:t}},Ak=()=>{if(!_k)return;const e=_k.div;_k.root.unmount(),e.parentNode?.removeChild(e),_k=null};class Pk 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(()=>{Ok(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(XC,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(dk,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(XC,{children:d.jsx(hk,{in:!0,timeout:{enter:1e3},children:d.jsx(XC,{sx:{display:"flex"},children:d.jsx(QC,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(XC,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const Rk={},Ok=e=>{const t=Rk[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete Rk[e]},Mk=e=>{const t=(n=1,r=1e3,Math.floor(Math.random()*(r-n+1)+n)+"-"+Date.now());var n,r;const o=document.createElement("div");document.body.appendChild(o);const i=M.createRoot(o);i.render(d.jsx(Pk,{id:t,text:e})),Rk[t]={div:o,root:i}};class jk extends j.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!sc.plutoId)return void console.log("pluto id is null");if(!Jl())return void console.log("sharing is not available outside the Telegram environment");if(!Ux.shareMessageEnable())return void Mk("If you are unable to share, please update Telegram to the latest version and try again.");const e=Ux.formatShareLink();Tk(),Ux.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),Ux.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{Ak()})}}render(){return"1057"==ta.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(kk,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(Sk,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}render1057(){return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${Xl("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(XC,{component:"img",src:Xl("1057_telegram.png"),sx:{width:28,height:28,mr:1,position:"relative"}}),d.jsx(Sk,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})]})})}}class Lk extends j.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){zx.subscribe(El,this.onReady)}componentWillUnmount(){zx.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return"1057"==ta.GAME_ID?this.render1057(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(XC,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Sk,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(XC,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(Sk,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(VC,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}render1057(e,t){return d.jsx(XC,{sx:{height:50,position:"relative",mx:1.25},children:e?d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Sk,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]}):d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("1057_button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(XC,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(Sk,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(VC,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})})}}class Ik extends j.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{component:"img",src:Xl("add_screen.png"),sx:{position:"relative"}})]})})}}class Nk extends j.PureComponent{render(){return"1057"==ta.GAME_ID?this.render1057():this.renderDefault()}renderDefault(){return d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2",backgroundImage:`url(${Xl("bg_1.png")})`}})}render1057(){return d.jsx(XC,{sx:{width:1,height:1,position:"relative",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Xl("1057_bg_1.png")})`}})}}const $k=zi(XC)(()=>({width:"100%",maxWidth:420,margin:"0 auto",position:"relative"}));class Dk extends j.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_l,Nl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Al,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(Nk,{}),d.jsx(wk,{}),d.jsx(XC,{sx:{width:1,bottom:rc()?40:20,position:"absolute"},children:d.jsx(dk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(XC,{children:[d.jsxs($k,{children:[d.jsx(yk,{}),d.jsxs(XC,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(Ck,{}),Ux.disableLoginShare?null:Ux.disableAddScreen?d.jsx(jk,{}):d.jsxs(XC,{sx:{height:50},children:[d.jsx(XC,{sx:{width:.8,height:50,float:"left"},children:d.jsx(jk,{})}),d.jsx(XC,{sx:{width:.18,height:50,float:"right"},children:d.jsx(Ik,{})})]})]})]}),d.jsx($k,{sx:{paddingTop:2},children:d.jsx(Lk,{onClick:this.onClickPlay})})]})})})]})}}class Wk extends j.PureComponent{render(){return"1041"==ta.GAME_ID||"1048"==ta.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(XC,{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(XC,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class zk extends j.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e,t):"1057"==ta.GAME_ID?this.render1057(e):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(XC,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(XC,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(XC,{component:"img",src:Xl("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(XC,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(XC,{component:"img",src:Xl("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(XC,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e){return d.jsx(XC,{sx:{width:1,height:60,position:"relative",pt:2},children:d.jsxs(XC,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(XC,{component:"img",src:Xl("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(Sk,{content:e,fontSize:28,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(XC,{component:"img",src:Xl("1041_title_2.png"),sx:{position:"relative",ml:2}})]})})}render1048(e,t){return d.jsxs(XC,{sx:{width:1,height:70},children:[d.jsx(XC,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(Sk,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(XC,{component:"img",src:Xl("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(XC,{sx:{width:1,height:60,position:"relative"},children:d.jsx(XC,{sx:{width:1,height:60,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(XC,{sx:{fontSize:30,fontWeight:"bold",color:"#333333",mx:1},children:e})})}),d.jsx(XC,{sx:{mx:3,borderBottom:"2px solid #F0F0F0",position:"relative"}})]})}}class Fk extends j.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):"1057"==ta.GAME_ID?this.render1057(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(ck,{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(ck,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${Xl("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(XC,{sx:{position:"relative"},children:d.jsx(Sk,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(ck,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}render1057(e,t){return d.jsx(ck,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#838280",borderColor:"#838280",textTransform:"none"},variant:"outlined",onClick:t,children:e})}}class Uk extends j.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(ck,{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(ck,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",pb:"4px"},children:d.jsx(Sk,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(ck,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(XC,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Xl("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}}class Bk extends j.PureComponent{constructor(){super(...arguments),this.state={address:Fx.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Fx.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Fx.disconnect()}}componentDidMount(){zx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){zx.unsubscribe(this.onWalletConnect)}render(){const{address: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(gk,{spacing:1,sx:{float:"right",width:114},children:[d.jsx(Fk,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(Uk,{onClickDisconnect:this.onClickDisconnect}):null]})}}class qk extends j.PureComponent{render(){const{name:e,usd:t}=sc.purchaseData;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):"1057"==ta.GAME_ID?this.render1057(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(XC,{sx:{textAlign:"center",mb:2},children:[d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(XC,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(Bk,{})})]})}render1041(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:4},children:[d.jsxs(XC,{sx:{textAlign:"center",mb:2},children:[d.jsx(XC,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(Sk,{content:e,fontSize:22,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(XC,{sx:{mt:1,mb:3,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:20,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:24},children:d.jsx(Bk,{})})]})}render1048(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(XC,{children:[d.jsx(XC,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(XC,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(Bk,{})})]})}render1057(e,t){return d.jsxs(XC,{sx:{width:1,position:"relative",pt:6,pb:3},children:[d.jsxs(XC,{children:[d.jsx(XC,{sx:{fontSize:20,fontWeight:"bold",color:"#333333",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(XC,{sx:{display:"flex",justifyContent:"center",fontSize:18,fontWeight:"bold",color:"#333333"},children:`= $${t.toFixed(2)}`})]}),d.jsx(XC,{sx:{position:"absolute",top:0,right:22,pt:1},children:d.jsx(Bk,{})})]})}}class Hk extends j.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(XC,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(XC,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(XC,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:66,height:62,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{position:"relative",justifyItems:"center",pt:"11px"},children:d.jsx(Sk,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{position:"relative",justifyItems:"center",mt:"-7px"},children:d.jsx(Sk,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})})}render1048(e){return d.jsx(XC,{sx:{top:-11,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:52,height:66,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(XC,{sx:{top:17,left:-8,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(XC,{sx:{bottom:7,left:-2,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}}class Vk extends j.PureComponent{render(){return d.jsx(XC,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(XC,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(XC,{component:"img",src:Xl("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(XC,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(XC,{sx:{mt:"4px"},children:d.jsx(Sk,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{mt:"-4px"},children:d.jsx(Sk,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(XC,{sx:{mt:"-4px"},children:d.jsx(Sk,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class Kk extends j.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=Bl[ta.GAME_ID]||Bl[0],s=Xl(a[e]),l=Ul[e];let c=`${e==zl.star?t:t.toFixed(2)}`,u=`${e==zl.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"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(s,c,u,r,o,p,h,!!i):"1048"==ta.GAME_ID?this.render1048(s,c,u,r,o,p,h,!!i,e==zl.coc):"1057"==ta.GAME_ID?this.render1057(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(XC,{sx:{height:50,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3,"& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"contained",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Hk,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(XC,{sx:{height:64,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Hk,{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(XC,{sx:{height:54,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:"26px","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(XC,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(Vk,{}):null,d.jsx(Hk,{discount:r})]})}render1057(e,t,n,r,o,i,a,s){return d.jsxs(XC,{sx:{height:50,position:"relative"},children:[d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3,"& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"contained",onClick:o,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,backgroundImage:`url(${Xl("1057_button_2.png")})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"}}),d.jsx(XC,{component:"img",src:e,sx:{width:36,height:36,mr:1,position:"relative"}}),d.jsx(Sk,{content:t,fontSize:i,color:"#FFC65E",strokeColor:"#000",strokeWidth:3}),d.jsx(XC,{sx:{width:"8px"}}),r>0?d.jsx(Sk,{content:n,fontSize:a,color:"#FFC65E",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Hk,{discount:r})]})}}class Gk extends j.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(XC,{sx:{width:1,height:140,mb:2},children:[d.jsx(XC,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Xl("1048_suggest_bg.png")})`}}),d.jsxs(XC,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(XC,{sx:{position:"absolute",width:1},children:d.jsx(XC,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(Sk,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(XC,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(Sk,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(XC,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(XC,{sx:{position:"absolute",width:1},children:d.jsx(XC,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(Sk,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(XC,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(Sk,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(XC,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(Sk,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(XC,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(Sk,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(XC,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(Sk,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(Sk,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(XC,{component:"img",src:Xl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class Qk extends j.PureComponent{constructor(){super(...arguments),this._status=!1,this._cocInsufficient=!1,this._tokenInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{zx.publish(_l,Nl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickStar=()=>{const e=Fl[zl.star];Tk(),Ux.reqOrder($l.star,e).then(t=>{Ux.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,0),Ux.openInvoice(t.payLink).then(()=>{Ux.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,1),this._status=!0,this.onClickClose()}).catch(n=>{console.log(n),Ux.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,2),Mk(n.message)})}).catch(e=>{Mk(e.message)}).finally(()=>{Ak()})},this.onClickCati=()=>{const e=Fl[zl.cati];this.connectWallet().then(()=>(Tk(),Ux.reqOrder($l.tonConnect,e))).then(t=>Fx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Ak()})},this.onClickPybobo=()=>{const e=Fl[zl.pybobo];this.connectWallet().then(()=>(Tk(),Ux.reqOrder($l.tonConnect,e))).then(t=>Fx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Ak()})},this.onClickTon=()=>{const e=Fl[zl.ton];this.connectWallet().then(()=>(Tk(),Ux.reqOrder($l.tonConnect,e))).then(e=>{this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Ak()})},this.onClickUsdt=()=>{const e=Fl[zl.usdt];this.connectWallet().then(()=>(Tk(),Ux.reqOrder($l.tonConnect,e))).then(t=>Fx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&Mk(e.message)}).finally(()=>{Ak()})},this.onClickCoc=()=>{const e=Fl[zl.coc];Tk(),Ux.reqOrder($l.coc,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._cocInsufficient=!0,this.onClickClose()):Mk(e.message)}).finally(()=>{Ak()})},this.onClickCroco=()=>{const e=Fl[zl.croco];Tk(),Ux.reqOrder($l.croco,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._tokenInsufficient=!0,this.onClickClose()):Mk(e.message)}).finally(()=>{Ak()})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=sc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?sc.purchaseData.orderNo:""};this._cocInsufficient&&(o.cocInsufficient=!0),this._tokenInsufficient&&(o.tokenInsufficient=!0),zx.publish(Pl,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}=sc.purchaseData,{showSlide:k}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(Wk,{}),d.jsxs(XC,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(XC,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(XC,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:4,"@media (max-height: 480px)":{top:10}},children:d.jsx(dk,{direction:"up",in:k,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(XC,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(yk,{}),d.jsx(zk,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(qk,{}),this.cocPayEnable()&&h?d.jsx(Gk,{}):null,d.jsxs(gk,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(Kk,{currencyKey:zl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.crocoPayEnable()&&w?d.jsx(Kk,{currencyKey:zl.croco,price:w,oldPrice:x,discount:C,onClickPay:this.onClickCroco}):null,this.catiPayEnable()?d.jsx(Kk,{currencyKey:zl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati}):null,this.pyboboPayEnable()?d.jsx(Kk,{currencyKey:zl.pybobo,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPybobo}):null,this.tonPayEnable()?d.jsx(Kk,{currencyKey:zl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon}):null,this.usdtPayEnable()?d.jsx(Kk,{currencyKey:zl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt}):null,this.starPayEnable()?d.jsx(Kk,{currencyKey:zl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null]})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Fx.connected)return e();Fx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Fx.chain;ta.TEST_MODE&&t==Pc.MAINNET?Mk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Pc.TESTNET?Fx.sendTransaction(e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{console.log(e.message)}):Mk("Please switch chain MAINNET")}starPayEnable(){return!!Jl()}usdtPayEnable(){return!this.onlyUsePyboboPayProduct()&&this.cryptoPayEnable()}tonPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041","1048","1060"].includes(ta.GAME_ID)}catiPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041"].includes(ta.GAME_ID)}pyboboPayEnable(){return!!this.cryptoPayEnable()&&"1060"==ta.GAME_ID}cocPayEnable(){return"1048"==ta.GAME_ID}crocoPayEnable(){return!this.onlyUsePyboboPayProduct()&&"1060"==ta.GAME_ID}cryptoPayEnable(){return!!ta.TEST_MODE||!tc()&&!nc()}onlyUsePyboboPayProduct(){if("1060"!=ta.GAME_ID)return!1;const{productId:e}=sc.purchaseData,t=parseInt(e);return!(t<6e5||t>61e4)}}class Yk extends j.PureComponent{render(){const{name:e}=sc.checkInData;return d.jsxs(XC,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(XC,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(XC,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(XC,{sx:{mx:5,mt:"1048"==ta.GAME_ID?3:1,position:"relative"},children:d.jsx(Bk,{})})]})}}class Zk extends j.PureComponent{constructor(){super(...arguments),this.state={buttonText:Fx.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){zx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){zx.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(XC,{sx:{height:50,position:"relative"},children:d.jsxs(ck,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(XC,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Xl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Sk,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Xk extends j.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{zx.publish(_l,Nl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=sc.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}=sc.checkInData;zx.publish(Rl,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(Wk,{}),d.jsxs(XC,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(XC,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(XC,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(dk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(XC,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(yk,{}),d.jsx(zk,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(Yk,{}),d.jsx(gk,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(Zk,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Fx.connected)return e();Fx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Fx.chain;ta.TEST_MODE&&t==Pc.MAINNET?Mk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Pc.TESTNET?Fx.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):Mk("Please switch chain MAINNET")}verify(e){const t=Fx.chain,n=Fx.friendlyAddress,r=sc.checkInData.orderNo;Tk(),Ux.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{Mk(e.message),this.onClickClose()}).finally(()=>{Ak()})}}const Jk=zi(XC)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class eS extends j.PureComponent{constructor(){super(...arguments),this.state={pageId:Nl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){zx.subscribe(_l,this.onSwitchPage),zx.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Nl.index:t=mk;break;case Nl.login:t=Dk;break;case Nl.purchase:t=Qk;break;case Nl.checkIn:t=Xk}return t?d.jsx(Jk,{children:d.jsx(t,{})}):null}}const tS=()=>{console.info(`Pluto SDK version: ${ta.APP_VERSION}`),ta.init(),Hl.init(),Ux.init(),Fx.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);M.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Qi,{}),d.jsx(eS,{})]}))};const nS=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[Ml];e&&e.apply(null,[t]);const n=this._callbackMap[Ml];n&&(n.apply(null,[t]),this._callbackMap[Ml]=null)}catch(n){console.error(n)}},zx.subscribe(Al,this.onPlayButtonClicked),zx.subscribe(Pl,this.onPuchaseCompleted),zx.subscribe(Rl,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class rS extends j.PureComponent{render(){const e=sc.gameInfo.orientation==Dl.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(XC,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(XC,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(XC,{component:"img",src:Xl(n),sx:{position:"relative"}}),d.jsx(XC,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(XC,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let oS=null;const iS=()=>{if(oS)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(rS,{})),oS={div:e,root:t}},aS=()=>{if(!oS)return;const e=oS.div;oS.root.unmount(),e.parentNode?.removeChild(e),oS=null};const sS=new class{constructor(){this._appDidMount=!1,this._loadGameState=jl.init,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},zx.subscribe(kl,this.onAppDidMount)}init(e){return e&&Ux.requestFullScreen(),new Promise((e,t)=>{if(sc.gameInfo)return this._initialized=!0,this.addOrientationChangeListener(),e();zx.subscribeOnce(Sl,(n,r)=>{if(r)return this._initialized=!0,this.addOrientationChangeListener(),e();Mk("Init game error, please try again later"),t({code:Il.initError,message:"Init error"})}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject({code:Il.logined,message:"Pluto sdk already login"}):Ux.reqLogin().then(e=>(this._logined=!0,e)):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}ready(){this._logined?Ux.disableLoginPage?zx.publish(_l,Nl.none):zx.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._purchaseing?s({code:Il.purchaseing,message:"Payment is being processed"}):(nS.registerCallback(Ol,i),this._purchaseing=!0,void Ux.reqPurchase(e,t,n,r,o).then(()=>{this._purchaseing=!1,zx.publish(_l,Nl.purchase),a()}).catch(e=>{this._purchaseing=!1,console.log(e.message),s(e)})):s({code:Il.notLogin,message:"Pluto sdk not login"}):s({code:Il.paramError,message:"Params error"}))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i({code:Il.checkingIn,message:"Check in is being processed"}):(nS.registerCallback(Ml,r),this._checkingIn=!0,void Ux.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,zx.publish(_l,Nl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i({code:Il.notLogin,message:"Pluto sdk not login"}):i({code:Il.paramError,message:"Params error"}))}share(e,t,n,r,o){if(!this._logined)return Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"});if(!Jl())return Promise.reject({code:Il.shareError,message:"Sharing is not available outside the Telegram environment"});if(!Ux.shareMessageEnable())return Mk("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject({code:Il.shareError,message:"Method not support"});const i=Ux.formatShareLink(e);return Ux.reqGetShareMessage(i,t,n,r,o).then(e=>Ux.shareMessage(e))}getShareLink(e){return this._logined?Ux.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n({code:Il.notLogin,message:"Pluto sdk not login"});let r=Ux.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t({code:Il.clipboardError,message:"Param is null"});oc(o).then(()=>{e()}).catch(()=>{ic(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?Ux.reqGetItem(e):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?Ux.reqSetItem(e,t):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}consumePurchase(e){return this._initialized?e?Ux.reqFinishOrder(e):Promise.reject({code:Il.paramError,message:"Params error"}):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}queryPurchases(){return this._initialized?Ux.reqUnfinishRecord():Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&nS.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return rc()&&Jl()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return rc()&&Jl()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return Jl()?Ux.playAd(e):Promise.reject({code:Il.playAdError,message:"Playing ads is not available outside the Telegram environment"})}vibrate(e){Jl()||console.log("Vibrate is not available outside the Telegram environment"),Ux.vibrate(e)}isDesktopEnabled(){return ec()&&(tc()||nc())}isTelegramClient(){return ec()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!ta.GAME_URL)return void console.log("game url is null");const t=(new Xi.Base64).encode(ta.INIT_DATA),n=new URL(ta.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return ta.CP_CUSTOM_LINK}getStartParam(){return ta.START_PARAM}connectWallet(){return Fx.connect()}disconnectWallet(){return Fx.disconnect()}isConnectedWallet(){return Fx.connected}getWalletRawAddress(){return Fx.rawAddress}getWalletFriendlyAddress(){return Fx.friendlyAddress}getWalletName(){return Fx.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Fl[e];Fx.connect().then(()=>Ux.reqDeposit(a,t,n,r)).then(e=>Fx.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return Fx.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t({code:Il.notLogin,message:"Pluto sdk not login"});Ux.signData().then(()=>{e()}).catch(e=>{e.code==Il.walletBindInCd&&Mk("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?Ux.reqGetNfts():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}setGameUserId(e,t){this._logined?Ux.reqSetGameUserId(e,t):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?Ux.reqCocGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocWithdraw(e,t,n){return this._logined?Ux.reqCocWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocClaim(e){return this._logined?Ux.reqCocClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetWithdrawDetail(e){return this._logined?Ux.reqCocGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetRecords(e,t,n){return this._logined?Ux.reqCocGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocQueryConsume(e){return this._logined?Ux.reqCocQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocCancelWithdraw(e){return this._logined?Ux.reqCocCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetInfo(){return this._logined?Ux.reqSpGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spWithdraw(e,t,n){return this._logined?Ux.reqSpWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spClaim(e){return this._logined?Ux.reqSpClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetWithdrawDetail(e){return this._logined?Ux.reqSpGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetRecords(e,t,n){return this._logined?Ux.reqSpGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spQueryConsume(e){return this._logined?Ux.reqSpQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spCancelWithdraw(e){return this._logined?Ux.reqSpCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}getGameInfo(){this._loadGameState==jl.init&&(this._loadGameState=jl.loading,Ux.reqGameInfo().then(e=>{this._loadGameState=jl.done,zx.publish(Sl,!0),Ux.disableLoginPage||zx.publish(_l,Nl.login)}).catch(e=>{this._loadGameState=jl.init,zx.publish(Sl,!1),console.log(e)}))}addOrientationChangeListener(){rc()&&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")?Dl.portrait:Dl.landscape)==sc.gameInfo.orientation)return void aS();iS()}catch(e){console.log(e)}}};return document.body?tS():document.addEventListener("DOMContentLoaded",e=>{tS()}),e.checkIn=(e,t,n="",r=null)=>sS.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>sS.cocCancelWithdraw(e),e.cocClaim=e=>sS.cocClaim(e),e.cocGetInfo=()=>sS.cocGetInfo(),e.cocGetRecords=(e,t,n)=>sS.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>sS.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>sS.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>sS.cocWithdraw(e,t,n),e.connectWallet=()=>sS.connectWallet(),e.consumePurchase=e=>sS.consumePurchase(e),e.copyShareLink=(e="")=>sS.copyShareLink(e),e.depositToken=(e,t,n,r)=>sS.depositToken(e,t,n,r),e.disconnectWallet=()=>sS.disconnectWallet(),e.getContentSafeAreaInset=()=>sS.getContentSafeAreaInset(),e.getCpCustomLink=()=>sS.getCpCustomLink(),e.getItem=e=>sS.getItem(e),e.getNfts=()=>sS.getNfts(),e.getSafeAreaInset=()=>sS.getSafeAreaInset(),e.getShareLink=(e="")=>sS.getShareLink(e),e.getStartParam=()=>sS.getStartParam(),e.getWalletFriendlyAddress=()=>sS.getWalletFriendlyAddress(),e.getWalletName=()=>sS.getWalletName(),e.getWalletRawAddress=()=>sS.getWalletRawAddress(),e.init=(e=!1)=>sS.init(e),e.isConnectedWallet=()=>sS.isConnectedWallet(),e.isDesktopEnabled=()=>sS.isDesktopEnabled(),e.isTelegramClient=()=>sS.isTelegramClient(),e.login=()=>sS.login(),e.onEvent=(e,t)=>{sS.onEvent(e,t)},e.openGameForWeb=(e="")=>{sS.openGameForWeb(e)},e.playAd=(e="ad_event1")=>sS.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>sS.purchase(e,t,n,r,o,i),e.queryPurchases=()=>sS.queryPurchases(),e.queryPurchses=()=>sS.queryPurchases(),e.ready=()=>{sS.ready()},e.setGameUserId=(e,t=1)=>{sS.setGameUserId(e,t)},e.setItem=(e,t)=>sS.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>sS.share(e,t,n,r,o),e.signData=()=>sS.signData(),e.spCancelWithdraw=e=>sS.spCancelWithdraw(e),e.spClaim=e=>sS.spClaim(e),e.spGetInfo=()=>sS.spGetInfo(),e.spGetRecords=(e,t,n)=>sS.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>sS.spGetWithdrawDetail(e),e.spQueryConsume=e=>sS.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>sS.spWithdraw(e,t,n),e.vibrate=e=>{sS.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
|