devin-test
Version:
With OmniConnect, users can connect effortlessly across all platforms—whether it's a plugin, mobile app, TGMini App, or Web/H5. No matter where users are or which blockchain they want to interact with, OmniConnect provides direct, seamless access, ensurin
42 lines (36 loc) • 236 kB
JavaScript
"use strict";var hx=Object.defineProperty;var Sh=i=>{throw TypeError(i)};var dx=(i,n,r)=>n in i?hx(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var wr=(i,n,r)=>dx(i,typeof n!="symbol"?n+"":n,r),nu=(i,n,r)=>n.has(i)||Sh("Cannot "+r);var Fe=(i,n,r)=>(nu(i,n,"read from private field"),r?r.call(i):n.get(i)),No=(i,n,r)=>n.has(i)?Sh("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(i):n.set(i,r),Zs=(i,n,r,f)=>(nu(i,n,"write to private field"),f?f.call(i,r):n.set(i,r),r),Nt=(i,n,r)=>(nu(i,n,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function xd(i){if(i.__esModule)return i;var n=i.default;if(typeof n=="function"){var r=function f(){return this instanceof f?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(f){var c=Object.getOwnPropertyDescriptor(i,f);Object.defineProperty(r,f,c.get?c:{enumerable:!0,get:function(){return i[f]}})}),r}var Ze={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ah;function px(){if(Ah)return Ze;Ah=1;var i=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),w=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ue=Symbol.iterator;function _e(O){return O===null||typeof O!="object"?null:(O=ue&&O[ue]||O["@@iterator"],typeof O=="function"?O:null)}var ce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Le=Object.assign,pe={};function de(O,Y,Ie){this.props=O,this.context=Y,this.refs=pe,this.updater=Ie||ce}de.prototype.isReactComponent={},de.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},de.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function xt(){}xt.prototype=de.prototype;function Ge(O,Y,Ie){this.props=O,this.context=Y,this.refs=pe,this.updater=Ie||ce}var dt=Ge.prototype=new xt;dt.constructor=Ge,Le(dt,de.prototype),dt.isPureReactComponent=!0;var ct=Array.isArray,ot=Object.prototype.hasOwnProperty,wt={current:null},Ft={key:!0,ref:!0,__self:!0,__source:!0};function sn(O,Y,Ie){var Pe,ee={},ke=null,Et=null;if(Y!=null)for(Pe in Y.ref!==void 0&&(Et=Y.ref),Y.key!==void 0&&(ke=""+Y.key),Y)ot.call(Y,Pe)&&!Ft.hasOwnProperty(Pe)&&(ee[Pe]=Y[Pe]);var ft=arguments.length-2;if(ft===1)ee.children=Ie;else if(1<ft){for(var tt=Array(ft),Mt=0;Mt<ft;Mt++)tt[Mt]=arguments[Mt+2];ee.children=tt}if(O&&O.defaultProps)for(Pe in ft=O.defaultProps,ft)ee[Pe]===void 0&&(ee[Pe]=ft[Pe]);return{$$typeof:i,type:O,key:ke,ref:Et,props:ee,_owner:wt.current}}function Hn(O,Y){return{$$typeof:i,type:O.type,key:Y,ref:O.ref,props:O.props,_owner:O._owner}}function Gn(O){return typeof O=="object"&&O!==null&&O.$$typeof===i}function cr(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Ie){return Y[Ie]})}var lr=/\/+/g;function hr(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?cr(""+O.key):Y.toString(36)}function Sn(O,Y,Ie,Pe,ee){var ke=typeof O;(ke==="undefined"||ke==="boolean")&&(O=null);var Et=!1;if(O===null)Et=!0;else switch(ke){case"string":case"number":Et=!0;break;case"object":switch(O.$$typeof){case i:case n:Et=!0}}if(Et)return Et=O,ee=ee(Et),O=Pe===""?"."+hr(Et,0):Pe,ct(ee)?(Ie="",O!=null&&(Ie=O.replace(lr,"$&/")+"/"),Sn(ee,Y,Ie,"",function(Mt){return Mt})):ee!=null&&(Gn(ee)&&(ee=Hn(ee,Ie+(!ee.key||Et&&Et.key===ee.key?"":(""+ee.key).replace(lr,"$&/")+"/")+O)),Y.push(ee)),1;if(Et=0,Pe=Pe===""?".":Pe+":",ct(O))for(var ft=0;ft<O.length;ft++){ke=O[ft];var tt=Pe+hr(ke,ft);Et+=Sn(ke,Y,Ie,tt,ee)}else if(tt=_e(O),typeof tt=="function")for(O=tt.call(O),ft=0;!(ke=O.next()).done;)ke=ke.value,tt=Pe+hr(ke,ft++),Et+=Sn(ke,Y,Ie,tt,ee);else if(ke==="object")throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return Et}function en(O,Y,Ie){if(O==null)return O;var Pe=[],ee=0;return Sn(O,Pe,"","",function(ke){return Y.call(Ie,ke,ee++)}),Pe}function qt(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function(Ie){(O._status===0||O._status===-1)&&(O._status=1,O._result=Ie)},function(Ie){(O._status===0||O._status===-1)&&(O._status=2,O._result=Ie)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}var le={current:null},Ut={transition:null},An={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:Ut,ReactCurrentOwner:wt};function yn(){throw Error("act(...) is not supported in production builds of React.")}return Ze.Children={map:en,forEach:function(O,Y,Ie){en(O,function(){Y.apply(this,arguments)},Ie)},count:function(O){var Y=0;return en(O,function(){Y++}),Y},toArray:function(O){return en(O,function(Y){return Y})||[]},only:function(O){if(!Gn(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ze.Component=de,Ze.Fragment=r,Ze.Profiler=c,Ze.PureComponent=Ge,Ze.StrictMode=f,Ze.Suspense=H,Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=An,Ze.act=yn,Ze.cloneElement=function(O,Y,Ie){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var Pe=Le({},O.props),ee=O.key,ke=O.ref,Et=O._owner;if(Y!=null){if(Y.ref!==void 0&&(ke=Y.ref,Et=wt.current),Y.key!==void 0&&(ee=""+Y.key),O.type&&O.type.defaultProps)var ft=O.type.defaultProps;for(tt in Y)ot.call(Y,tt)&&!Ft.hasOwnProperty(tt)&&(Pe[tt]=Y[tt]===void 0&&ft!==void 0?ft[tt]:Y[tt])}var tt=arguments.length-2;if(tt===1)Pe.children=Ie;else if(1<tt){ft=Array(tt);for(var Mt=0;Mt<tt;Mt++)ft[Mt]=arguments[Mt+2];Pe.children=ft}return{$$typeof:i,type:O.type,key:ee,ref:ke,props:Pe,_owner:Et}},Ze.createContext=function(O){return O={$$typeof:w,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:y,_context:O},O.Consumer=O},Ze.createElement=sn,Ze.createFactory=function(O){var Y=sn.bind(null,O);return Y.type=O,Y},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(O){return{$$typeof:T,render:O}},Ze.isValidElement=Gn,Ze.lazy=function(O){return{$$typeof:Q,_payload:{_status:-1,_result:O},_init:qt}},Ze.memo=function(O,Y){return{$$typeof:j,type:O,compare:Y===void 0?null:Y}},Ze.startTransition=function(O){var Y=Ut.transition;Ut.transition={};try{O()}finally{Ut.transition=Y}},Ze.unstable_act=yn,Ze.useCallback=function(O,Y){return le.current.useCallback(O,Y)},Ze.useContext=function(O){return le.current.useContext(O)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(O){return le.current.useDeferredValue(O)},Ze.useEffect=function(O,Y){return le.current.useEffect(O,Y)},Ze.useId=function(){return le.current.useId()},Ze.useImperativeHandle=function(O,Y,Ie){return le.current.useImperativeHandle(O,Y,Ie)},Ze.useInsertionEffect=function(O,Y){return le.current.useInsertionEffect(O,Y)},Ze.useLayoutEffect=function(O,Y){return le.current.useLayoutEffect(O,Y)},Ze.useMemo=function(O,Y){return le.current.useMemo(O,Y)},Ze.useReducer=function(O,Y,Ie){return le.current.useReducer(O,Y,Ie)},Ze.useRef=function(O){return le.current.useRef(O)},Ze.useState=function(O){return le.current.useState(O)},Ze.useSyncExternalStore=function(O,Y,Ie){return le.current.useSyncExternalStore(O,Y,Ie)},Ze.useTransition=function(){return le.current.useTransition()},Ze.version="18.3.1",Ze}var Fo={exports:{}};/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Fo.exports;var Rh;function gx(){return Rh||(Rh=1,function(i,n){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.3.1",f=Symbol.for("react.element"),c=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),de=Symbol.iterator,xt="@@iterator";function Ge(l){if(l===null||typeof l!="object")return null;var m=de&&l[de]||l[xt];return typeof m=="function"?m:null}var dt={current:null},ct={transition:null},ot={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},wt={current:null},Ft={},sn=null;function Hn(l){sn=l}Ft.setExtraStackFrame=function(l){sn=l},Ft.getCurrentStack=null,Ft.getStackAddendum=function(){var l="";sn&&(l+=sn);var m=Ft.getCurrentStack;return m&&(l+=m()||""),l};var Gn=!1,cr=!1,lr=!1,hr=!1,Sn=!1,en={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:ct,ReactCurrentOwner:wt};en.ReactDebugCurrentFrame=Ft,en.ReactCurrentActQueue=ot;function qt(l){{for(var m=arguments.length,P=new Array(m>1?m-1:0),$=1;$<m;$++)P[$-1]=arguments[$];Ut("warn",l,P)}}function le(l){{for(var m=arguments.length,P=new Array(m>1?m-1:0),$=1;$<m;$++)P[$-1]=arguments[$];Ut("error",l,P)}}function Ut(l,m,P){{var $=en.ReactDebugCurrentFrame,z=$.getStackAddendum();z!==""&&(m+="%s",P=P.concat([z]));var ye=P.map(function(fe){return String(fe)});ye.unshift("Warning: "+m),Function.prototype.apply.call(console[l],console,ye)}}var An={};function yn(l,m){{var P=l.constructor,$=P&&(P.displayName||P.name)||"ReactClass",z=$+"."+m;if(An[z])return;le("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,$),An[z]=!0}}var O={isMounted:function(l){return!1},enqueueForceUpdate:function(l,m,P){yn(l,"forceUpdate")},enqueueReplaceState:function(l,m,P,$){yn(l,"replaceState")},enqueueSetState:function(l,m,P,$){yn(l,"setState")}},Y=Object.assign,Ie={};Object.freeze(Ie);function Pe(l,m,P){this.props=l,this.context=m,this.refs=Ie,this.updater=P||O}Pe.prototype.isReactComponent={},Pe.prototype.setState=function(l,m){if(typeof l!="object"&&typeof l!="function"&&l!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,m,"setState")},Pe.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};{var ee={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ke=function(l,m){Object.defineProperty(Pe.prototype,l,{get:function(){qt("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Et in ee)ee.hasOwnProperty(Et)&&ke(Et,ee[Et])}function ft(){}ft.prototype=Pe.prototype;function tt(l,m,P){this.props=l,this.context=m,this.refs=Ie,this.updater=P||O}var Mt=tt.prototype=new ft;Mt.constructor=tt,Y(Mt,Pe.prototype),Mt.isPureReactComponent=!0;function Tr(){var l={current:null};return Object.seal(l),l}var Yn=Array.isArray;function dr(l){return Yn(l)}function hn(l){{var m=typeof Symbol=="function"&&Symbol.toStringTag,P=m&&l[Symbol.toStringTag]||l.constructor.name||"Object";return P}}function Ir(l){try{return Oi(l),!1}catch{return!0}}function Oi(l){return""+l}function tn(l){if(Ir(l))return le("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(l)),Oi(l)}function fi(l,m,P){var $=l.displayName;if($)return $;var z=m.displayName||m.name||"";return z!==""?P+"("+z+")":P}function Ln(l){return l.displayName||"Context"}function Gt(l){if(l==null)return null;if(typeof l.tag=="number"&&le("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case y:return"Fragment";case c:return"Portal";case T:return"Profiler";case w:return"StrictMode";case ue:return"Suspense";case _e:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case j:var m=l;return Ln(m)+".Consumer";case H:var P=l;return Ln(P._context)+".Provider";case Q:return fi(l,l.render,"ForwardRef");case ce:var $=l.displayName||null;return $!==null?$:Gt(l.type)||"Memo";case Le:{var z=l,ye=z._payload,fe=z._init;try{return Gt(fe(ye))}catch{return null}}}return null}var zt=Object.prototype.hasOwnProperty,$n={key:!0,ref:!0,__self:!0,__source:!0},Vn,Or,Rn;Rn={};function Pr(l){if(zt.call(l,"ref")){var m=Object.getOwnPropertyDescriptor(l,"ref").get;if(m&&m.isReactWarning)return!1}return l.ref!==void 0}function Nn(l){if(zt.call(l,"key")){var m=Object.getOwnPropertyDescriptor(l,"key").get;if(m&&m.isReactWarning)return!1}return l.key!==void 0}function Mn(l,m){var P=function(){Vn||(Vn=!0,le("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};P.isReactWarning=!0,Object.defineProperty(l,"key",{get:P,configurable:!0})}function Yr(l,m){var P=function(){Or||(Or=!0,le("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};P.isReactWarning=!0,Object.defineProperty(l,"ref",{get:P,configurable:!0})}function ai(l){if(typeof l.ref=="string"&&wt.current&&l.__self&&wt.current.stateNode!==l.__self){var m=Gt(wt.current.type);Rn[m]||(le('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,l.ref),Rn[m]=!0)}}var Jn=function(l,m,P,$,z,ye,fe){var Ue={$$typeof:f,type:l,key:m,ref:P,props:fe,_owner:ye};return Ue._store={},Object.defineProperty(Ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(Ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(Ue.props),Object.freeze(Ue)),Ue};function Cr(l,m,P){var $,z={},ye=null,fe=null,Ue=null,Qe=null;if(m!=null){Pr(m)&&(fe=m.ref,ai(m)),Nn(m)&&(tn(m.key),ye=""+m.key),Ue=m.__self===void 0?null:m.__self,Qe=m.__source===void 0?null:m.__source;for($ in m)zt.call(m,$)&&!$n.hasOwnProperty($)&&(z[$]=m[$])}var _t=arguments.length-2;if(_t===1)z.children=P;else if(_t>1){for(var Tt=Array(_t),Je=0;Je<_t;Je++)Tt[Je]=arguments[Je+2];Object.freeze&&Object.freeze(Tt),z.children=Tt}if(l&&l.defaultProps){var Pt=l.defaultProps;for($ in Pt)z[$]===void 0&&(z[$]=Pt[$])}if(ye||fe){var st=typeof l=="function"?l.displayName||l.name||"Unknown":l;ye&&Mn(z,st),fe&&Yr(z,st)}return Jn(l,ye,fe,Ue,Qe,wt.current,z)}function pr(l,m){var P=Jn(l.type,m,l.ref,l._self,l._source,l._owner,l.props);return P}function Zn(l,m,P){if(l==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+l+".");var $,z=Y({},l.props),ye=l.key,fe=l.ref,Ue=l._self,Qe=l._source,_t=l._owner;if(m!=null){Pr(m)&&(fe=m.ref,_t=wt.current),Nn(m)&&(tn(m.key),ye=""+m.key);var Tt;l.type&&l.type.defaultProps&&(Tt=l.type.defaultProps);for($ in m)zt.call(m,$)&&!$n.hasOwnProperty($)&&(m[$]===void 0&&Tt!==void 0?z[$]=Tt[$]:z[$]=m[$])}var Je=arguments.length-2;if(Je===1)z.children=P;else if(Je>1){for(var Pt=Array(Je),st=0;st<Je;st++)Pt[st]=arguments[st+2];z.children=Pt}return Jn(l.type,ye,fe,Ue,Qe,_t,z)}function nn(l){return typeof l=="object"&&l!==null&&l.$$typeof===f}var Bn=".",gr=":";function Ur(l){var m=/[=:]/g,P={"=":"=0",":":"=2"},$=l.replace(m,function(z){return P[z]});return"$"+$}var _r=!1,ui=/\/+/g;function Vr(l){return l.replace(ui,"$&/")}function Jr(l,m){return typeof l=="object"&&l!==null&&l.key!=null?(tn(l.key),Ur(""+l.key)):m.toString(36)}function Zr(l,m,P,$,z){var ye=typeof l;(ye==="undefined"||ye==="boolean")&&(l=null);var fe=!1;if(l===null)fe=!0;else switch(ye){case"string":case"number":fe=!0;break;case"object":switch(l.$$typeof){case f:case c:fe=!0}}if(fe){var Ue=l,Qe=z(Ue),_t=$===""?Bn+Jr(Ue,0):$;if(dr(Qe)){var Tt="";_t!=null&&(Tt=Vr(_t)+"/"),Zr(Qe,m,Tt,"",function(ea){return ea})}else Qe!=null&&(nn(Qe)&&(Qe.key&&(!Ue||Ue.key!==Qe.key)&&tn(Qe.key),Qe=pr(Qe,P+(Qe.key&&(!Ue||Ue.key!==Qe.key)?Vr(""+Qe.key)+"/":"")+_t)),m.push(Qe));return 1}var Je,Pt,st=0,Vt=$===""?Bn:$+gr;if(dr(l))for(var hi=0;hi<l.length;hi++)Je=l[hi],Pt=Vt+Jr(Je,hi),st+=Zr(Je,m,P,Pt,z);else{var Dn=Ge(l);if(typeof Dn=="function"){var di=l;Dn===di.entries&&(_r||qt("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_r=!0);for(var xo=Dn.call(di),It,yr=0;!(It=xo.next()).done;)Je=It.value,Pt=Vt+Jr(Je,yr++),st+=Zr(Je,m,P,Pt,z)}else if(ye==="object"){var Li=String(l);throw new Error("Objects are not valid as a React child (found: "+(Li==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":Li)+"). If you meant to render a collection of children, use an array instead.")}}return st}function fn(l,m,P){if(l==null)return l;var $=[],z=0;return Zr(l,$,"","",function(ye){return m.call(P,ye,z++)}),$}function Xn(l){var m=0;return fn(l,function(){m++}),m}function vr(l,m,P){fn(l,function(){m.apply(this,arguments)},P)}function Xr(l){return fn(l,function(m){return m})||[]}function ci(l){if(!nn(l))throw new Error("React.Children.only expected to receive a single React element child.");return l}function Pi(l){var m={$$typeof:j,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:H,_context:m};var P=!1,$=!1,z=!1;{var ye={$$typeof:j,_context:m};Object.defineProperties(ye,{Provider:{get:function(){return $||($=!0,le("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(fe){m.Provider=fe}},_currentValue:{get:function(){return m._currentValue},set:function(fe){m._currentValue=fe}},_currentValue2:{get:function(){return m._currentValue2},set:function(fe){m._currentValue2=fe}},_threadCount:{get:function(){return m._threadCount},set:function(fe){m._threadCount=fe}},Consumer:{get:function(){return P||(P=!0,le("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(fe){z||(qt("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",fe),z=!0)}}}),m.Consumer=ye}return m._currentRenderer=null,m._currentRenderer2=null,m}var Lr=-1,Wt=0,li=1,u=2;function p(l){if(l._status===Lr){var m=l._result,P=m();if(P.then(function(ye){if(l._status===Wt||l._status===Lr){var fe=l;fe._status=li,fe._result=ye}},function(ye){if(l._status===Wt||l._status===Lr){var fe=l;fe._status=u,fe._result=ye}}),l._status===Lr){var $=l;$._status=Wt,$._result=P}}if(l._status===li){var z=l._result;return z===void 0&&le(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,z),"default"in z||le(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,z),z.default}else throw l._result}function d(l){var m={_status:Lr,_result:l},P={$$typeof:Le,_payload:m,_init:p};{var $,z;Object.defineProperties(P,{defaultProps:{configurable:!0,get:function(){return $},set:function(ye){le("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),$=ye,Object.defineProperty(P,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return z},set:function(ye){le("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),z=ye,Object.defineProperty(P,"propTypes",{enumerable:!0})}}})}return P}function s(l){l!=null&&l.$$typeof===ce?le("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof l!="function"?le("forwardRef requires a render function but was given %s.",l===null?"null":typeof l):l.length!==0&&l.length!==2&&le("forwardRef render functions accept exactly two parameters: props and ref. %s",l.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),l!=null&&(l.defaultProps!=null||l.propTypes!=null)&&le("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:Q,render:l};{var P;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return P},set:function($){P=$,!l.name&&!l.displayName&&(l.displayName=$)}})}return m}var v;v=Symbol.for("react.module.reference");function A(l){return!!(typeof l=="string"||typeof l=="function"||l===y||l===T||Sn||l===w||l===ue||l===_e||hr||l===pe||Gn||cr||lr||typeof l=="object"&&l!==null&&(l.$$typeof===Le||l.$$typeof===ce||l.$$typeof===H||l.$$typeof===j||l.$$typeof===Q||l.$$typeof===v||l.getModuleId!==void 0))}function I(l,m){A(l)||le("memo: The first argument must be a component. Instead received: %s",l===null?"null":typeof l);var P={$$typeof:ce,type:l,compare:m===void 0?null:m};{var $;Object.defineProperty(P,"displayName",{enumerable:!1,configurable:!0,get:function(){return $},set:function(z){$=z,!l.name&&!l.displayName&&(l.displayName=z)}})}return P}function N(){var l=dt.current;return l===null&&le(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}function G(l){var m=N();if(l._context!==void 0){var P=l._context;P.Consumer===l?le("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):P.Provider===l&&le("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(l)}function se(l){var m=N();return m.useState(l)}function J(l,m,P){var $=N();return $.useReducer(l,m,P)}function Xe(l){var m=N();return m.useRef(l)}function ne(l,m){var P=N();return P.useEffect(l,m)}function xe(l,m){var P=N();return P.useInsertionEffect(l,m)}function we(l,m){var P=N();return P.useLayoutEffect(l,m)}function $e(l,m){var P=N();return P.useCallback(l,m)}function Ee(l,m){var P=N();return P.useMemo(l,m)}function Se(l,m,P){var $=N();return $.useImperativeHandle(l,m,P)}function ve(l,m){{var P=N();return P.useDebugValue(l,m)}}function Ae(){var l=N();return l.useTransition()}function re(l){var m=N();return m.useDeferredValue(l)}function ae(){var l=N();return l.useId()}function Z(l,m,P){var $=N();return $.useSyncExternalStore(l,m,P)}var te=0,ie,V,C,U,k,B,D;function q(){}q.__reactDisabledLog=!0;function ge(){{if(te===0){ie=console.log,V=console.info,C=console.warn,U=console.error,k=console.group,B=console.groupCollapsed,D=console.groupEnd;var l={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}te++}}function Ne(){{if(te--,te===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},l,{value:ie}),info:Y({},l,{value:V}),warn:Y({},l,{value:C}),error:Y({},l,{value:U}),group:Y({},l,{value:k}),groupCollapsed:Y({},l,{value:B}),groupEnd:Y({},l,{value:D})})}te<0&&le("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=en.ReactCurrentDispatcher,be;function x(l,m,P){{if(be===void 0)try{throw Error()}catch(z){var $=z.stack.trim().match(/\n( *(at )?)/);be=$&&$[1]||""}return`
`+be+l}}var Me=!1,We;{var Ye=typeof WeakMap=="function"?WeakMap:Map;We=new Ye}function Ce(l,m){if(!l||Me)return"";{var P=We.get(l);if(P!==void 0)return P}var $;Me=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ye;ye=Oe.current,Oe.current=null,ge();try{if(m){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(Vt){$=Vt}Reflect.construct(l,[],fe)}else{try{fe.call()}catch(Vt){$=Vt}l.call(fe.prototype)}}else{try{throw Error()}catch(Vt){$=Vt}l()}}catch(Vt){if(Vt&&$&&typeof Vt.stack=="string"){for(var Ue=Vt.stack.split(`
`),Qe=$.stack.split(`
`),_t=Ue.length-1,Tt=Qe.length-1;_t>=1&&Tt>=0&&Ue[_t]!==Qe[Tt];)Tt--;for(;_t>=1&&Tt>=0;_t--,Tt--)if(Ue[_t]!==Qe[Tt]){if(_t!==1||Tt!==1)do if(_t--,Tt--,Tt<0||Ue[_t]!==Qe[Tt]){var Je=`
`+Ue[_t].replace(" at new "," at ");return l.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",l.displayName)),typeof l=="function"&&We.set(l,Je),Je}while(_t>=1&&Tt>=0);break}}}finally{Me=!1,Oe.current=ye,Ne(),Error.prepareStackTrace=z}var Pt=l?l.displayName||l.name:"",st=Pt?x(Pt):"";return typeof l=="function"&&We.set(l,st),st}function Ve(l,m,P){return Ce(l,!1)}function ze(l){var m=l.prototype;return!!(m&&m.isReactComponent)}function pt(l,m,P){if(l==null)return"";if(typeof l=="function")return Ce(l,ze(l));if(typeof l=="string")return x(l);switch(l){case ue:return x("Suspense");case _e:return x("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case Q:return Ve(l.render);case ce:return pt(l.type,m,P);case Le:{var $=l,z=$._payload,ye=$._init;try{return pt(ye(z),m,P)}catch{}}}return""}var nt={},at=en.ReactDebugCurrentFrame;function gt(l){if(l){var m=l._owner,P=pt(l.type,l._source,m?m.type:null);at.setExtraStackFrame(P)}else at.setExtraStackFrame(null)}function Rt(l,m,P,$,z){{var ye=Function.call.bind(zt);for(var fe in l)if(ye(l,fe)){var Ue=void 0;try{if(typeof l[fe]!="function"){var Qe=Error(($||"React class")+": "+P+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qe.name="Invariant Violation",Qe}Ue=l[fe](m,fe,$,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_t){Ue=_t}Ue&&!(Ue instanceof Error)&&(gt(z),le("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",P,fe,typeof Ue),gt(null)),Ue instanceof Error&&!(Ue.message in nt)&&(nt[Ue.message]=!0,gt(z),le("Failed %s type: %s",P,Ue.message),gt(null))}}}function St(l){if(l){var m=l._owner,P=pt(l.type,l._source,m?m.type:null);Hn(P)}else Hn(null)}var Lt;Lt=!1;function Bt(){if(wt.current){var l=Gt(wt.current.type);if(l)return`
Check the render method of \``+l+"`."}return""}function jt(l){if(l!==void 0){var m=l.fileName.replace(/^.*[\\\/]/,""),P=l.lineNumber;return`
Check your code at `+m+":"+P+"."}return""}function is(l){return l!=null?jt(l.__source):""}var os={};function Gf(l){var m=Bt();if(!m){var P=typeof l=="string"?l:l.displayName||l.name;P&&(m=`
Check the top-level render call using <`+P+">.")}return m}function ss(l,m){if(!(!l._store||l._store.validated||l.key!=null)){l._store.validated=!0;var P=Gf(m);if(!os[P]){os[P]=!0;var $="";l&&l._owner&&l._owner!==wt.current&&($=" It was passed a child from "+Gt(l._owner.type)+"."),St(l),le('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,$),St(null)}}}function po(l,m){if(typeof l=="object"){if(dr(l))for(var P=0;P<l.length;P++){var $=l[P];nn($)&&ss($,m)}else if(nn(l))l._store&&(l._store.validated=!0);else if(l){var z=Ge(l);if(typeof z=="function"&&z!==l.entries)for(var ye=z.call(l),fe;!(fe=ye.next()).done;)nn(fe.value)&&ss(fe.value,m)}}}function fs(l){{var m=l.type;if(m==null||typeof m=="string")return;var P;if(typeof m=="function")P=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===Q||m.$$typeof===ce))P=m.propTypes;else return;if(P){var $=Gt(m);Rt(P,l.props,"prop",$,l)}else if(m.PropTypes!==void 0&&!Lt){Lt=!0;var z=Gt(m);le("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&le("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yf(l){{for(var m=Object.keys(l.props),P=0;P<m.length;P++){var $=m[P];if($!=="children"&&$!=="key"){St(l),le("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}l.ref!==null&&(St(l),le("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function as(l,m,P){var $=A(l);if(!$){var z="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ye=is(m);ye?z+=ye:z+=Bt();var fe;l===null?fe="null":dr(l)?fe="array":l!==void 0&&l.$$typeof===f?(fe="<"+(Gt(l.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):fe=typeof l,le("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fe,z)}var Ue=Cr.apply(this,arguments);if(Ue==null)return Ue;if($)for(var Qe=2;Qe<arguments.length;Qe++)po(arguments[Qe],l);return l===y?Yf(Ue):fs(Ue),Ue}var us=!1;function go(l){var m=as.bind(null,l);return m.type=l,us||(us=!0,qt("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return qt("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:l}),l}}),m}function Vf(l,m,P){for(var $=Zn.apply(this,arguments),z=2;z<arguments.length;z++)po(arguments[z],$.type);return fs($),$}function Jf(l,m){var P=ct.transition;ct.transition={};var $=ct.transition;ct.transition._updatedFibers=new Set;try{l()}finally{if(ct.transition=P,P===null&&$._updatedFibers){var z=$._updatedFibers.size;z>10&&qt("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),$._updatedFibers.clear()}}}var cs=!1,Ci=null;function Zf(l){if(Ci===null)try{var m=("require"+Math.random()).slice(0,7),P=i&&i[m];Ci=P.call(i,"timers").setImmediate}catch{Ci=function(z){cs===!1&&(cs=!0,typeof MessageChannel>"u"&&le("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ye=new MessageChannel;ye.port1.onmessage=z,ye.port2.postMessage(void 0)}}return Ci(l)}var ut=0,bt=!1;function ls(l){{var m=ut;ut++,ot.current===null&&(ot.current=[]);var P=ot.isBatchingLegacy,$;try{if(ot.isBatchingLegacy=!0,$=l(),!P&&ot.didScheduleLegacyUpdate){var z=ot.current;z!==null&&(ot.didScheduleLegacyUpdate=!1,yo(z))}}catch(Pt){throw Ui(m),Pt}finally{ot.isBatchingLegacy=P}if($!==null&&typeof $=="object"&&typeof $.then=="function"){var ye=$,fe=!1,Ue={then:function(Pt,st){fe=!0,ye.then(function(Vt){Ui(m),ut===0?_o(Vt,Pt,st):Pt(Vt)},function(Vt){Ui(m),st(Vt)})}};return!bt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){fe||(bt=!0,le("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Ue}else{var Qe=$;if(Ui(m),ut===0){var _t=ot.current;_t!==null&&(yo(_t),ot.current=null);var Tt={then:function(Pt,st){ot.current===null?(ot.current=[],_o(Qe,Pt,st)):Pt(Qe)}};return Tt}else{var Je={then:function(Pt,st){Pt(Qe)}};return Je}}}}function Ui(l){l!==ut-1&&le("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ut=l}function _o(l,m,P){{var $=ot.current;if($!==null)try{yo($),Zf(function(){$.length===0?(ot.current=null,m(l)):_o(l,m,P)})}catch(z){P(z)}else m(l)}}var vo=!1;function yo(l){if(!vo){vo=!0;var m=0;try{for(;m<l.length;m++){var P=l[m];do P=P(!0);while(P!==null)}l.length=0}catch($){throw l=l.slice(m+1),$}finally{vo=!1}}}var Xf=as,hs=Vf,Qf=go,Yt={map:fn,forEach:vr,count:Xn,toArray:Xr,only:ci};n.Children=Yt,n.Component=Pe,n.Fragment=y,n.Profiler=T,n.PureComponent=tt,n.StrictMode=w,n.Suspense=ue,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=en,n.act=ls,n.cloneElement=hs,n.createContext=Pi,n.createElement=Xf,n.createFactory=Qf,n.createRef=Tr,n.forwardRef=s,n.isValidElement=nn,n.lazy=d,n.memo=I,n.startTransition=Jf,n.unstable_act=ls,n.useCallback=$e,n.useContext=G,n.useDebugValue=ve,n.useDeferredValue=re,n.useEffect=ne,n.useId=ae,n.useImperativeHandle=Se,n.useInsertionEffect=xe,n.useLayoutEffect=we,n.useMemo=Ee,n.useReducer=J,n.useRef=Xe,n.useState=se,n.useSyncExternalStore=Z,n.useTransition=Ae,n.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Fo,Fo.exports)),Fo.exports}process.env.NODE_ENV==="production"?px():gx();class Ri extends Error{constructor(n,r,f){super(typeof r=="object"?r.message:r||n,{cause:typeof r=="object"?r.cause:f}),this.type=n,Object.setPrototypeOf(this,Ri.prototype)}}function _x(i){return i.replace(/_[a-z]/g,n=>n[1].toUpperCase())}const vx="ERR_INVALID_VALUE",yx="ERR_UNEXPECTED_VALUE",xx="ERR_UNEXPECTED_TYPE",bd="ERR_PARSE";function bx(i,n){const r={};for(const f in i){const c=i[f];if(!c)continue;let y,w;typeof c=="function"?(y=f,w=c):[y,w]=c;try{const T=w(n(y));T!==void 0&&(r[f]=T)}catch(T){throw new Ri(bd,`Parser for "${f}" property failed${y===f?"":`. Source field: "${y}"`}`,T)}}return r}function md(i){let n=i;if(typeof n=="string")try{n=JSON.parse(n)}catch(r){throw new Ri(vx,{cause:r})}if(typeof n!="object"||!n||Array.isArray(n))throw new Ri(yx);return n}function Xo(i,n){return r=>{const f=c=>{if(!(r&&c===void 0))try{return n(c)}catch(y){throw new Ri(bd,{message:`"${i}" transformer failed to parse the value`,cause:y})}};return Object.assign(f,{isValid(c){try{return f(c),!0}catch{return!1}}})}}function mx(i,n){return Xo("object",r=>{const f=md(r);return bx(i,c=>f[c])})}function wd(i){throw new Ri(xx,`Unexpected value received: ${JSON.stringify(i)}`)}const Hu=Xo("string",i=>{if(typeof i=="string"||typeof i=="number")return i.toString();wd(i)});function qo(i){return/^#[\da-f]{6}$/i.test(i)}function wx(i){return/^#[\da-f]{3}$/i.test(i)}function Ex(i){const n=i.replace(/\s/g,"").toLowerCase();if(qo(n))return n;if(wx(n)){let f="#";for(let c=0;c<3;c+=1)f+=n[1+c].repeat(2);return f}const r=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!r)throw new Error(`Value "${i}" does not satisfy any of known RGB formats.`);return r.slice(1).reduce((f,c)=>{const y=parseInt(c,10).toString(16);return f+(y.length===1?"0":"")+y},"#")}const Sx=Xo("rgb",i=>Ex(Hu()(i))),Ax=Xo("themeParams",i=>{const n=Sx(!0);return Object.entries(md(i)).reduce((r,[f,c])=>(r[_x(f)]=n(c),r),{})});function Rx(i,n){return Xo("array",r=>{let f;if(Array.isArray(r))f=r;else if(typeof r=="string")try{const c=JSON.parse(r);Array.isArray(c)&&(f=c)}catch{}return f||wd(r),f.map(i)})}let zo=class Ed extends Error{constructor(n,r,f){super(typeof r=="object"?r.message:r||n,{cause:typeof r=="object"?r.cause:f}),this.type=n,Object.setPrototypeOf(this,Ed.prototype)}};function Sd(i){return i.replace(/[A-Z]/g,n=>`_${n.toLowerCase()}`)}function Tx(i){return i.replace(/_[a-z]/g,n=>n[1].toUpperCase())}const Ix="ERR_INVALID_VALUE",Ox="ERR_UNEXPECTED_VALUE",Px="ERR_UNEXPECTED_TYPE",Ad="ERR_PARSE";function Rd(i,n){const r={};for(const f in i){const c=i[f];if(!c)continue;let y,w;typeof c=="function"?(y=f,w=c):[y,w]=c;try{const T=w(n(y));T!==void 0&&(r[f]=T)}catch(T){throw new zo(Ad,`Parser for "${f}" property failed${y===f?"":`. Source field: "${y}"`}`,T)}}return r}function Td(i){let n=i;if(typeof n=="string")try{n=JSON.parse(n)}catch(r){throw new zo(Ix,{cause:r})}if(typeof n!="object"||!n||Array.isArray(n))throw new zo(Ox);return n}function Sr(i,n){return r=>{const f=c=>{if(!(r&&c===void 0))try{return n(c)}catch(y){throw new zo(Ad,{message:`"${i}" transformer failed to parse the value`,cause:y})}};return Object.assign(f,{isValid(c){try{return f(c),!0}catch{return!1}}})}}function Er(i,n){return Sr(n||"object",r=>{const f=Td(r);return Rd(i,c=>f[c])})}function Qo(i){throw new zo(Px,`Unexpected value received: ${JSON.stringify(i)}`)}const sf=Sr("boolean",i=>{if(typeof i=="boolean")return i;const n=String(i);if(n==="1"||n==="true")return!0;if(n==="0"||n==="false")return!1;Qo(i)}),or=Sr("string",i=>{if(typeof i=="string"||typeof i=="number")return i.toString();Qo(i)}),Ho=Sr("number",i=>{if(typeof i=="number")return i;if(typeof i=="string"){const n=Number(i);if(!Number.isNaN(n))return n}Qo(i)}),Cx=Sr("date",i=>i instanceof Date?i:new Date(Ho()(i)*1e3));function Id(i,n){return Sr(n||"searchParams",r=>{typeof r!="string"&&!(r instanceof URLSearchParams)&&Qo(r);const f=typeof r=="string"?new URLSearchParams(r):r;return Rd(i,c=>{const y=f.get(c);return y===null?void 0:y})})}function ru(i){for(const n in i)i[n]=[Sd(n),i[n]];return i}const Ux=i=>{const n=Ho(),r=Ho(!0),f=or(),c=or(!0),y=sf(!0),w=Er(ru({addedToAttachmentMenu:y,allowsWriteToPm:y,firstName:f,id:n,isBot:y,isPremium:y,languageCode:c,lastName:c,photoUrl:c,username:c}),"User")(!0);return Id(ru({authDate:Cx(),canSendAfter:r,chat:Er(ru({id:n,type:f,title:f,photoUrl:c,username:c}),"Chat")(!0),chatInstance:c,chatType:c,hash:f,queryId:c,receiver:w,startParam:c,user:w}),"initData")(i)};function Lx(i){return/^#[\da-f]{6}$/i.test(i)}function $x(i){return/^#[\da-f]{3}$/i.test(i)}function Nx(i){const n=i.replace(/\s/g,"").toLowerCase();if(Lx(n))return n;if($x(n)){let f="#";for(let c=0;c<3;c+=1)f+=n[1+c].repeat(2);return f}const r=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!r)throw new Error(`Value "${i}" does not satisfy any of known RGB formats.`);return r.slice(1).reduce((f,c)=>{const y=parseInt(c,10).toString(16);return f+(y.length===1?"0":"")+y},"#")}const Mx=Sr("rgb",i=>Nx(or()(i))),Th=Sr("themeParams",i=>{const n=Mx(!0);return Object.entries(Td(i)).reduce((r,[f,c])=>(r[Tx(f)]=n(c),r),{})});function Ih(i){return JSON.stringify(Object.fromEntries(Object.entries(i).map(([n,r])=>[Sd(n),r])))}const Bx=i=>{const n=or(),r=or(!0),f=sf(!0);return Id({botInline:["tgWebAppBotInline",f],defaultColors:["tgWebAppDefaultColors",Th(!0)],fullscreen:["tgWebAppFullscreen",f],initData:["tgWebAppData",Ux(!0)],initDataRaw:["tgWebAppData",r],platform:["tgWebAppPlatform",n],showSettings:["tgWebAppShowSettings",f],startParam:["tgWebAppStartParam",r],themeParams:["tgWebAppThemeParams",Th()],version:["tgWebAppVersion",n]},"launchParams")(i)};function Dx(i){const{initDataRaw:n,startParam:r,showSettings:f,botInline:c,fullscreen:y,defaultColors:w}=i,T=new URLSearchParams;return T.set("tgWebAppPlatform",i.platform),T.set("tgWebAppThemeParams",Ih(i.themeParams)),T.set("tgWebAppVersion",i.version),n&&T.set("tgWebAppData",n),r&&T.set("tgWebAppStartParam",r),typeof f=="boolean"&&T.set("tgWebAppShowSettings",f?"1":"0"),typeof c=="boolean"&&T.set("tgWebAppBotInline",c?"1":"0"),typeof y=="boolean"&&T.set("tgWebAppFullscreen",y?"1":"0"),w&&T.set("tgWebAppDefaultColors",Ih(w)),T.toString()}const Fx=Er({eventType:or(),eventData:i=>i},"miniAppsMessage"),Od=Sr("fn",i=>{if(typeof i=="function")return i;Qo(i)});function Wx(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}const jx=Er({TelegramWebviewProxy:Er({postEvent:Od()})()});function Pd(i){return jx().isValid(i)}function kx(){try{return window.self!==window.top}catch{return!0}}var Kx=Object.defineProperty,qx=(i,n,r)=>n in i?Kx(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Cd=(i,n,r)=>qx(i,typeof n!="symbol"?n+"":n,r);let ht=class Ud extends Error{constructor(n,r,f){super(typeof r=="object"?r.message:r||n,{cause:typeof r=="object"?r.cause:f}),this.type=n,Object.setPrototypeOf(this,Ud.prototype)}};function Ld(i,n,r){return i.addEventListener(n,r),()=>i.removeEventListener(n,r)}function ao(...i){const n=i.flat(1);return[n.push.bind(n),()=>{n.forEach(r=>{r()})}]}const zx="ERR_ABORTED",Hx="ERR_CANCELED",Gx="ERR_TIMED_OUT";function Oh(i){return new ht(zx,{cause:i})}function Ph(i,n){return i.reject=n.reject,i}class Qt extends Promise{constructor(n,r){let f,c;typeof n=="function"?(f=n,c=r):c=n;let y,w;super((T,H)=>{c||(c={});const{abortSignal:j}=c;if(j&&j.aborted)return H(Oh(j.reason));const[Q,ue]=ao(),_e=de=>(...xt)=>(ue(),de(...xt)),ce=new AbortController,{signal:Le}=ce;w=_e(de=>{ce.abort(de),H(de)}),y=_e(T),j&&Q(Ld(j,"abort",()=>{w(Oh(j.reason))}));const{timeout:pe}=c;if(pe){const de=setTimeout(()=>{w(new ht(Gx,`Timeout reached: ${pe}ms`))},pe);Q(()=>{clearTimeout(de)})}f&&f(y,w,Le)}),Cd(this,"reject"),this.reject=w}static withFn(n,r){return new Qt((f,c,y)=>{try{const w=n(y);return w instanceof Promise?w.then(f,c):f(w)}catch(w){c(w)}},r)}static resolve(n){return new Qt(r=>{r(n)})}static reject(n){return new Qt((r,f)=>{f(n)})}cancel(){this.reject(new ht(Hx))}catch(n){return this.then(void 0,n)}finally(n){return Ph(super.finally(n),this)}then(n,r){return Ph(super.then(n,r),this)}}function Ch(i,n){return i.resolve=n.resolve,i}let Yx=class tf extends Qt{constructor(n,r){let f,c;typeof n=="function"?(f=n,c=r):c=n;let y;super((w,T,H)=>{y=w,f&&f(w,T,H)},c),Cd(this,"resolve"),this.resolve=y}static withFn(n,r){return new tf((f,c,y)=>Qt.withFn(n,{abortSignal:y}).then(f,c),r)}static resolve(n){return new tf(r=>{r(n)})}static reject(n){return new tf((r,f)=>{f(n)})}catch(n){return this.then(void 0,n)}finally(n){return Ch(super.finally(n),this)}then(n,r){return Ch(super.then(n,r),this)}};function $d(i){return`tapps/${i}`}function fr(i,n){sessionStorage.setItem($d(i),JSON.stringify(n))}function ar(i){const n=sessionStorage.getItem($d(i));try{return n?JSON.parse(n):void 0}catch{}}function Gu(i){return i.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function Vx(i,n){n||(n={});const{textColor:r,bgColor:f,shouldLog:c=!0}=n;function y(w,...T){if(!c||typeof c=="function"&&!c())return;const H="font-weight:bold;padding:0 5px;border-radius:5px";console[w](`%c${Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,timeZone:"UTC"}).format(new Date)}%c / %c${i}`,`${H};background-color: lightblue;color:black`,"",`${H};${r?`color:${r};`:""}${f?`background-color:${f}`:""}`,...T)}return[function(...w){y("log",...w)},function(...w){y("error",...w)}]}function Yu(i,n){document.documentElement.style.setProperty(i,n)}function Vu(i){document.documentElement.style.removeProperty(i)}function Jx(i,n){n()}function uo(i,n){n||(n={});const r=n.equals||Object.is;let f=[],c=i;const y=j=>{if(!r(c,j)){const Q=c;c=j,Jx(H,()=>{[...f].forEach(([ue,_e])=>{ue(j,Q),_e&&T(ue,!0)})})}};function w(j){const Q=typeof j!="object"?{once:j}:j;return{once:Q.once||!1,signal:Q.signal||!1}}const T=(j,Q)=>{const ue=w(Q),_e=f.findIndex(([ce,Le])=>ce===j&&Le.once===ue.once&&Le.signal===ue.signal);_e>=0&&f.splice(_e,1)},H=Object.assign(function(){return Zx(H),c},{destroy(){f=[]},set:y,reset(){y(i)},sub(j,Q){return f.push([j,w(Q)]),()=>T(j,Q)},unsub:T,unsubAll(){f=f.filter(j=>j[1].signal)}});return H}const iu=[];function Zx(i){iu.length&&iu[iu.length-1].add(i)}const Xx=uo(!1),[Nd,Qx]=Vx("Bridge",{bgColor:"#9147ff",textColor:"white",shouldLog:Xx}),eb={clipboard_text_received:Er({req_id:or(),data:i=>i===null?i:or(!0)(i)},"clipboard_text_received"),custom_method_invoked:Er({req_id:or(),result:i=>i,error:or(!0)},"custom_method_invoked"),popup_closed:Sr("popup_closed",i=>i?Er({button_id:n=>n==null?void 0:or()(n)})()(i):{}),viewport_changed:Er({height:Ho(),width:i=>i==null?window.innerWidth:Ho()(i),is_state_stable:sf(),is_expanded:sf()},"viewport_changed")};function tb(i){const n=window,[,r]=ao(Ld(n,"message",f=>{if(f.source!==n.parent)return;let c;try{c=Fx()(f.data)}catch{return}const{eventType:y,eventData:w}=c,T=eb[y];try{const H=T?T()(w):w;Nd("Event received:",H?{eventType:y,eventData:H}:{eventType:y}),i([y,H])}catch(H){Qx([`An error occurred processing the "${y}" event from the Telegram application.`,"Please, file an issue here:","https://github.com/Telegram-Mini-Apps/telegram-apps/issues/new/choose"].join(`
`),c,H)}}));return r}const Uh=uo(),Lh=uo();function nb(){return Lh()||Lh.set(tb(Uh.set)),Uh}const ou=uo({});function Md(i){let n=ou()[i];return n||(n=uo(void 0,{equals(){return!1}}),nb().sub(r=>{r&&r[0]===i&&n.set(r[1])}),ou.set({...ou(),[i]:n})),n}function Un(i,n,r){return Md(i).sub(n,r)}const rb="ERR_METHOD_UNSUPPORTED",ib="ERR_RETRIEVE_LP_FAILED",ob="ERR_METHOD_PARAMETER_UNSUPPORTED",Bd="ERR_UNKNOWN_ENV",sb="ERR_INVOKE_CUSTOM_METHOD_RESPONSE",fb=uo("https://web.telegram.org");function Ju(i,n){Nd("Posting event:",n?{eventType:i,eventData:n}:{eventType:i});const r=window;if(Pd(r)){r.TelegramWebviewProxy.postEvent(i,JSON.stringify(n));return}const f=JSON.stringify({eventType:i,eventData:n});if(kx())return r.parent.postMessage(f,fb());const{external:c}=r;if(Er({notify:Od()})().isValid(c)){c.notify(f);return}throw new ht(Bd)}function Zu(i,n,r){r||(r={});const{capture:f}=r,[c,y]=ao();return new Qt(w=>{(Array.isArray(n)?n:[n]).forEach(T=>{c(Un(T,H=>{(!f||(Array.isArray(n)?f({event:T,payload:H}):f(H)))&&w(H)}))}),(r.postEvent||Ju)(i,r.params)},r).finally(y)}function Dd(i){return Bx()(i)}function Fd(i){return Dd(i.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function ab(){return Fd(window.location.href)}function ub(){const i=performance.getEntriesByType("navigation")[0];if(!i)throw new Error("Unable to get first navigation entry.");return Fd(i.name)}const cb="launchParams";function lb(){return Dd(ar(cb)||"")}function hb(i){fr("launchParams",Dx(i))}function Wd(i){return i instanceof Error?i.message+(i.cause?`
${Wd(i.cause)}`:""):JSON.stringify(i)}function gf(){const i=[];for(const n of[ab,ub,lb])try{const r=n();return hb(r),r}catch(r){i.push(r)}throw new ht(ib,["Unable to retrieve launch parameters from any known source. Perhaps, you have opened your app outside Telegram?","📖 Refer to docs for more information:","https://docs.telegram-mini-apps.com/packages/telegram-apps-sdk/environment","Collected errors:",...i.map(n=>`— ${Wd(n)}`)].join(`
`))}function ff(i){if(i==="simple")try{return gf(),!0}catch{return!1}return Qt.withFn(async()=>{if(Pd(window))return!0;try{return await Zu("web_app_request_theme","theme_changed",{timeout:100}),!0}catch{return!1}},i)}function db(i,n){window.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({eventType:i,eventData:n}),source:window.parent}))}function pb(){[["TelegramGameProxy_receiveEvent"],["TelegramGameProxy","receiveEvent"],["Telegram","WebView","receiveEvent"]].forEach(i=>{let n=window;i.forEach((r,f,c)=>{if(f===c.length-1){n[r]=db;return}r in n||(n[r]={}),n=n[r]})})}function gb(){["TelegramGameProxy_receiveEvent","TelegramGameProxy","Telegram"].forEach(i=>{delete window[i]})}function _f(i,n,r){Md(i).unsub(n,r)}function _b(i){return({req_id:n})=>n===i}function $h(i){return i.split(".").map(Number)}function vb(i,n){const r=$h(i),f=$h(n),c=Math.max(r.length,f.length);for(let y=0;y<c;y+=1){const w=r[y]||0,T=f[y]||0;if(w!==T)return w>T?1:-1}return 0}function cn(i,n){return