PageSourceSearch

https://test-wizardland.vercel.app/assets/index.5da5b0ca.js

js test-wizardland.vercel.app collected 2026-10-03 07:51:31 UTC 470,352 bytes, 127 lines download raw bytes

vendor: 19,029 bytes, lines 1-26
1function Vg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function r0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}},at={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var js=Symbol.for("react.element"),Gg=Symbol.for("react.portal"),qg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Qg=Symbol.for("react.profiler"),Jg=Symbol.for("react.provider"),Zg=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Yg=Symbol.for("react.suspense"),em=Symbol.for("react.memo"),tm=Symbol.for("react.lazy"),Cd=Symbol.iterator;function nm(e){return e===null||typeof e!="object"?null:(e=Cd&&e[Cd]||e["@@iterator"],typeof e=="function"?e:null)}var o0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i0=Object.assign,s0={};function Ci(e,t,n){this.props=e,this.context=t,this.refs=s0,this.updater=n||o0}Ci.prototype.isReactComponent={};Ci.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u0(){}u0.prototype=Ci.prototype;function of(e,t,n){this.props=e,this.context=t,this.refs=s0,this.updater=n||o0}var sf=of.prototype=new u0;sf.constructor=of;i0(sf,Ci.prototype);sf.isPureReactComponent=!0;var Nd=Array.isArray,a0=Object.prototype.hasOwnProperty,uf={current:null},l0={key:!0,ref:!0,__self:!0,__source:!0};function c0(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)a0.call(t,r)&&!l0.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var d=Array(a),p=0;p<a;p++)d[p]=arguments[p+2];o.children=d}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:js,type:e,key:i,ref:s,props:o,_owner:uf.current}}function rm(e,t){return{$$typeof:js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function af(e){return typeof e=="object"&&e!==null&&e.$$typeof===js}function om(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jd=/\/+/g;function Ka(e,t){return typeof e=="object"&&e!==null&&e.key!=null?om(""+e.key):t.toString(36)}function Eu(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case js:case Gg:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ka(s,0):r,Nd(o)?(n="",e!=null&&(n=e.replace(jd,"$&/")+"/"),Eu(o,t,n,"",function(p){return p})):o!=null&&(af(o)&&(o=rm(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(jd,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Nd(e))for(var a=0;a<e.length;a++){i=e[a];var d=r+Ka(i,a);s+=Eu(i,t,n,d,o)}else if(d=nm(e),typeof d=="function")for(e=d.call(e),a=0;!(i=e.next()).done;)i=i.value,d=r+Ka(i,a++),s+=Eu(i,t,n,d,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Fs(e,t,n){if(e==null)return e;var r=[],o=0;return Eu(e,r,"","",function(i){return t.call(n,i,o++)}),r}function im(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var An={current:null},xu={transition:null},sm={ReactCurrentDispatcher:An,ReactCurrentBatchConfig:xu,ReactCurrentOwner:uf};at.Children={map:Fs,forEach:function(e,t,n){Fs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fs(e,function(){t++}),t},toArray:function(e){return Fs(e,function(t){return t})||[]},only:function(e){if(!af(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};at.Component=Ci;at.Fragment=qg;at.Profiler=Qg;at.PureComponent=of;at.StrictMode=Kg;at.Suspense=Yg;at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm;at.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=i0({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=uf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(d in t)a0.call(t,d)&&!l0.hasOwnProperty(d)&&(r[d]=t[d]===void 0&&a!==void 0?a[d]:t[d])}var d=arguments.length-2;if(d===1)r.children=n;else if(1<d){a=Array(d);for(var p=0;p<d;p++)a[p]=arguments[p+2];r.children=a}return{$$typeof:js,type:e.type,key:o,ref:i,props:r,_owner:s}};at.createContext=function(e){return e={$$typeof:Zg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jg,_context:e},e.Consumer=e};at.createElement=c0;at.createFactory=function(e){var t=c0.bind(null,e);return t.type=e,t};at.createRef=function(){return{current:null}};at.forwardRef=function(e){return{$$typeof:Xg,render:e}};at.isValidElement=af;at.lazy=function(e){return{$$typeof:tm,_payload:{_status:-1,_result:e},_init:im}};at.memo=function(e,t){return{$$typeof:em,type:e,compare:t===void 0?null:t}};at.startTransition=function(e){var t=xu.transition;xu.transition={};try{e()}finally{xu.transition=t}};at.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};at.useCallback=function(e,t){return An.current.useCallback(e,t)};at.useContext=function(e){return An.current.useContext(e)};at.useDebugValue=function(){};at.useDeferredValue=function(e){return An.current.useDeferredValue(e)};at.useEffect=function(e,t){return An.current.useEffect(e,t)};at.useId=function(){return An.current.useId()};at.useImperativeHandle=function(e,t,n){return An.current.useImperativeHandle(e,t,n)};at.useInsertionEffect=function(e,t){return An.current.useInsertionEffect(e,t)};at.useLayoutEffect=function(e,t){return An.current.useLayoutEffect(e,t)};at.useMemo=function(e,t){return An.current.useMemo(e,t)};at.useReducer=function(e,t,n){return An.current.useReducer(e,t,n)};at.useRef=function(e){return An.current.useRef(e)};at.useState=function(e){return An.current.useState(e)};at.useSyncExternalStore=function(e,t,n){return An.current.useSyncExternalStore(e,t,n)};at.useTransition=function(){return An.current.useTransition()};at.version="18.2.0";(function(e){e.exports=at})(K);const pa=r0(K.exports),um=Vg({__proto__:null,default:pa},[K.exports]);var Hl={},Is={exports:{}},Vn={},f0={exports:{}},d0={};/**
10 * @license React
11 * scheduler.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */(function(e){function t($,B){var N=$.length;$.push(B);e:for(;0<N;){var h=N-1>>>1,w=$[h];if(0<o(w,B))$[h]=B,$[N]=w,N=h;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var B=$[0],N=$.pop();if(N!==B){$[0]=N;e:for(var h=0,w=$.length,re=w>>>1;h<re;){var ee=2*(h+1)-1,v=$[ee],G=ee+1,V=$[G];if(0>o(v,N))G<w&&0>o(V,v)?($[h]=V,$[G]=N,h=G):($[h]=v,$[ee]=N,h=ee);else if(G<w&&0>o(V,N))$[h]=V,$[G]=N,h=G;else break e}}return B}function o($,B){var N=$.sortIndex-B.sortIndex;return N!==0?N:$.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var d=[],p=[],E=1,S=null,M=3,R=!1,U=!1,P=!1,J=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=$)r(p),B.sortIndex=B.expirationTime,t(d,B);else break;B=n(p)}}function C($){if(P=!1,_($),!U)if(n(d)!==null)U=!0,x(L);else{var B=n(p);B!==null&&O(C,B.startTime-$)}}function L($,B){U=!1,P&&(P=!1,j(X),X=-1),R=!0;var N=M;try{for(_(B),S=n(d);S!==null&&(!(S.expirationTime>B)||$&&!Q());){var h=S.callback;if(typeof h=="function"){S.callback=null,M=S.priorityLevel;var w=h(S.expirationTime<=B);B=e.unstable_now(),typeof w=="function"?S.callback=w:S===n(d)&&r(d),_(B)}else r(d);S=n(d)}if(S!==null)var re=!0;else{var ee=n(p);ee!==null&&O(C,ee.startTime-B),re=!1}return re}finally{S=null,M=N,R=!1}}var z=!1,Z=null,X=-1,ce=5,Me=-1;function Q(){return!(e.unstable_now()-Me<ce)}function ne(){if(Z!==null){var $=e.unstable_now();Me=$;var B=!0;try{B=Z(!0,$)}finally{B?u():(z=!1,Z=null)}}else z=!1}var u;if(typeof T=="function")u=function(){T(ne)};else if(typeof MessageChannel<"u"){var l=new MessageChannel,y=l.port2;l.port1.onmessage=ne,u=function(){y.postMessage(null)}}else u=function(){J(ne,0)};function x($){Z=$,z||(z=!0,u())}function O($,B){X=J(function(){$(e.unstable_now())},B)}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($){$.callback=null},e.unstable_continueExecution=function(){U||R||(U=!0,x(L))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function($){switch(M){case 1:case 2:case 3:var B=3;break;default:B=M}var N=M;M=B;try{return $()}finally{M=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,B){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=M;M=$;try{return B()}finally{M=N}},e.unstable_scheduleCallback=function($,B,N){var h=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?h+N:h):N=h,$){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=N+w,$={id:E++,callback:B,priorityLevel:$,startTime:N,expirationTime:w,sortIndex:-1},N>h?($.sortIndex=N,t(p,$),n(d)===null&&$===n(p)&&(P?(j(X),X=-1):P=!0,O(C,N-h))):($.sortIndex=w,t(d,$),U||R||(U=!0,x(L))),$},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function($){var B=M;return function(){var N=M;M=B;try{return $.apply(this,arguments)}finally{M=N}}}})(d0);(function(e){e.exports=d0})(f0);/**
18 * @license React
19 * react-dom.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var h0=K.exports,Hn=f0.exports;function me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var p0=new Set,ls={};function Uo(e,t){bi(e,t),bi(e+"Capture",t)}function bi(e,t){for(ls[e]=t,e=0;e<t.length;e++)p0.add(t[e])}var Or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=Object.prototype.hasOwnProperty,am=/^[: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]*$/,Id={},$d={};function lm(e){return Vl.call($d,e)?!0:Vl.call(Id,e)?!1:am.test(e)?$d[e]=!0:(Id[e]=!0,!1)}function cm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fm(e,t,n,r){if(t===null||typeof t>"u"||cm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cn[e]=new Tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cn[t]=new Tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cn[e]=new Tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cn[e]=new Tn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){cn[e]=new Tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cn[e]=new Tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cn[e]=new Tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cn[e]=new Tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cn[e]=new Tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lf=/[\-:]([a-z])/g;function cf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lf,cf);cn[t]=new Tn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lf,cf);cn[t]=new Tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lf,cf);cn[t]=new Tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cn[e]=new Tn(e,1,!1,e.toLowerCase(),null,!1,!1)});cn.xlinkHref=new Tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cn[e]=new Tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function ff(e,t,n,r){var o=cn.hasOwnProperty(t)?cn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(fm(t,n,o,r)&&(n=null),r||o===null?lm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ir=h0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ws=Symbol.for("react.element"),Zo=Symbol.for("react.portal"),Xo=Symbol.for("react.fragment"),df=Symbol.for("react.strict_mode"),Gl=Symbol.for("react.profiler"),y0=Symbol.for("react.provider"),g0=Symbol.for("react.context"),hf=Symbol.for("react.forward_ref"),ql=Symbol.for("react.suspense"),Kl=Symbol.for("react.suspense_list"),pf=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),m0=Symbol.for("react.offscreen"),Pd=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Object.assign,Qa;function Ki(e){if(Qa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qa=t&&t[1]||""}return`
26`+Qa+e}var Ja=!1;function Za(e,t){if(!e||Ja)return"";Ja=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}
vendor: 3,833 bytes, lines 26-29
26catch(p){if(p&&r&&typeof p.stack=="string"){for(var o=p.stack.split(`
27`),i=r.stack.split(`
28`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var d=`
29`+o[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=s&&0<=a);break}}}finally{Ja=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ki(e):""}function dm(e){switch(e.tag){case 5:return Ki(e.type);case 16:return Ki("Lazy");case 13:return Ki("Suspense");case 19:return Ki("SuspenseList");case 0:case 2:case 15:return e=Za(e.type,!1),e;case 11:return e=Za(e.type.render,!1),e;case 1:return e=Za(e.type,!0),e;default:return""}}function Ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xo:return"Fragment";case Zo:return"Portal";case Gl:return"Profiler";case df:return"StrictMode";case ql:return"Suspense";case Kl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g0:return(e.displayName||"Context")+".Consumer";case y0:return(e._context.displayName||"Context")+".Provider";case hf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pf:return t=e.displayName||null,t!==null?t:Ql(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return Ql(e(t))}catch{}}return null}function hm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ql(t);case 8:return t===df?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pm(e){var t=v0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hs(e){e._valueTracker||(e._valueTracker=pm(e))}function w0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=v0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Rd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=io(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 3,662 bytes, line 29
29function b0(e,t){t=t.checked,t!=null&&ff(e,"checked",t,!1)}function Zl(e,t){b0(e,t);var n=io(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xl(e,t.type,io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xl(e,t,n){(t!=="number"||Lu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qi=Array.isArray;function ci(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=""+io(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(me(91));return Ut({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ud(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(me(92));if(Qi(n)){if(1<n.length)throw Error(me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:io(n)}}function E0(e,t){var n=io(t.value),r=io(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ld(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function x0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ec(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?x0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vs,S0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vs=Vs||document.createElement("div"),Vs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ym=["Webkit","ms","Moz","O"];
vendor: 15,111 bytes, line 29
29Object.keys(Xi).forEach(function(e){ym.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xi[t]=Xi[e]})});function k0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xi.hasOwnProperty(e)&&Xi[e]?(""+t).trim():t+"px"}function M0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=k0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var gm=Ut({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tc(e,t){if(t){if(gm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function nc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 rc=null;function yf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oc=null,fi=null,di=null;function Dd(e){if(e=Rs(e)){if(typeof oc!="function")throw Error(me(280));var t=e.stateNode;t&&(t=wa(t),oc(e.stateNode,e.type,t))}}function _0(e){fi?di?di.push(e):di=[e]:fi=e}function A0(){if(fi){var e=fi,t=di;if(di=fi=null,Dd(e),t)for(e=0;e<t.length;e++)Dd(t[e])}}function T0(e,t){return e(t)}function O0(){}var Xa=!1;function C0(e,t,n){if(Xa)return e(t,n);Xa=!0;try{return T0(e,t,n)}finally{Xa=!1,(fi!==null||di!==null)&&(O0(),A0())}}function fs(e,t){var n=e.stateNode;if(n===null)return null;var r=wa(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(me(231,t,typeof n));return n}var ic=!1;if(Or)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){ic=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{ic=!1}function mm(e,t,n,r,o,i,s,a,d){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(E){this.onError(E)}}var Yi=!1,Du=null,zu=!1,sc=null,vm={onError:function(e){Yi=!0,Du=e}};function wm(e,t,n,r,o,i,s,a,d){Yi=!1,Du=null,mm.apply(vm,arguments)}function bm(e,t,n,r,o,i,s,a,d){if(wm.apply(this,arguments),Yi){if(Yi){var p=Du;Yi=!1,Du=null}else throw Error(me(198));zu||(zu=!0,sc=p)}}function Lo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function N0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zd(e){if(Lo(e)!==e)throw Error(me(188))}function Em(e){var t=e.alternate;if(!t){if(t=Lo(e),t===null)throw Error(me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return zd(o),e;if(i===r)return zd(o),t;i=i.sibling}throw Error(me(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(me(189))}}if(n.alternate!==r)throw Error(me(190))}if(n.tag!==3)throw Error(me(188));return n.stateNode.current===n?e:t}function j0(e){return e=Em(e),e!==null?I0(e):null}function I0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=I0(e);if(t!==null)return t;e=e.sibling}return null}var $0=Hn.unstable_scheduleCallback,Fd=Hn.unstable_cancelCallback,xm=Hn.unstable_shouldYield,Sm=Hn.unstable_requestPaint,Gt=Hn.unstable_now,km=Hn.unstable_getCurrentPriorityLevel,gf=Hn.unstable_ImmediatePriority,P0=Hn.unstable_UserBlockingPriority,Fu=Hn.unstable_NormalPriority,Mm=Hn.unstable_LowPriority,R0=Hn.unstable_IdlePriority,ya=null,br=null;function _m(e){if(br&&typeof br.onCommitFiberRoot=="function")try{br.onCommitFiberRoot(ya,e,void 0,(e.current.flags&128)===128)}catch{}}var ar=Math.clz32?Math.clz32:Om,Am=Math.log,Tm=Math.LN2;function Om(e){return e>>>=0,e===0?32:31-(Am(e)/Tm|0)|0}var Gs=64,qs=4194304;function Ji(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Ji(a):(i&=s,i!==0&&(r=Ji(i)))}else s=n&~o,s!==0?r=Ji(s):i!==0&&(r=Ji(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ar(t),o=1<<n,r|=e[n],t&=~o;return r}function Cm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-ar(i),a=1<<s,d=o[s];d===-1?((a&n)===0||(a&r)!==0)&&(o[s]=Cm(a,t)):d<=t&&(e.expiredLanes|=a),i&=~a}}function uc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B0(){var e=Gs;return Gs<<=1,(Gs&4194240)===0&&(Gs=64),e}function Ya(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $s(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ar(t),e[t]=n}function jm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ar(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function mf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ar(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var St=0;function U0(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var L0,vf,D0,z0,F0,ac=!1,Ks=[],Qr=null,Jr=null,Zr=null,ds=new Map,hs=new Map,zr=[],Im="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 submit".split(" ");function Wd(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(t.pointerId)}}function Ui(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Rs(t),t!==null&&vf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $m(e,t,n,r,o){switch(t){case"focusin":return Qr=Ui(Qr,e,t,n,r,o),!0;case"dragenter":return Jr=Ui(Jr,e,t,n,r,o),!0;case"mouseover":return Zr=Ui(Zr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ds.set(i,Ui(ds.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,hs.set(i,Ui(hs.get(i)||null,e,t,n,r,o)),!0}return!1}function W0(e){var t=wo(e.target);if(t!==null){var n=Lo(t);if(n!==null){if(t=n.tag,t===13){if(t=N0(n),t!==null){e.blockedOn=t,F0(e.priority,function(){D0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rc=r,n.target.dispatchEvent(r),rc=null}else return t=Rs(n),t!==null&&vf(t),e.blockedOn=n,!1;t.shift()}return!0}function Hd(e,t,n){Su(e)&&n.delete(t)}function Pm(){ac=!1,Qr!==null&&Su(Qr)&&(Qr=null),Jr!==null&&Su(Jr)&&(Jr=null),Zr!==null&&Su(Zr)&&(Zr=null),ds.forEach(Hd),hs.forEach(Hd)}function Li(e,t){e.blockedOn===t&&(e.blockedOn=null,ac||(ac=!0,Hn.unstable_scheduleCallback(Hn.unstable_NormalPriority,Pm)))}function ps(e){function t(o){return Li(o,e)}if(0<Ks.length){Li(Ks[0],e);for(var n=1;n<Ks.length;n++){var r=Ks[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Qr!==null&&Li(Qr,e),Jr!==null&&Li(Jr,e),Zr!==null&&Li(Zr,e),ds.forEach(t),hs.forEach(t),n=0;n<zr.length;n++)r=zr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zr.length&&(n=zr[0],n.blockedOn===null);)W0(n),n.blockedOn===null&&zr.shift()}var hi=Ir.ReactCurrentBatchConfig,Hu=!0;function Rm(e,t,n,r){var o=St,i=hi.transition;hi.transition=null;try{St=1,wf(e,t,n,r)}finally{St=o,hi.transition=i}}function Bm(e,t,n,r){var o=St,i=hi.transition;hi.transition=null;try{St=4,wf(e,t,n,r)}finally{St=o,hi.transition=i}}function wf(e,t,n,r){if(Hu){var o=lc(e,t,n,r);if(o===null)ll(e,t,r,Vu,n),Wd(e,r);else if($m(o,e,t,n,r))r.stopPropagation();else if(Wd(e,r),t&4&&-1<Im.indexOf(e)){for(;o!==null;){var i=Rs(o);if(i!==null&&L0(i),i=lc(e,t,n,r),i===null&&ll(e,t,r,Vu,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else ll(e,t,r,null,n)}}var Vu=null;function lc(e,t,n,r){if(Vu=null,e=yf(r),e=wo(e),e!==null)if(t=Lo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=N0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vu=e,null}function H0(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(km()){case gf:return 1;case P0:return 4;case Fu:case Mm:return 16;case R0:return 536870912;default:return 16}default:return 16}}var Wr=null,bf=null,ku=null;function V0(){if(ku)return ku;var e,t=bf,n=t.length,r,o="value"in Wr?Wr.value:Wr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ku=o.slice(e,1<r?1-r:void 0)}function Mu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qs(){return!0}function Vd(){return!1}function Gn(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qs:Vd,this.isPropagationStopped=Vd,this}return Ut(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),t}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ef=Gn(Ni),Ps=Ut({},Ni,{view:0,detail:0}),Um=Gn(Ps),el,tl,Di,ga=Ut({},Ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Di&&(Di&&e.type==="mousemove"?(el=e.screenX-Di.screenX,tl=e.screenY-Di.screenY):tl=el=0,Di=e),el)},movementY:function(e){return"movementY"in e?e.movementY:tl}}),Gd=Gn(ga),Lm=Ut({},ga,{dataTransfer:0}),Dm=Gn(Lm),zm=Ut({},Ps,{relatedTarget:0}),nl=Gn(zm),Fm=Ut({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),Wm=Gn(Fm),Hm=Ut({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vm=Gn(Hm),Gm=Ut({},Ni,{data:0}),qd=Gn(Gm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Km={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"},Qm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qm[e])?!!t[e]:!1}function xf(){return Jm}var Zm=Ut({},Ps,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 4,774 bytes, line 29
29return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Km[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xf,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xm=Gn(Zm),Ym=Ut({},ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kd=Gn(Ym),e2=Ut({},Ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xf}),t2=Gn(e2),n2=Ut({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),r2=Gn(n2),o2=Ut({},ga,{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}),i2=Gn(o2),s2=[9,13,27,32],Sf=Or&&"CompositionEvent"in window,es=null;Or&&"documentMode"in document&&(es=document.documentMode);var u2=Or&&"TextEvent"in window&&!es,G0=Or&&(!Sf||es&&8<es&&11>=es),Qd=String.fromCharCode(32),Jd=!1;function q0(e,t){switch(e){case"keyup":return s2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yo=!1;function a2(e,t){switch(e){case"compositionend":return K0(t);case"keypress":return t.which!==32?null:(Jd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Jd?null:e;default:return null}}function l2(e,t){if(Yo)return e==="compositionend"||!Sf&&q0(e,t)?(e=V0(),ku=bf=Wr=null,Yo=!1,e):null;switch(e){case"paste":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 G0&&t.locale!=="ko"?null:t.data;default:return null}}var c2={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 Zd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c2[e.type]:t==="textarea"}function Q0(e,t,n,r){_0(r),t=Gu(t,"onChange"),0<t.length&&(n=new Ef("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ts=null,ys=null;function f2(e){s1(e,0)}function ma(e){var t=ni(e);if(w0(t))return e}function d2(e,t){if(e==="change")return t}var J0=!1;if(Or){var rl;if(Or){var ol="oninput"in document;if(!ol){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),ol=typeof Xd.oninput=="function"}rl=ol}else rl=!1;J0=rl&&(!document.documentMode||9<document.documentMode)}function Yd(){ts&&(ts.detachEvent("onpropertychange",Z0),ys=ts=null)}function Z0(e){if(e.propertyName==="value"&&ma(ys)){var t=[];Q0(t,ys,e,yf(e)),C0(f2,t)}}function h2(e,t,n){e==="focusin"?(Yd(),ts=t,ys=n,ts.attachEvent("onpropertychange",Z0)):e==="focusout"&&Yd()}function p2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ma(ys)}function y2(e,t){if(e==="click")return ma(t)}function g2(e,t){if(e==="input"||e==="change")return ma(t)}function m2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cr=typeof Object.is=="function"?Object.is:m2;function gs(e,t){if(cr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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(!Vl.call(t,o)||!cr(e[o],t[o]))return!1}return!0}function eh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function th(e,t){var n=eh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eh(n)}}function X0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?X0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Y0(){for(var e=window,t=Lu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lu(e.document)}return t}function kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function v2(e){var t=Y0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&X0(n.ownerDocument.documentElement,n)){if(r!==null&&kf(n)){if
vendor: 5,231 bytes, line 29
29(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=th(n,i);var s=th(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var w2=Or&&"documentMode"in document&&11>=document.documentMode,ei=null,cc=null,ns=null,fc=!1;function nh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||ei==null||ei!==Lu(r)||(r=ei,"selectionStart"in r&&kf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ns&&gs(ns,r)||(ns=r,r=Gu(cc,"onSelect"),0<r.length&&(t=new Ef("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ei)))}function Js(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ti={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionend:Js("Transition","TransitionEnd")},il={},e1={};Or&&(e1=document.createElement("div").style,"AnimationEvent"in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),"TransitionEvent"in window||delete ti.transitionend.transition);function va(e){if(il[e])return il[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in e1)return il[e]=t[n];return e}var t1=va("animationend"),n1=va("animationiteration"),r1=va("animationstart"),o1=va("transitionend"),i1=new Map,rh="abort auxClick 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 ao(e,t){i1.set(e,t),Uo(t,[e])}for(var sl=0;sl<rh.length;sl++){var ul=rh[sl],b2=ul.toLowerCase(),E2=ul[0].toUpperCase()+ul.slice(1);ao(b2,"on"+E2)}ao(t1,"onAnimationEnd");ao(n1,"onAnimationIteration");ao(r1,"onAnimationStart");ao("dblclick","onDoubleClick");ao("focusin","onFocus");ao("focusout","onBlur");ao(o1,"onTransitionEnd");bi("onMouseEnter",["mouseout","mouseover"]);bi("onMouseLeave",["mouseout","mouseover"]);bi("onPointerEnter",["pointerout","pointerover"]);bi("onPointerLeave",["pointerout","pointerover"]);Uo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Uo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Uo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Uo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zi="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(" "),x2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zi));function oh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bm(r,t,void 0,e),e.currentTarget=null}function s1(e,t){t=(t&4)!==0;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 s=r.length-1;0<=s;s--){var a=r[s],d=a.instance,p=a.currentTarget;if(a=a.listener,d!==i&&o.isPropagationStopped())break e;oh(o,a,p),i=d}else for(s=0;s<r.length;s++){if(a=r[s],d=a.instance,p=a.currentTarget,a=a.listener,d!==i&&o.isPropagationStopped())break e;oh(o,a,p),i=d}}}if(zu)throw e=sc,zu=!1,sc=null,e}function jt(e,t){var n=t[gc];n===void 0&&(n=t[gc]=new Set);var r=e+"__bubble";n.has(r)||(u1(t,e,2,!1),n.add(r))}function al(e,t,n){var r=0;t&&(r|=4),u1(n,e,r,t)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[Zs]){e[Zs]=!0,p0.forEach(function(n){n!=="selectionchange"&&(x2.has(n)||al(n,!1,e),al(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;
vendor: 42,865 bytes, lines 29-32
29t===null||t[Zs]||(t[Zs]=!0,al("selectionchange",!1,t))}}function u1(e,t,n,r){switch(H0(t)){case 1:var o=Rm;break;case 4:o=Bm;break;default:o=wf}n=o.bind(null,t,n,e),o=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ll(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var d=s.tag;if((d===3||d===4)&&(d=s.stateNode.containerInfo,d===o||d.nodeType===8&&d.parentNode===o))return;s=s.return}for(;a!==null;){if(s=wo(a),s===null)return;if(d=s.tag,d===5||d===6){r=i=s;continue e}a=a.parentNode}}r=r.return}C0(function(){var p=i,E=yf(n),S=[];e:{var M=i1.get(e);if(M!==void 0){var R=Ef,U=e;switch(e){case"keypress":if(Mu(n)===0)break e;case"keydown":case"keyup":R=Xm;break;case"focusin":U="focus",R=nl;break;case"focusout":U="blur",R=nl;break;case"beforeblur":case"afterblur":R=nl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=t2;break;case t1:case n1:case r1:R=Wm;break;case o1:R=r2;break;case"scroll":R=Um;break;case"wheel":R=i2;break;case"copy":case"cut":case"paste":R=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Kd}var P=(t&4)!==0,J=!P&&e==="scroll",j=P?M!==null?M+"Capture":null:M;P=[];for(var T=p,_;T!==null;){_=T;var C=_.stateNode;if(_.tag===5&&C!==null&&(_=C,j!==null&&(C=fs(T,j),C!=null&&P.push(vs(T,C,_)))),J)break;T=T.return}0<P.length&&(M=new R(M,U,null,n,E),S.push({event:M,listeners:P}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",M&&n!==rc&&(U=n.relatedTarget||n.fromElement)&&(wo(U)||U[Cr]))break e;if((R||M)&&(M=E.window===E?E:(M=E.ownerDocument)?M.defaultView||M.parentWindow:window,R?(U=n.relatedTarget||n.toElement,R=p,U=U?wo(U):null,U!==null&&(J=Lo(U),U!==J||U.tag!==5&&U.tag!==6)&&(U=null)):(R=null,U=p),R!==U)){if(P=Gd,C="onMouseLeave",j="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(P=Kd,C="onPointerLeave",j="onPointerEnter",T="pointer"),J=R==null?M:ni(R),_=U==null?M:ni(U),M=new P(C,T+"leave",R,n,E),M.target=J,M.relatedTarget=_,C=null,wo(E)===p&&(P=new P(j,T+"enter",U,n,E),P.target=_,P.relatedTarget=J,C=P),J=C,R&&U)t:{for(P=R,j=U,T=0,_=P;_;_=Wo(_))T++;for(_=0,C=j;C;C=Wo(C))_++;for(;0<T-_;)P=Wo(P),T--;for(;0<_-T;)j=Wo(j),_--;for(;T--;){if(P===j||j!==null&&P===j.alternate)break t;P=Wo(P),j=Wo(j)}P=null}else P=null;R!==null&&ih(S,M,R,P,!1),U!==null&&J!==null&&ih(S,J,U,P,!0)}}e:{if(M=p?ni(p):window,R=M.nodeName&&M.nodeName.toLowerCase(),R==="select"||R==="input"&&M.type==="file")var L=d2;else if(Zd(M))if(J0)L=g2;else{L=p2;var z=h2}else(R=M.nodeName)&&R.toLowerCase()==="input"&&(M.type==="checkbox"||M.type==="radio")&&(L=y2);if(L&&(L=L(e,p))){Q0(S,L,n,E);break e}z&&z(e,M,p),e==="focusout"&&(z=M._wrapperState)&&z.controlled&&M.type==="number"&&Xl(M,"number",M.value)}switch(z=p?ni(p):window,e){case"focusin":(Zd(z)||z.contentEditable==="true")&&(ei=z,cc=p,ns=null);break;case"focusout":ns=cc=ei=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,nh(S,n,E);break;case"selectionchange":if(w2)break;case"keydown":case"keyup":nh(S,n,E)}var Z;if(Sf)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 Yo?q0(e,n)&&(X="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(X="onCompositionStart");X&&(G0&&n.locale!=="ko"&&(Yo||X!=="onCompositionStart"?X==="onCompositionEnd"&&Yo&&(Z=V0()):(Wr=E,bf="value"in Wr?Wr.value:Wr.textContent,Yo=!0)),z=Gu(p,X),0<z.length&&(X=new qd(X,e,null,n,E),S.push({event:X,listeners:z}),Z?X.data=Z:(Z=K0(n),Z!==null&&(X.data=Z)))),(Z=u2?a2(e,n):l2(e,n))&&(p=Gu(p,"onBeforeInput"),0<p.length&&(E=new qd("onBeforeInput","beforeinput",null,n,E),S.push({event:E,listeners:p}),E.data=Z))}s1(S,t)})}function vs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=fs(e,n),i!=null&&r.unshift(vs(e,i,o)),i=fs(e,t),i!=null&&r.push(vs(e,i,o))),e=e.return}return r}function Wo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ih(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,d=a.alternate,p=a.stateNode;if(d!==null&&d===r)break;a.tag===5&&p!==null&&(a=p,o?(d=fs(n,i),d!=null&&s.unshift(vs(n,d,a))):o||(d=fs(n,i),d!=null&&s.push(vs(n,d,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var S2=/\r\n?/g,k2=/\u0000|\uFFFD/g;function sh(e){return(typeof e=="string"?e:""+e).replace(S2,`
30`).replace(k2,"")}function Xs(e,t,n){if(t=sh(t),sh(e)!==t&&n)throw Error(me(425))}function qu(){}var dc=null,hc=null;function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yc=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,uh=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof uh<"u"?function(e){return uh.resolve(null).then(e).catch(A2)}:yc;function A2(e){setTimeout(function(){throw e})}function cl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ps(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ps(t)}function Xr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ji=Math.random().toString(36).slice(2),gr="__reactFiber$"+ji,ws="__reactProps$"+ji,Cr="__reactContainer$"+ji,gc="__reactEvents$"+ji,T2="__reactListeners$"+ji,O2="__reactHandles$"+ji;function wo(e){var t=e[gr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cr]||n[gr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ah(e);e!==null;){if(n=e[gr])return n;e=ah(e)}return t}e=n,n=e.parentNode}return null}function Rs(e){return e=e[gr]||e[Cr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ni(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(me(33))}function wa(e){return e[ws]||null}var mc=[],ri=-1;function lo(e){return{current:e}}function It(e){0>ri||(e.current=mc[ri],mc[ri]=null,ri--)}function Nt(e,t){ri++,mc[ri]=e.current,e.current=t}var so={},En=lo(so),In=lo(!1),No=so;function Ei(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $n(e){return e=e.childContextTypes,e!=null}function Ku(){It(In),It(En)}function lh(e,t,n){if(En.current!==so)throw Error(me(168));Nt(En,t),Nt(In,n)}function a1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(me(108,hm(e)||"Unknown",o));return Ut({},n,r)}function Qu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,No=En.current,Nt(En,e),Nt(In,In.current),!0}function ch(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=a1(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,It(In),It(En),Nt(En,e)):It(In),Nt(In,n)}var Mr=null,ba=!1,fl=!1;function l1(e){Mr===null?Mr=[e]:Mr.push(e)}function C2(e){ba=!0,l1(e)}function co(){if(!fl&&Mr!==null){fl=!0;var e=0,t=St;try{var n=Mr;for(St=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mr=null,ba=!1}catch(o){throw Mr!==null&&(Mr=Mr.slice(e+1)),$0(gf,co),o}finally{St=t,fl=!1}}return null}var oi=[],ii=0,Ju=null,Zu=0,Jn=[],Zn=0,jo=null,_r=1,Ar="";function yo(e,t){oi[ii++]=Zu,oi[ii++]=Ju,Ju=e,Zu=t}function c1(e,t,n){Jn[Zn++]=_r,Jn[Zn++]=Ar,Jn[Zn++]=jo,jo=e;var r=_r;e=Ar;var o=32-ar(r)-1;r&=~(1<<o),n+=1;var i=32-ar(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,_r=1<<32-ar(t)+o|n<<o|r,Ar=i+e}else _r=1<<i|n<<o|r,Ar=e}function Mf(e){e.return!==null&&(yo(e,1),c1(e,1,0))}function _f(e){for(;e===Ju;)Ju=oi[--ii],oi[ii]=null,Zu=oi[--ii],oi[ii]=null;for(;e===jo;)jo=Jn[--Zn],Jn[Zn]=null,Ar=Jn[--Zn],Jn[Zn]=null,_r=Jn[--Zn],Jn[Zn]=null}var Fn=null,zn=null,$t=!1,ur=null;function f1(e,t){var n=Xn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fn=e,zn=Xr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fn=e,zn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jo!==null?{id:_r,overflow:Ar}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fn=e,zn=null,!0):!1;default:return!1}}function vc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wc(e){if($t){var t=zn;if(t){var n=t;if(!fh(e,t)){if(vc(e))throw Error(me(418));t=Xr(n.nextSibling);var r=Fn;t&&fh(e,t)?f1(r,n):(e.flags=e.flags&-4097|2,$t=!1,Fn=e)}}else{if(vc(e))throw Error(me(418));e.flags=e.flags&-4097|2,$t=!1,Fn=e}}}function dh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fn=e}function Ys(e){if(e!==Fn)return!1;if(!$t)return dh(e),$t=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pc(e.type,e.memoizedProps)),t&&(t=zn)){if(vc(e))throw d1(),Error(me(418));for(;t;)f1(e,t),t=Xr(t.nextSibling)}if(dh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zn=Xr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zn=null}}else zn=Fn?Xr(e.stateNode.nextSibling):null;return!0}function d1(){for(var e=zn;e;)e=Xr(e.nextSibling)}function xi(){zn=Fn=null,$t=!1}function Af(e){ur===null?ur=[e]:ur.push(e)}var N2=Ir.ReactCurrentBatchConfig;function or(e,t){if(e&&e.defaultProps){t=Ut({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Xu=lo(null),Yu=null,si=null,Tf=null;function Of(){Tf=si=Yu=null}function Cf(e){var t=Xu.current;It(Xu),e._currentValue=t}function bc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pi(e,t){Yu=e,Tf=si=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(jn=!0),e.firstContext=null)}function er(e){var t=e._currentValue;if(Tf!==e)if(e={context:e,memoizedValue:t,next:null},si===null){if(Yu===null)throw Error(me(308));si=e,Yu.dependencies={lanes:0,firstContext:e}}else si=si.next=e;return t}var bo=null;function Nf(e){bo===null?bo=[e]:bo.push(e)}function h1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Nr(e,r)}function Nr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dr=!1;function jf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function p1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(yt&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Nr(e,n)}return o=r.interleaved,o===null?(t.next=t,Nf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Nr(e,n)}function _u(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mf(e,n)}}function hh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(e,t,n,r){var o=e.updateQueue;Dr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var d=a,p=d.next;d.next=null,s===null?i=p:s.next=p,s=d;var E=e.alternate;E!==null&&(E=E.updateQueue,a=E.lastBaseUpdate,a!==s&&(a===null?E.firstBaseUpdate=p:a.next=p,E.lastBaseUpdate=d))}if(i!==null){var S=o.baseState;s=0,E=p=d=null,a=i;do{var M=a.lane,R=a.eventTime;if((r&M)===M){E!==null&&(E=E.next={eventTime:R,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var U=e,P=a;switch(M=t,R=n,P.tag){case 1:if(U=P.payload,typeof U=="function"){S=U.call(R,S,M);break e}S=U;break e;case 3:U.flags=U.flags&-65537|128;case 0:if(U=P.payload,M=typeof U=="function"?U.call(R,S,M):U,M==null)break e;S=Ut({},S,M);break e;case 2:Dr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,M=o.effects,M===null?o.effects=[a]:M.push(a))}else R={eventTime:R,lane:M,tag:a.tag,payload:a.payload,callback:a.callback,next:null},E===null?(p=E=R,d=S):E=E.next=R,s|=M;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;M=a,a=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(1);if(E===null&&(d=S),o.baseState=d,o.firstBaseUpdate=p,o.lastBaseUpdate=E,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);$o|=s,e.lanes=s,e.memoizedState=S}}function ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(me(191,o));o.call(r)}}}var y1=new h0.Component().refs;function Ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ut({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ea={isMounted:function(e){return(e=e._reactInternals)?Lo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_n(),o=to(e),i=Tr(r,o);i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,o),t!==null&&(lr(t,e,o,r),_u(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_n(),o=to(e),i=Tr(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,o),t!==null&&(lr(t,e,o,r),_u(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_n(),r=to(e),o=Tr(n,r);o.tag=2,t!=null&&(o.callback=t),t=Yr(e,o,r),t!==null&&(lr(t,e,r,n),_u(t,e,r))}};function yh(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!gs(n,r)||!gs(o,i):!0}function g1(e,t,n){var r=!1,o=so,i=t.contextType;return typeof i=="object"&&i!==null?i=er(i):(o=$n(t)?No:En.current,r=t.contextTypes,i=(r=r!=null)?Ei(e,o):so),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ea,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function gh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ea.enqueueReplaceState(t,t.state,null)}function xc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=y1,jf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=er(i):(i=$n(t)?No:En.current,o.context=Ei(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ec(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ea.enqueueReplaceState(o,o.state,null),ea(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function zi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(me(309));var r=n.stateNode}if(!r)throw Error(me(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===y1&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(me(284));if(!n._owner)throw Error(me(290,e))}return e}function eu(e,t){throw e=Object.prototype.toString.call(t),Error(me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mh(e){var t=e._init;return t(e._payload)}function m1(e){function t(j,T){if(e){var _=j.deletions;_===null?(j.deletions=[T],j.flags|=16):_.push(T)}}function n(j,T){if(!e)return null;for(;T!==null;)t(j,T),T=T.sibling;return null}function r(j,T){for(j=new Map;T!==null;)T.key!==null?j.set(T.key,T):j.set(T.index,T),T=T.sibling;return j}function o(j,T){return j=no(j,T),j.index=0,j.sibling=null,j}function i(j,T,_){return j.index=_,e?(_=j.alternate,_!==null?(_=_.index,_<T?(j.flags|=2,T):_):(j.flags|=2,T)):(j.flags|=1048576,T)}function s(j){return e&&j.alternate===null&&(j.flags|=2),j}function a(j,T,_,C){return T===null||T.tag!==6?(T=vl(_,j.mode,C),T.return=j,T):(T=o(T,_),T.return=j,T)}function d(j,T,_,C){var L=_.type;return L===Xo?E(j,T,_.props.children,C,_.key):T!==null&&(T.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Lr&&mh(L)===T.type)?(C=o(T,_.props),C.ref=zi(j,T,_),C.return=j,C):(C=ju(_.type,_.key,_.props,null,j.mode,C),C.ref=zi(j,T,_),C.return=j,C)}function p(j,T,_,C){return T===null||T.tag!==4||T.stateNode.containerInfo!==_.containerInfo||T.stateNode.implementation!==_.implementation?(T=wl(_,j.mode,C),T.return=j,T):(T=o(T,_.children||[]),T.return=j,T)}function E(j,T,_,C,L){return T===null||T.tag!==7?(T=_o(_,j.mode,C,L),T.return=j,T):(T=o(T,_),T.return=j,T)}function S(j,T,_){if(typeof T=="string"&&T!==""||typeof T=="number")return T=vl(""+T,j.mode,_),T.return=j,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Ws:return _=ju(T.type,T.key,T.props,null,j.mode,_),_.ref=zi(j,null,T),_.return=j,_;case Zo:return T=wl(T,j.mode,_),T.return=j,T;case Lr:var C=T._init;return S(j,C(T._payload),_)}if(Qi(T)||Ri(T))return T=_o(T,j.mode,_,null),T.return=j,T;eu(j,T)}return null}function M(j,T,_,C){var L=T!==null?T.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return L!==null?null:a(j,T,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ws:return _.key===L?d(j,T,_,C):null;case Zo:return _.key===L?p(j,T,_,C):null;case Lr:return L=_._init,M(j,T,L(_._payload),C)}if(Qi(_)||Ri(_))return L!==null?null:E(j,T,_,C,null);eu(j,_)}return null}function R(j,T,_,C,L){if(typeof C=="string"&&C!==""||typeof C=="number")return j=j.get(_)||null,a(T,j,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ws:return j=j.get(C.key===null?_:C.key)||null,d(T,j,C,L);case Zo:return j=j.get(C.key===null?_:C.key)||null,p(T,j,C,L);case Lr:var z=C._init;return R(j,T,_,z(C._payload),L)}if(Qi(C)||Ri(C))return j=j.get(_)||null,E(T,j,C,L,null);eu(T,C)}return null}function U(j,T,_,C){for(var L=null,z=null,Z=T,X=T=0,ce=null;Z!==null&&X<_.length;X++){Z.index>X?(ce=Z,Z=null):ce=Z.sibling;var Me=M(j,Z,_[X],C);if(Me===null){Z===null&&(Z=ce);break}e&&Z&&Me.alternate===null&&t(j,Z),T=i(Me,T,X),z===null?L=Me:z.sibling=Me,z=Me,Z=ce}if(X===_.length)return n(j,Z),$t&&yo(j,X),L;if(Z===null){for(;X<_.length;X++)Z=S(j,_[X],C),Z!==null&&(T=i(Z,T,X),z===null?L=Z:z.sibling=Z,z=Z);return $t&&yo(j,X),L}for(Z=r(j,Z);X<_.length;X++)ce=R(Z,j,X,_[X],C),ce!==null&&(e&&ce.alternate!==null&&Z.delete(ce.key===null?X:ce.key),T=i(ce,T,X),z===null?L=ce:z.sibling=ce,z=ce);return e&&Z.forEach(function(Q){return t(j,Q)}),$t&&yo(j,X),L}function P(j,T,_,C){var L=Ri(_);if(typeof L!="function")throw Error(me(150));if(_=L.call(_),_==null)throw Error(me(151));for(var z=L=null,Z=T,X=T=0,ce=null,Me=_.next();Z!==null&&!Me.done;X++,Me=_.next()){Z.index>X?(ce=Z,Z=null):ce=Z.sibling;var Q=M(j,Z,Me.value,C);if(Q===null){Z===null&&(Z=ce);break}e&&Z&&Q.alternate===null&&t(j,Z),T=i(Q,T,X),z===null?L=Q:z.sibling=Q,z=Q,Z=ce}if(Me.done)return n(j,Z),$t&&yo(j,X),L;if(Z===null){for(;!Me.done;X++,Me=_.next())Me=S(j,Me.value,C),Me!==null&&(T=i(Me,T,X),z===null?L=Me:z.sibling=Me,z=Me);return $t&&yo(j,X),L}for(Z=r(j,Z);!Me.done;X++,Me=_.next())Me=R(Z,j,X,Me.value,C),Me!==null&&(e&&Me.alternate!==null&&Z.delete(Me.key===null?X:Me.key),T=i(Me,T,X),z===null?L=Me:z.sibling=Me,z=Me);return e&&Z.forEach(function(ne){return t(j,ne)}),$t&&yo(j,X),L}function J(j,T,_,C){if(typeof _=="object"&&_!==null&&_.type===Xo&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ws:e:{for(var L=_.key,z=T;z!==null;){if(z.key===L){if(L=_.type,L===Xo){if(z.tag===7){n(j,z.sibling),T=o(z,_.props.children),T.return=j,j=T;break e}}else if(z.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Lr&&mh(L)===z.type){n(j,z.sibling),T=o(z,_.props),T.ref=zi(j,z,_),T.return=j,j=T;break e}n(j,z);break}else t(j,z);z=z.sibling}_.type===Xo?(T=_o(_.props.children,j.mode,C,_.key),T.return=j,j=T):(C=ju(_.type,_.key,_.props,null,j.mode,C),C.ref=zi(j,T,_),C.return=j,j=C)}return s(j);case Zo:e:{for(z=_.key;T!==null;){if(T.key===z)if(T.tag===4&&T.stateNode.containerInfo===_.containerInfo&&T.stateNode.implementation===_.implementation){n(j,T.sibling),T=o(T,_.children||[]),T.return=j,j=T;break e}else{n(j,T);break}else t(j,T);T=T.sibling}T=wl(_,j.mode,C),T.return=j,j=T}return s(j);case Lr:return z=_._init,J(j,T,z(_._payload),C)}if(Qi(_))return U(j,T,_,C);if(Ri(_))return P(j,T,_,C);eu(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,T!==null&&T.tag===6?(n(j,T.sibling),T=o(T,_),T.return=j,j=T):(n(j,T),T=vl(_,j.mode,C),T.return=j,j=T),s(j)):n(j,T)}return J}var Si=m1(!0),v1=m1(!1),Bs={},Er=lo(Bs),bs=lo(Bs),Es=lo(Bs);function Eo(e){if(e===Bs)throw Error(me(174));return e}function If(e,t){switch(Nt(Es,t),Nt(bs,e),Nt(Er,Bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ec(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ec(t,e)}It(Er),Nt(Er,t)}function ki(){It(Er),It(bs),It(Es)}function w1(e){Eo(Es.current);var t=Eo(Er.current),n=ec(t,e.type);t!==n&&(Nt(bs,e),Nt(Er,n))}function $f(e){bs.current===e&&(It(Er),It(bs))}var Rt=lo(0);function ta(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dl=[];function Pf(){for(var e=0;e<dl.length;e++)dl[e]._workInProgressVersionPrimary=null;dl.length=0}var Au=Ir.ReactCurrentDispatcher,hl=Ir.ReactCurrentBatchConfig,Io=0,Bt=null,Zt=null,nn=null,na=!1,rs=!1,xs=0,j2=0;function pn(){throw Error(me(321))}function Rf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function Bf(e,t,n,r,o,i){if(Io=i,Bt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Au.current=e===null||e.memoizedState===null?R2:B2,e=n(r,o),rs){i=0;do{if(rs=!1,xs=0,25<=i)throw Error(me(301));i+=1,nn=Zt=null,t.updateQueue=null,Au.current=U2,e=n(r,o)}while(rs)}if(Au.current=ra,t=Zt!==null&&Zt.next!==null,Io=0,nn=Zt=Bt=null,na=!1,t)throw Error(me(300));return e}function Uf(){var e=xs!==0;return xs=0,e}function hr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Bt.memoizedState=nn=e:nn=nn.next=e,nn}function tr(){if(Zt===null){var e=Bt.alternate;e=e!==null?e.memoizedState:null}else e=Zt.next;var t=nn===null?Bt.memoizedState:nn.next;if(t!==null)nn=t,Zt=e;else{if(e===null)throw Error(me(310));Zt=e,e={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},nn===null?Bt.memoizedState=nn=e:nn=nn.next=e}return nn}function Ss(e,t){return typeof t=="function"?t(e):t}function pl(e){var t=tr(),n=t.queue;if(n===null)throw Error(me(311));n.lastRenderedReducer=e;var r=Zt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,d=null,p=i;do{var E=p.lane;if((Io&E)===E)d!==null&&(d=d.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var S={lane:E,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};d===null?(a=d=S,s=r):d=d.next=S,Bt.lanes|=E,$o|=E}p=p.next}while(p!==null&&p!==i);d===null?s=r:d.next=a,cr(r,t.memoizedState)||(jn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=d,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Bt.lanes|=i,$o|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yl(e){var t=tr(),n=t.queue;if(n===null)throw Error(me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);cr(i,t.memoizedState)||(jn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function b1(){}function E1(e,t){var n=Bt,r=tr(),o=t(),i=!cr(r.memoizedState,o);if(i&&(r.memoizedState=o,jn=!0),r=r.queue,Lf(k1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||nn!==null&&nn.memoizedState.tag&1){if(n.flags|=2048,ks(9,S1.bind(null,n,r,o,t),void 0,null),rn===null)throw Error(me(349));(Io&30)!==0||x1(n,t,o)}return o}function x1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function S1(e,t,n,r){t.value=n,t.getSnapshot=r,M1(t)&&_1(e)}function k1(e,t,n){return n(function(){M1(t)&&_1(e)})}function M1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch{return!0}}function _1(e){var t=Nr(e,1);t!==null&&lr(t,e,1,-1)}function vh(e){var t=hr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ss,lastRenderedState:e},t.queue=e,e=e.dispatch=P2.bind(null,Bt,e),[t.memoizedState,e]}function ks(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function A1(){return tr().memoizedState}function Tu(e,t,n,r){var o=hr();Bt.flags|=e,o.memoizedState=ks(1|t,n,void 0,r===void 0?null:r)}function xa(e,t,n,r){var o=tr();r=r===void 0?null:r;var i=void 0;if(Zt!==null){var s=Zt.memoizedState;if(i=s.destroy,r!==null&&Rf(r,s.deps)){o.memoizedState=ks(t,n,i,r);return}}Bt.flags|=e,o.memoizedState=ks(1|t,n,i,r)}function wh(e,t){return Tu(8390656,8,e,t)}function Lf(e,t){return xa(2048,8,e,t)}function T1(e,t){return xa(4,2,e,t)}function O1(e,t){return xa(4,4,e,t)}function C1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function N1(e,t,n){return n=n!=null?n.concat([e]):null,xa(4,4,C1.bind(null,t,e),n)}function Df(){}function j1(e,t){var n=tr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function I1(e,t){var n=tr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $1(e,t,n){return(Io&21)===0?(e.baseState&&(e.baseState=!1,jn=!0),e.memoizedState=n):(cr(n,t)||(n=B0(),Bt.lanes|=n,$o|=n,e.baseState=!0),t)}function I2(e,t){var n=St;St=n!==0&&4>n?n:4,e(!0);var r=hl.transition;hl.transition={};try{e(!1),t()}finally{St=n,hl.transition=r}}function P1(){return tr().memoizedState}function $2(e,t,n){var r=to(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},R1(e))B1(t,n);else if(n=h1(e,t,n,r),n!==null){var o=_n();lr(n,e,r,o),U1(n,t,r)}}function P2(e,t,n){var r=to(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(R1(e))B1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,cr(a,s)){var d=t.interleaved;d===null?(o.next=o,Nf(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}n=h1(e,t,o,r),n!==null&&(o=_n(),lr(n,e,r,o),U1(n,t,r))}}function R1(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function B1(e,t){rs=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function U1(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mf(e,n)}}var ra={readContext:er,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},R2={readContext:er,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:er,useEffect:wh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tu(4194308,4,C1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tu(4,2,e,t)},useMemo:function(e,t){var n=hr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$2.bind(null,Bt,e),[r.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:vh,useDebugValue:Df,useDeferredValue:function(e){return hr().memoizedState=e},useTransition:function(){var e=vh(!1),t=e[0];return e=I2.bind(null,e[1]),hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bt,o=hr();if($t){if(n===void 0)throw Error(me(407));n=n()}else{if(n=t(),rn===null)throw Error(me(349));(Io&30)!==0||x1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wh(k1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,S1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hr(),t=rn.identifierPrefix;if($t){var n=Ar,r=_r;n=(r&~(1<<32-ar(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=j2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},B2={readContext:er,useCallback:j1,useContext:er,useEffect:Lf,useImperativeHandle:N1,useInsertionEffect:T1,useLayoutEffect:O1,useMemo:I1,useReducer:pl,useRef:A1,useState:function(){return pl(Ss)},useDebugValue:Df,useDeferredValue:function(e){var t=tr();return $1(t,Zt.memoizedState,e)},useTransition:function(){var e=pl(Ss)[0],t=tr().memoizedState;return[e,t]},useMutableSource:b1,useSyncExternalStore:E1,useId:P1,unstable_isNewReconciler:!1},U2={readContext:er,useCallback:j1,useContext:er,useEffect:Lf,useImperativeHandle:N1,useInsertionEffect:T1,useLayoutEffect:O1,useMemo:I1,useReducer:yl,useRef:A1,useState:function(){return yl(Ss)},useDebugValue:Df,useDeferredValue:function(e){var t=tr();return Zt===null?t.memoizedState=e:$1(t,Zt.memoizedState,e)},useTransition:function(){var e=yl(Ss)[0],t=tr().memoizedState;return[e,t]},useMutableSource:b1,useSyncExternalStore:E1,useId:P1,unstable_isNewReconciler:!1};function Mi(e,t){try{var n="",r=t;do n+=dm(r),r=r.return;while(r);var o=n}catch(i){o=`
31Error generating stack: `+i.message+`
32`+i.stack}return{value:e,source:t,stack:o,digest:null}}function gl(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Sc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var L2=typeof WeakMap=="function"?WeakMap:Map;function L1(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ia||(ia=!0,Ic=r),Sc(e,t)},n}function D1(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Sc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Sc(e,t),typeof r!="function"&&(eo===null?eo=new Set([this]):eo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function bh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new L2;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Y2.bind(null,e,t,n),t.then(e,e))}function Eh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xh(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,Yr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var D2=Ir.ReactCurrentOwner,jn=!1;function kn(e,t,n,r){t.child=e===null?v1(t,null,n,r):Si(t,e.child,n,r)}function Sh(e,t,n,r,o){n=n.render;var i=t.ref;return pi(t,o),r=Bf(e,t,n,r,i,o),n=Uf(),e!==null&&!jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jr(e,t,o)):($t&&n&&Mf(t),t.flags|=1,kn(e,t,r,o),t.child)}function kh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Kf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,z1(e,t,i,r,o)):(e=ju(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:gs,n(s,r)&&e.ref===t.ref)return jr(e,t,o)}return t.flags|=1,e=no(i,r),e.ref=t.ref,e.return=t,t.child=e}function z1(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(gs(i,r)&&e.ref===t.ref)if(jn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(jn=!0);else return t.lanes=e.lanes,jr(e,t,o)}return kc(e,t,n,r,o)}function F1(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nt(ai,Ln),Ln|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nt(ai,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Nt(ai,Ln),Ln|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Nt(ai,Ln),Ln|=r;return kn(e,t,o,n),t.child}function W1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kc(e,t,n,r,o){var i=$n(n)?No:En.current;return i=Ei(t,i),pi(t,o),n=Bf(e,t,n,r,i,o),r=Uf(),e!==null&&!jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jr(e,t,o)):($t&&r&&Mf(t),t.flags|=1,kn(e,t,n,o),t.child)}function Mh(e,t,n,r,o){if($n(n)){var i=!0;Qu(t)}else i=!1;if(pi(t,o),t.stateNode===null)Ou(e,t),g1(t,n,r),xc(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var d=s.context,p=n.contextType;typeof p=="object"&&p!==null?p=er(p):(p=$n(n)?No:En.current,p=Ei(t,p));var E=n.getDerivedStateFromProps,S=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function";S||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||d!==p)&&gh(t,s,r,p),Dr=!1;var M=t.memoizedState;s.state=M,ea(t,r,s,o),d=t.memoizedState,a!==r||M!==d||In.current||Dr?(typeof E=="function"&&(Ec(t,n,E,r),d=t.memoizedState),(a=Dr||yh(t,n,a,r,M,d,p))?(S||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),s.props=r,s.state=d,s.context=p,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,p1(e,t),a=t.memoizedProps,p=t.type===t.elementType?a:or(t.type,a),s.props=p,S=t.pendingProps,M=s.context,d=n.contextType,typeof d=="object"&&d!==null?d=er(d):(d=$n(n)?No:En.current,d=Ei(t,d));var R=n.getDerivedStateFromProps;(E=typeof R=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==S||M!==d)&&gh(t,s,r,d),Dr=!1,M=t.memoizedState,s.state=M,ea(t,r,s,o);var U=t.memoizedState;a!==S||M!==U||In.current||Dr?(typeof R=="function"&&(Ec(t,n,R,r),U=t.memoizedState),(p=Dr||yh(t,n,p,r,M,U,d)||!1)?(E||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,U,d),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,U,d)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),s.props=r,s.state=U,s.context=d,r=p):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),r=!1)}return Mc(e,t,n,r,i,o)}function Mc(e,t,n,r,o,i){W1(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ch(t,n,!1),jr(e,t,i);r=t.stateNode,D2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,a,i)):kn(e,t,a,i),t.memoizedState=r.state,o&&ch(t,n,!0),t.child}function H1(e){var t=e.stateNode;t.pendingContext?lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lh(e,t.context,!1),If(e,t.containerInfo)}function _h(e,t,n,r,o){return xi(),Af(o),t.flags|=256,kn(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0};function Ac(e){return{baseLanes:e,cachePool:null,transitions:null}}function V1(e,t,n){var r=t.pendingProps,o=Rt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Nt(Rt,o&1),e===null)return wc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ma(s,r,0,null),e=_o(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ac(n),t.memoizedState=_c,e):zf(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return z2(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var d={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=d,t.deletions=null):(r=no(o,d),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=no(a,i):(i=_o(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Ac(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=_c,r}return i=e.child,e=i.sibling,r=no(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zf(e,t){return t=Ma({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function tu(e,t,n,r){return r!==null&&Af(r),Si(t,e.child,null,n),e=zf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function z2(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=gl(Error(me(422))),tu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ma({mode:"visible",children:r.children},o,0,null),i=_o(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Si(t,e.child,null,s),t.child.memoizedState=Ac(s),t.memoizedState=_c,i);if((t.mode&1)===0)return tu(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(me(419)),r=gl(i,r,void 0),tu(e,t,s,r)}if(a=(s&e.childLanes)!==0,jn||a){if(r=rn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Nr(e,o),lr(r,e,o,-1))}
vendor: 6,628 bytes, line 32
32return qf(),r=gl(Error(me(421))),tu(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ev.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,zn=Xr(o.nextSibling),Fn=t,$t=!0,ur=null,e!==null&&(Jn[Zn++]=_r,Jn[Zn++]=Ar,Jn[Zn++]=jo,_r=e.id,Ar=e.overflow,jo=t),t=zf(t,r.children),t.flags|=4096,t)}function Ah(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bc(e.return,t,n)}function ml(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function G1(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(kn(e,t,r.children,n),r=Rt.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ah(e,n,t);else if(e.tag===19)Ah(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Nt(Rt,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ta(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ml(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ta(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ml(t,!0,n,null,i);break;case"together":ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ou(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$o|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(me(153));if(t.child!==null){for(e=t.child,n=no(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=no(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function F2(e,t,n){switch(t.tag){case 3:H1(t),xi();break;case 5:w1(t);break;case 1:$n(t.type)&&Qu(t);break;case 4:If(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Nt(Xu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Nt(Rt,Rt.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?V1(e,t,n):(Nt(Rt,Rt.current&1),e=jr(e,t,n),e!==null?e.sibling:null);Nt(Rt,Rt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return G1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Nt(Rt,Rt.current),r)break;return null;case 22:case 23:return t.lanes=0,F1(e,t,n)}return jr(e,t,n)}var q1,Tc,K1,Q1;q1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tc=function(){};K1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(Er.current);var i=null;switch(n){case"input":o=Jl(e,o),r=Jl(e,r),i=[];break;case"select":o=Ut({},o,{value:void 0}),r=Ut({},r,{value:void 0}),i=[];break;case"textarea":o=Yl(e,o),r=Yl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qu)}tc(n,r);var s;n=null;for(p in o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&o[p]!=null)if(p==="style"){var a=o[p];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(ls.hasOwnProperty(p)?i||(i=[]):(i=i||[]).push(p,null));for(p in r){var d=r[p];if(a=o!=null?o[p]:void 0,r.hasOwnProperty(p)&&d!==a&&(d!=null||a!=null))if(p==="style")if(a){for(s in a)!a.hasOwnProperty(s)||d&&d.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in d)d.hasOwnProperty(s)&&a[s]!==d[s]&&(n||(n={}),n[s]=d[s])}else n||(i||(i=[]),i.push(p,n)),n=d;else p==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,a=a?a.__html:void 0,d!=null&&a!==d&&(i=i||[]).push(p,d)):p==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(p,""+d):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(ls.hasOwnProperty(p)?(d!=null&&p==="onScroll"&&jt("scroll",e),i||a===d||(i=[])):(i=i||[]).push(p,d))}n&&(i=i||[]).push("style",n);var p=i;(t.updateQueue=p)&&(t.flags|=4)}};Q1=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fi(e,t){if(!$t)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)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 W2(e,t,n){var r=t.pendingProps;switch(_f(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yn(t),null;case 1:return $n(t.type)&&Ku(),yn(t),null;case 3:return r=t.stateNode,ki(),It(In),It(En),Pf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ys(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ur!==null&&(Rc(ur),ur=null))),Tc(e,t),yn(t),null;case 5:$f(t);var o=Eo(Es.current);if(n=t.type,e!==null&&t.stateNode!=null)K1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(me(166));return yn(t),null}if(e=Eo(Er.current),Ys(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gr]=t,r[ws]=i,e=(t.mode&1)!==0,n){case"dialog":jt("cancel",r),jt("close",r);break;case"iframe":case"object":case"embed":jt("load",r);break;case"video":case"audio":for(o=0;o<Zi.length;o++)jt(Zi[o],r);break;case"source":jt("error",r);break;case"img":case"image":case"link":jt("error",r),jt("load",r);break;case"details":jt("toggle",r);break;case"input":Rd(r,i),jt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},jt("invalid",r);break;case"textarea":Ud(r,i),jt("invalid",r)}tc(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 24,603 bytes, line 32
32s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Xs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Xs(r.textContent,a,e),o=["children",""+a]):ls.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&jt("scroll",r)}switch(n){case"input":Hs(r),Bd(r,i,!0);break;case"textarea":Hs(r),Ld(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=qu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=x0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gr]=t,e[ws]=r,q1(e,t,!1,!1),t.stateNode=e;e:{switch(s=nc(n,r),n){case"dialog":jt("cancel",e),jt("close",e),o=r;break;case"iframe":case"object":case"embed":jt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Zi.length;o++)jt(Zi[o],e);o=r;break;case"source":jt("error",e),o=r;break;case"img":case"image":case"link":jt("error",e),jt("load",e),o=r;break;case"details":jt("toggle",e),o=r;break;case"input":Rd(e,r),o=Jl(e,r),jt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ut({},r,{value:void 0}),jt("invalid",e);break;case"textarea":Ud(e,r),o=Yl(e,r),jt("invalid",e);break;default:o=r}tc(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var d=a[i];i==="style"?M0(e,d):i==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&S0(e,d)):i==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&cs(e,d):typeof d=="number"&&cs(e,""+d):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ls.hasOwnProperty(i)?d!=null&&i==="onScroll"&&jt("scroll",e):d!=null&&ff(e,i,d,s))}switch(n){case"input":Hs(e),Bd(e,r,!1);break;case"textarea":Hs(e),Ld(e);break;case"option":r.value!=null&&e.setAttribute("value",""+io(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ci(e,!!r.multiple,i,!1):r.defaultValue!=null&&ci(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=qu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return yn(t),null;case 6:if(e&&t.stateNode!=null)Q1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(me(166));if(n=Eo(Es.current),Eo(Er.current),Ys(t)){if(r=t.stateNode,n=t.memoizedProps,r[gr]=t,(i=r.nodeValue!==n)&&(e=Fn,e!==null))switch(e.tag){case 3:Xs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xs(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gr]=t,t.stateNode=r}return yn(t),null;case 13:if(It(Rt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($t&&zn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)d1(),xi(),t.flags|=98560,i=!1;else if(i=Ys(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(me(317));i[gr]=t}else xi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yn(t),i=!1}else ur!==null&&(Rc(ur),ur=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Rt.current&1)!==0?en===0&&(en=3):qf())),t.updateQueue!==null&&(t.flags|=4),yn(t),null);case 4:return ki(),Tc(e,t),e===null&&ms(t.stateNode.containerInfo),yn(t),null;case 10:return Cf(t.type._context),yn(t),null;case 17:return $n(t.type)&&Ku(),yn(t),null;case 19:if(It(Rt),i=t.memoizedState,i===null)return yn(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Fi(i,!1);else{if(en!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=ta(e),s!==null){for(t.flags|=128,Fi(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Nt(Rt,Rt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Gt()>_i&&(t.flags|=128,r=!0,Fi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ta(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!$t)return yn(t),null}else 2*Gt()-i.renderingStartTime>_i&&n!==1073741824&&(t.flags|=128,r=!0,Fi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Gt(),t.sibling=null,n=Rt.current,Nt(Rt,r?n&1|2:n&1),t):(yn(t),null);case 22:case 23:return Gf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ln&1073741824)!==0&&(yn(t),t.subtreeFlags&6&&(t.flags|=8192)):yn(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function H2(e,t){switch(_f(t),t.tag){case 1:return $n(t.type)&&Ku(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ki(),It(In),It(En),Pf(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return $f(t),null;case 13:if(It(Rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return It(Rt),null;case 4:return ki(),null;case 10:return Cf(t.type._context),null;case 22:case 23:return Gf(),null;case 24:return null;default:return null}}var nu=!1,bn=!1,V2=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(e,t,r)}else n.current=null}function Oc(e,t,n){try{n()}catch(r){Ft(e,t,r)}}var Th=!1;function G2(e,t){if(dc=Hu,e=Y0(),kf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,d=-1,p=0,E=0,S=e,M=null;t:for(;;){for(var R;S!==n||o!==0&&S.nodeType!==3||(a=s+o),S!==i||r!==0&&S.nodeType!==3||(d=s+r),S.nodeType===3&&(s+=S.nodeValue.length),(R=S.firstChild)!==null;)M=S,S=R;for(;;){if(S===e)break t;if(M===n&&++p===o&&(a=s),M===i&&++E===r&&(d=s),(R=S.nextSibling)!==null)break;S=M,M=S.parentNode}S=R}n=a===-1||d===-1?null:{start:a,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},Hu=!1,Ne=t;Ne!==null;)if(t=Ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ne=e;else for(;Ne!==null;){t=Ne;try{var U=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(U!==null){var P=U.memoizedProps,J=U.memoizedState,j=t.stateNode,T=j.getSnapshotBeforeUpdate(t.elementType===t.type?P:or(t.type,P),J);j.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(C){Ft(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Ne=e;break}Ne=t.return}return U=Th,Th=!1,U}function os(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Oc(t,n,i)}o=o.next}while(o!==r)}}function Sa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function J1(e){var t=e.alternate;t!==null&&(e.alternate=null,J1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gr],delete t[ws],delete t[gc],delete t[T2],delete t[O2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Z1(e){return e.tag===5||e.tag===3||e.tag===4}function Oh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qu));else if(r!==4&&(e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}var un=null,ir=!1;function $r(e,t,n){for(n=n.child;n!==null;)X1(e,t,n),n=n.sibling}function X1(e,t,n){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 5:bn||ui(n,t);case 6:var r=un,o=ir;un=null,$r(e,t,n),un=r,ir=o,un!==null&&(ir?(e=un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):un.removeChild(n.stateNode));break;case 18:un!==null&&(ir?(e=un,n=n.stateNode,e.nodeType===8?cl(e.parentNode,n):e.nodeType===1&&cl(e,n),ps(e)):cl(un,n.stateNode));break;case 4:r=un,o=ir,un=n.stateNode.containerInfo,ir=!0,$r(e,t,n),un=r,ir=o;break;case 0:case 11:case 14:case 15:if(!bn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Oc(n,t,s),o=o.next}while(o!==r)}$r(e,t,n);break;case 1:if(!bn&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ft(n,t,a)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?(bn=(r=bn)||n.memoizedState!==null,$r(e,t,n),bn=r):$r(e,t,n);break;default:$r(e,t,n)}}function Ch(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new V2),t.forEach(function(r){var o=tv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function rr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:un=a.stateNode,ir=!1;break e;case 3:un=a.stateNode.containerInfo,ir=!0;break e;case 4:un=a.stateNode.containerInfo,ir=!0;break e}a=a.return}if(un===null)throw Error(me(160));X1(i,s,o),un=null,ir=!1;var d=o.alternate;d!==null&&(d.return=null),o.return=null}catch(p){Ft(o,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Y1(t,e),t=t.sibling}function Y1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rr(t,e),fr(e),r&4){try{os(3,e,e.return),Sa(3,e)}catch(P){Ft(e,e.return,P)}try{os(5,e,e.return)}catch(P){Ft(e,e.return,P)}}break;case 1:rr(t,e),fr(e),r&512&&n!==null&&ui(n,n.return);break;case 5:if(rr(t,e),fr(e),r&512&&n!==null&&ui(n,n.return),e.flags&32){var o=e.stateNode;try{cs(o,"")}catch(P){Ft(e,e.return,P)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&b0(o,i),nc(a,s);var p=nc(a,i);for(s=0;s<d.length;s+=2){var E=d[s],S=d[s+1];E==="style"?M0(o,S):E==="dangerouslySetInnerHTML"?S0(o,S):E==="children"?cs(o,S):ff(o,E,S,p)}switch(a){case"input":Zl(o,i);break;case"textarea":E0(o,i);break;case"select":var M=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var R=i.value;R!=null?ci(o,!!i.multiple,R,!1):M!==!!i.multiple&&(i.defaultValue!=null?ci(o,!!i.multiple,i.defaultValue,!0):ci(o,!!i.multiple,i.multiple?[]:"",!1))}o[ws]=i}catch(P){Ft(e,e.return,P)}}break;case 6:if(rr(t,e),fr(e),r&4){if(e.stateNode===null)throw Error(me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(P){Ft(e,e.return,P)}}break;case 3:if(rr(t,e),fr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ps(t.containerInfo)}catch(P){Ft(e,e.return,P)}break;case 4:rr(t,e),fr(e);break;case 13:rr(t,e),fr(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Hf=Gt())),r&4&&Ch(e);break;case 22:if(E=n!==null&&n.memoizedState!==null,e.mode&1?(bn=(p=bn)||E,rr(t,e),bn=p):rr(t,e),fr(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!E&&(e.mode&1)!==0)for(Ne=e,E=e.child;E!==null;){for(S=Ne=E;Ne!==null;){switch(M=Ne,R=M.child,M.tag){case 0:case 11:case 14:case 15:os(4,M,M.return);break;case 1:ui(M,M.return);var U=M.stateNode;if(typeof U.componentWillUnmount=="function"){r=M,n=M.return;try{t=r,U.props=t.memoizedProps,U.state=t.memoizedState,U.componentWillUnmount()}catch(P){Ft(r,n,P)}}break;case 5:ui(M,M.return);break;case 22:if(M.memoizedState!==null){jh(S);continue}}R!==null?(R.return=M,Ne=R):jh(S)}E=E.sibling}e:for(E=null,S=e;;){if(S.tag===5){if(E===null){E=S;try{o=S.stateNode,p?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=S.stateNode,d=S.memoizedProps.style,s=d!=null&&d.hasOwnProperty("display")?d.display:null,a.style.display=k0("display",s))}catch(P){Ft(e,e.return,P)}}}else if(S.tag===6){if(E===null)try{S.stateNode.nodeValue=p?"":S.memoizedProps}catch(P){Ft(e,e.return,P)}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===e)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===e)break e;for(;S.sibling===null;){if(S.return===null||S.return===e)break e;E===S&&(E=null),S=S.return}E===S&&(E=null),S.sibling.return=S.return,S=S.sibling}}break;case 19:rr(t,e),fr(e),r&4&&Ch(e);break;case 21:break;default:rr(t,e),fr(e)}}function fr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Z1(n)){var r=n;break e}n=n.return}throw Error(me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(cs(o,""),r.flags&=-33);var i=Oh(e);jc(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Oh(e);Nc(e,a,s);break;default:throw Error(me(161))}}catch(d){Ft(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function q2(e,t,n){Ne=e,ey(e)}function ey(e,t,n){for(var r=(e.mode&1)!==0;Ne!==null;){var o=Ne,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||nu;if(!s){var a=o.alternate,d=a!==null&&a.memoizedState!==null||bn;a=nu;var p=bn;if(nu=s,(bn=d)&&!p)for(Ne=o;Ne!==null;)s=Ne,d=s.child,s.tag===22&&s.memoizedState!==null?Ih(o):d!==null?(d.return=s,Ne=d):Ih(o);for(;i!==null;)Ne=i,ey(i),i=i.sibling;Ne=o,nu=a,bn=p}Nh(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,Ne=i):Nh(e)}}function Nh(e){for(;Ne!==null;){var t=Ne;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:bn||Sa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!bn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:or(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ph(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ph(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var p=t.alternate;if(p!==null){var E=p.memoizedState;if(E!==null){var S=E.dehydrated;S!==null&&ps(S)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(me(163))}bn||t.flags&512&&Cc(t)}catch(M){Ft(t,t.return,M)}}if(t===e){Ne=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ne=n;break}Ne=t.return}}function jh(e){for(;Ne!==null;){var t=Ne;if(t===e){Ne=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ne=n;break}Ne=t.return}}function Ih(e){for(;Ne!==null;){var t=Ne;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sa(4,t)}catch(d){Ft(t,n,d)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(d){Ft(t,o,d)}}var i=t.return;try{Cc(t)}catch(d){Ft(t,i,d)}break;case 5:var s=t.return;try{Cc(t)}catch(d){Ft(t,s,d)}}}catch(d){Ft(t,t.return,d)}if(t===e){Ne=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ne=a;break}Ne=t.return}}var K2=Math.ceil,oa=Ir.ReactCurrentDispatcher,Ff=Ir.ReactCurrentOwner,Yn=Ir.ReactCurrentBatchConfig,yt=0,rn=null,Qt=null,ln=0,Ln=0,ai=lo(0),en=0,Ms=null,$o=0,ka=0,Wf=0,is=null,Cn=null,Hf=0,_i=1/0,kr=null,ia=!1,Ic=null,eo=null,ru=!1,Hr=null,sa=0,ss=0,$c=null,Cu=-1,Nu=0;function _n(){return(yt&6)!==0?Gt():Cu!==-1?Cu:Cu=Gt()}function to(e){return(e.mode&1)===0?1:(yt&2)!==0&&ln!==0?ln&-ln:N2.transition!==null?(Nu===0&&(Nu=B0()),Nu):(e=St,e!==0||(e=window.event,e=e===void 0?16:H0(e.type)),e)}function lr(e,t,n,r){if(50<ss)throw ss=0,$c=null,Error(me(185));$s(e,n,r),((yt&2)===0||e!==rn)&&(e===rn&&((yt&2)===0&&(ka|=n),en===4&&Fr(e,ln)),Pn(e,r),n===1&&yt===0&&(t.mode&1)===0&&(_i=Gt()+500,ba&&co()))}function Pn(e,t){var n=e.callbackNode;Nm(e,t);var r=Wu(e,e===rn?ln:0);if(r===0)n!==null&&Fd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fd(n),t===1)e.tag===0?C2($h.bind(null,e)):l1($h.bind(null,e)),_2(function(){(yt&6)===0&&co()}),n=null;else{switch(U0(r)){case 1:n=gf;break;case 4:n=P0;break;case 16:n=Fu;break;case 536870912:n=R0;break;default:n=Fu}n=ay(n,ty.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ty(e,t){if(Cu=-1,Nu=0,(yt&6)!==0)throw Error(me(327));var n=e.callbackNode;if(yi()&&e.callbackNode!==n)return null;var r=Wu(e,e===rn?ln:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=ua(e,r);else{t=r;var o=yt;yt|=2;var i=ry();(rn!==e||ln!==t)&&(kr=null,_i=Gt()+500,Mo(e,t));do try{Z2();break}catch(a){ny(e,a)}while(1);Of(),oa.current=i,yt=o,Qt!==null?t=0:(rn=null,ln=0,t=en)}if(t!==0){if(t===2&&(o=uc(e),o!==0&&(r=o,t=Pc(e,o))),t===1)throw n=Ms,Mo(e,0),Fr(e,r),Pn(e,Gt()),n;if(t===6)Fr(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Q2(o)&&(t=ua(e,r),t===2&&(i=uc(e),i!==0&&(r=i,t=Pc(e,i))),t===1))throw n=Ms,Mo(e,0),Fr(e,r),Pn(e,Gt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(me(345));case 2:go(e,Cn,kr);break;case 3:if(Fr(e,r),(r&130023424)===r&&(t=Hf+500-Gt(),10<t)){if(Wu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){_n(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yc(go.bind(null,e,Cn,kr),t);break}go(e,Cn,kr);break;case 4:if(Fr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ar(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*K2(r/1960))-r,10<r){e.timeoutHandle=yc(go.bind(null,e,Cn,kr),r);break}go(e,Cn,kr);break;case 5:go(e,Cn,kr);break;default:throw Error(me(329))}}}return Pn(e,Gt()),e.callbackNode===n?ty.bind(null,e):null}function Pc(e,t){var n=is;return e.current.memoizedState.isDehydrated&&(Mo(e,t).flags|=256),e=ua(e,t),e!==2&&(t=Cn,Cn=n,t!==null&&Rc(t)),e}function Rc(e){Cn===null?Cn=e:Cn.push.apply(Cn,e)}function Q2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!cr(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fr(e,t){for(t&=~Wf,t&=~ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ar(t),r=1<<n;e[n]=-1,t&=~r}}function $h(e){if((yt&6)!==0)throw Error(me(327));yi();var t=Wu(e,0);if((t&1)===0)return Pn(e,Gt()),null;var n=ua(e,t);if(e.tag!==0&&n===2){var r=uc(e);r!==0&&(t=r,n=Pc(e,r))}if(n===1)throw n=Ms,Mo(e,0),Fr(e,t),Pn(e,Gt()),n;if(n===6)throw Error(me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,go(e,Cn,kr),Pn(e,Gt()),null}function Vf(e,t){var n=yt;yt|=1;try{return e(t)}finally{yt=n,yt===0&&(_i=Gt()+500,ba&&co())}}function Po(e){Hr!==null&&Hr.tag===0&&(yt&6)===0&&yi();var t=yt;yt|=1;var n=Yn.transition,r=St;try{if(Yn.transition=null,St=1,e)return e()}finally{St=r,Yn.transition=n,yt=t,(yt&6)===0&&co()}}function Gf(){Ln=ai.current,It(ai)}function Mo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,M2(n)),Qt!==null)for(n=Qt.return;n!==null;){var r=n;switch(_f(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ku();break;case 3:ki(),It(In),It(En),Pf();break;case 5:$f(r);break;case 4:ki();break;case 13:It(Rt);break;case 19:It(Rt);break;case 10:Cf(r.type._context);break;case 22:case 23:Gf()}n=n.return}if(rn=e,Qt=e=no(e.current,null),ln=Ln=t,en=0,Ms=null,Wf=ka=$o=0,Cn=is=null,bo!==null){for(t=0;t<bo.length;t++)if(n=bo[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}bo=null}return e}function ny(e,t){do{var n=Qt;try{if(Of(),Au.current=ra,na){for(var r=Bt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}na=!1}if(Io=0,nn=Zt=Bt=null,rs=!1,xs=0,Ff.current=null,n===null||n.return===null){en=1,Ms=t,Qt=null;break}e:{var i=e,s=n.return,a=n,d=t;if(t=ln,a.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var p=d,E=a,S=E.tag;if((E.mode&1)===0&&(S===0||S===11||S===15)){var M=E.alternate;M?(E.updateQueue=M.updateQueue,E.memoizedState=M.memoizedState,E.lanes=M.lanes):(E.updateQueue=null,E.memoizedState=null)}var R=Eh(s);if(R!==null){R.flags&=-257,xh(R,s,a,i,t),R.mode&1&&bh(i,p,t),t=R,d=p;var U=t.updateQueue;if(U===null){var P=new Set;P.add(d),t.updateQueue=P}else U.add(d);break e}else{if((t&1)===0){bh(i,p,t),qf();break e}d=Error(me(426))}}else if($t&&a.mode&1){var J=Eh(s);if(J!==null){(J.flags&65536)===0&&(J.flags|=256),xh(J,s,a,i,t),Af(Mi(d,a));break e}}i=d=Mi(d,a),en!==4&&(en=2),is===null?is=[i]:is.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var j=L1(i,d,t);hh(i,j);break e;case 1:a=d;var T=i.type,_=i.stateNode;if((i.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(eo===null||!eo.has(_)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=D1(i,a,t);hh(i,C);break e}}i=i.return}while(i!==null)}iy(n)}catch(L){t=L,Qt===n&&n!==null&&(Qt=n=n.return);continue}break}while(1)}function ry(){var e=oa.current;return oa.current=ra,e===null?ra:e}function qf(){(en===0||en===3||en===2)&&(en=4),rn===null||($o&268435455)===0&&(ka&268435455)===0||Fr(rn,ln)}function ua(e,t){var n=yt;yt|=2;var r=ry();(rn!==e||ln!==t)&&(kr=null,Mo(e,t));do try{J2();break}catch(o){ny(e,o)}while(1);if(Of(),yt=n,oa.current=r,Qt!==null)throw Error(me(261));return rn=null,ln=0,en}function J2(){for(;Qt!==null;)oy(Qt)}function Z2(){for(;Qt!==null&&!xm();)oy(Qt)}function oy(e){var t=uy(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?iy(e):Qt=t,Ff.current=null}function iy(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=W2(n,t,Ln),n!==null){Qt=n;return}}else{if(n=H2(n,t),n!==null){n.flags&=32767,Qt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{en=6,Qt=null;return}}if(t=t.sibling,t!==null){Qt=t;return}Qt=t=e}while(t!==null);en===0&&(en=5)}function go(e,t,n){var r=St,o=Yn.transition;try{Yn.transition=null,St=1,X2(e,t,n,r)}finally{Yn.transition=o,St=r}return null}function X2(e,t,n,r){do yi();while(Hr!==null);if((yt&6)!==0)throw Error(me(327));
vendor: 4,656 bytes, line 32
32n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(jm(e,i),e===rn&&(Qt=rn=null,ln=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||ru||(ru=!0,ay(Fu,function(){return yi(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Yn.transition,Yn.transition=null;var s=St;St=1;var a=yt;yt|=4,Ff.current=null,G2(e,n),Y1(n,e),v2(hc),Hu=!!dc,hc=dc=null,e.current=n,q2(n),Sm(),yt=a,St=s,Yn.transition=i}else e.current=n;if(ru&&(ru=!1,Hr=e,sa=o),i=e.pendingLanes,i===0&&(eo=null),_m(n.stateNode),Pn(e,Gt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ia)throw ia=!1,e=Ic,Ic=null,e;return(sa&1)!==0&&e.tag!==0&&yi(),i=e.pendingLanes,(i&1)!==0?e===$c?ss++:(ss=0,$c=e):ss=0,co(),null}function yi(){if(Hr!==null){var e=U0(sa),t=Yn.transition,n=St;try{if(Yn.transition=null,St=16>e?16:e,Hr===null)var r=!1;else{if(e=Hr,Hr=null,sa=0,(yt&6)!==0)throw Error(me(331));var o=yt;for(yt|=4,Ne=e.current;Ne!==null;){var i=Ne,s=i.child;if((Ne.flags&16)!==0){var a=i.deletions;if(a!==null){for(var d=0;d<a.length;d++){var p=a[d];for(Ne=p;Ne!==null;){var E=Ne;switch(E.tag){case 0:case 11:case 15:os(8,E,i)}var S=E.child;if(S!==null)S.return=E,Ne=S;else for(;Ne!==null;){E=Ne;var M=E.sibling,R=E.return;if(J1(E),E===p){Ne=null;break}if(M!==null){M.return=R,Ne=M;break}Ne=R}}}var U=i.alternate;if(U!==null){var P=U.child;if(P!==null){U.child=null;do{var J=P.sibling;P.sibling=null,P=J}while(P!==null)}}Ne=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,Ne=s;else e:for(;Ne!==null;){if(i=Ne,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:os(9,i,i.return)}var j=i.sibling;if(j!==null){j.return=i.return,Ne=j;break e}Ne=i.return}}var T=e.current;for(Ne=T;Ne!==null;){s=Ne;var _=s.child;if((s.subtreeFlags&2064)!==0&&_!==null)_.return=s,Ne=_;else e:for(s=T;Ne!==null;){if(a=Ne,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Sa(9,a)}}catch(L){Ft(a,a.return,L)}if(a===s){Ne=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,Ne=C;break e}Ne=a.return}}if(yt=o,co(),br&&typeof br.onPostCommitFiberRoot=="function")try{br.onPostCommitFiberRoot(ya,e)}catch{}r=!0}return r}finally{St=n,Yn.transition=t}}return!1}function Ph(e,t,n){t=Mi(n,t),t=L1(e,t,1),e=Yr(e,t,1),t=_n(),e!==null&&($s(e,1,t),Pn(e,t))}function Ft(e,t,n){if(e.tag===3)Ph(e,e,n);else for(;t!==null;){if(t.tag===3){Ph(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(eo===null||!eo.has(r))){e=Mi(n,e),e=D1(t,e,1),t=Yr(t,e,1),e=_n(),t!==null&&($s(t,1,e),Pn(t,e));break}}t=t.return}}function Y2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_n(),e.pingedLanes|=e.suspendedLanes&n,rn===e&&(ln&n)===n&&(en===4||en===3&&(ln&130023424)===ln&&500>Gt()-Hf?Mo(e,0):Wf|=n),Pn(e,t)}function sy(e,t){t===0&&((e.mode&1)===0?t=1:(t=qs,qs<<=1,(qs&130023424)===0&&(qs=4194304)));var n=_n();e=Nr(e,t),e!==null&&($s(e,t,n),Pn(e,n))}function ev(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sy(e,n)}function tv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}r!==null&&r.delete(t),sy(e,n)}var uy;uy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||In.current)jn=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return jn=!1,F2(e,t,n);jn=(e.flags&131072)!==0}else jn=!1,$t&&(t.flags&1048576)!==0&&c1(t,Zu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ou(e,t),e=t.pendingProps;var o=Ei(t,En.current);pi(t,n),o=Bf(null,t,r,e,o,n);var i=Uf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$n(r)?(i=!0,Qu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jf(t),o.updater=Ea,t.stateNode=o,o._reactInternals=t,xc(t,r,e,n),t=Mc(null,t,r,!0,i,n)):(t.tag=0,$t&&i&&Mf(t),kn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ou(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rv(r),e=or(r,e),o){case 0:t=kc(null,t,r,e,n);break e;case 1:t=Mh(null,t,r,e,n);break e;case 11:t=Sh(null,t,r,e,n);break e;case 14:t=kh(null,t,r,or(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),kc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Mh(e,t,r,o,n);case 3:e:{if(H1(t),e===null)throw Error(me(387));
vendor: 12,746 bytes, line 32
32r=t.pendingProps,i=t.memoizedState,o=i.element,p1(e,t),ea(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Mi(Error(me(423)),t),t=_h(e,t,r,n,o);break e}else if(r!==o){o=Mi(Error(me(424)),t),t=_h(e,t,r,n,o);break e}else for(zn=Xr(t.stateNode.containerInfo.firstChild),Fn=t,$t=!0,ur=null,n=v1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===o){t=jr(e,t,n);break e}kn(e,t,r,n)}t=t.child}return t;case 5:return w1(t),e===null&&wc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pc(r,o)?s=null:i!==null&&pc(r,i)&&(t.flags|=32),W1(e,t),kn(e,t,s,n),t.child;case 6:return e===null&&wc(t),null;case 13:return V1(e,t,n);case 4:return If(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Si(t,null,r,n):kn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Sh(e,t,r,o,n);case 7:return kn(e,t,t.pendingProps,n),t.child;case 8:return kn(e,t,t.pendingProps.children,n),t.child;case 12:return kn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Nt(Xu,r._currentValue),r._currentValue=s,i!==null)if(cr(i.value,s)){if(i.children===o.children&&!In.current){t=jr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var d=a.firstContext;d!==null;){if(d.context===r){if(i.tag===1){d=Tr(-1,n&-n),d.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var E=p.pending;E===null?d.next=d:(d.next=E.next,E.next=d),p.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),bc(i.return,n,t),a.lanes|=n;break}d=d.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),bc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}kn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,pi(t,n),o=er(o),r=r(o),t.flags|=1,kn(e,t,r,n),t.child;case 14:return r=t.type,o=or(r,t.pendingProps),o=or(r.type,o),kh(e,t,r,o,n);case 15:return z1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Ou(e,t),t.tag=1,$n(r)?(e=!0,Qu(t)):e=!1,pi(t,n),g1(t,r,o),xc(t,r,o,n),Mc(null,t,r,!0,e,n);case 19:return G1(e,t,n);case 22:return F1(e,t,n)}throw Error(me(156,t.tag))};function ay(e,t){return $0(e,t)}function nv(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.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 Xn(e,t,n,r){return new nv(e,t,n,r)}function Kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rv(e){if(typeof e=="function")return Kf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hf)return 11;if(e===pf)return 14}return 2}function no(e,t){var n=e.alternate;return n===null?(n=Xn(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ju(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Kf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xo:return _o(n.children,o,i,t);case df:s=8,o|=8;break;case Gl:return e=Xn(12,n,t,o|2),e.elementType=Gl,e.lanes=i,e;case ql:return e=Xn(13,n,t,o),e.elementType=ql,e.lanes=i,e;case Kl:return e=Xn(19,n,t,o),e.elementType=Kl,e.lanes=i,e;case m0:return Ma(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case y0:s=10;break e;case g0:s=9;break e;case hf:s=11;break e;case pf:s=14;break e;case Lr:s=16,r=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Xn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _o(e,t,n,r){return e=Xn(7,e,r,t),e.lanes=n,e}function Ma(e,t,n,r){return e=Xn(22,e,r,t),e.elementType=m0,e.lanes=n,e.stateNode={isHidden:!1},e}function vl(e,t,n){return e=Xn(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ov(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ya(0),this.expirationTimes=Ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ya(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qf(e,t,n,r,o,i,s,a,d){return e=new ov(e,t,n,a,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jf(i),e}function iv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ly(e){if(!e)return so;e=e._reactInternals;e:{if(Lo(e)!==e||e.tag!==1)throw Error(me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($n(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(me(171))}if(e.tag===1){var n=e.type;if($n(n))return a1(e,n,t)}return t}function cy(e,t,n,r,o,i,s,a,d){return e=Qf(n,r,!0,e,o,i,s,a,d),e.context=ly(null),n=e.current,r=_n(),o=to(n),i=Tr(r,o),i.callback=t!=null?t:null,Yr(n,i,o),e.current.lanes=o,$s(e,o,r),Pn(e,r),e}function _a(e,t,n,r){var o=t.current,i=_n(),s=to(o);return n=ly(n),t.context===null?t.context=n:t.pendingContext=n,t=Tr(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yr(o,t,s),e!==null&&(lr(e,o,s,i),_u(e,o,s)),s}function aa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jf(e,t){Rh(e,t),(e=e.alternate)&&Rh(e,t)}function sv(){return null}var fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zf(e){this._internalRoot=e}Aa.prototype.render=Zf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(me(409));_a(e,t,null,null)};Aa.prototype.unmount=Zf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Po(function(){_a(null,e,null,null)}),t[Cr]=null}};function Aa(e){this._internalRoot=e}Aa.prototype.unstable_scheduleHydration=function(e){if(e){var t=z0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zr.length&&t!==0&&t<zr[n].priority;n++);zr.splice(n,0,e),n===0&&W0(e)}};function Xf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ta(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bh(){}function uv(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var p=aa(s);i.call(p)}}var s=cy(t,r,e,0,null,!1,!1,"",Bh);return e._reactRootContainer=s,e[Cr]=s.current,ms(e.nodeType===8?e.parentNode:e),Po(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var p=aa(d);a.call(p)}}var d=Qf(e,0,!1,null,null,!1,!1,"",Bh);return e._reactRootContainer=d,e[Cr]=d.current,ms(e.nodeType===8?e.parentNode:e),Po(function(){_a(t,d,n,r)}),d}function Oa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var d=aa(s);a.call(d)}}_a(t,s,e,o)}else s=uv(n,t,e,o,r);return aa(s)}L0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ji(t.pendingLanes);n!==0&&(mf(t,n|1),Pn(t,Gt()),(yt&6)===0&&(_i=Gt()+500,co()))}break;case 13:Po(function(){var r=Nr(e,1);if(r!==null){var o=_n();lr(r,e,1,o)}}),Jf(e,1)}};vf=function(e){if(e.tag===13){var t=Nr(e,134217728);if(t!==null){var n=_n();lr(t,e,134217728,n)}Jf(e,134217728)}};D0=function(e){if(e.tag===13){var t=to(e),n=Nr(e,t);if(n!==null){var r=_n();lr(n,e,t,r)}Jf(e,t)}};z0=function(){return St};F0=function(e,t){var n=St;try{return St=e,t()}finally{St=n}};oc=function(e,t,n){switch(t){case"input":if(Zl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=wa(r);if(!o)throw Error(me(90));w0(r),Zl(r,o)}}}break;case"textarea":E0(e,n);break;case"select":t=n.value,t!=null&&ci(e,!!n.multiple,t,!1)}};T0=Vf;O0=Po;var av={usingClientEntryPoint:!1,Events:[Rs,ni,wa,_0,A0,Vf]},Wi={findFiberByHostInstance:wo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lv={bundleType:Wi.bundleType,version:Wi.version,rendererPackageName:Wi.rendererPackageName,rendererConfig:Wi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ir.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=j0(e),e===null?null:e.stateNode},findFiberByHostInstance:Wi.findFiberByHostInstance||sv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ya=ou.inject(lv),br=ou}catch{}}Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=av;Vn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xf(t))throw Error(me(200));return iv(e,t,null,n)};Vn.createRoot=function(e,t){if(!Xf(e))throw Error(me(299));var n=!1,r="",o=fy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qf(e,1,!1,null,null,n,!1,r,o),e[Cr]=t.current,ms(e.nodeType===8?e.parentNode:e),new Zf(t)};Vn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(me(188)):(e=Object.keys(e).join(","),Error(me(268,e)));return e=j0(t),e=e===null?null:e.stateNode,e};Vn.flushSync=function(e){return Po(e)};Vn.hydrate=function(e,t,n){if(!Ta(t))throw Error(me(200));return Oa(null,e,t,!0,n)};Vn.hydrateRoot=function(e,t,n){if(!Xf(e))throw Error(me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=fy;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=cy(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Cr]=t.current,ms(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Aa(t)};Vn.render=function(e,t,n){if(!Ta(t))throw Error(me(200));return Oa(null,e,t,!1,n)};Vn.unmountComponentAtNode=function(e){if(!Ta(e))throw Error(me(40));return e._reactRootContainer?(Po(function(){Oa(null,null,e,!1,function(){e._reactRootContainer=null,e[Cr]=null})}),!0):!1};Vn.unstable_batchedUpdates=Vf;Vn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ta(n))throw Error(me(200));if(e==null||e._reactInternals===void 0)throw Error(me(38));return Oa(e,t,n,!1,r)};Vn.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Vn})(Is);
32const cv=r0(Is.exports);var Uh=Is.exports;Hl.createRoot=Uh.createRoot,Hl.hydrateRoot=Uh.hydrateRoot;var fv=Object.defineProperty,dv=(e,t,n)=>t in e?fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_s=(e,t,n)=>(dv(e,typeof t!="symbol"?t+"":t,n),n),Ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Us(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dy={exports:{}};/*!
33	Copyright (c) 2018 Jed Watson.
34	Licensed under the MIT License (MIT), see
35	http://jedwatson.github.io/classnames
36*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var d in i)t.call(i,d)&&i[d]&&r.push(d)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(dy);const la=dy.exports;function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function ro(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function pv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function hy(...e){return t=>e.forEach(n=>pv(n,t))}function Ii(...e){return K.exports.useCallback(hy(...e),e)}function yv(e,t=[]){let n=[];function r(i,s){const a=K.exports.createContext(s),d=n.length;n=[...n,s];function p(S){const{scope:M,children:R,...U}=S,P=(M==null?void 0:M[e][d])||a,J=K.exports.useMemo(()=>U,Object.values(U));return K.exports.createElement(P.Provider,{value:J},R)}function E(S,M){const R=(M==null?void 0:M[e][d])||a,U=K.exports.useContext(R);if(U)return U;if(s!==void 0)return s;throw new Error(`\`${S}\` must be used within \`${i}\``)}return p.displayName=i+"Provider",[p,E]}const o=()=>{const i=n.map(s=>K.exports.createContext(s));return function(s){const a=(s==null?void 0:s[e])||i;return K.exports.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,gv(o,...t)]}function gv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((s,{useScope:a,scopeName:d})=>{const p=a(o)[`__scope${d}`];return{...s,...p}},{});return K.exports.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const Bc=Boolean(globalThis==null?void 0:globalThis.document)?K.exports.useLayoutEffect:()=>{},mv=um["useId".toString()]||(()=>{});let vv=0;function bl(e){const[t,n]=K.exports.useState(mv());return Bc(()=>{e||n(r=>r!=null?r:String(vv++))},[e]),e||(t?`radix-${t}`:"")}function Ro(e){const t=K.exports.useRef(e);return K.exports.useEffect(()=>{t.current=e}),K.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=bv({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Ro(n),d=K.exports.useCallback(p=>{if(i){const E=typeof p=="function"?p(e):p;E!==e&&a(E)}else o(p)},[i,e,o,a]);return[s,d]}function bv({defaultProp:e,onChange:t}){const n=K.exports.useState(e),[r]=n,o=K.exports.useRef(r),i=Ro(t);return K.exports.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Yf=K.exports.forwardRef((e,t)=>{const{children:n,...r}=e,o=K.exports.Children.toArray(n),i=o.find(xv);if(i){const s=i.props.children,a=o.map(d=>d===i?K.exports.Children.count(s)>1?K.exports.Children.only(null):K.exports.isValidElement(s)?s.props.children:null:d);return K.exports.createElement(Uc,on({},r,{ref:t}),K.exports.isValidElement(s)?K.exports.cloneElement(s,void 0,a):null)}return K.exports.createElement(Uc,on({},r,{ref:t}),n)});Yf.displayName="Slot";const Uc=K.exports.forwardRef((e,t)=>
36{const{children:n,...r}=e;return K.exports.isValidElement(n)?K.exports.cloneElement(n,{...Sv(r,n.props),ref:hy(t,n.ref)}):K.exports.Children.count(n)>1?K.exports.Children.only(null):null});Uc.displayName="SlotClone";const Ev=({children:e})=>K.exports.createElement(K.exports.Fragment,null,e);function xv(e){return K.exports.isValidElement(e)&&e.type===Ev}function Sv(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const kv=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],Do=kv.reduce((e,t)=>{const n=K.exports.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Yf:t;return K.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),K.exports.createElement(a,on({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Mv(e,t){e&&Is.exports.flushSync(()=>e.dispatchEvent(t))}function _v(e,t=globalThis==null?void 0:globalThis.document){const n=Ro(e);K.exports.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Lc="dismissableLayer.update",Av="dismissableLayer.pointerDownOutside",Tv="dismissableLayer.focusOutside";let Lh;const Ov=K.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cv=K.exports.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:d,...p}=e,E=K.exports.useContext(Ov),[S,M]=K.exports.useState(null),R=(n=S==null?void 0:S.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,U]=K.exports.useState({}),P=Ii(t,X=>M(X)),J=Array.from(E.layers),[j]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=J.indexOf(j),_=S?J.indexOf(S):-1,C=E.layersWithOutsidePointerEventsDisabled.size>0,L=_>=T,z=Nv(X=>{const ce=X.target,Me=[...E.branches].some(Q=>Q.contains(ce));!L||Me||(i==null||i(X),a==null||a(X),X.defaultPrevented||d==null||d())},R),Z=jv(X=>{const ce=X.target;[...E.branches].some(Me=>Me.contains(ce))||(s==null||s(X),a==null||a(X),X.defaultPrevented||d==null||d())},R);return _v(X=>{_===E.layers.size-1&&(o==null||o(X),!X.defaultPrevented&&d&&(X.preventDefault(),d()))},R),K.exports.useEffect(()=>{if(S)return r&&(E.layersWithOutsidePointerEventsDisabled.size===0&&(Lh=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(S)),E.layers.add(S),Dh(),()=>{r&&E.layersWithOutsidePointerEventsDisabled.size===1&&(R.body.style.pointerEvents=Lh)}},[S,R,r,E]),K.exports.useEffect(()=>()=>{!S||(E.layers.delete(S),E.layersWithOutsidePointerEventsDisabled.delete(S),Dh())},[S,E]),K.exports.useEffect(()=>{const X=()=>U({});return document.addEventListener(Lc,X),()=>document.removeEventListener(Lc,X)},[]),K.exports.createElement(Do.div,on({},p,{ref:P,style:{pointerEvents:C?L?"auto":"none":void 0,...e.style},onFocusCapture:ro(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:ro(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:ro(e.onPointerDownCapture,z.onPointerDownCapture)}))});function Nv(e,t=globalThis==null?void 0:globalThis.document){const n=Ro(e),r=K.exports.useRef(!1),o=K.exports.useRef(()=>{});return K.exports.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){py(Av,n,p,{discrete:!0})};const p={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function jv(e,t=globalThis==null?void 0:globalThis.document){const n=Ro(e),r=K.exports.useRef(!1);return K.exports.useEffect(()=>{const o=i=>{i.target&&!r.current&&py(Tv,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Dh(){const e=new CustomEvent(Lc);document.dispatchEvent(e)}function py(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mv(o,i):o.dispatchEvent(i)}const El="focusScope.autoFocusOnMount",xl="focusScope.autoFocusOnUnmount",zh={bubbles:!1,cancelable:!0},Iv=K.exports.forwardRef((e,t)=>
36{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=K.exports.useState(null),p=Ro(o),E=Ro(i),S=K.exports.useRef(null),M=Ii(t,P=>d(P)),R=K.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K.exports.useEffect(()=>{if(r){let P=function(j){if(R.paused||!a)return;const T=j.target;a.contains(T)?S.current=T:mo(S.current,{select:!0})},J=function(j){R.paused||!a||a.contains(j.relatedTarget)||mo(S.current,{select:!0})};return document.addEventListener("focusin",P),document.addEventListener("focusout",J),()=>{document.removeEventListener("focusin",P),document.removeEventListener("focusout",J)}}},[r,a,R.paused]),K.exports.useEffect(()=>{if(a){Wh.add(R);const P=document.activeElement;if(!a.contains(P)){const J=new CustomEvent(El,zh);a.addEventListener(El,p),a.dispatchEvent(J),J.defaultPrevented||($v(Lv(yy(a)),{select:!0}),document.activeElement===P&&mo(a))}return()=>{a.removeEventListener(El,p),setTimeout(()=>{const J=new CustomEvent(xl,zh);a.addEventListener(xl,E),a.dispatchEvent(J),J.defaultPrevented||mo(P!=null?P:document.body,{select:!0}),a.removeEventListener(xl,E),Wh.remove(R)},0)}}},[a,p,E,R]);const U=K.exports.useCallback(P=>{if(!n&&!r||R.paused)return;const J=P.key==="Tab"&&!P.altKey&&!P.ctrlKey&&!P.metaKey,j=document.activeElement;if(J&&j){const T=P.currentTarget,[_,C]=Pv(T);_&&C?!P.shiftKey&&j===C?(P.preventDefault(),n&&mo(_,{select:!0})):P.shiftKey&&j===_&&(P.preventDefault(),n&&mo(C,{select:!0})):j===T&&P.preventDefault()}},[n,r,R.paused]);return K.exports.createElement(Do.div,on({tabIndex:-1},s,{ref:M,onKeyDown:U}))});function $v(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mo(r,{select:t}),document.activeElement!==n)return}function Pv(e){const t=yy(e),n=Fh(t,e),r=Fh(t.reverse(),e);return[n,r]}function yy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fh(e,t){for(const n of e)if(!Rv(n,{upTo:t}))return n}function Rv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Bv(e){return e instanceof HTMLInputElement&&"select"in e}function mo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bv(e)&&t&&e.select()}}const Wh=Uv();function Uv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Hh(e,t),e.unshift(t)},remove(t){var n;e=Hh(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Hh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lv(e){return e.filter(t=>t.tagName!=="A")}const Dv=K.exports.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?cv.createPortal(K.exports.createElement(Do.div,on({},o,{ref:t})),r):null});function zv(e,t){return K.exports.useReducer((n,r)=>{const o=t[n][r];return o!=null?o:n},e)}const Na=e=>{const{present:t,children:n}=e,r=Fv(t),o=typeof n=="function"?n({present:r.isPresent}):K.exports.Children.only(n),i=Ii(r.ref,o.ref);return typeof n=="function"||r.isPresent?K.exports.cloneElement(o,{ref:i}):null};Na.displayName="Presence";function Fv(e){const[t,n]=K.exports.useState(),r=K.exports.useRef({}),o=K.exports.useRef(e),i=K.exports.useRef("none"),s=e?"mounted":"unmounted",[a,d]=zv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K.exports.useEffect(()=>{const p=iu(r.current);i.current=a==="mounted"?p:"none"},[a]),Bc(()=>{const p=r.current,E=o.current;if(E!==e){const S=i.current,M=iu(p);e?d("MOUNT"):M==="none"||(p==null?void 0:p.display)==="none"?d("UNMOUNT"):d(E&&S!==M?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Bc(()=>{if(t){const p=S=>{const M=iu(r.current).includes(S.animationName);S.target===t&&M&&Is.exports.flushSync(()=>d("ANIMATION_END"))},E=S=>{S.target===t&&(i.current=iu(r.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:K.exports.useCallback(p=>{p&&(r.current=getComputedStyle(p)),n(p)},[])}}function iu(e){return(e==null?void 0:e.animationName)||"none"}let Sl=0;function Wv(){K.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Vh()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Vh()),Sl++,()=>{Sl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Sl--}},[])}function Vh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}
vendor: 6,241 bytes, lines 36-59
36var mr=function(){return mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mr.apply(this,arguments)};function gy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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 Hv(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Iu="right-scroll-bar-position",$u="width-before-scroll-bar",Vv="with-scroll-bars-hidden",Gv="--removed-body-scroll-bar-size";function qv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Kv(e,t){var n=K.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function Qv(e,t){return Kv(t||null,function(n){return e.forEach(function(r){return qv(r,n)})})}var ja={exports:{}},Hi={};/**
37 * @license React
38 * react-jsx-runtime.production.min.js
39 *
40 * Copyright (c) Facebook, Inc. and its affiliates.
41 *
42 * This source code is licensed under the MIT license found in the
43 * LICENSE file in the root directory of this source tree.
44 */var Gh;function Jv(){if(Gh)return Hi;Gh=1;var e=pa,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,d,p){var E,S={},M=null,R=null;p!==void 0&&(M=""+p),d.key!==void 0&&(M=""+d.key),d.ref!==void 0&&(R=d.ref);for(E in d)r.call(d,E)&&!i.hasOwnProperty(E)&&(S[E]=d[E]);if(a&&a.defaultProps)for(E in d=a.defaultProps,d)S[E]===void 0&&(S[E]=d[E]);return{$$typeof:t,type:a,key:M,ref:R,props:S,_owner:o.current}}return Hi.Fragment=n,Hi.jsx=s,Hi.jsxs=s,Hi}(function(e){e.exports=Jv()})(ja);const ed=ja.exports.Fragment,je=ja.exports.jsx,qt=ja.exports.jsxs;function Zv(e){return e}function Xv(e,t){t===void 0&&(t=Zv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var E=s;s=[],E.forEach(i)},p=function(){return Promise.resolve().then(d)};p(),n={push:function(E){s.push(E),p()},filter:function(E){return s=s.filter(E),n}}}};return o}function Yv(e){e===void 0&&(e={});var t=Xv(null);return t.options=mr({async:!0,ssr:!1},e),t}var my=function(e){var t=e.sideCar,n=gy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return je(r,{...mr({},n)})};my.isSideCarExport=!0;function e5(e,t){return e.useMedium(t),my}var vy=Yv(),kl=function(){},Ia=K.exports.forwardRef(function(e,t){var n=K.exports.useRef(null),r=K.exports.useState({onScrollCapture:kl,onWheelCapture:kl,onTouchMoveCapture:kl}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,p=e.removeScrollBar,E=e.enabled,S=e.shards,M=e.sideCar,R=e.noIsolation,U=e.inert,P=e.allowPinchZoom,J=e.as,j=J===void 0?"div":J,T=gy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=M,C=Qv([n,t]),L=mr(mr({},T),o);return qt(ed,{children:[E&&je(_,{sideCar:vy,removeScrollBar:p,shards:S,noIsolation:R,inert:U,setCallbacks:i,allowPinchZoom:!!P,lockRef:n}),s?K.exports.cloneElement(K.exports.Children.only(a),mr(mr({},L),{ref:C})):je(j,{...mr({},L,{className:d,ref:C}),children:a})]})});Ia.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ia.classNames={fullWidth:$u,zeroRight:Iu};var t5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=t5();return t&&e.setAttribute("nonce",t),e}function r5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function o5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var i5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=n5())&&(r5(t,n),o5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},s5=function(){var e=i5();return function(t,n){K.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wy=function(){var e=s5(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},u5={left:0,top:0,right:0,gap:0},Ml=function(e){return parseInt(e||"",10)||0},a5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ml(n),Ml(r),Ml(o)]},l5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u5;var t=a5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c5=wy(),f5=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
45  .`.concat(Vv,` {
46   overflow: hidden `).concat(r,`;
47   padding-right: `).concat(a,"px ").concat(r,`;
48  }
49  body {
50    overflow: hidden `).concat(r,`;
51    overscroll-behavior: contain;
52    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
53    padding-left: `.concat(o,`px;
54    padding-top: `).concat(i,`px;
55    padding-right: `).concat(s,`px;
56    margin-left:0;
57    margin-top:0;
58    margin-right: `).concat(a,"px ").concat(r,`;
59    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
59")].filter(Boolean).join(""),`
60  }
61  
62  .`).concat(Iu,` {
63    right: `).concat(a,"px ").concat(r,`;
64  }
65  
66  .`).concat($u,` {
67    margin-right: `).concat(a,"px ").concat(r,`;
68  }
69  
70  .`).concat(Iu," .").concat(Iu,` {
71    right: 0 `).concat(r,`;
72  }
73  
74  .`).concat($u," .").concat($u,` {
75    margin-right: 0 `).concat(r,`;
76  }
77  
78  body {
79    `).concat(Gv,": ").concat(a,`px;
80  }
81`)},d5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=K.exports.useMemo(function(){return l5(o)},[o]);return je(c5,{styles:f5(i,!t,o,n?"":"!important")})},Dc=!1;if(typeof window<"u")try{var su=Object.defineProperty({},"passive",{get:function(){return Dc=!0,!0}});window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{Dc=!1}var Ho=Dc?{passive:!1}:!1,h5=function(e){return e.tagName==="TEXTAREA"},by=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!h5(e)&&n[t]==="visible")},p5=function(e){return by(e,"overflowY")},y5=function(e){return by(e,"overflowX")},qh=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ey(e,n);if(r){var o=xy(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},g5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ey=function(e,t){return e==="v"?p5(t):y5(t)},xy=function(e,t){return e==="v"?g5(t):m5(t)},v5=function(e,t){return e==="h"&&t==="rtl"?-1:1},w5=function(e,t,n,r,o){var i=v5(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),p=!1,E=s>0,S=0,M=0;do{var R=xy(e,a),U=R[0],P=R[1],J=R[2],j=P-J-i*U;(U||j)&&Ey(e,a)&&(S+=j,M+=U),a=a.parentNode}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(E&&(o&&S===0||!o&&s>S)||!E&&(o&&M===0||!o&&-s>M))&&(p=!0),p},uu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kh=function(e){return[e.deltaX,e.deltaY]},Qh=function(e){return e&&"current"in e?e.current:e},b5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},E5=function(e){return`
82  .block-interactivity-`.concat(e,` {pointer-events: none;}
83  .allow-interactivity-`).concat(e,` {pointer-events: all;}
84`)},x5=0,Vo=[];function S5(e){var t=K.exports.useRef([]),n=K.exports.useRef([0,0]),r=K.exports.useRef(),o=K.exports.useState(x5++)[0],i=K.exports.useState(function(){return wy()})[0],s=K.exports.useRef(e);K.exports.useEffect(function(){s.current=e},[e]),K.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var P=Hv([e.lockRef.current],(e.shards||[]).map(Qh),!0).filter(Boolean);return P.forEach(function(J){return J.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),P.forEach(function(J){return J.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=K.exports.useCallback(function(P,J){if("touches"in P&&P.touches.length===2)return!s.current.allowPinchZoom;var j=uu(P),T=n.current,_="deltaX"in P?P.deltaX:T[0]-j[0],C="deltaY"in P?P.deltaY:T[1]-j[1],L,z=P.target,Z=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in P&&Z==="h"&&z.type==="range")return!1;var X=qh(Z,z);if(!X)return!0;if(X?L=Z:(L=Z==="v"?"h":"v",X=qh(Z,z)),!X)return!1;if(!r.current&&"changedTouches"in P&&(_||C)&&(r.current=L),!L)return!0;var ce=r.current||L;return w5(ce,J,P,ce==="h"?_:C,!0)},[]),d=K.exports.useCallback(function(P){var J=P;if(!(!Vo.length||Vo[Vo.length-1]!==i)){var j="deltaY"in J?Kh(J):uu(J),T=t.current.filter(function(L){return L.name===J.type&&L.target===J.target&&b5(L.delta,j)})[0];if(T&&T.should){J.cancelable&&J.preventDefault();return}if(!T){var _=(s.current.shards||[]).map(Qh).filter(Boolean).filter(function(L){return L.contains(J.target)}),C=_.length>0?a(J,_[0]):!s.current.noIsolation;C&&J.cancelable&&J.preventDefault()}}},[]),p=K.exports.useCallback(function(P,J,j,T){var _={name:P,delta:J,target:j,should:T};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(C){return C!==_})}
84,1)},[]),E=K.exports.useCallback(function(P){n.current=uu(P),r.current=void 0},[]),S=K.exports.useCallback(function(P){p(P.type,Kh(P),P.target,a(P,e.lockRef.current))},[]),M=K.exports.useCallback(function(P){p(P.type,uu(P),P.target,a(P,e.lockRef.current))},[]);K.exports.useEffect(function(){return Vo.push(i),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:M}),document.addEventListener("wheel",d,Ho),document.addEventListener("touchmove",d,Ho),document.addEventListener("touchstart",E,Ho),function(){Vo=Vo.filter(function(P){return P!==i}),document.removeEventListener("wheel",d,Ho),document.removeEventListener("touchmove",d,Ho),document.removeEventListener("touchstart",E,Ho)}},[]);var R=e.removeScrollBar,U=e.inert;return qt(ed,{children:[U?je(i,{styles:E5(o)}):null,R?je(d5,{gapMode:"margin"}):null]})}const k5=e5(vy,S5);var Sy=K.exports.forwardRef(function(e,t){return je(Ia,{...mr({},e,{ref:t,sideCar:k5})})});Sy.classNames=Ia.classNames;const M5=Sy;var _5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Go=new WeakMap,au=new WeakMap,lu={},_l=0,A5=function(e,t,n,r){var o=Array.isArray(e)?e:[e];lu[n]||(lu[n]=new WeakMap);var i=lu[n],s=[],a=new Set,d=new Set(o),p=function(S){!S||a.has(S)||(a.add(S),p(S.parentNode))};o.forEach(p);var E=function(S){!S||d.has(S)||Array.prototype.forEach.call(S.children,function(M){if(a.has(M))E(M);else{var R=M.getAttribute(r),U=R!==null&&R!=="false",P=(Go.get(M)||0)+1,J=(i.get(M)||0)+1;Go.set(M,P),i.set(M,J),s.push(M),P===1&&U&&au.set(M,!0),J===1&&M.setAttribute(n,"true"),U||M.setAttribute(r,"true")}})};return E(t),a.clear(),_l++,function(){s.forEach(function(S){var M=Go.get(S)-1,R=i.get(S)-1;Go.set(S,M),i.set(S,R),M||(au.has(S)||S.removeAttribute(r),au.delete(S)),R||S.removeAttribute(n)}),_l--,_l||(Go=new WeakMap,Go=new WeakMap,au=new WeakMap,lu={})}},T5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_5(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),A5(r,o,n,"aria-hidden")):function(){return null}};const ky="Dialog",[My,zE]=yv(ky),[O5,xr]=My(ky),C5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=K.exports.useRef(null),d=K.exports.useRef(null),[p=!1,E]=wv({prop:r,defaultProp:o,onChange:i});return K.exports.createElement(O5,{scope:t,triggerRef:a,contentRef:d,contentId:bl(),titleId:bl(),descriptionId:bl(),open:p,onOpenChange:E,onOpenToggle:K.exports.useCallback(()=>E(S=>!S),[E]),modal:s},n)},N5="DialogTrigger",j5=K.exports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xr(N5,n),i=Ii(t,o.triggerRef);return K.exports.createElement(Do.button,on({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":td(o.open)},r,{ref:i,onClick:ro(e.onClick,o.onOpenToggle)}))}),_y="DialogPortal",[I5,Ay]=My(_y,{forceMount:void 0}),$5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=xr(_y,t);return K.exports.createElement(I5,{scope:t,forceMount:n},K.exports.Children.map(r,s=>K.exports.createElement(Na,{present:n||i.open},K.exports.createElement(Dv,{asChild:!0,container:o},s))))},zc="DialogOverlay",P5=K.exports.forwardRef((e,t)=>{const n=Ay(zc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=xr(zc,e.__scopeDialog);return i.modal?K.exports.createElement(Na,{present:r||i.open},K.exports.createElement(R5,on({},o,{ref:t}))):null}),R5=K.exports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xr(zc,n);return K.exports.createElement(M5,{as:Yf,allowPinchZoom:!0,shards:[o.contentRef]},K.exports.createElement(Do.div,on({"data-state":td(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),As="DialogContent",B5=K.exports.forwardRef((e,t)=>{const n=Ay(As,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=xr(As,e.__scopeDialog);return K.exports.createElement(Na,{present:r||i.open},i.modal?K.exports.createElement(U5,on({},o,{ref:t})):K.exports.createElement(L5,on({},o,{ref:t})))}),U5=K.exports.forwardRef((e,t)=>{const n=xr(As,e.__scopeDialog),r=K.exports.useRef(null),o=Ii(t,n.contentRef,r);return K.exports.useEffect(()=>{const i=r.current;if(i)return T5(i)},[]),K.exports.createElement(Ty,on({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ro(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ro(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ro(e.onFocusOutside,i=>i.preventDefault())}))}),L5=K.exports.forwardRef((e,t)=>
84{const n=xr(As,e.__scopeDialog),r=K.exports.useRef(!1);return K.exports.createElement(Ty,on({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0);const a=o.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(a)&&o.preventDefault()}}))}),Ty=K.exports.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=xr(As,n),d=K.exports.useRef(null),p=Ii(t,d);return Wv(),K.exports.createElement(K.exports.Fragment,null,K.exports.createElement(Iv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},K.exports.createElement(Cv,on({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":td(a.open)},s,{ref:p,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),D5="DialogTitle",z5=K.exports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xr(D5,n);return K.exports.createElement(Do.h2,on({id:o.titleId},r,{ref:t}))}),F5="DialogClose",W5=K.exports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xr(F5,n);return K.exports.createElement(Do.button,on({type:"button"},r,{ref:t,onClick:ro(e.onClick,()=>o.onOpenChange(!1))}))});function td(e){return e?"open":"closed"}const H5=C5,V5=j5,G5=$5,q5=P5,K5=B5,Ts=z5,Q5=W5,J5=e=>{const{open:t=!1}=e;return qt(H5,{open:t,onOpenChange:e.onOpenChange,children:[je(V5,{asChild:!0,children:e.trigger}),je(G5,{children:je(q5,{className:"wkit-dialog__overlay",children:je(K5,{...e.contentProps,className:la("wkit-dialog__content",e.className),style:e.style,children:e.children})})})]})};function Oy(){return je("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:je("path",{d:"M15.8332 10.0003H4.1665M4.1665 10.0003L9.99984 15.8337M4.1665 10.0003L9.99984 4.16699",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Z5(){return je("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:je("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function X5(){return qt("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je("g",{clipPath:"url(#clip0_1790_28273)",children:je("path",{d:"M9.99989 10.9766L14.1249 6.85156L15.3032 8.0299L9.99989 13.3332L4.69656 8.0299L5.87489 6.85156L9.99989 10.9766Z",fill:"currentColor"})}),je("defs",{children:je("clipPath",{id:"clip0_1790_28273",children:je("rect",{width:"20",height:"20",fill:"white",transform:"translate(20) rotate(90)"})})})]})}var nd=(e=>(e.SUI_WALLET="Sui Wallet",e.SUIET_WALLET="Suiet",e.ETHOS_WALLET="Ethos Wallet",e))(nd||{}),pr=(e=>(e.DISCONNECTED="disconnected",e.CONNECTED="connected",e.CONNECTING="connecting",e))(pr||{});
84class Cy extends Error{constructor(t,n,r="UNKNOWN_ERROR"){super(t),_s(this,"code"),_s(this,"details"),this.details=n,this.code=r}}class Qn extends Cy{constructor(t="kit unknown error",n){super("[KitError] "+t,n,"KIT.UNKNOWN_ERROR")}}class Jo extends Cy{constructor(t="wallet unknown error",n){super("[WalletError] "+t,n,"WALLET.UNKNOWN_ERROR")}}class Y5 extends Jo{constructor(t){super(`wallet does not implement function: ${t}`)}}function fo(e){return`Failed to call ${e}, missing context provider to run within`}const ew={configuredWallets:[],detectedWallets:[],allAvailableWallets:[],wallet:void 0,connecting:!1,connected:!1,account:void 0,status:pr.DISCONNECTED,address:void 0,supportedWallets:[],select(){throw new Qn(fo("select"))},async disconnect(){throw new Qn(fo("disconnect"))},getAccounts(){throw new Qn(fo("getAccounts"))},async signAndExecuteTransaction(){throw new Qn(fo("signAndExecuteTransaction"))},async signMessage(){throw new Qn(fo("signMessage"))},async executeMoveCall(){throw new Qn(fo("executeMoveCall"))},async getPublicKey(){throw new Qn(fo("getPublicKey"))}},Ny=K.exports.createContext(ew);function Ls(){return K.exports.useContext(Ny)}var $a=(e=>(e.devnet="devnet",e.local="local",e))($a||{});/*! *****************************************************************************
85Copyright (c) Microsoft Corporation.
86
87Permission to use, copy, modify, and/or distribute this software for any
88purpose with or without fee is hereby granted.
89
90THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
91REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
92AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
93INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
94LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
95OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
96PERFORMANCE OF THIS SOFTWARE.
97***************************************************************************** */function jy(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(E){try{p(r.next(E))}catch(S){s(S)}}function d(E){try{p(r.throw(E))}catch(S){s(S)}}function p(E){E.done?i(E.value):o(E.value).then(a,d)}p((r=r.apply(e,t||[])).next())})}function Iy(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(E){return d([p,E])}}function d(p){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=p[0]&2?o.return:p[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,p[1])).done)return i;switch(o=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,o=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){n.label=p[1];break}if(p[0]===6&&n.label<i[1]){n.label=i[1],i=p;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(p);break}i[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(E){p=[6,E],o=0}finally{r=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}var wr=function(){},Nn=wr(),Pu=Object,Mn=function(e){return e===Nn},Vr=function(e){return typeof e=="function"},uo=function(e,t){return Pu.assign({},e,t)},rd="undefined",od=function(){return typeof window!=rd},tw=function(){return typeof document!=rd},nw=function(){return od()&&typeof window.requestAnimationFrame!=rd},cu=new WeakMap,rw=0,Os=function(e){var t=typeof e,n=e&&e.constructor,r=n==Date,o,i;if(Pu(e)===e&&!r&&n!=RegExp){if(o=cu.get(e),o)return o;if(o=++rw+"~",cu.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Os(e[i])+",";cu.set(e,o)}if(n==Pu){o="#";for(var s=Pu.keys(e).sort();!Mn(i=s.pop());)Mn(e[i])||(o+=i+":"+Os(e[i])+",");cu.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Fc=!0,ow=function(){return Fc},$y=od(),id=tw(),Wc=$y&&window.addEventListener?window.addEventListener.bind(window):wr,iw=id?document.addEventListener.bind(document):wr,Hc=$y&&window.removeEventListener?window.removeEventListener.bind(window):wr,sw=id?document.removeEventListener.bind(document):wr,uw=function(){var e=id&&document.visibilityState;return Mn(e)||e!=="hidden"},aw=function(e){return iw("visibilitychange",e),Wc("focus",e),function(){sw("visibilitychange",e),Hc("focus",e)}},lw=function(e){var t=function(){Fc=!0,e()},n=function(){Fc=!1};
97return Wc("online",t),Wc("offline",n),function(){Hc("online",t),Hc("offline",n)}},cw={isOnline:ow,isVisible:uw},fw={initFocus:aw,initReconnect:lw},Pa=!od()||"Deno"in window,dw=function(e){return nw()?window.requestAnimationFrame(e):setTimeout(e,1)},Ru=Pa?K.exports.useEffect:K.exports.useLayoutEffect,Al=typeof navigator<"u"&&navigator.connection,Jh=!Pa&&Al&&(["slow-2g","2g"].includes(Al.effectiveType)||Al.saveData),Py=function(e){if(Vr(e))try{e=e()}catch{e=""}var t=[].concat(e);e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Os(e):"";var n=e?"$swr$"+e:"";return[e,t,n]},xo=new WeakMap,Ry=0,By=1,Uy=2,us=function(e,t,n,r,o,i,s){s===void 0&&(s=!0);var a=xo.get(e),d=a[0],p=a[1],E=a[3],S=d[t],M=p[t];if(s&&M)for(var R=0;R<M.length;++R)M[R](n,r,o);return i&&(delete E[t],S&&S[0])?S[0](Uy).then(function(){return e.get(t)}):e.get(t)},hw=0,Vc=function(){return++hw},Ly=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jy(void 0,void 0,void 0,function(){var n,r,o,i,s,a,d,p,E,S,M,R,U,P,J,j,T,_,C,L,z;return Iy(this,function(Z){switch(Z.label){case 0:if(n=e[0],r=e[1],o=e[2],i=e[3],s=typeof i=="boolean"?{revalidate:i}:i||{},a=Mn(s.populateCache)?!0:s.populateCache,d=s.revalidate!==!1,p=s.rollbackOnError!==!1,E=s.optimisticData,S=Py(r),M=S[0],R=S[2],!M)return[2];if(U=xo.get(n),P=U[2],e.length<3)return[2,us(n,M,n.get(M),Nn,Nn,d,!0)];if(J=o,T=Vc(),P[M]=[T,0],_=!Mn(E),C=n.get(M),_&&(L=Vr(E)?E(C):E,n.set(M,L),us(n,M,L)),Vr(J))try{J=J(n.get(M))}catch(X){j=X}return J&&Vr(J.then)?[4,J.catch(function(X){j=X})]:[3,2];case 1:if(J=Z.sent(),T!==P[M][0]){if(j)throw j;return[2,J]}else j&&_&&p&&(a=!0,J=C,n.set(M,C));Z.label=2;case 2:return a&&(j||(Vr(a)&&(J=a(J,C)),n.set(M,J)),n.set(R,uo(n.get(R),{error:j}))),P[M][1]=Vc(),[4,us(n,M,J,j,Nn,d,!!a)];case 3:if(z=Z.sent(),j)throw j;return[2,a?z:J]}})})},Zh=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},pw=function(e,t){if(!xo.has(e)){var n=uo(fw,t),r={},o=Ly.bind(Nn,e),i=wr;if(xo.set(e,[r,{},{},{},o]),!Pa){var s=n.initFocus(setTimeout.bind(Nn,Zh.bind(Nn,r,Ry))),a=n.initReconnect(setTimeout.bind(Nn,Zh.bind(Nn,r,By)));i=function(){s&&s(),a&&a(),xo.delete(e)}}return[e,o,i]}return[e,xo.get(e)[4]]},yw=function(e,t,n,r,o){var i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Mn(i)&&s>i||setTimeout(r,a,o)},Dy=pw(new Map),gw=Dy[0],mw=Dy[1],vw=uo({onLoadingSlow:wr,onSuccess:wr,onError:wr,onErrorRetry:yw,onDiscarded:wr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Jh?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Jh?5e3:3e3,compare:function(e,t){return Os(e)==Os(t)},isPaused:function(){return!1},cache:gw,mutate:mw,fallback:{}},cw),ww=function(e,t){var n=uo(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,s=t.fallback;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=uo(o,s))}return n},bw=K.exports.createContext({}),Ew=function(e,t){var n=K.exports.useState({})[1],r=K.exports.useRef(e),o=K.exports.useRef({data:!1,error:!1,isValidating:!1}),i=K.exports.useCallback(function(s){var a=!1,d=r.current;for(var p in s){var E=p;d[E]!==s[E]&&(d[E]=s[E],o.current[E]&&(a=!0))}a&&!t.current&&n({})},[]);return Ru(function(){r.current=e}),[r,o.current,i]},xw=function(e){return Vr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},Sw=function(){return uo(vw,K.exports.useContext(bw))},kw=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Sw(),o=xw(t),i=o[0],s=o[1],a=o[2],d=ww(r,a),p=e,E=d.use;if(E)for(var S=E.length;S-- >0;)p=E[S](p);return p(i,s||d.fetcher,d)}},Xh=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},Tl={dedupe:!0},Mw=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,s=n.suspense,a=n.revalidateOnMount,d=n.refreshInterval,p=n.refreshWhenHidden,E=n.refreshWhenOffline,S=xo.get(r),M=S[0],R=S[1],U=S[2],P=S[3],J=Py(e),j=J[0],T=J[1],_=J[2],C=K.exports.useRef(!1),L=K.exports.useRef(!1),z=K.exports.useRef(j),Z=K.exports.useRef(t),X=K.exports.useRef(n),ce=function(){return X.current},Me=function(){return ce().isVisible()&&ce().isOnline()},Q=function(V){return r.set(_,uo(r.get(_),V))},ne=r.get(j),u=Mn(i)?n.fallback[j]:i,l=Mn(ne)?u:ne,y=r.get(_)||{},x=y.error,O=!C.current,$=function(){return O&&!Mn(a)?a:ce().isPaused()?!1:s?Mn(l)?!1:n.revalidateIfStale:Mn(l)||n.revalidateIfStale},B=function(){return!j||!t?!1:y.isValidating?!0:O&&$()},N=B(),h=Ew({data:l,error:x,isValidating:N},L),w=h[0],re=h[1],ee=h[2],v=K.exports.useCallback(function(V){return jy(void 0,void 0,void 0,function(){var Y,ue,he,ve,Se,Ae,ye,qe,Qe,tt,tn,Je,ut;return Iy(this,function(Wt){switch(Wt.label){case 0:if(Y=Z.current,!j||!Y||L.current||ce().isPaused())return[2,!1];ve=!0,Se=V||{},Ae=!P[j]||!Se.dedupe,ye=function(){return!L.current&&j===z.current&&C.current},qe=function(){var Ke=P[j];Ke&&Ke[1]===he&&delete P[j]},Qe={isValidating:!1},tt=function(){Q({isValidating:!1}),ye()&&ee(Qe)},Q({isValidating:!0}),ee({isValidating:!0}),Wt.label=1;case 1:return Wt.trys.push([1,3,,4]),Ae&&(us(r,j,w.current.data,w.current.error,!0),n.loadingTimeout&&!r.get(j)&&setTimeout(function(){ve&&ye()&&ce().onLoadingSlow(j,n)},n.loadingTimeout),P[j]=[Y.apply(void 0,T),Vc()]),ut=P[j],ue=ut[0],he=ut[1],[4,ue];case 2:return ue=Wt.sent(),Ae&&setTimeout(qe,n.dedupingInterval),!P[j]||P[j][1]!==he?(Ae&&ye()&&ce().onDiscarded(j),[2,!1]):(Q({error:Nn}),Qe.error=Nn,tn=U[j],!Mn(tn)&&(he<=tn[0]||he<=tn[1]||tn[1]===0)?(tt(),Ae&&ye()&&ce().onDiscarded(j),[2,!1]):(o(w.current.data,ue)?Qe.data=w.current.data:Qe.data=ue,o(r.get(j),ue)||r.set(j,ue),Ae&&ye()&&ce().onSuccess(ue,j,n),[3,4]));case 3:return Je=Wt.sent(),qe(),ce().isPaused()||(Q({error:Je}),Qe.error=Je,Ae&&ye()&&(ce().onError(Je,j,n),(typeof n.shouldRetryOnError=="boolean"&&n.shouldRetryOnError||Vr(n.shouldRetryOnError)&&n.shouldRetryOnError(Je))&&Me()&&ce().onErrorRetry(Je,j,n,v,{retryCount:(Se.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ve=!1,tt(),ye()&&Ae&&us(r,j,Qe.data,Qe.error,!1),[2,!0]}})})},[j]),G=K.exports.useCallback(Ly.bind(Nn,r,function(){return z.current}),[]);if(Ru(function(){Z.current=t,X.current=n}),Ru(function(){if(j){var V=j!==z.current,Y=v.bind(Nn,Tl),ue=function(ye,qe,Qe){ee(uo({error:qe,isValidating:Qe},o(w.current.data,ye)?Nn:{data:ye}))},he=0,ve=function(ye){if(ye==Ry){var qe=Date.now();ce().revalidateOnFocus&&qe>he&&Me()&&(he=qe+ce().focusThrottleInterval,Y())}else if(ye==By)ce().revalidateOnReconnect&&Me()&&Y();else if(ye==Uy)return v()},Se=Xh(j,R,ue),Ae=Xh(j,M,ve);return L.current=!1,z.current=j,C.current=!0,V&&ee({data:l,error:x,isValidating:N}),$()&&(Mn(l)||Pa?Y():dw(Y)),function(){L.current=!0,Se(),Ae()}}},[j,v]),Ru(function(){var V;function Y(){var he=Vr(d)?d(l):d;he&&V!==-1&&(V=setTimeout(ue,he))}
97function ue(){!w.current.error&&(p||ce().isVisible())&&(E||ce().isOnline())?v(Tl).then(Y):Y()}return Y(),function(){V&&(clearTimeout(V),V=-1)}},[d,p,E,v]),K.exports.useDebugValue(l),s&&Mn(l)&&j)throw Z.current=t,X.current=n,L.current=!1,Mn(x)?v(Tl):x;return{mutate:G,get data(){return re.data=!0,l},get error(){return re.error=!0,x},get isValidating(){return re.isValidating=!0,N}}},_w=kw(Mw);const Ol=new Map([["devnet",{id:"devnet",name:"devnet",queryRpcUrl:"https://fullnode.devnet.sui.io/",gatewayRpcUrl:"https://gateway.devnet.sui.io:443"}],["local",{id:"local",name:"local",queryRpcUrl:"http://localhost:5001",gatewayRpcUrl:"http://localhost:5001"}]]);class Aw{async getNetworks(t){return Array.from(Ol.values())}getNetwork(t){let n=Ol.get(t);return n||(n=Ol.get($a.devnet)),n}}const Tw=new Aw;function Ow(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 Cw={exports:{}};const Nw={},zy=Object.freeze(Object.defineProperty({__proto__:null,default:Nw},Symbol.toStringTag,{value:"Module"})),Fy=Us(zy);(function(e){(function(t){var n=function(m){var A,k=new Float64Array(16);if(m)for(A=0;A<m.length;A++)k[A]=m[A];return k},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var s=n(),a=n([1]),d=n([56129,1]),p=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),E=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),S=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),M=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),R=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function U(m,A,k,f){m[A]=k>>24&255,m[A+1]=k>>16&255,m[A+2]=k>>8&255,m[A+3]=k&255,m[A+4]=f>>24&255,m[A+5]=f>>16&255,m[A+6]=f>>8&255,m[A+7]=f&255}function P(m,A,k,f,I){var W,q=0;for(W=0;W<I;W++)q|=m[A+W]^k[f+W];return(1&q-1>>>8)-1}function J(m,A,k,f){return P(m,A,k,f,16)}function j(m,A,k,f){return P(m,A,k,f,32)}function T(m,A,k,f){for(var I=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,W=k[0]&255|(k[1]&255)<<8|(k[2]&255)<<16|(k[3]&255)<<24,q=k[4]&255|(k[5]&255)<<8|(k[6]&255)<<16|(k[7]&255)<<24,se=k[8]&255|(k[9]&255)<<8|(k[10]&255)<<16|(k[11]&255)<<24,ae=k[12]&255|(k[13]&255)<<8|(k[14]&255)<<16|(k[15]&255)<<24,we=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Ee=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Ze=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,ke=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Be=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Ue=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,ze=k[16]&255|(k[17]&255)<<8|(k[18]&255)<<16|(k[19]&255)<<24,Ge=k[20]&255|(k[21]&255)<<8|(k[22]&255)<<16|(k[23]&255)<<24,We=k[24]&255|(k[25]&255)<<8|(k[26]&255)<<16|(k[27]&255)<<24,Ve=k[28]&255|(k[29]&255)<<8|(k[30]&255)<<16|(k[31]&255)<<24,He=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,Te=I,Ie=W,_e=q,Oe=se,Ce=ae,xe=we,oe=Ee,ie=Ze,de=ke,le=Be,fe=Ue,ge=ze,De=Ge,Xe=We,et=Ve,Ye=He,D,ot=0;ot<20;ot+=2)D=Te+De|0,Ce^=D<<7|D>>>32-7,D=Ce+Te|0,de^=D<<9|D>>>32-9,D=de+Ce|0,De^=D<<13|D>>>32-13,D=De+de|0,Te^=D<<18|D>>>32-18,D=xe+Ie|0,le^=D<<7|D>>>32-7,D=le+xe|0,Xe^=D<<9|D>>>32-9,D=Xe+le|0,Ie^=D<<13|D>>>32-13,D=Ie+Xe|0,xe^=D<<18|D>>>32-18,D=fe+oe|0,et^=D<<7|D>>>32-7,D=et+fe|0,_e^=D<<9|D>>>32-9,D=_e+et|0,oe^=D<<13|D>>>32-13,D=oe+_e|0,fe^=D<<18|D>>>32-18,D=Ye+ge|0,Oe^=D<<7|D>>>32-7,D=Oe+Ye|0,ie^=D<<9|D>>>32-9,D=ie+Oe|0,ge^=D<<13|D>>>32-13,D=ge+ie|0,Ye^=D<<18|D>>>32-18,D=Te+Oe|0,Ie^=D<<7|D>>>32-7,D=Ie+Te|0,_e^=D<<9|D>>>32-9,D=_e+Ie|0,Oe^=D<<13|D>>>32-13,D=Oe+_e|0,Te^=D<<18|D>>>32-18,D=xe+Ce|0,oe^=D<<7|D>>>32-7,D=oe+xe|0,ie^=D<<9|D>>>32-9,D=ie+oe|0,Ce^=D<<13|D>>>32-13,D=Ce+ie|0,xe^=D<<18|D>>>32-18,D=fe+le|0,ge^=D<<7|D>>>32-7,D=ge+fe|0,de^=D<<9|D>>>32-9,D=de+ge|0,le^=D<<13|D>>>32-13,D=le+de|0,fe^=D<<18|D>>>32-18,D=Ye+et|0,De^=D<<7|D>>>32-7,D=De+Ye|0,Xe^=D<<9|D>>>32-9,D=Xe+De|0,et^=D<<13|D>>>32-13,D=et+Xe|0,Ye^=D<<18|D>>>32-18;Te=Te+I|0,Ie=Ie+W|0,_e=_e+q|0,Oe=Oe+se|0,Ce=Ce+ae|0,xe=xe+we|0,oe=oe+Ee|0,ie=ie+Ze|0,de=de+ke|0,le=le+Be|0,fe=fe+Ue|0,ge=ge+ze|0,De=De+Ge|0,Xe=Xe+We|0,et=et+Ve|0,Ye=Ye+He|0,m[0]=Te>>>0&255,m[1]=Te>>>8&255,m[2]=Te>>>16&255,m[3]=Te>>>24&255,m[4]=Ie>>>0&255,m[5]=Ie>>>8&255,m[6]=Ie>>>16&255,m[7]=Ie>>>24&255,m[8]=_e>>>0&255,m[9]=_e>>>8&255,m[10]=_e>>>16&255,m[11]=_e>>>24&255,m[12]=Oe>>>0&255,m[13]=Oe>>>8&255,m[14]=Oe>>>16&255,m[15]=Oe>>>24&255,m[16]=Ce>>>0&255,m[17]=Ce>>>8&255,m[18]=Ce>>>16&255,m[19]=Ce>>>24&255,m[20]=xe>>>0&255,m[21]=xe>>>8&255,m[22]=xe>>>16&255,m[23]=xe>>>24&255,m[24]=oe>>>0&255,m[25]=oe>>>8&255,m[26]=oe>>>16&255,m[27]=oe>>>24&255,m[28]=ie>>>0&255,m[29]=ie>>>8&255,m[30]=ie>>>16&255,m[31]=ie>>>24&255,m[32]=de>>>0&255,m[33]=de>>>8&255,m[34]=de>>>16&255,m[35]=de>>>24&255,m[36]=le>>>0&255,m[37]=le>>>8&255,m[38]=le>>>16&255,m[39]=le>>>24&255,m[40]=fe>>
vendor: 29,561 bytes, line 97
97>0&255,m[41]=fe>>>8&255,m[42]=fe>>>16&255,m[43]=fe>>>24&255,m[44]=ge>>>0&255,m[45]=ge>>>8&255,m[46]=ge>>>16&255,m[47]=ge>>>24&255,m[48]=De>>>0&255,m[49]=De>>>8&255,m[50]=De>>>16&255,m[51]=De>>>24&255,m[52]=Xe>>>0&255,m[53]=Xe>>>8&255,m[54]=Xe>>>16&255,m[55]=Xe>>>24&255,m[56]=et>>>0&255,m[57]=et>>>8&255,m[58]=et>>>16&255,m[59]=et>>>24&255,m[60]=Ye>>>0&255,m[61]=Ye>>>8&255,m[62]=Ye>>>16&255,m[63]=Ye>>>24&255}function _(m,A,k,f){for(var I=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,W=k[0]&255|(k[1]&255)<<8|(k[2]&255)<<16|(k[3]&255)<<24,q=k[4]&255|(k[5]&255)<<8|(k[6]&255)<<16|(k[7]&255)<<24,se=k[8]&255|(k[9]&255)<<8|(k[10]&255)<<16|(k[11]&255)<<24,ae=k[12]&255|(k[13]&255)<<8|(k[14]&255)<<16|(k[15]&255)<<24,we=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,Ee=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,Ze=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,ke=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,Be=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,Ue=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,ze=k[16]&255|(k[17]&255)<<8|(k[18]&255)<<16|(k[19]&255)<<24,Ge=k[20]&255|(k[21]&255)<<8|(k[22]&255)<<16|(k[23]&255)<<24,We=k[24]&255|(k[25]&255)<<8|(k[26]&255)<<16|(k[27]&255)<<24,Ve=k[28]&255|(k[29]&255)<<8|(k[30]&255)<<16|(k[31]&255)<<24,He=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,Te=I,Ie=W,_e=q,Oe=se,Ce=ae,xe=we,oe=Ee,ie=Ze,de=ke,le=Be,fe=Ue,ge=ze,De=Ge,Xe=We,et=Ve,Ye=He,D,ot=0;ot<20;ot+=2)D=Te+De|0,Ce^=D<<7|D>>>32-7,D=Ce+Te|0,de^=D<<9|D>>>32-9,D=de+Ce|0,De^=D<<13|D>>>32-13,D=De+de|0,Te^=D<<18|D>>>32-18,D=xe+Ie|0,le^=D<<7|D>>>32-7,D=le+xe|0,Xe^=D<<9|D>>>32-9,D=Xe+le|0,Ie^=D<<13|D>>>32-13,D=Ie+Xe|0,xe^=D<<18|D>>>32-18,D=fe+oe|0,et^=D<<7|D>>>32-7,D=et+fe|0,_e^=D<<9|D>>>32-9,D=_e+et|0,oe^=D<<13|D>>>32-13,D=oe+_e|0,fe^=D<<18|D>>>32-18,D=Ye+ge|0,Oe^=D<<7|D>>>32-7,D=Oe+Ye|0,ie^=D<<9|D>>>32-9,D=ie+Oe|0,ge^=D<<13|D>>>32-13,D=ge+ie|0,Ye^=D<<18|D>>>32-18,D=Te+Oe|0,Ie^=D<<7|D>>>32-7,D=Ie+Te|0,_e^=D<<9|D>>>32-9,D=_e+Ie|0,Oe^=D<<13|D>>>32-13,D=Oe+_e|0,Te^=D<<18|D>>>32-18,D=xe+Ce|0,oe^=D<<7|D>>>32-7,D=oe+xe|0,ie^=D<<9|D>>>32-9,D=ie+oe|0,Ce^=D<<13|D>>>32-13,D=Ce+ie|0,xe^=D<<18|D>>>32-18,D=fe+le|0,ge^=D<<7|D>>>32-7,D=ge+fe|0,de^=D<<9|D>>>32-9,D=de+ge|0,le^=D<<13|D>>>32-13,D=le+de|0,fe^=D<<18|D>>>32-18,D=Ye+et|0,De^=D<<7|D>>>32-7,D=De+Ye|0,Xe^=D<<9|D>>>32-9,D=Xe+De|0,et^=D<<13|D>>>32-13,D=et+Xe|0,Ye^=D<<18|D>>>32-18;m[0]=Te>>>0&255,m[1]=Te>>>8&255,m[2]=Te>>>16&255,m[3]=Te>>>24&255,m[4]=xe>>>0&255,m[5]=xe>>>8&255,m[6]=xe>>>16&255,m[7]=xe>>>24&255,m[8]=fe>>>0&255,m[9]=fe>>>8&255,m[10]=fe>>>16&255,m[11]=fe>>>24&255,m[12]=Ye>>>0&255,m[13]=Ye>>>8&255,m[14]=Ye>>>16&255,m[15]=Ye>>>24&255,m[16]=oe>>>0&255,m[17]=oe>>>8&255,m[18]=oe>>>16&255,m[19]=oe>>>24&255,m[20]=ie>>>0&255,m[21]=ie>>>8&255,m[22]=ie>>>16&255,m[23]=ie>>>24&255,m[24]=de>>>0&255,m[25]=de>>>8&255,m[26]=de>>>16&255,m[27]=de>>>24&255,m[28]=le>>>0&255,m[29]=le>>>8&255,m[30]=le>>>16&255,m[31]=le>>>24&255}function C(m,A,k,f){T(m,A,k,f)}function L(m,A,k,f){_(m,A,k,f)}var z=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Z(m,A,k,f,I,W,q){var se=new Uint8Array(16),ae=new Uint8Array(64),we,Ee;for(Ee=0;Ee<16;Ee++)se[Ee]=0;for(Ee=0;Ee<8;Ee++)se[Ee]=W[Ee];for(;I>=64;){for(C(ae,se,q,z),Ee=0;Ee<64;Ee++)m[A+Ee]=k[f+Ee]^ae[Ee];for(we=1,Ee=8;Ee<16;Ee++)we=we+(se[Ee]&255)|0,se[Ee]=we&255,we>>>=8;I-=64,A+=64,f+=64}if(I>0)for(C(ae,se,q,z),Ee=0;Ee<I;Ee++)m[A+Ee]=k[f+Ee]^ae[Ee];return 0}function X(m,A,k,f,I){var W=new Uint8Array(16),q=new Uint8Array(64),se,ae;for(ae=0;ae<16;ae++)W[ae]=0;for(ae=0;ae<8;ae++)W[ae]=f[ae];for(;k>=64;){for(C(q,W,I,z),ae=0;ae<64;ae++)m[A+ae]=q[ae];for(se=1,ae=8;ae<16;ae++)se=se+(W[ae]&255)|0,W[ae]=se&255,se>>>=8;k-=64,A+=64}if(k>0)for(C(q,W,I,z),ae=0;ae<k;ae++)m[A+ae]=q[ae];return 0}function ce(m,A,k,f,I){var W=new Uint8Array(32);L(W,f,I,z);for(var q=new Uint8Array(8),se=0;se<8;se++)q[se]=f[se+16];return X(m,A,k,q,W)}function Me(m,A,k,f,I,W,q){var se=new Uint8Array(32);L(se,W,q,z);for(var ae=new Uint8Array(8),we=0;we<8;we++)ae[we]=W[we+16];return Z(m,A,k,f,I,ae,se)}var Q=function(m){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;var A,k,f,I,W,q,se,ae;A=m[0]&255|(m[1]&255)<<8,this.r[0]=A&8191,k=m[2]&255|(m[3]&255)<<8,this.r[1]=(A>>>13|k<<3)&8191,f=m[4]&255|(m[5]&255)<<8,this.r[2]=(k>>>10|f<<6)&7939,I=m[6]&255|(m[7]&255)<<8,this.r[3]=(f>>>7|I<<9)&8191,W=m[8]&255|(m[9]&255)<<8,this.r[4]=(I>>>4|W<<12)&255,this.r[5]=W>>>1&8190,q=m[10]&255|(m[11]&255)<<8,this.r[6]=(W>>>14|q<<2)&8191,se=m[12]&255|(m[13]&255)<<8,this.r[7]=(q>>>11|se<<5)&8065,ae=m[14]&255|(m[15]&255)<<8,this.r[8]=(se>>>8|ae<<8)&8191,this.r[9]=ae>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};Q.prototype.blocks=function(m,A,k){for(var f=this.fin?0:2048,I,W,q,se,ae,we,Ee,Ze,ke,Be,Ue,ze,Ge,We,Ve,He,Te,Ie,_e,Oe=this.h[0],Ce=this.h[1],xe=this.h[2],oe=this.h[3],ie=this.h[4],de=this.h[5],le=this.h[6],fe=this.h[7],ge=this.h[8],De=this.h[9],Xe=this.r[0],et=this.r[1],Ye=this.r[2],D=this.r[3],ot=this.r[4],ht=this.r[5],pt=this.r[6],nt=this.r[7],ct=this.r[8],ft=this.r[9];k>=16;)I=m[A+0]&255|(m[A+1]&255)<<8,Oe+=I&8191,W=m[A+2]&255|(m[A+3]&255)<<8,Ce+=(I>>>13|W<<3)&8191,q=m[A+4]&255|(m[A+5]&255)<<8,xe+=(W>>>10|q<<6)&8191,se=m[A+6]&255|(m[A+7]&255)<<8,oe+=(q>>>7|se<<9)&8191,ae=m[A+8]&255|(m[A+9]&255)<<8,ie+=(se>>>4|ae<<12)&8191,de+=ae>>>1&8191,we=m[A+10]&255|(m[A+11]&255)<<8,le+=(ae>>>14|we<<2)&8191,Ee=m[A+12]&255|(m[A+13]&255)<<8,fe+=(we>>>11|Ee<<5)&8191,Ze=m[A+14]&255|(m[A+15]&255)<<8,ge+=(Ee>>>8|Ze<<8)&8191,De+=Ze>>>5|f,ke=0,Be=ke,Be+=Oe*Xe,Be+=Ce*(5*ft),Be+=xe*(5*ct),Be+=oe*(5*nt),Be+=ie*(5*pt),ke=Be>>>13,Be&=8191,Be+=de*(5*ht),Be+=le*(5*ot),Be+=fe*(5*D),Be+=ge*(5*Ye),Be+=De*(5*et),ke+=Be>>>13,Be&=8191,Ue=ke,Ue+=Oe*et,Ue+=Ce*Xe,Ue+=xe*(5*ft),Ue+=oe*(5*ct),Ue+=ie*(5*nt),ke=Ue>>>13,Ue&=8191,Ue+=de*(5*pt),Ue+=le*(5*ht),Ue+=fe*(5*ot),Ue+=ge*(5*D),Ue+=De*(5*Ye),ke+=Ue>>>13,Ue&=8191,ze=ke,ze+=Oe*Ye,ze+=Ce*et,ze+=xe*Xe,ze+=oe*(5*ft),ze+=ie*(5*ct),ke=ze>>>13,ze&=8191,ze+=de*(5*nt),ze+=le*(5*pt),ze+=fe*(5*ht),ze+=ge*(5*ot),ze+=De*(5*D),ke+=ze>>>13,ze&=8191,Ge=ke,Ge+=Oe*D,Ge+=Ce*Ye,Ge+=xe*et,Ge+=oe*Xe,Ge+=ie*(5*ft),ke=Ge>>>13,Ge&=8191,Ge+=de*(5*ct),Ge+=le*(5*nt),Ge+=fe*(5*pt),Ge+=ge*(5*ht),Ge+=De*(5*ot),ke+=Ge>>>13,Ge&=8191,We=ke,We+=Oe*ot,We+=Ce*D,We+=xe*Ye,We+=oe*et,We+=ie*Xe,ke=We>>>13,We&=8191,We+=de*(5*ft),We+=le*(5*ct),We+=fe*(5*nt),We+=ge*(5*pt),We+=De*(5*ht),ke+=We>>>13,We&=8191,Ve=ke,Ve+=Oe*ht,Ve+=Ce*ot,Ve+=xe*D,Ve+=oe*Ye,Ve+=ie*et,ke=Ve>>>13,Ve&=8191,Ve+=de*Xe,Ve+=le*(5*ft),Ve+=fe*(5*ct),Ve+=ge*(5*nt),Ve+=De*(5*pt),ke+=Ve>>>13,Ve&=8191,He=ke,He+=Oe*pt,He+=Ce*ht,He+=xe*ot,He+=oe*D,He+=ie*Ye,ke=He>>>13,He&=8191,He+=de*et,He+=le*Xe,He+=fe*(5*ft),He+=ge*(5*ct),He+=De*(5*nt),ke+=He>>>13,He&=8191,Te=ke,Te+=Oe*nt,Te+=Ce*pt,Te+=xe*ht,Te+=oe*ot,Te+=ie*D,ke=Te>>>13,Te&=8191,Te+=de*Ye,Te+=le*et,Te+=fe*Xe,Te+=ge*(5*ft),Te+=De*(5*ct),ke+=Te>>>13,Te&=8191,Ie=ke,Ie+=Oe*ct,Ie+=Ce*nt,Ie+=xe*pt,Ie+=oe*ht,Ie+=ie*ot,ke=Ie>>>13,Ie&=8191,Ie+=de*D,Ie+=le*Ye,Ie+=fe*et,Ie+=ge*Xe,Ie+=De*(5*ft),ke+=Ie>>>13,Ie&=8191,_e=ke,_e+=Oe*ft,_e+=Ce*ct,_e+=xe*nt,_e+=oe*pt,_e+=ie*ht,ke=_e>>>13,_e&=8191,_e+=de*ot,_e+=le*D,_e+=fe*Ye,_e+=ge*et,_e+=De*Xe,ke+=_e>>>13,_e&=8191,ke=(ke<<2)+ke|0,ke=ke+Be|0,Be=ke&8191,ke=ke>>>13,Ue+=ke,Oe=Be,Ce=Ue,xe=ze,oe=Ge,ie=We,de=Ve,le=He,fe=Te,ge=Ie,De=_e,A+=16,k-=16;this.h[0]=Oe,this.h[1]=Ce,this.h[2]=xe,this.h[3]=oe,this.h[4]=ie,this.h[5]=de,this.h[6]=le,this.h[7]=fe,this.h[8]=ge,this.h[9]=De},Q.prototype.finish=function(m,A){var k=new Uint16Array(10),f,I,W,q;if(this.leftover){for(q=this.leftover,this.buffer[q++]=1;q<16;q++)this.buffer[q]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(f=this.h[1]>>>13,this.h[1]&=8191,q=2;q<10;q++)this.h[q]+=f,f=this.h[q]>>>13,this.h[q]&=8191;for(this.h[0]+=f*5,f=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=f,f=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=f,k[0]=this.h[0]+5,f=k[0]>>>13,k[0]&=8191,q=1;q<10;q++)k[q]=this.h[q]+f,f=k[q]>>>13,k[q]&=8191;for(k[9]-=1<<13,I=(f^1)-1,q=0;q<10;q++)k[q]&=I;for(I=~I,q=0;q<10;q++)this.h[q]=this.h[q]&I|k[q];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,W=this.h[0]+this.pad[0],this.h[0]=W&65535,q=1;q<8;q++)W=(this.h[q]+this.pad[q]|0)+(W>>>16)|0,this.h[q]=W&65535;m[A+0]=this.h[0]>>>0&255,m[A+1]=this.h[0]>>>8&255,m[A+2]=this.h[1]>>>0&255,m[A+3]=this.h[1]>>>8&255,m[A+4]=this.h[2]>>>0&255,m[A+5]=this.h[2]>>>8&255,m[A+6]=this.h[3]>>>0&255,m[A+7]=this.h[3]>>>8&255,m[A+8]=this.h[4]>>>0&255,m[A+9]=this.h[4]>>>8&255,m[A+10]=this.h[5]>>>0&255,m[A+11]=this.h[5]>>>8&255,m[A+12]=this.h[6]>>>0&255,m[A+13]=this.h[6]>>>8&255,m[A+14]=this.h[7]>>>0&255,m[A+15]=this.h[7]>>>8&255},Q.prototype.update=function(m,A,k){var f,I;if(this.leftover){for(I=16-this.leftover,I>k&&(I=k),f=0;f<I;f++)this.buffer[this.leftover+f]=m[A+f];if(k-=I,A+=I,this.leftover+=I,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(k>=16&&(I=k-k%16,this.blocks(m,A,I),A+=I,k-=I),k){for(f=0;f<k;f++)this.buffer[this.leftover+f]=m[A+f];this.leftover+=k}};function ne(m,A,k,f,I,W){var q=new Q(W);return q.update(k,f,I),q.finish(m,A),0}function u(m,A,k,f,I,W){var q=new Uint8Array(16);return ne(q,0,k,f,I,W),J(m,A,q,0)}function l(m,A,k,f,I){var W;if(k<32)return-1;for(Me(m,0,A,0,k,f,I),ne(m,16,m,32,k-32,m),W=0;W<16;W++)m[W]=0;return 0}function y(m,A,k,f,I){var W,q=new Uint8Array(32);if(k<32||(ce(q,0,32,f,I),u(A,16,A,32,k-32,q)!==0))return-1;for(Me(m,0,A,0,k,f,I),W=0;W<32;W++)m[W]=0;return 0}function x(m,A){var k;for(k=0;k<16;k++)m[k]=A[k]|0}function O(m){var A,k,f=1;for(A=0;A<16;A++)k=m[A]+f+65535,f=Math.floor(k/65536),m[A]=k-f*65536;m[0]+=f-1+37*(f-1)}function $(m,A,k){for(var f,I=~(k-1),W=0;W<16;W++)f=I&(m[W]^A[W]),m[W]^=f,A[W]^=f}function B(m,A){var k,f,I,W=n(),q=n();for(k=0;k<16;k++)q[k]=A[k];for(O(q),O(q),O(q),f=0;f<2;f++){for(W[0]=q[0]-65517,k=1;k<15;k++)W[k]=q[k]-65535-(W[k-1]>>16&1),W[k-1]&=65535;W[15]=q[15]-32767-(W[14]>>16&1),I=W[15]>>16&1,W[14]&=65535,$(q,W,1-I)}for(k=0;k<16;k++)m[2*k]=q[k]&255,m[2*k+1]=q[k]>>8}function N(m,A){var k=new Uint8Array(32),f=new Uint8Array(32);return B(k,m),B(f,A),j(k,0,f,0)}function h(m){var A=new Uint8Array(32);return B(A,m),A[0]&1}function w(m,A){var k;for(k=0;k<16;k++)m[k]=A[2*k]+(A[2*k+1]<<8);m[15]&=32767}function re(m,A,k){for(var f=0;f<16;f++)m[f]=A[f]+k[f]}function ee(m,A,k){for(var f=0;f<16;f++)m[f]=A[f]-k[f]}function v(m,A,k){var f,I,W=0,q=0,se=0,ae=0,we=0,Ee=0,Ze=0,ke=0,Be=0,Ue=0,ze=0,Ge=0,We=0,Ve=0,He=0,Te=0,Ie=0,_e=0,Oe=0,Ce=0,xe=0,oe=0,ie=0,de=0,le=0,fe=0,ge=0,De=0,Xe=0,et=0,Ye=0,D=k[0],ot=k[1],ht=k[2],pt=k[3],nt=k[4],ct=k[5],ft=k[6],Vt=k[7],Et=k[8],Lt=k[9],Dt=k[10],zt=k[11],Jt=k[12],fn=k[13],dn=k[14],hn=k[15];f=A[0],W+=f*D,q+=f*ot,se+=f*ht,ae+=f*pt,we+=f*nt,Ee+=f*ct,Ze+=f*ft,ke+=f*Vt,Be+=f*Et,Ue+=f*Lt,ze+=f*Dt,Ge+=f*zt,We+=f*Jt,Ve+=f*fn,He+=f*dn,Te+=f*hn,f=A[1],q+=f*D,se+=f*ot,ae+=f*ht,we+=f*pt,Ee+=f*nt,Ze+=f*ct,ke+=f*ft,Be+=f*Vt,Ue+=f*Et,ze+=f*Lt,Ge+=f*Dt,We+=f*zt,Ve+=f*Jt,He+=f*fn,Te+=f*dn,Ie+=f*hn,f=A[2],se+=f*D,ae+=f*ot,we+=f*ht,Ee+=f*pt,Ze+=f*nt,ke+=f*ct,Be+=f*ft,Ue+=f*Vt,ze+=f*Et,Ge+=f*Lt,We+=f*Dt,Ve+=f*zt,He+=f*Jt,Te+=f*fn,Ie+=f*dn,_e+=f*hn,f=A[3],ae+=f*D,we+=f*ot,Ee+=f*ht,Ze+=f*pt,ke+=f*nt,Be+=f*ct,Ue+=f*ft,ze+=f*Vt,Ge+=f*Et,We+=f*Lt,Ve+=f*Dt,He+=f*zt,Te+=f*Jt,Ie+=f*fn,_e+=f*dn,Oe+=f*hn,f=A[4],we+=f*D,Ee+=f*ot,Ze+=f*ht,ke+=f*pt,Be+=f*nt,Ue+=f*ct,ze+=f*ft,Ge+=f*Vt,We+=f*Et,Ve+=f*Lt,He+=f*Dt,Te+=f*zt,Ie+=f*Jt,_e+=f*fn,Oe+=f*dn,Ce+=f*hn,f=A[5],Ee+=f*D,Ze+=f*ot,ke+=f*ht,Be+=f*pt,Ue+=f*nt,ze+=f*ct,Ge+=f*ft,We+=f*Vt,Ve+=f*Et,He+=f*Lt,Te+=f*Dt,Ie+=f*zt,_e+=f*Jt,Oe+=f*fn,Ce+=f*dn,xe+=f*hn,f=A[6],Ze+=f*D,ke+=f*ot,Be+=f*ht,Ue+=f*pt,ze+=f*nt,Ge+=f*ct,We+=f*ft,Ve+=f*Vt,He+=f*Et,Te+=f*Lt,Ie+=f*Dt,_e+=f*zt,Oe+=f*Jt,Ce+=f*fn,xe+=f*dn,oe+=f*hn,f=A[7],ke+=f*D,Be+=f*ot,Ue+=f*ht,ze+=f*pt,Ge+=f*nt,We+=f*ct,Ve+=f*ft,He+=f*Vt,Te+=f*Et,Ie+=f*Lt,_e+=f*Dt,Oe+=f*zt,Ce+=f*Jt,xe+=f*fn,oe+=f*dn,ie+=f*hn,f=A[8],Be+=f*D,Ue+=f*ot,ze+=f*ht,Ge+=f*pt,We+=f*nt,Ve+=f*ct,He+=f*ft,Te+=f*Vt,Ie+=f*Et,_e+=f*Lt,Oe+=f*Dt,Ce+=f*zt,xe+=f*Jt,oe+=f*fn,ie+=f*dn,de+=f*hn,f=A[9],Ue+=f*D,ze+=f*ot,Ge+=f*ht,We+=f*pt,Ve+=f*nt,He+=f*ct,Te+=f*ft,Ie+=f*Vt,_e+=f*Et,Oe+=f*Lt,Ce+=f*Dt,xe+=f*zt,oe+=f*Jt,ie+=f*fn,de+=f*dn,le+=f*hn,f=A[10],ze+=f*D,Ge+=f*ot,We+=f*ht,Ve+=f*pt,He+=f*nt,Te+=f*ct,Ie+=f*ft,_e+=f*Vt,Oe+=f*Et,Ce+=f*Lt,xe+=f*Dt,oe+=f*zt,ie+=f*Jt,de+=f*fn,le+=f*dn,fe+=f*hn,f=A[11],Ge+=f*D,We+=f*ot,Ve+=f*ht,He+=f*pt,Te+=f*nt,Ie+=f*ct,_e+=f*ft,Oe+=f*Vt,Ce+=f*Et,xe+=f*Lt,oe+=f*Dt,ie+=f*zt,de+=f*Jt,le+=f*fn,fe+=f*dn,ge+=f*hn,f=A[12],We+=f*D,Ve+=f*ot,He+=f*ht,Te+=f*pt,Ie+=f*nt,_e+=f*ct,Oe+=f*ft,Ce+=f*Vt,xe+=f*Et,oe+=f*Lt,ie+=f*Dt,de+=f*zt,le+=f*Jt,fe+=f*fn,ge+=f*dn,De+=f*hn,f=A[13],Ve+=f*D,He+=f*ot,Te+=f*ht,Ie+=f*pt,_e+=f*nt,Oe+=f*ct,Ce+=f*ft,xe+=f*Vt,oe+=f*Et,ie+=f*Lt,de+=f*Dt,le+=f*zt,fe+=f*Jt,ge+=f*fn,De+=f*dn,Xe+=f*hn,f=A[14],He+=f*D,Te+=f*ot,Ie+=f*ht,_e+=f*pt,Oe+=f*nt,Ce+=f*ct,xe+=f*ft,oe+=f*Vt,ie+=f*Et,de+=f*Lt,le+=f*Dt,fe+=f*zt,ge+=f*Jt,De+=f*fn,Xe+=f*dn,et+=f*hn,f=A[15],Te+=f*D,Ie+=f*ot,_e+=f*ht,Oe+=f*pt,Ce+=f*nt,xe+=f*ct,oe+=f*ft,ie+=f*Vt,de+=f*Et,le+=f*Lt,fe+=f*Dt,ge+=f*zt,De+=f*Jt,Xe+=f*fn,et+=f*dn,Ye+=f*hn,W+=38*Ie,q+=38*_e,se+=38*Oe,ae+=38*Ce,we+=38*xe,Ee+=38*oe,Ze+=38*ie,ke+=38*de,Be+=38*le,Ue+=38*fe,ze+=38*ge,Ge+=38*De,We+=38*Xe,Ve+=38*et,He+=38*Ye,I=1,f=W+I+65535,I=Math.floor(f/65536),W=f-I*65536,f=q+I+65535,I=Math.floor(f/65536),q=f-I*65536,f=se+I+65535,I=Math.floor(f/65536),se=f-I*65536,f=ae+I+65535,I=Math.floor(f/65536),ae=f-I*65536,f=we+I+65535,I=Math.floor(f/65536),we=f-I*65536,f=Ee+I+65535,I=Math.floor(f/65536),Ee=f-I*65536,f=Ze+I+65535,I=Math.floor(f/65536),Ze=f-I*65536,f=ke+I+65535,I=Math.floor(f/65536),ke=f-I*65536,f=Be+I+65535,I=Math.floor(f/65536),Be=f-I*65536,f=Ue+I+65535,I=Math.floor(f/65536),Ue=f-I*65536,f=ze+I+65535,I=Math.floor(f/65536),ze=f-I*65536,f=Ge+I+65535,I=Math.floor(f/65536),Ge=f-I*65536,f=We+I+65535,I=Math.floor(f/65536),We=f-I*65536,f=Ve+I+65535,I=Math.floor(f/65536),Ve=f-I*65536,f=He+I+65535,I=Math.floor(f/65536),He=f-I*65536,f=Te+I+65535,I=Math.floor(f/65536),Te=f-I*65536,W+=I-1+37*(I-1),I=1,f=W+I+65535,I=Math.floor(f/65536),W=f-I*65536,f=q+I+65535,I=Math.floor(f/65536),q=f-I*65536,f=se+I+65535,I=Math.floor(f/65536),se=f-I*65536,f=ae+I+65535,I=Math.floor(f/65536),ae=f-I*65536,f=we+I+65535,I=Math.floor(f/65536),we=f-I*65536,f=Ee+I+65535,I=Math.floor(f/65536),Ee=f-I*65536,f=Ze+I+65535,I=Math.floor(f/65536),Ze=f-I*65536,f=ke+I+65535,I=Math.floor(f/65536),ke=f-I*65536,f=Be+I+65535,I=Math.floor(f/65536),Be=f-I*65536,f=Ue+I+65535,I=Math.floor(f/65536),Ue=f-I*65536,f=ze+I+65535,I=Math.floor(f/65536),ze=f-I*65536,f=Ge+I+65535,I=Math.floor(f/65536),Ge=f-I*65536,f=We+I+65535,I=Math.floor(f/65536),We=f-I*65536,f=Ve+I+65535,I=Math.floor(f/65536),Ve=f-I*65536,f=He+I+65535,I=Math.floor(f/65536),He=f-I*65536,f=Te+I+65535,I=Math.floor(f/65536),Te=f-I*65536,W+=I-1+37*(I-1),m[0]=W,m[1]=q,m[2]=se,m[3]=ae,m[4]=we,m[5]=Ee,m[6]=Ze,m[7]=ke,m[8]=Be,m[9]=Ue,m[10]=ze,m[11]=Ge,m[12]=We,m[13]=Ve,m[14]=He,m[15]=Te}function G(m,A){v(m,A,A)}function V(m,A){var k=n(),f;for(f=0;f<16;f++)k[f]=A[f];for(f=253;f>=0;f--)G(k,k),f!==2&&f!==4&&v(k,k,A);for(f=0;f<16;f++)m[f]=k[f]}function Y(m,A){var k=n(),f;for(f=0;f<16;f++)k[f]=A[f];for(f=250;f>=0;f--)G(k,k),f!==1&&v(k,k,A);for(f=0;f<16;f++)m[f]=k[f]}function ue(m,A,k){var f=new Uint8Array(32),I=new Float64Array(80),W,q,se=n(),ae=n(),we=n(),Ee=n(),Ze=n(),ke=n();for(q=0;q<31;q++)f[q]=A[q];for(f[31]=A[31]&127|64,f[0]&=248,w(I,k),q=0;q<16;q++)ae[q]=I[q],Ee[q]=se[q]=we[q]=0;for(se[0]=Ee[0]=1,q=254;q>=0;--q)W=f[q>>>3]>>>(q&7)&1,$(se,ae,W),$(we,Ee,W),re(Ze,se,we),ee(se,se,we),re(we,ae,Ee),ee(ae,ae,Ee),G(Ee,Ze),G(ke,se),v(se,we,se),v(we,ae,Ze),re(Ze,se,we),ee(se,se,we),G(ae,se),ee(we,Ee,ke),v(se,we,d),re(se,se,Ee),v(we,we,se),v(se,Ee,ke),v(Ee,ae,I),G(ae,Ze),$(se,ae,W),$(we,Ee,W);for(q=0;q<16;q++)I[q+16]=se[q],I[q+32]=we[q],I[q+48]=ae[q],I[q+64]=Ee[q];var Be=I.subarray(32),Ue=I.subarray(16);return V(Be,Be),v(Ue,Ue,Be),B(m,Ue),0}function he(m,A){return ue(m,A,i)}function ve(m,A){return r(A,32),he(m,A)}function Se(m,A,k){var f=new Uint8Array(32);return ue(f,k,A),L(m,o,f,z)}var Ae=l,ye=y;function qe(m,A,k,f,I,W){var q=new Uint8Array(32);return Se(q,I,W),Ae(m,A,k,f,q)}function Qe(m,A,k,f,I,W){var q=new Uint8Array(32);return Se(q,I,W),ye(m,A,k,f,q)}var tt=[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 tn(m,A,k,f){for(var I=new Int32Array(16),W=new Int32Array(16),q,se,ae,we,Ee,Ze,ke,Be,Ue,ze,Ge,We,Ve,He,Te,Ie,_e,Oe,Ce,xe,oe,ie,de,le,fe,ge,De=m[0],Xe=m[1],et=m[2],Ye=m[3],D=m[4],ot=m[5],ht=m[6],pt=m[7],nt=A[0],ct=A[1],ft=A[2],Vt=A[3],Et=A[4],Lt=A[5],Dt=A[6],zt=A[7],Jt=0;f>=128;){for(Ce=0;Ce<16;Ce++)xe=8*Ce+Jt,I[Ce]=k[xe+0]<<24|k[xe+1]<<16|k[xe+2]<<8|k[xe+3],W[Ce]=k[xe+4]<<24|k[xe+5]<<16|k[xe+6]<<8|k[xe+7];for(Ce=0;Ce<80;Ce++)if(q=De,se=Xe,ae=et,we=Ye,Ee=D,Ze=ot,ke=ht,Be=pt,Ue=nt,ze=ct,Ge=ft,We=Vt,Ve=Et,He=Lt,Te=Dt,Ie=zt,oe=pt,ie=zt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=(D>>>14|Et<<32-14)^(D>>>18|Et<<32-18)^(Et>>>41-32|D<<32-(41-32)),ie=(Et>>>14|D<<32-14)^(Et>>>18|D<<32-18)^(D>>>41-32|Et<<32-(41-32)),de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,oe=D&ot^~D&ht,ie=Et&Lt^~Et&Dt,de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,oe=tt[Ce*2],ie=tt[Ce*2+1],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,oe=I[Ce%16],ie=W[Ce%16],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,_e=fe&65535|ge<<16,Oe=de&65535|le<<16,oe=_e,ie=Oe,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=(De>>>28|nt<<32-28)^(nt>>>34-32|De<<32-(34-32))^(nt>>>39-32|De<<32-(39-32)),ie=(nt>>>28|De<<32-28)^(De>>>34-32|nt<<32-(34-32))^(De>>>39-32|nt<<32-(39-32)),de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,oe=De&Xe^De&et^Xe&et,ie=nt&ct^nt&ft^ct&ft,de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,Be=fe&65535|ge<<16,Ie=de&65535|le<<16,oe=we,ie=We,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=_e,ie=Oe,de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,we=fe&65535|ge<<16,We=de&65535|le<<16,Xe=q,et=se,Ye=ae,D=we,ot=Ee,ht=Ze,pt=ke,De=Be,ct=Ue,ft=ze,Vt=Ge,Et=We,Lt=Ve,Dt=He,zt=Te,nt=Ie,Ce%16===15)for(xe=0;xe<16;xe++)oe=I[xe],ie=W[xe],de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=I[(xe+9)%16],ie=W[(xe+9)%16],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,_e=I[(xe+1)%16],Oe=W[(xe+1)%16],oe=(_e>>>1|Oe<<32-1)^(_e>>>8|Oe<<32-8)^_e>>>7,ie=(Oe>>>1|_e<<32-1)^(Oe>>>8|_e<<32-8)^(Oe>>>7|_e<<32-7),de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,_e=I[(xe+14)%16],Oe=W[(xe+14)%16],oe=(_e>>>19|Oe<<32-19)^(Oe>>>61-32|_e<<32-(61-32))^_e>>>6,ie=(Oe>>>19|_e<<32-19)^(_e>>>61-32|Oe<<32-(61-32))^(Oe>>>6|_e<<32-6),de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,I[xe]=fe&65535|ge<<16,W[xe]=de&65535|le<<16;oe=De,ie=nt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[0],ie=A[0],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[0]=De=fe&65535|ge<<16,A[0]=nt=de&65535|le<<16,oe=Xe,ie=ct,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[1],ie=A[1],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[1]=Xe=fe&65535|ge<<16,A[1]=ct=de&65535|le<<16,oe=et,ie=ft,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[2],ie=A[2],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[2]=et=fe&65535|ge<<16,A[2]=ft=de&65535|le<<16,oe=Ye,ie=Vt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[3],ie=A[3],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[3]=Ye=fe&65535|ge<<16,A[3]=Vt=de&65535|le<<16,oe=D,ie=Et,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[4],ie=A[4],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[4]=D=fe&65535|ge<<16,A[4]=Et=de&65535|le<<16,oe=ot,ie=Lt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[5],ie=A[5],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[5]=ot=fe&65535|ge<<16,A[5]=Lt=de&65535|le<<16,oe=ht,ie=Dt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[6],ie=A[6],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[6]=ht=fe&65535|ge<<16,A[6]=Dt=de&65535|le<<16,oe=pt,ie=zt,de=ie&65535,le=ie>>>16,fe=oe&65535,ge=oe>>>16,oe=m[7],ie=A[7],de+=ie&65535,le+=ie>>>16,fe+=oe&65535,ge+=oe>>>16,le+=de>>>16,fe+=le>>>16,ge+=fe>>>16,m[7]=pt=fe&65535|ge<<16,A[7]=zt=de&65535|le<<16,Jt+=128,f-=128}return f}function Je(m,A,k){var f=new Int32Array(8),I=new Int32Array(8),W=new Uint8Array(256),q,se=k;for(f[0]=1779033703,f[1]=3144134277,f[2]=1013904242,f[3]=2773480762,f[4]=1359893119,f[5]=2600822924,f[6]=528734635,f[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,tn(f,I,A,k),k%=128,q=0;q<k;q++)W[q]=A[se-k+q];for(W[k]=128,k=256-128*(k<112?1:0),W[k-9]=0,U(W,k-8,se/536870912|0,se<<3),tn(f,I,W,k),q=0;q<8;q++)U(m,8*q,f[q],I[q]);return 0}function ut(m,A){var k=n(),f=n(),I=n(),W=n(),q=n(),se=n(),ae=n(),we=n(),Ee=n();ee(k,m[1],m[0]),ee(Ee,A[1],A[0]),v(k,k,Ee),re(f,m[0],m[1]),re(Ee,A[0],A[1]),v(f,f,Ee),v(I,m[3],A[3]),v(I,I,E),v(W,m[2],A[2]),re(W,W,W),ee(q,f,k),ee(se,W,I),re(ae,W,I),re(we,f,k),v(m[0],q,se),v(m[1],we,ae),v(m[2],ae,se),v(m[3],q,we)}function Wt(m,A,k){var f;for(f=0;f<4;f++)$(m[f],A[f],k)}function Ke(m,A){var k=n(),f=n(),I=n();V(I,A[2]),v(k,A[0],I),v(f,A[1],I),B(m,f),m[31]^=h(k)<<7}function dt(m,A,k){var f,I;for(x(m[0],s),x(m[1],a),x(m[2],a),x(m[3],s),I=255;I>=0;--I)f=k[I/8|0]>>(I&7)&1,Wt(m,A,f),ut(A,m),ut(m,m),Wt(m,A,f)}function On(m,A){var k=[n(),n(),n(),n()];x(k[0],S),x(k[1],M),x(k[2],a),v(k[3],S,M),dt(m,k,A)}function it(m,A,k){var f=new Uint8Array(64),I=[n(),n(),n(),n()],W;for(k||r(A,32),Je(f,A,32),f[0]&=248,f[31]&=127,f[31]|=64,On(I,f),Ke(m,I),W=0;W<32;W++)A[W+32]=m[W];return 0}var gt=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 c(m,A){var k,f,I,W;for(f=63;f>=32;--f){for(k=0,I=f-32,W=f-12;I<W;++I)A[I]+=k-16*A[f]*gt[I-(f-32)],k=Math.floor((A[I]+128)/256),A[I]-=k*256;A[I]+=k,A[f]=0}for(k=0,I=0;I<32;I++)A[I]+=k-(A[31]>>4)*gt[I],k=A[I]>>8,A[I]&=255;for(I=0;I<32;I++)A[I]-=k*gt[I];for(f=0;f<32;f++)A[f+1]+=A[f]>>8,m[f]=A[f]&255}function g(m){var A=new Float64Array(64),k;for(k=0;k<64;k++)A[k]=m[k];for(k=0;k<64;k++)m[k]=0;c(m,A)}function b(m,A,k,f){var I=new Uint8Array(64),W=new Uint8Array(64),q=new Uint8Array(64),se,ae,we=new Float64Array(64),Ee=[n(),n(),n(),n()];Je(I,f,32),I[0]&=248,I[31]&=127,I[31]|=64;var Ze=k+64;for(se=0;se<k;se++)m[64+se]=A[se];for(se=0;se<32;se++)m[32+se]=I[32+se];for(Je(q,m.subarray(32),k+32),g(q),On(Ee,q),Ke(m,Ee),se=32;se<64;se++)m[se]=f[se];for(Je(W,m,k+64),g(W),se=0;se<64;se++)we[se]=0;for(se=0;se<32;se++)we[se]=q[se];for(se=0;se<32;se++)for(ae=0;ae<32;ae++)we[se+ae]+=W[se]*I[ae];return c(m.subarray(32),we),Ze}function F(m,A){var k=n(),f=n(),I=n(),W=n(),q=n(),se=n(),ae=n();return x(m[2],a),w(m[1],A),G(I,m[1]),v(W,I,p),ee(I,I,m[2]),re(W,m[2],W),G(q,W),G(se,q),v(ae,se,q),v(k,ae,I),v(k,k,W),Y(k,k),v(k,k,I),v(k,k,W),v(k,k,W),v(m[0],k,W),G(f,m[0]),v(f,f,W),N(f,I)&&v(m[0],m[0],R),G(f,m[0]),v(f,f,W),N(f,I)?-1:(h(m[0])===A[31]>>7&&ee(m[0],s,m[0]),v(m[3],m[0],m[1]),0)}function H(m,A,k,f){var I,W=new Uint8Array(32),q=new Uint8Array(64),se=[n(),n(),n(),n()],ae=[n(),n(),n(),n()];if(k<64||F(ae,f))return-1;for(I=0;I<k;I++)m[I]=A[I];for(I=0;I<32;I++)m[I+32]=f[I];if(Je(q,m,k),g(q),dt(se,ae,q),On(ae,A.subarray(32)),ut(se,ae),Ke(W,se),k-=64,j(A,0,W,0)){for(I=0;I<k;I++)m[I]=0;return-1}for(I=0;I<k;I++)m[I]=A[I+64];return k}var te=32,pe=24,Pe=32,Fe=16,st=32,Re=32,Le=32,Rn=32,wt=32,kt=pe,Sr=Pe,At=Fe,lt=64,Sn=32,mt=64,bt=32,nr=64;t.lowlevel={crypto_core_hsalsa20:L,crypto_stream_xor:Me,crypto_stream:ce,crypto_stream_salsa20_xor:Z,crypto_stream_salsa20:X,crypto_onetimeauth:ne,crypto_onetimeauth_verify:u,crypto_verify_16:J,crypto_verify_32:j,crypto_secretbox:l,crypto_secretbox_open:y,crypto_scalarmult:ue,crypto_scalarmult_base:he,crypto_box_beforenm:Se,crypto_box_afternm:Ae,crypto_box:qe,crypto_box_open:Qe,crypto_box_keypair:ve,crypto_hash:Je,crypto_sign:b,crypto_sign_keypair:it,crypto_sign_open:H,crypto_secretbox_KEYBYTES:te,crypto_secretbox_NONCEBYTES:pe,crypto_secretbox_ZEROBYTES:Pe,crypto_secretbox_BOXZEROBYTES:Fe,crypto_scalarmult_BYTES:st,crypto_scalarmult_SCALARBYTES:Re,crypto_box_PUBLICKEYBYTES:Le,crypto_box_SECRETKEYBYTES:Rn,crypto_box_BEFORENMBYTES:wt,crypto_box_NONCEBYTES:kt,crypto_box_ZEROBYTES:Sr,crypto_box_BOXZEROBYTES:At,crypto_sign_BYTES:lt,crypto_sign_PUBLICKEYBYTES:Sn,crypto_sign_SECRETKEYBYTES:mt,crypto_sign_SEEDBYTES:bt,crypto_hash_BYTES:nr,gf:n,D:p,L:gt,pack25519:B,unpack25519:w,M:v,A:re,S:G,Z:ee,pow2523:Y,add:ut,set25519:x,modL:c,scalarmult:dt,scalarbase:On};function Mt(m,A){if(m.length!==te)throw new Error("bad key size");if(A.length!==pe)throw new Error("bad nonce size")}function Tt(m,A){if(m.length!==Le)throw new Error("bad public key size");if(A.length!==Rn)throw new Error("bad secret key size")}function Ht(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function _t(m){for(var A=0;A<m.length;A++)m[A]=0}t.randomBytes=function(m){var A=new Uint8Array(m);return r(A,m),A},t.secretbox=function(m,A,k){Ht(m,A,k),Mt(k,A);for(var f=new Uint8Array(Pe+m.length),I=new Uint8Array(f.length),W=0;W<m.length;W++)f[W+Pe]=m[W];return l(I,f,f.length,A,k),I.subarray(Fe)},t.secretbox.open=function(m,A,k){Ht(m,A,k),Mt(k,A);for(var f=new Uint8Array(Fe+m.length),I=new Uint8Array(f.length),W=0;W<m.length;W++)f[W+Fe]=m[W];return f.length<32||y(I,f,f.length,A,k)!==0?null:I.subarray(Pe)},t.secretbox.keyLength=te,t.secretbox.nonceLength=pe,t.secretbox.overheadLength=Fe,t.scalarMult=function(m,A){if(Ht(m,A),m.length!==Re)throw new Error("bad n size");if(A.length!==st)throw new Error("bad p size");var k=new Uint8Array(st);return ue(k,m,A),k},t.scalarMult.base=function(m){if(Ht(m),m.length!==Re)throw new Error("bad n size");var A=new Uint8Array(st);return he(A,m),A},t.scalarMult.scalarLength=Re,t.scalarMult.groupElementLength=st,t.box=function(m,A,k,f){var I=t.box.before(k,f);return t.secretbox(m,A,I)},t.box.before=function(m,A){Ht(m,A),Tt(m,A);var k=new Uint8Array(wt);return Se(k,m,A),k},t.box.after=t.secretbox,t.box.open=function(m,A,k,f){var I=t.box.before(k,f);return t.secretbox.open(m,A,I)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var m=new Uint8Array(Le),A=new Uint8Array(Rn);return ve(m,A),{publicKey:m,secretKey:A}},t.box.keyPair.fromSecretKey=function(m){if(Ht(m),m.length!==Rn)throw new Error("bad secret key size");var A=new Uint8Array(Le);return he(A,m),{publicKey:A,secretKey:new Uint8Array(m)}},t.box.publicKeyLength=Le,t.box.secretKeyLength=Rn,t.box.sharedKeyLength=wt,t.box.nonceLength=kt,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(m,A){if(Ht(m,A),A.length!==mt)throw new Error("bad secret key size");var k=new Uint8Array(lt+m.length);return b(k,m,m.length,A),k},t.sign.open=function(m,A){if(Ht(m,A),A.length!==Sn)throw new Error("bad public key size");var k=new Uint8Array(m.length),f=H(k,m,m.length,A);if(f<0)return null;for(var I=new Uint8Array(f),W=0;W<I.length;W++)I[W]=k[W];return I},t.sign.detached=function(m,A){for(var k=t.sign(m,A),f=new Uint8Array(lt),I=0;I<f.length;I++)f[I]=k[I];return f}
97,t.sign.detached.verify=function(m,A,k){if(Ht(m,A,k),A.length!==lt)throw new Error("bad signature size");if(k.length!==Sn)throw new Error("bad public key size");var f=new Uint8Array(lt+m.length),I=new Uint8Array(lt+m.length),W;for(W=0;W<lt;W++)f[W]=A[W];for(W=0;W<m.length;W++)f[W+lt]=m[W];return H(I,f,f.length,k)>=0},t.sign.keyPair=function(){var m=new Uint8Array(Sn),A=new Uint8Array(mt);return it(m,A),{publicKey:m,secretKey:A}},t.sign.keyPair.fromSecretKey=function(m){if(Ht(m),m.length!==mt)throw new Error("bad secret key size");for(var A=new Uint8Array(Sn),k=0;k<A.length;k++)A[k]=m[32+k];return{publicKey:A,secretKey:new Uint8Array(m)}},t.sign.keyPair.fromSeed=function(m){if(Ht(m),m.length!==bt)throw new Error("bad seed size");for(var A=new Uint8Array(Sn),k=new Uint8Array(mt),f=0;f<32;f++)k[f]=m[f];return it(A,k,!0),{publicKey:A,secretKey:k}},t.sign.publicKeyLength=Sn,t.sign.secretKeyLength=mt,t.sign.seedLength=bt,t.sign.signatureLength=lt,t.hash=function(m){Ht(m);var A=new Uint8Array(nr);return Je(A,m,m.length),A},t.hash.hashLength=nr,t.verify=function(m,A){return Ht(m,A),m.length===0||A.length===0||m.length!==A.length?!1:P(m,0,A,0,m.length)===0},t.setPRNG=function(m){r=m},function(){var m=typeof self<"u"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var A=65536;t.setPRNG(function(k,f){var I,W=new Uint8Array(f);for(I=0;I<f;I+=A)m.getRandomValues(W.subarray(I,I+Math.min(f-I,A)));for(I=0;I<f;I++)k[I]=W[I];_t(W)})}else typeof Ow<"u"&&(m=Fy,m&&m.randomBytes&&t.setPRNG(function(k,f){var I,W=m.randomBytes(f);for(I=0;I<f;I++)k[I]=W[I];_t(W)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(Cw);var Gc={},Ra={};Ra.byteLength=$w;Ra.toByteArray=Rw;Ra.fromByteArray=Lw;var vr=[],Kn=[],jw=typeof Uint8Array<"u"?Uint8Array:Array,Cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var qo=0,Iw=Cl.length;qo<Iw;++qo)vr[qo]=Cl[qo],Kn[Cl.charCodeAt(qo)]=qo;Kn["-".charCodeAt(0)]=62;Kn["_".charCodeAt(0)]=63;function Wy(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function $w(e){var t=Wy(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Pw(e,t,n){return(t+n)*3/4-n}function Rw(e){var t,n=Wy(e),r=n[0],o=n[1],i=new jw(Pw(e,r,o)),s=0,a=o>0?r-4:r,d;for(d=0;d<a;d+=4)t=Kn[e.charCodeAt(d)]<<18|Kn[e.charCodeAt(d+1)]<<12|Kn[e.charCodeAt(d+2)]<<6|Kn[e.charCodeAt(d+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=t&255;return o===2&&(t=Kn[e.charCodeAt(d)]<<2|Kn[e.charCodeAt(d+1)]>>4,i[s++]=t&255),o===1&&(t=Kn[e.charCodeAt(d)]<<10|Kn[e.charCodeAt(d+1)]<<4|Kn[e.charCodeAt(d+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function Bw(e){return vr[e>>18&63]+vr[e>>12&63]+vr[e>>6&63]+vr[e&63]}function Uw(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Bw(r));return o.join("")}function Lw(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(Uw(e,s,s+i>a?a:s+i));return r===1?(t=e[n-1],o.push(vr[t>>2]+vr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(vr[t>>10]+vr[t>>4&63]+vr[t<<2&63]+"=")),o.join("")}var sd={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */sd.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,d=(1<<a)-1,p=d>>1,E=-7,S=n?o-1:0,M=n?-1:1,R=e[t+S];for(S+=M,i=R&(1<<-E)-1,R>>=-E,E+=a;E>0;i=i*256+e[t+S],S+=M,E-=8);for(s=i&(1<<-E)-1,i>>=-E,E+=r;E>0;s=s*256+e[t+S],S+=M,E-=8);if(i===0)i=1-p;else{if(i===d)return s?NaN:(R?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-p}return(R?-1:1)*s*Math.pow(2,i-r)};sd.write=function(e,t,n,r,o,i){var s,a,d,p=i*8-o-1,E=(1<<p)-1,S=E>>1,M=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=r?0:i-1,U=r?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=E):(s=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+S>=1?t+=M/d:t+=M*Math.pow(2,1-S),t*d>=2&&(s++,d/=2),s+S>=E?(a=0,s=E):s+S>=1?(a=(t*d-1)*Math.pow(2,o),s=s+S):(a=t*Math.pow(2,S-1)*Math.pow(2,o),s=0));o>=8;e[n+R]=a&255,R+=U,a/=256,o-=8);for(s=s<<o|a,p+=o;p>0;e[n+R]=s&255,R+=U,s/=256,p-=8);e[n+R-U]|=P*128};/*!
98 * The buffer module from node.js, for the browser.
99 *
100 * @author   Feross Aboukhadijeh <https://feross.org>
101 * @license  MIT
102 */(function(e){const t=Ra,n=sd,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=T,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const c=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(c,g),c.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(c){if(c>
vendor: 23,620 bytes, line 102
102o)throw new RangeError('The value "'+c+'" is invalid for option "size"');const g=new Uint8Array(c);return Object.setPrototypeOf(g,a.prototype),g}function a(c,g,b){if(typeof c=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(c)}return d(c,g,b)}a.poolSize=8192;function d(c,g,b){if(typeof c=="string")return M(c,g);if(ArrayBuffer.isView(c))return U(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);if(Ke(c,ArrayBuffer)||c&&Ke(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ke(c,SharedArrayBuffer)||c&&Ke(c.buffer,SharedArrayBuffer)))return P(c,g,b);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=c.valueOf&&c.valueOf();if(F!=null&&F!==c)return a.from(F,g,b);const H=J(c);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return a.from(c[Symbol.toPrimitive]("string"),g,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c)}a.from=function(c,g,b){return d(c,g,b)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function p(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function E(c,g,b){return p(c),c<=0?s(c):g!==void 0?typeof b=="string"?s(c).fill(g,b):s(c).fill(g):s(c)}a.alloc=function(c,g,b){return E(c,g,b)};function S(c){return p(c),s(c<0?0:j(c)|0)}a.allocUnsafe=function(c){return S(c)},a.allocUnsafeSlow=function(c){return S(c)};function M(c,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const b=_(c,g)|0;let F=s(b);const H=F.write(c,g);return H!==b&&(F=F.slice(0,H)),F}function R(c){const g=c.length<0?0:j(c.length)|0,b=s(g);for(let F=0;F<g;F+=1)b[F]=c[F]&255;return b}function U(c){if(Ke(c,Uint8Array)){const g=new Uint8Array(c);return P(g.buffer,g.byteOffset,g.byteLength)}return R(c)}function P(c,g,b){if(g<0||c.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(c.byteLength<g+(b||0))throw new RangeError('"length" is outside of buffer bounds');let F;return g===void 0&&b===void 0?F=new Uint8Array(c):b===void 0?F=new Uint8Array(c,g):F=new Uint8Array(c,g,b),Object.setPrototypeOf(F,a.prototype),F}function J(c){if(a.isBuffer(c)){const g=j(c.length)|0,b=s(g);return b.length===0||c.copy(b,0,0,g),b}if(c.length!==void 0)return typeof c.length!="number"||dt(c.length)?s(0):R(c);if(c.type==="Buffer"&&Array.isArray(c.data))return R(c.data)}function j(c){if(c>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return c|0}function T(c){return+c!=c&&(c=0),a.alloc(+c)}a.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==a.prototype},a.compare=function(c,g){if(Ke(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),Ke(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(c)||!a.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===g)return 0;let b=c.length,F=g.length;for(let H=0,te=Math.min(b,F);H<te;++H)if(c[H]!==g[H]){b=c[H],F=g[H];break}return b<F?-1:F<b?1:0},a.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(c,g){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return a.alloc(0);let b;if(g===void 0)for(g=0,b=0;b<c.length;++b)g+=c[b].length;const F=a.allocUnsafe(g);let H=0;for(b=0;b<c.length;++b){let te=c[b];if(Ke(te,Uint8Array))H+te.length>F.length?(a.isBuffer(te)||(te=a.from(te)),te.copy(F,H)):Uint8Array.prototype.set.call(F,te,H);else if(a.isBuffer(te))te.copy(F,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=te.length}return F};function _(c,g){if(a.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||Ke(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof c);const b=c.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&b===0)return 0;let H=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return tt(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return ut(c).length;default:if(H)return F?-1:tt(c).length;g=(""+g).toLowerCase(),H=!0}}a.byteLength=_;function C(c,g,b){let F=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,g>>>=0,b<=g))return"";for(c||(c="utf8");;)switch(c){case"hex":return B(this,g,b);case"utf8":case"utf-8":return l(this,g,b);case"ascii":return O(this,g,b);case"latin1":case"binary":return $(this,g,b);case"base64":return u(this,g,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,g,b);default:if(F)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),F=!0}}a.prototype._isBuffer=!0;function L(c,g,b){const F=c[g];c[g]=c[b],c[b]=F}a.prototype.swap16=function(){const c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<c;g+=2)L(this,g,g+1);return this},a.prototype.swap32=function(){const c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<c;g+=4)L(this,g,g+3),L(this,g+1,g+2);return this},a.prototype.swap64=function(){const c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<c;g+=8)L(this,g,g+7),L(this,g+1,g+6),L(this,g+2,g+5),L(this,g+3,g+4);return this},a.prototype.toString=function(){const c=this.length;return c===0?"":arguments.length===0?l(this,0,c):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(c){if(!a.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:a.compare(this,c)===0},a.prototype.inspect=function(){let c="";const g=e.INSPECT_MAX_BYTES;return c=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(c+=" ... "),"<Buffer "+c+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(c,g,b,F,H){if(Ke(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),!a.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(g===void 0&&(g=0),b===void 0&&(b=c?c.length:0),F===void 0&&(F=0),H===void 0&&(H=this.length),g<0||b>c.length||F<0||H>this.length)throw new RangeError("out of range index");if(F>=H&&g>=b)return 0;if(F>=H)return-1;if(g>=b)return 1;if(g>>>=0,b>>>=0,F>>>=0,H>>>=0,this===c)return 0;let te=H-F,pe=b-g;const Pe=Math.min(te,pe),Fe=this.slice(F,H),st=c.slice(g,b);for(let Re=0;Re<Pe;++Re)if(Fe[Re]!==st[Re]){te=Fe[Re],pe=st[Re];break}return te<pe?-1:pe<te?1:0};function z(c,g,b,F,H){if(c.length===0)return-1;if(typeof b=="string"?(F=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,dt(b)&&(b=H?0:c.length-1),b<0&&(b=c.length+b),b>=c.length){if(H)return-1;b=c.length-1}else if(b<0)if(H)b=0;else return-1;if(typeof g=="string"&&(g=a.from(g,F)),a.isBuffer(g))return g.length===0?-1:Z(c,g,b,F,H);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(c,g,b):Uint8Array.prototype.lastIndexOf.call(c,g,b):Z(c,[g],b,F,H);throw new TypeError("val must be string, number or Buffer")}function Z(c,g,b,F,H){let te=1,pe=c.length,Pe=g.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(c.length<2||g.length<2)return-1;te=2,pe/=2,Pe/=2,b/=2}function Fe(Re,Le){return te===1?Re[Le]:Re.readUInt16BE(Le*te)}let st;if(H){let Re=-1;for(st=b;st<pe;st++)if(Fe(c,st)===Fe(g,Re===-1?0:st-Re)){if(Re===-1&&(Re=st),st-Re+1===Pe)return Re*te}else Re!==-1&&(st-=st-Re),Re=-1}else for(b+Pe>pe&&(b=pe-Pe),st=b;st>=0;st--){let Re=!0;for(let Le=0;Le<Pe;Le++)if(Fe(c,st+Le)!==Fe(g,Le)){Re=!1;break}if(Re)return st}return-1}a.prototype.includes=function(c,g,b){return this.indexOf(c,g,b)!==-1},a.prototype.indexOf=function(c,g,b){return z(this,c,g,b,!0)},a.prototype.lastIndexOf=function(c,g,b){return z(this,c,g,b,!1)};function X(c,g,b,F){b=Number(b)||0;const H=c.length-b;F?(F=Number(F),F>H&&(F=H)):F=H;const te=g.length;F>te/2&&(F=te/2);let pe;for(pe=0;pe<F;++pe){const Pe=parseInt(g.substr(pe*2,2),16);if(dt(Pe))return pe;c[b+pe]=Pe}return pe}function ce(c,g,b,F){return Wt(tt(g,c.length-b),c,b,F)}function Me(c,g,b,F){return Wt(tn(g),c,b,F)}function Q(c,g,b,F){return Wt(ut(g),c,b,F)}function ne(c,g,b,F){return Wt(Je(g,c.length-b),c,b,F)}a.prototype.write=function(c,g,b,F){if(g===void 0)F="utf8",b=this.length,g=0;else if(b===void 0&&typeof g=="string")F=g,b=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(b)?(b=b>>>0,F===void 0&&(F="utf8")):(F=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const H=this.length-g;if((b===void 0||b>H)&&(b=H),c.length>0&&(b<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let te=!1;for(;;)switch(F){case"hex":return X(this,c,g,b);case"utf8":case"utf-8":return ce(this,c,g,b);case"ascii":case"latin1":case"binary":return Me(this,c,g,b);case"base64":return Q(this,c,g,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,c,g,b);default:if(te)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function u(c,g,b){return g===0&&b===c.length?t.fromByteArray(c):t.fromByteArray(c.slice(g,b))}function l(c,g,b){b=Math.min(c.length,b);const F=[];let H=g;for(;H<b;){const te=c[H];let pe=null,Pe=te>239?4:te>223?3:te>191?2:1;if(H+Pe<=b){let Fe,st,Re,Le;switch(Pe){case 1:te<128&&(pe=te);break;case 2:Fe=c[H+1],(Fe&192)===128&&(Le=(te&31)<<6|Fe&63,Le>127&&(pe=Le));break;case 3:Fe=c[H+1],st=c[H+2],(Fe&192)===128&&(st&192)===128&&(Le=(te&15)<<12|(Fe&63)<<6|st&63,Le>2047&&(Le<55296||Le>57343)&&(pe=Le));break;case 4:Fe=c[H+1],st=c[H+2],Re=c[H+3],(Fe&192)===128&&(st&192)===128&&(Re&192)===128&&(Le=(te&15)<<18|(Fe&63)<<12|(st&63)<<6|Re&63,Le>65535&&Le<1114112&&(pe=Le))}}pe===null?(pe=65533,Pe=1):pe>65535&&(pe-=65536,F.push(pe>>>10&1023|55296),pe=56320|pe&1023),F.push(pe),H+=Pe}return x(F)}const y=4096;function x(c){const g=c.length;if(g<=y)return String.fromCharCode.apply(String,c);let b="",F=0;for(;F<g;)b+=String.fromCharCode.apply(String,c.slice(F,F+=y));return b}function O(c,g,b){let F="";b=Math.min(c.length,b);for(let H=g;H<b;++H)F+=String.fromCharCode(c[H]&127);return F}function $(c,g,b){let F="";b=Math.min(c.length,b);for(let H=g;H<b;++H)F+=String.fromCharCode(c[H]);return F}function B(c,g,b){const F=c.length;(!g||g<0)&&(g=0),(!b||b<0||b>F)&&(b=F);let H="";for(let te=g;te<b;++te)H+=On[c[te]];return H}function N(c,g,b){const F=c.slice(g,b);let H="";for(let te=0;te<F.length-1;te+=2)H+=String.fromCharCode(F[te]+F[te+1]*256);return H}a.prototype.slice=function(c,g){const b=this.length;c=~~c,g=g===void 0?b:~~g,c<0?(c+=b,c<0&&(c=0)):c>b&&(c=b),g<0?(g+=b,g<0&&(g=0)):g>b&&(g=b),g<c&&(g=c);const F=this.subarray(c,g);return Object.setPrototypeOf(F,a.prototype),F};function h(c,g,b){if(c%1!==0||c<0)throw new RangeError("offset is not uint");if(c+g>b)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(c,g,b){c=c>>>0,g=g>>>0,b||h(c,g,this.length);let F=this[c],H=1,te=0;for(;++te<g&&(H*=256);)F+=this[c+te]*H;return F},a.prototype.readUintBE=a.prototype.readUIntBE=function(c,g,b){c=c>>>0,g=g>>>0,b||h(c,g,this.length);let F=this[c+--g],H=1;for(;g>0&&(H*=256);)F+=this[c+--g]*H;return F},a.prototype.readUint8=a.prototype.readUInt8=function(c,g){return c=c>>>0,g||h(c,1,this.length),this[c]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(c,g){return c=c>>>0,g||h(c,2,this.length),this[c]|this[c+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(c,g){return c=c>>>0,g||h(c,2,this.length),this[c]<<8|this[c+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(c,g){return c=c>>>0,g||h(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(c,g){return c=c>>>0,g||h(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},a.prototype.readBigUInt64LE=it(function(c){c=c>>>0,Ae(c,"offset");const g=this[c],b=this[c+7];(g===void 0||b===void 0)&&ye(c,this.length-8);const F=g+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24,H=this[++c]+this[++c]*2**8+this[++c]*2**16+b*2**24;return BigInt(F)+(BigInt(H)<<BigInt(32))}),a.prototype.readBigUInt64BE=it(function(c){c=c>>>0,Ae(c,"offset");const g=this[c],b=this[c+7];(g===void 0||b===void 0)&&ye(c,this.length-8);const F=g*2**24+this[++c]*2**16+this[++c]*2**8+this[++c],H=this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+b;return(BigInt(F)<<BigInt(32))+BigInt(H)}),a.prototype.readIntLE=function(c,g,b){c=c>>>0,g=g>>>0,b||h(c,g,this.length);let F=this[c],H=1,te=0;for(;++te<g&&(H*=256);)F+=this[c+te]*H;return H*=128,F>=H&&(F-=Math.pow(2,8*g)),F},a.prototype.readIntBE=function(c,g,b){c=c>>>0,g=g>>>0,b||h(c,g,this.length);let F=g,H=1,te=this[c+--F];for(;F>0&&(H*=256);)te+=this[c+--F]*H;return H*=128,te>=H&&(te-=Math.pow(2,8*g)),te},a.prototype.readInt8=function(c,g){return c=c>>>0,g||h(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},a.prototype.readInt16LE=function(c,g){c=c>>>0,g||h(c,2,this.length);const b=this[c]|this[c+1]<<8;return b&32768?b|4294901760:b},a.prototype.readInt16BE=function(c,g){c=c>>>0,g||h(c,2,this.length);const b=this[c+1]|this[c]<<8;return b&32768?b|4294901760:b},a.prototype.readInt32LE=function(c,g){return c=c>>>0,g||h(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},a.prototype.readInt32BE=function(c,g){return c=c>>>0,g||h(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},a.prototype.readBigInt64LE=it(function(c){c=c>>>0,Ae(c,"offset");const g=this[c],b=this[c+7];(g===void 0||b===void 0)&&ye(c,this.length-8);const F=this[c+4]+this[c+5]*2**8+this[c+6]*2**16+(b<<24);return(BigInt(F)<<BigInt(32))+BigInt(g+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24)}),a.prototype.readBigInt64BE=it(function(c){c=c>>>0,Ae(c,"offset");const g=this[c],b=this[c+7];(g===void 0||b===void 0)&&ye(c,this.length-8);const F=(g<<24)+this[++c]*2**16+this[++c]*2**8+this[++c];return(BigInt(F)<<BigInt(32))+BigInt(this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+b)}),a.prototype.readFloatLE=function(c,g){return c=c>>>0,g||h(c,4,this.length),n.read(this,c,!0,23,4)},a.prototype.readFloatBE=function(c,g){return c=c>>>0,g||h(c,4,this.length),n.read(this,c,!1,23,4)},a.prototype.readDoubleLE=function(c,g){return c=c>>>0,g||h(c,8,this.length),n.read(this,c,!0,52,8)},a.prototype.readDoubleBE=function(c,g){return c=c>>>0,g||h(c,8,this.length),n.read(this,c,!1,52,8)};function w(c,g,b,F,H,te){if(!a.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>H||g<te)throw new RangeError('"value" argument is out of bounds');if(b+F>c.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(c,g,b,F){if(c=+c,g=g>>>0,b=b>>>0,!F){const pe=Math.pow(2,8*b)-1;w(this,c,g,b,pe,0)}let H=1,te=0;for(this[g]=c&255;++te<b&&(H*=256);)this[g+te]=c/H&255;return g+b},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(c,g,b,F){if(c=+c,g=g>>>0,b=b>>>0,!F){const pe=Math.pow(2,8*b)-1;w(this,c,g,b,pe,0)}let H=b-1,te=1;for(this[g+H]=c&255;--H>=0&&(te*=256);)this[g+H]=c/te&255;return g+b},a.prototype.writeUint8=a.prototype.writeUInt8=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,1,255,0),this[g]=c&255,g+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,2,65535,0),this[g]=c&255,this[g+1]=c>>>8,g+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,2,65535,0),this[g]=c>>>8,this[g+1]=c&255,g+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,4,4294967295,0),this[g+3]=c>>>24,this[g+2]=c>>>16,this[g+1]=c>>>8,this[g]=c&255,g+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,4,4294967295,0),this[g]=c>>>24,this[g+1]=c>>>16,this[g+2]=c>>>8,this[g+3]=c&255,g+4};function re(c,g,b,F,H){Se(g,F,H,c,b,7);let te=Number(g&BigInt(4294967295));c[b++]=te,te=te>>8,c[b++]=te,te=te>>8,c[b++]=te,te=te>>8,c[b++]=te;let pe=Number(g>>BigInt(32)&BigInt(4294967295));return c[b++]=pe,pe=pe>>8,c[b++]=pe,pe=pe>>8,c[b++]=pe,pe=pe>>8,c[b++]=pe,b}function ee(c,g,b,F,H){Se(g,F,H,c,b,7);let te=Number(g&BigInt(4294967295));c[b+7]=te,te=te>>8,c[b+6]=te,te=te>>8,c[b+5]=te,te=te>>8,c[b+4]=te;let pe=Number(g>>BigInt(32)&BigInt(4294967295));return c[b+3]=pe,pe=pe>>8,c[b+2]=pe,pe=pe>>8,c[b+1]=pe,pe=pe>>8,c[b]=pe,b+8}a.prototype.writeBigUInt64LE=it(function(c,g=0){return re(this,c,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=it(function(c,g=0){return ee(this,c,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(c,g,b,F){if(c=+c,g=g>>>0,!F){const Pe=Math.pow(2,8*b-1);w(this,c,g,b,Pe-1,-Pe)}let H=0,te=1,pe=0;for(this[g]=c&255;++H<b&&(te*=256);)c<0&&pe===0&&this[g+H-1]!==0&&(pe=1),this[g+H]=(c/te>>0)-pe&255;return g+b},a.prototype.writeIntBE=function(c,g,b,F){if(c=+c,g=g>>>0,!F){const Pe=Math.pow(2,8*b-1);w(this,c,g,b,Pe-1,-Pe)}let H=b-1,te=1,pe=0;for(this[g+H]=c&255;--H>=0&&(te*=256);)c<0&&pe===0&&this[g+H+1]!==0&&(pe=1),this[g+H]=(c/te>>0)-pe&255;return g+b},a.prototype.writeInt8=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,1,127,-128),c<0&&(c=255+c+1),this[g]=c&255,g+1},a.prototype.writeInt16LE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,2,32767,-32768),this[g]=c&255,this[g+1]=c>>>8,g+2},a.prototype.writeInt16BE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,2,32767,-32768),this[g]=c>>>8,this[g+1]=c&255,g+2},a.prototype.writeInt32LE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,4,2147483647,-2147483648),this[g]=c&255,this[g+1]=c>>>8,this[g+2]=c>>>16,this[g+3]=c>>>24,g+4},a.prototype.writeInt32BE=function(c,g,b){return c=+c,g=g>>>0,b||w(this,c,g,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[g]=c>>>24,this[g+1]=c>>>16,this[g+2]=c>>>8,this[g+3]=c&255,g+4},a.prototype.writeBigInt64LE=it(function(c,g=0){return re(this,c,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=it(function(c,g=0){return ee(this,c,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function v(c,g,b,F,H,te){if(b+F>c.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function G(c,g,b,F,H){return g=+g,b=b>>>0,H||v(c,g,b,4),n.write(c,g,b,F,23,4),b+4}a.prototype.writeFloatLE=function(c,g,b){return G(this,c,g,!0,b)},a.prototype.writeFloatBE=function(c,g,b){return G(this,c,g,!1,b)};function V(c,g,b,F,H){return g=+g,b=b>>>0,H||v(c,g,b,8),n.write(c,g,b,F,52,8),b+8}a.prototype.writeDoubleLE=function(c,g,b){return V(this,c,g,!0,b)},a.prototype.writeDoubleBE=function(c,g,b){return V(this,c,g,!1,b)},a.prototype.copy=function(c,g,b,F){if(!a.isBuffer(c))throw new TypeError("argument should be a Buffer");if(b||(b=0),!F&&F!==0&&(F=this.length),g>=c.length&&(g=c.length),g||(g=0),F>0&&F<b&&(F=b),F===b||c.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),c.length-g<F-b&&(F=c.length-g+b);const H=F-b;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,b,F):Uint8Array.prototype.set.call(c,this.subarray(b,F),g),H},a.prototype.fill=function(c,g,b,F){if(typeof c=="string"){if(typeof g=="string"?(F=g,g=0,b=this.length):typeof b=="string"&&(F=b,b=this.length),F!==void 0&&typeof F!="string")throw new TypeError("encoding must be a string");if(typeof F=="string"&&!a.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(c.length===1){const te=c.charCodeAt(0);(F==="utf8"&&te<128||F==="latin1")&&(c=te)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(g<0||this.length<g||this.length<b)throw new RangeError("Out of range index");if(b<=g)return this;g=g>>>0,b=b===void 0?this.length:b>>>0,c||(c=0);let H;if(typeof c=="number")for(H=g;H<b;++H)this[H]=c;else{const te=a.isBuffer(c)?c:a.from(c,F),pe=te.length;if(pe===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(H=0;H<b-g;++H)this[H+g]=te[H%pe]}return this};const Y={};function ue(c,g,b){Y[c]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${c}]`,this.stack,delete this.name}get code(){return c}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${c}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(c){return c?`${c} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(c,g){return`The "${c}" argument must be of type number. Received type ${typeof g}`},TypeError),ue("ERR_OUT_OF_RANGE",function(c,g,b){let F=`The value of "${c}" is out of range.`,H=b;return Number.isInteger(b)&&Math.abs(b)>2**32?H=he(String(b)):typeof b=="bigint"&&(H=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(H=he(H)),H+="n"),F+=` It must be ${g}. Received ${H}`,F},RangeError);function he(c){let g="",b=c.length;const F=c[0]==="-"?1:0;for(;b>=F+4;b-=3)g=`_${c.slice(b-3,b)}${g}`;return`${c.slice(0,b)}${g}`}function ve(c,g,b){Ae(g,"offset"),(c[g]===void 0||c[g+b]===void 0)&&ye(g,c.length-(b+1))}function Se(c,g,b,F,H,te){if(c>b||c<g){const pe=typeof g=="bigint"?"n":"";let Pe;throw te>3?g===0||g===BigInt(0)?Pe=`>= 0${pe} and < 2${pe} ** ${(te+1)*8}${pe}`:Pe=`>= -(2${pe} ** ${(te+1)*8-1}${pe}) and < 2 ** ${(te+1)*8-1}${pe}`:Pe=`>= ${g}${pe} and <= ${b}${pe}`,new Y.ERR_OUT_OF_RANGE("value",Pe,c)}ve(F,H,te)}function Ae(c,g){if(typeof c!="number")throw new Y.ERR_INVALID_ARG_TYPE(g,"number",c)}function ye(c,g,b){throw Math.floor(c)!==c?(Ae(c,b),new Y.ERR_OUT_OF_RANGE(b||"offset","an integer",c)):g<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${g}`,c)}const qe=/[^+/0-9A-Za-z-_]/g;function Qe(c){if(c=c.split("=")[0],c=c.trim().replace(qe,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function tt(c,g){g=g||1/0;let b;const F=c.length;let H=null;const te=[];for(let pe=0;pe<F;++pe){if(b=c.charCodeAt(pe),b>55295&&b<57344){if(!H){if(b>56319){(g-=3)>-1&&te.push(239,191,189);continue}else if(pe+1===F){(g-=3)>-1&&te.push(239,191,189);continue}H=b;continue}if(b<56320){(g-=3)>-1&&te.push(239,191,189),H=b;continue}b=(H-55296<<10|b-56320)+65536}else H&&(g-=3)>-1&&te.push(239,191,189);if(H=null,b<128){if((g-=1)<0)break;te.push(b)}else if(b<2048){if((g-=2)<0)break;te.push(b>>6|192,b&63|128)}
102else if(b<65536){if((g-=3)<0)break;te.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((g-=4)<0)break;te.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return te}function tn(c){const g=[];for(let b=0;b<c.length;++b)g.push(c.charCodeAt(b)&255);return g}function Je(c,g){let b,F,H;const te=[];for(let pe=0;pe<c.length&&!((g-=2)<0);++pe)b=c.charCodeAt(pe),F=b>>8,H=b%256,te.push(H),te.push(F);return te}function ut(c){return t.toByteArray(Qe(c))}function Wt(c,g,b,F){let H;for(H=0;H<F&&!(H+b>=g.length||H>=c.length);++H)g[H+b]=c[H];return H}function Ke(c,g){return c instanceof g||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===g.name}function dt(c){return c!==c}const On=function(){const c="0123456789abcdef",g=new Array(256);for(let b=0;b<16;++b){const F=b*16;for(let H=0;H<16;++H)g[F+H]=c[b]+c[H]}return g}();function it(c){return typeof BigInt>"u"?gt:c}function gt(){throw new Error("BigInt not supported")}})(Gc);var yr={exports:{}};(function(e){(function(t,n){function r(u,l){if(!u)throw new Error(l||"Assertion failed")}function o(u,l){u.super_=l;var y=function(){};y.prototype=l.prototype,u.prototype=new y,u.prototype.constructor=u}function i(u,l,y){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((l==="le"||l==="be")&&(y=l,l=10),this._init(u||0,l||10,y||"be"))}
vendor: 42,587 bytes, lines 102-108
102typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=Fy.Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,l){return u.cmp(l)>0?u:l},i.min=function(u,l){return u.cmp(l)<0?u:l},i.prototype._init=function(u,l,y){if(typeof u=="number")return this._initNumber(u,l,y);if(typeof u=="object")return this._initArray(u,l,y);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),u=u.toString().replace(/\s+/g,"");var x=0;u[0]==="-"&&(x++,this.negative=1),x<u.length&&(l===16?this._parseHex(u,x,y):(this._parseBase(u,l,x),y==="le"&&this._initArray(this.toArray(),l,y)))},i.prototype._initNumber=function(u,l,y){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),y==="le"&&this._initArray(this.toArray(),l,y)},i.prototype._initArray=function(u,l,y){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var O,$,B=0;if(y==="be")for(x=u.length-1,O=0;x>=0;x-=3)$=u[x]|u[x-1]<<8|u[x-2]<<16,this.words[O]|=$<<B&67108863,this.words[O+1]=$>>>26-B&67108863,B+=24,B>=26&&(B-=26,O++);else if(y==="le")for(x=0,O=0;x<u.length;x+=3)$=u[x]|u[x+1]<<8|u[x+2]<<16,this.words[O]|=$<<B&67108863,this.words[O+1]=$>>>26-B&67108863,B+=24,B>=26&&(B-=26,O++);return this._strip()};function a(u,l){var y=u.charCodeAt(l);if(y>=48&&y<=57)return y-48;if(y>=65&&y<=70)return y-55;if(y>=97&&y<=102)return y-87;r(!1,"Invalid character in "+u)}function d(u,l,y){var x=a(u,y);return y-1>=l&&(x|=a(u,y-1)<<4),x}i.prototype._parseHex=function(u,l,y){this.length=Math.ceil((u.length-l)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var O=0,$=0,B;if(y==="be")for(x=u.length-1;x>=l;x-=2)B=d(u,l,x)<<O,this.words[$]|=B&67108863,O>=18?(O-=18,$+=1,this.words[$]|=B>>>26):O+=8;else{var N=u.length-l;for(x=N%2===0?l+1:l;x<u.length;x+=2)B=d(u,l,x)<<O,this.words[$]|=B&67108863,O>=18?(O-=18,$+=1,this.words[$]|=B>>>26):O+=8}this._strip()};function p(u,l,y,x){for(var O=0,$=0,B=Math.min(u.length,y),N=l;N<B;N++){var h=u.charCodeAt(N)-48;O*=x,h>=49?$=h-49+10:h>=17?$=h-17+10:$=h,r(h>=0&&$<x,"Invalid character"),O+=$}return O}i.prototype._parseBase=function(u,l,y){this.words=[0],this.length=1;for(var x=0,O=1;O<=67108863;O*=l)x++;x--,O=O/l|0;for(var $=u.length-y,B=$%x,N=Math.min($,$-B)+y,h=0,w=y;w<N;w+=x)h=p(u,w,w+x,l),this.imuln(O),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(B!==0){var re=1;for(h=p(u,w,u.length,l),w=0;w<B;w++)re*=l;this.imuln(re),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(u){u.words=new Array(this.length);for(var l=0;l<this.length;l++)u.words[l]=this.words[l];u.length=this.length,u.negative=this.negative,u.red=this.red};function E(u,l){u.words=l.words,u.length=l.length,u.negative=l.negative,u.red=l.red}if(i.prototype._move=function(u){E(u,this)},i.prototype.clone=function(){var u=new i(null);return this.copy(u),u},i.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=S}catch{i.prototype.inspect=S}else i.prototype.inspect=S;function S(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],R=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],U=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(u,l){u=u||10,l=l|0||1;var y;if(u===16||u==="hex"){y="";for(var x=0,O=0,$=0;$<this.length;$++){var B=this.words[$],N=((B<<x|O)&16777215).toString(16);O=B>>>24-x&16777215,x+=2,x>=26&&(x-=26,$--),O!==0||$!==this.length-1?y=M[6-N.length]+N+y:y=N+y}for(O!==0&&(y=O.toString(16)+y);y.length%l!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(u===(u|0)&&u>=2&&u<=36){var h=R[u],w=U[u];y="";var re=this.clone();for(re.negative=0;!re.isZero();){var ee=re.modrn(w).toString(u);re=re.idivn(w),re.isZero()?y=ee+y:y=M[h-ee.length]+ee+y}for(this.isZero()&&(y="0"+y);y.length%l!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(u,l){return this.toArrayLike(s,u,l)}),i.prototype.toArray=function(u,l){return this.toArrayLike(Array,u,l)};var P=function(u,l){return u.allocUnsafe?u.allocUnsafe(l):new u(l)};i.prototype.toArrayLike=function(u,l,y){this._strip();var x=this.byteLength(),O=y||Math.max(1,x);r(x<=O,"byte array longer than desired length"),r(O>0,"Requested array length <= 0");var $=P(u,O),B=l==="le"?"LE":"BE";return this["_toArrayLike"+B]($,x),$},i.prototype._toArrayLikeLE=function(u,l){for(var y=0,x=0,O=0,$=0;O<this.length;O++){var B=this.words[O]<<$|x;u[y++]=B&255,y<u.length&&(u[y++]=B>>8&255),y<u.length&&(u[y++]=B>>16&255),$===6?(y<u.length&&(u[y++]=B>>24&255),x=0,$=0):(x=B>>>24,$+=2)}if(y<u.length)for(u[y++]=x;y<u.length;)u[y++]=0},i.prototype._toArrayLikeBE=function(u,l){for(var y=u.length-1,x=0,O=0,$=0;O<this.length;O++){var B=this.words[O]<<$|x;u[y--]=B&255,y>=0&&(u[y--]=B>>8&255),y>=0&&(u[y--]=B>>16&255),$===6?(y>=0&&(u[y--]=B>>24&255),x=0,$=0):(x=B>>>24,$+=2)}if(y>=0)for(u[y--]=x;y>=0;)u[y--]=0},Math.clz32?i.prototype._countBits=function(u){return 32-Math.clz32(u)}:i.prototype._countBits=function(u){var l=u,y=0;return l>=4096&&(y+=13,l>>>=13),l>=64&&(y+=7,l>>>=7),l>=8&&(y+=4,l>>>=4),l>=2&&(y+=2,l>>>=2),y+l},i.prototype._zeroBits=function(u){if(u===0)return 26;var l=u,y=0;return(l&8191)===0&&(y+=13,l>>>=13),(l&127)===0&&(y+=7,l>>>=7),(l&15)===0&&(y+=4,l>>>=4),(l&3)===0&&(y+=2,l>>>=2),(l&1)===0&&y++,y},i.prototype.bitLength=function(){var u=this.words[this.length-1],l=this._countBits(u);return(this.length-1)*26+l};function J(u){for(var l=new Array(u.bitLength()),y=0;y<l.length;y++){var x=y/26|0,O=y%26;l[y]=u.words[x]>>>O&1}return l}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,l=0;l<this.length;l++){var y=this._zeroBits(this.words[l]);if(u+=y,y!==26)break}return u},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},i.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]|u.words[l];return this._strip()},i.prototype.ior=function(u){return r((this.negative|u.negative)===0),this.iuor(u)},i.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var l;this.length>u.length?l=u:l=this;for(var y=0;y<l.length;y++)this.words[y]=this.words[y]&u.words[y];return this.length=l.length,this._strip()},i.prototype.iand=function(u){return r((this.negative|u.negative)===0),this.iuand(u)},i.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var l,y;this.length>u.length?(l=this,y=u):(l=u,y=this);for(var x=0;x<y.length;x++)this.words[x]=l.words[x]^y.words[x];if(this!==l)for(;x<l.length;x++)this.words[x]=l.words[x];return this.length=l.length,this._strip()},i.prototype.ixor=function(u){return r((this.negative|u.negative)===0),this.iuxor(u)},i.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var l=Math.ceil(u/26)|0,y=u%26;this._expand(l),y>0&&l--;for(var x=0;x<l;x++)this.words[x]=~this.words[x]&67108863;return y>0&&(this.words[x]=~this.words[x]&67108863>>26-y),this._strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,l){r(typeof u=="number"&&u>=0);var y=u/26|0,x=u%26;return this._expand(y+1),l?this.words[y]=this.words[y]|1<<x:this.words[y]=this.words[y]&~(1<<x),this._strip()},i.prototype.iadd=function(u){var l;if(this.negative!==0&&u.negative===0)return this.negative=0,l=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,l=this.isub(u),u.negative=1,l._normSign();var y,x;this.length>u.length?(y=this,x=u):(y=u,x=this);for(var O=0,$=0;$<x.length;$++)l=(y.words[$]|0)+(x.words[$]|0)+O,this.words[$]=l&67108863,O=l>>>26;for(;O!==0&&$<y.length;$++)l=(y.words[$]|0)+O,this.words[$]=l&67108863,O=l>>>26;if(this.length=y.length,O!==0)this.words[this.length]=O,this.length++;else if(y!==this)for(;$<y.length;$++)this.words[$]=y.words[$];return this},i.prototype.add=function(u){var l;return u.negative!==0&&this.negative===0?(u.negative=0,l=this.sub(u),u.negative^=1,l):u.negative===0&&this.negative!==0?(this.negative=0,l=u.sub(this),this.negative=1,l):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var l=this.iadd(u);return u.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var y=this.cmp(u);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,O;y>0?(x=this,O=u):(x=u,O=this);for(var $=0,B=0;B<O.length;B++)l=(x.words[B]|0)-(O.words[B]|0)+$,$=l>>26,this.words[B]=l&67108863;for(;$!==0&&B<x.length;B++)l=(x.words[B]|0)+$,$=l>>26,this.words[B]=l&67108863;if($===0&&B<x.length&&x!==this)for(;B<x.length;B++)this.words[B]=x.words[B];return this.length=Math.max(this.length,B),x!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(u){return this.clone().isub(u)};function j(u,l,y){y.negative=l.negative^u.negative;var x=u.length+l.length|0;y.length=x,x=x-1|0;var O=u.words[0]|0,$=l.words[0]|0,B=O*$,N=B&67108863,h=B/67108864|0;y.words[0]=N;for(var w=1;w<x;w++){for(var re=h>>>26,ee=h&67108863,v=Math.min(w,l.length-1),G=Math.max(0,w-u.length+1);G<=v;G++){var V=w-G|0;O=u.words[V]|0,$=l.words[G]|0,B=O*$+ee,re+=B/67108864|0,ee=B&67108863}y.words[w]=ee|0,h=re|0}return h!==0?y.words[w]=h|0:y.length--,y._strip()}var T=function(u,l,y){var x=u.words,O=l.words,$=y.words,B=0,N,h,w,re=x[0]|0,ee=re&8191,v=re>>>13,G=x[1]|0,V=G&8191,Y=G>>>13,ue=x[2]|0,he=ue&8191,ve=ue>>>13,Se=x[3]|0,Ae=Se&8191,ye=Se>>>13,qe=x[4]|0,Qe=qe&8191,tt=qe>>>13,tn=x[5]|0,Je=tn&8191,ut=tn>>>13,Wt=x[6]|0,Ke=Wt&8191,dt=Wt>>>13,On=x[7]|0,it=On&8191,gt=On>>>13,c=x[8]|0,g=c&8191,b=c>>>13,F=x[9]|0,H=F&8191,te=F>>>13,pe=O[0]|0,Pe=pe&8191,Fe=pe>>>13,st=O[1]|0,Re=st&8191,Le=st>>>13,Rn=O[2]|0,wt=Rn&8191,kt=Rn>>>13,Sr=O[3]|0,At=Sr&8191,lt=Sr>>>13,Sn=O[4]|0,mt=Sn&8191,bt=Sn>>>13,nr=O[5]|0,Mt=nr&8191,Tt=nr>>>13,Ht=O[6]|0,_t=Ht&8191,m=Ht>>>13,A=O[7]|0,k=A&8191,f=A>>>13,I=O[8]|0,W=I&8191,q=I>>>13,se=O[9]|0,ae=se&8191,we=se>>>13;y.negative=u.negative^l.negative,y.length=19,N=Math.imul(ee,Pe),h=Math.imul(ee,Fe),h=h+Math.imul(v,Pe)|0,w=Math.imul(v,Fe);var Ee=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,N=Math.imul(V,Pe),h=Math.imul(V,Fe),h=h+Math.imul(Y,Pe)|0,w=Math.imul(Y,Fe),N=N+Math.imul(ee,Re)|0,h=h+Math.imul(ee,Le)|0,h=h+Math.imul(v,Re)|0,w=w+Math.imul(v,Le)|0;var Ze=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,N=Math.imul(he,Pe),h=Math.imul(he,Fe),h=h+Math.imul(ve,Pe)|0,w=Math.imul(ve,Fe),N=N+Math.imul(V,Re)|0,h=h+Math.imul(V,Le)|0,h=h+Math.imul(Y,Re)|0,w=w+Math.imul(Y,Le)|0,N=N+Math.imul(ee,wt)|0,h=h+Math.imul(ee,kt)|0,h=h+Math.imul(v,wt)|0,w=w+Math.imul(v,kt)|0;var ke=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(ke>>>26)|0,ke&=67108863,N=Math.imul(Ae,Pe),h=Math.imul(Ae,Fe),h=h+Math.imul(ye,Pe)|0,w=Math.imul(ye,Fe),N=N+Math.imul(he,Re)|0,h=h+Math.imul(he,Le)|0,h=h+Math.imul(ve,Re)|0,w=w+Math.imul(ve,Le)|0,N=N+Math.imul(V,wt)|0,h=h+Math.imul(V,kt)|0,h=h+Math.imul(Y,wt)|0,w=w+Math.imul(Y,kt)|0,N=N+Math.imul(ee,At)|0,h=h+Math.imul(ee,lt)|0,h=h+Math.imul(v,At)|0,w=w+Math.imul(v,lt)|0;var Be=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Be>>>26)|0,Be&=67108863,N=Math.imul(Qe,Pe),h=Math.imul(Qe,Fe),h=h+Math.imul(tt,Pe)|0,w=Math.imul(tt,Fe),N=N+Math.imul(Ae,Re)|0,h=h+Math.imul(Ae,Le)|0,h=h+Math.imul(ye,Re)|0,w=w+Math.imul(ye,Le)|0,N=N+Math.imul(he,wt)|0,h=h+Math.imul(he,kt)|0,h=h+Math.imul(ve,wt)|0,w=w+Math.imul(ve,kt)|0,N=N+Math.imul(V,At)|0,h=h+Math.imul(V,lt)|0,h=h+Math.imul(Y,At)|0,w=w+Math.imul(Y,lt)|0,N=N+Math.imul(ee,mt)|0,h=h+Math.imul(ee,bt)|0,h=h+Math.imul(v,mt)|0,w=w+Math.imul(v,bt)|0;var Ue=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,N=Math.imul(Je,Pe),h=Math.imul(Je,Fe),h=h+Math.imul(ut,Pe)|0,w=Math.imul(ut,Fe),N=N+Math.imul(Qe,Re)|0,h=h+Math.imul(Qe,Le)|0,h=h+Math.imul(tt,Re)|0,w=w+Math.imul(tt,Le)|0,N=N+Math.imul(Ae,wt)|0,h=h+Math.imul(Ae,kt)|0,h=h+Math.imul(ye,wt)|0,w=w+Math.imul(ye,kt)|0,N=N+Math.imul(he,At)|0,h=h+Math.imul(he,lt)|0,h=h+Math.imul(ve,At)|0,w=w+Math.imul(ve,lt)|0,N=N+Math.imul(V,mt)|0,h=h+Math.imul(V,bt)|0,h=h+Math.imul(Y,mt)|0,w=w+Math.imul(Y,bt)|0,N=N+Math.imul(ee,Mt)|0,h=h+Math.imul(ee,Tt)|0,h=h+Math.imul(v,Mt)|0,w=w+Math.imul(v,Tt)|0;var ze=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(ze>>>26)|0,ze&=67108863,N=Math.imul(Ke,Pe),h=Math.imul(Ke,Fe),h=h+Math.imul(dt,Pe)|0,w=Math.imul(dt,Fe),N=N+Math.imul(Je,Re)|0,h=h+Math.imul(Je,Le)|0,h=h+Math.imul(ut,Re)|0,w=w+Math.imul(ut,Le)|0,N=N+Math.imul(Qe,wt)|0,h=h+Math.imul(Qe,kt)|0,h=h+Math.imul(tt,wt)|0,w=w+Math.imul(tt,kt)|0,N=N+Math.imul(Ae,At)|0,h=h+Math.imul(Ae,lt)|0,h=h+Math.imul(ye,At)|0,w=w+Math.imul(ye,lt)|0,N=N+Math.imul(he,mt)|0,h=h+Math.imul(he,bt)|0,h=h+Math.imul(ve,mt)|0,w=w+Math.imul(ve,bt)|0,N=N+Math.imul(V,Mt)|0,h=h+Math.imul(V,Tt)|0,h=h+Math.imul(Y,Mt)|0,w=w+Math.imul(Y,Tt)|0,N=N+Math.imul(ee,_t)|0,h=h+Math.imul(ee,m)|0,h=h+Math.imul(v,_t)|0,w=w+Math.imul(v,m)|0;var Ge=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,N=Math.imul(it,Pe),h=Math.imul(it,Fe),h=h+Math.imul(gt,Pe)|0,w=Math.imul(gt,Fe),N=N+Math.imul(Ke,Re)|0,h=h+Math.imul(Ke,Le)|0,h=h+Math.imul(dt,Re)|0,w=w+Math.imul(dt,Le)|0,N=N+Math.imul(Je,wt)|0,h=h+Math.imul(Je,kt)|0,h=h+Math.imul(ut,wt)|0,w=w+Math.imul(ut,kt)|0,N=N+Math.imul(Qe,At)|0,h=h+Math.imul(Qe,lt)|0,h=h+Math.imul(tt,At)|0,w=w+Math.imul(tt,lt)|0,N=N+Math.imul(Ae,mt)|0,h=h+Math.imul(Ae,bt)|0,h=h+Math.imul(ye,mt)|0,w=w+Math.imul(ye,bt)|0,N=N+Math.imul(he,Mt)|0,h=h+Math.imul(he,Tt)|0,h=h+Math.imul(ve,Mt)|0,w=w+Math.imul(ve,Tt)|0,N=N+Math.imul(V,_t)|0,h=h+Math.imul(V,m)|0,h=h+Math.imul(Y,_t)|0,w=w+Math.imul(Y,m)|0,N=N+Math.imul(ee,k)|0,h=h+Math.imul(ee,f)|0,h=h+Math.imul(v,k)|0,w=w+Math.imul(v,f)|0;var We=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(We>>>26)|0,We&=67108863,N=Math.imul(g,Pe),h=Math.imul(g,Fe),h=h+Math.imul(b,Pe)|0,w=Math.imul(b,Fe),N=N+Math.imul(it,Re)|0,h=h+Math.imul(it,Le)|0,h=h+Math.imul(gt,Re)|0,w=w+Math.imul(gt,Le)|0,N=N+Math.imul(Ke,wt)|0,h=h+Math.imul(Ke,kt)|0,h=h+Math.imul(dt,wt)|0,w=w+Math.imul(dt,kt)|0,N=N+Math.imul(Je,At)|0,h=h+Math.imul(Je,lt)|0,h=h+Math.imul(ut,At)|0,w=w+Math.imul(ut,lt)|0,N=N+Math.imul(Qe,mt)|0,h=h+Math.imul(Qe,bt)|0,h=h+Math.imul(tt,mt)|0,w=w+Math.imul(tt,bt)|0,N=N+Math.imul(Ae,Mt)|0,h=h+Math.imul(Ae,Tt)|0,h=h+Math.imul(ye,Mt)|0,w=w+Math.imul(ye,Tt)|0,N=N+Math.imul(he,_t)|0,h=h+Math.imul(he,m)|0,h=h+Math.imul(ve,_t)|0,w=w+Math.imul(ve,m)|0,N=N+Math.imul(V,k)|0,h=h+Math.imul(V,f)|0,h=h+Math.imul(Y,k)|0,w=w+Math.imul(Y,f)|0,N=N+Math.imul(ee,W)|0,h=h+Math.imul(ee,q)|0,h=h+Math.imul(v,W)|0,w=w+Math.imul(v,q)|0;var Ve=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,N=Math.imul(H,Pe),h=Math.imul(H,Fe),h=h+Math.imul(te,Pe)|0,w=Math.imul(te,Fe),N=N+Math.imul(g,Re)|0,h=h+Math.imul(g,Le)|0,h=h+Math.imul(b,Re)|0,w=w+Math.imul(b,Le)|0,N=N+Math.imul(it,wt)|0,h=h+Math.imul(it,kt)|0,h=h+Math.imul(gt,wt)|0,w=w+Math.imul(gt,kt)|0,N=N+Math.imul(Ke,At)|0,h=h+Math.imul(Ke,lt)|0,h=h+Math.imul(dt,At)|0,w=w+Math.imul(dt,lt)|0,N=N+Math.imul(Je,mt)|0,h=h+Math.imul(Je,bt)|0,h=h+Math.imul(ut,mt)|0,w=w+Math.imul(ut,bt)|0,N=N+Math.imul(Qe,Mt)|0,h=h+Math.imul(Qe,Tt)|0,h=h+Math.imul(tt,Mt)|0,w=w+Math.imul(tt,Tt)|0,N=N+Math.imul(Ae,_t)|0,h=h+Math.imul(Ae,m)|0,h=h+Math.imul(ye,_t)|0,w=w+Math.imul(ye,m)|0,N=N+Math.imul(he,k)|0,h=h+Math.imul(he,f)|0,h=h+Math.imul(ve,k)|0,w=w+Math.imul(ve,f)|0,N=N+Math.imul(V,W)|0,h=h+Math.imul(V,q)|0,h=h+Math.imul(Y,W)|0,w=w+Math.imul(Y,q)|0,N=N+Math.imul(ee,ae)|0,h=h+Math.imul(ee,we)|0,h=h+Math.imul(v,ae)|0,w=w+Math.imul(v,we)|0;var He=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(He>>>26)|0,He&=67108863,N=Math.imul(H,Re),h=Math.imul(H,Le),h=h+Math.imul(te,Re)|0,w=Math.imul(te,Le),N=N+Math.imul(g,wt)|0,h=h+Math.imul(g,kt)|0,h=h+Math.imul(b,wt)|0,w=w+Math.imul(b,kt)|0,N=N+Math.imul(it,At)|0,h=h+Math.imul(it,lt)|0,h=h+Math.imul(gt,At)|0,w=w+Math.imul(gt,lt)|0,N=N+Math.imul(Ke,mt)|0,h=h+Math.imul(Ke,bt)|0,h=h+Math.imul(dt,mt)|0,w=w+Math.imul(dt,bt)|0,N=N+Math.imul(Je,Mt)|0,h=h+Math.imul(Je,Tt)|0,h=h+Math.imul(ut,Mt)|0,w=w+Math.imul(ut,Tt)|0,N=N+Math.imul(Qe,_t)|0,h=h+Math.imul(Qe,m)|0,h=h+Math.imul(tt,_t)|0,w=w+Math.imul(tt,m)|0,N=N+Math.imul(Ae,k)|0,h=h+Math.imul(Ae,f)|0,h=h+Math.imul(ye,k)|0,w=w+Math.imul(ye,f)|0,N=N+Math.imul(he,W)|0,h=h+Math.imul(he,q)|0,h=h+Math.imul(ve,W)|0,w=w+Math.imul(ve,q)|0,N=N+Math.imul(V,ae)|0,h=h+Math.imul(V,we)|0,h=h+Math.imul(Y,ae)|0,w=w+Math.imul(Y,we)|0;var Te=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Te>>>26)|0,Te&=67108863,N=Math.imul(H,wt),h=Math.imul(H,kt),h=h+Math.imul(te,wt)|0,w=Math.imul(te,kt),N=N+Math.imul(g,At)|0,h=h+Math.imul(g,lt)|0,h=h+Math.imul(b,At)|0,w=w+Math.imul(b,lt)|0,N=N+Math.imul(it,mt)|0,h=h+Math.imul(it,bt)|0,h=h+Math.imul(gt,mt)|0,w=w+Math.imul(gt,bt)|0,N=N+Math.imul(Ke,Mt)|0,h=h+Math.imul(Ke,Tt)|0,h=h+Math.imul(dt,Mt)|0,w=w+Math.imul(dt,Tt)|0,N=N+Math.imul(Je,_t)|0,h=h+Math.imul(Je,m)|0,h=h+Math.imul(ut,_t)|0,w=w+Math.imul(ut,m)|0,N=N+Math.imul(Qe,k)|0,h=h+Math.imul(Qe,f)|0,h=h+Math.imul(tt,k)|0,w=w+Math.imul(tt,f)|0,N=N+Math.imul(Ae,W)|0,h=h+Math.imul(Ae,q)|0,h=h+Math.imul(ye,W)|0,w=w+Math.imul(ye,q)|0,N=N+Math.imul(he,ae)|0,h=h+Math.imul(he,we)|0,h=h+Math.imul(ve,ae)|0,w=w+Math.imul(ve,we)|0;var Ie=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,N=Math.imul(H,At),h=Math.imul(H,lt),h=h+Math.imul(te,At)|0,w=Math.imul(te,lt),N=N+Math.imul(g,mt)|0,h=h+Math.imul(g,bt)|0,h=h+Math.imul(b,mt)|0,w=w+Math.imul(b,bt)|0,N=N+Math.imul(it,Mt)|0,h=h+Math.imul(it,Tt)|0,h=h+Math.imul(gt,Mt)|0,w=w+Math.imul(gt,Tt)|0,N=N+Math.imul(Ke,_t)|0,h=h+Math.imul(Ke,m)|0,h=h+Math.imul(dt,_t)|0,w=w+Math.imul(dt,m)|0,N=N+Math.imul(Je,k)|0,h=h+Math.imul(Je,f)|0,h=h+Math.imul(ut,k)|0,w=w+Math.imul(ut,f)|0,N=N+Math.imul(Qe,W)|0,h=h+Math.imul(Qe,q)|0,h=h+Math.imul(tt,W)|0,w=w+Math.imul(tt,q)|0,N=N+Math.imul(Ae,ae)|0,h=h+Math.imul(Ae,we)|0,h=h+Math.imul(ye,ae)|0,w=w+Math.imul(ye,we)|0;var _e=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(_e>>>26)|0,_e&=67108863,N=Math.imul(H,mt),h=Math.imul(H,bt),h=h+Math.imul(te,mt)|0,w=Math.imul(te,bt),N=N+Math.imul(g,Mt)|0,h=h+Math.imul(g,Tt)|0,h=h+Math.imul(b,Mt)|0,w=w+Math.imul(b,Tt)|0,N=N+Math.imul(it,_t)|0,h=h+Math.imul(it,m)|0,h=h+Math.imul(gt,_t)|0,w=w+Math.imul(gt,m)|0,N=N+Math.imul(Ke,k)|0,h=h+Math.imul(Ke,f)|0,h=h+Math.imul(dt,k)|0,w=w+Math.imul(dt,f)|0,N=N+Math.imul(Je,W)|0,h=h+Math.imul(Je,q)|0,h=h+Math.imul(ut,W)|0,w=w+Math.imul(ut,q)|0,N=N+Math.imul(Qe,ae)|0,h=h+Math.imul(Qe,we)|0,h=h+Math.imul(tt,ae)|0,w=w+Math.imul(tt,we)|0;var Oe=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,N=Math.imul(H,Mt),h=Math.imul(H,Tt),h=h+Math.imul(te,Mt)|0,w=Math.imul(te,Tt),N=N+Math.imul(g,_t)|0,h=h+Math.imul(g,m)|0,h=h+Math.imul(b,_t)|0,w=w+Math.imul(b,m)|0,N=N+Math.imul(it,k)|0,h=h+Math.imul(it,f)|0,h=h+Math.imul(gt,k)|0,w=w+Math.imul(gt,f)|0,N=N+Math.imul(Ke,W)|0,h=h+Math.imul(Ke,q)|0,h=h+Math.imul(dt,W)|0,w=w+Math.imul(dt,q)|0,N=N+Math.imul(Je,ae)|0,h=h+Math.imul(Je,we)|0,h=h+Math.imul(ut,ae)|0,w=w+Math.imul(ut,we)|0;var Ce=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,N=Math.imul(H,_t),h=Math.imul(H,m),h=h+Math.imul(te,_t)|0,w=Math.imul(te,m),N=N+Math.imul(g,k)|0,h=h+Math.imul(g,f)|0,h=h+Math.imul(b,k)|0,w=w+Math.imul(b,f)|0,N=N+Math.imul(it,W)|0,h=h+Math.imul(it,q)|0,h=h+Math.imul(gt,W)|0,w=w+Math.imul(gt,q)|0,N=N+Math.imul(Ke,ae)|0,h=h+Math.imul(Ke,we)|0,h=h+Math.imul(dt,ae)|0,w=w+Math.imul(dt,we)|0;var xe=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(xe>>>26)|0,xe&=67108863,N=Math.imul(H,k),h=Math.imul(H,f),h=h+Math.imul(te,k)|0,w=Math.imul(te,f),N=N+Math.imul(g,W)|0,h=h+Math.imul(g,q)|0,h=h+Math.imul(b,W)|0,w=w+Math.imul(b,q)|0,N=N+Math.imul(it,ae)|0,h=h+Math.imul(it,we)|0,h=h+Math.imul(gt,ae)|0,w=w+Math.imul(gt,we)|0;var oe=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(oe>>>26)|0,oe&=67108863,N=Math.imul(H,W),h=Math.imul(H,q),h=h+Math.imul(te,W)|0,w=Math.imul(te,q),N=N+Math.imul(g,ae)|0,h=h+Math.imul(g,we)|0,h=h+Math.imul(b,ae)|0,w=w+Math.imul(b,we)|0;var ie=(B+N|0)+((h&8191)<<13)|0;B=(w+(h>>>13)|0)+(ie>>>26)|0,ie&=67108863,N=Math.imul(H,ae),h=Math.imul(H,we),h=h+Math.imul(te,ae)|0,w=Math.imul(te,we);var de=(B+N|0)+((h&8191)<<13)|0;return B=(w+(h>>>13)|0)+(de>>>26)|0,de&=67108863,$[0]=Ee,$[1]=Ze,$[2]=ke,$[3]=Be,$[4]=Ue,$[5]=ze,$[6]=Ge,$[7]=We,$[8]=Ve,$[9]=He,$[10]=Te,$[11]=Ie,$[12]=_e,$[13]=Oe,$[14]=Ce,$[15]=xe,$[16]=oe,$[17]=ie,$[18]=de,B!==0&&($[19]=B,y.length++),y};Math.imul||(T=j);function _(u,l,y){y.negative=l.negative^u.negative,y.length=u.length+l.length;for(var x=0,O=0,$=0;$<y.length-1;$++){var B=O;O=0;for(var N=x&67108863,h=Math.min($,l.length-1),w=Math.max(0,$-u.length+1);w<=h;w++){var re=$-w,ee=u.words[re]|0,v=l.words[w]|0,G=ee*v,V=G&67108863;B=B+(G/67108864|0)|0,V=V+N|0,N=V&67108863,B=B+(V>>>26)|0,O+=B>>>26,B&=67108863}y.words[$]=N,x=B,B=O}return x!==0?y.words[$]=x:y.length--,y._strip()}function C(u,l,y){return _(u,l,y)}i.prototype.mulTo=function(u,l){var y,x=this.length+u.length;return this.length===10&&u.length===10?y=T(this,u,l):x<63?y=j(this,u,l):x<1024?y=_(this,u,l):y=C(this,u,l),y},i.prototype.mul=function(u){var l=new i(null);return l.words=new Array(this.length+u.length),this.mulTo(u,l)},i.prototype.mulf=function(u){var l=new i(null);return l.words=new Array(this.length+u.length),C(this,u,l)},i.prototype.imul=function(u){return this.clone().mulTo(u,this)},i.prototype.imuln=function(u){var l=u<0;l&&(u=-u),r(typeof u=="number"),r(u<67108864);for(var y=0,x=0;x<this.length;x++){var O=(this.words[x]|0)*u,$=(O&67108863)+(y&67108863);y>>=26,y+=O/67108864|0,y+=$>>>26,this.words[x]=$&67108863}return y!==0&&(this.words[x]=y,this.length++),l?this.ineg():this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var l=J(u);if(l.length===0)return new i(1);for(var y=this,x=0;x<l.length&&l[x]===0;x++,y=y.sqr());if(++x<l.length)for(var O=y.sqr();x<l.length;x++,O=O.sqr())l[x]!==0&&(y=y.mul(O));return y},i.prototype.iushln=function(u){r(typeof u=="number"&&u>=0);var l=u%26,y=(u-l)/26,x=67108863>>>26-l<<26-l,O;if(l!==0){var $=0;for(O=0;O<this.length;O++){var B=this.words[O]&x,N=(this.words[O]|0)-B<<l;this.words[O]=N|$,$=B>>>26-l}$&&(this.words[O]=$,this.length++)}if(y!==0){for(O=this.length-1;O>=0;O--)this.words[O+y]=this.words[O];for(O=0;O<y;O++)this.words[O]=0;this.length+=y}return this._strip()},i.prototype.ishln=function(u){return r(this.negative===0),this.iushln(u)},i.prototype.iushrn=function(u,l,y){r(typeof u=="number"&&u>=0);var x;l?x=(l-l%26)/26:x=0;var O=u%26,$=Math.min((u-O)/26,this.length),B=67108863^67108863>>>O<<O,N=y;if(x-=$,x=Math.max(0,x),N){for(var h=0;h<$;h++)N.words[h]=this.words[h];N.length=$}if($!==0)if(this.length>$)for(this.length-=$,h=0;h<this.length;h++)this.words[h]=this.words[h+$];else this.words[0]=0,this.length=1;var w=0;for(h=this.length-1;h>=0&&(w!==0||h>=x);h--){var re=this.words[h]|0;this.words[h]=w<<26-O|re>>>O,w=re&B}return N&&w!==0&&(N.words[N.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(u,l,y){return r(this.negative===0),this.iushrn(u,l,y)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var l=u%26,y=(u-l)/26,x=1<<l;if(this.length<=y)return!1;var O=this.words[y];return!!(O&x)},i.prototype.imaskn=function(u){r(typeof u=="number"&&u>=0);var l=u%26,y=(u-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(l!==0&&y++,this.length=Math.min(y,this.length),l!==0){var x=67108863^67108863>>>l<<l;this.words[this.length-1]&=x}return this._strip()},i.prototype.maskn=function(u){return this.clone().imaskn(u)},i.prototype.iaddn=function(u){return r(typeof u=="number"),r(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<=u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},i.prototype._iaddn=function(u){this.words[0]+=u;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},i.prototype.addn=function(u){return this.clone().iaddn(u)},i.prototype.subn=function(u){return this.clone().isubn(u)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(u,l,y){var x=u.length+y,O;this._expand(x);var $,B=0;for(O=0;O<u.length;O++){$=(this.words[O+y]|0)+B;var N=(u.words[O]|0)*l;$-=N&67108863,B=($>>26)-(N/67108864|0),this.words[O+y]=$&67108863}for(;O<this.length-y;O++)$=(this.words[O+y]|0)+B,B=$>>26,this.words[O+y]=$&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,O=0;O<this.length;O++)$=-(this.words[O]|0)+B,B=$>>26,this.words[O]=$&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(u,l){var y=this.length-u.length,x=this.clone(),O=u,$=O.words[O.length-1]|0,B=this._countBits($);y=26-B,y!==0&&(O=O.ushln(y),x.iushln(y),$=O.words[O.length-1]|0);var N=x.length-O.length,h;if(l!=="mod"){h=new i(null),h.length=N+1,h.words=new Array(h.length);for(var w=0;w<h.length;w++)h.words[w]=0}var re=x.clone()._ishlnsubmul(O,1,N);re.negative===0&&(x=re,h&&(h.words[N]=1));for(var ee=N-1;ee>=0;ee--){var v=(x.words[O.length+ee]|0)*67108864+(x.words[O.length+ee-1]|0);for(v=Math.min(v/$|0,67108863),x._ishlnsubmul(O,v,ee);x.negative!==0;)v--,x.negative=0,x._ishlnsubmul(O,1,ee),x.isZero()||(x.negative^=1);h&&(h.words[ee]=v)}return h&&h._strip(),x._strip(),l!=="div"&&y!==0&&x.iushrn(y),{div:h||null,mod:x}},i.prototype.divmod=function(u,l,y){if(r(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var x,O,$;return this.negative!==0&&u.negative===0?($=this.neg().divmod(u,l),l!=="mod"&&(x=$.div.neg()),l!=="div"&&(O=$.mod.neg(),y&&O.negative!==0&&O.iadd(u)),{div:x,mod:O}):this.negative===0&&u.negative!==0?($=this.divmod(u.neg(),l),l!=="mod"&&(x=$.div.neg()),{div:x,mod:$.mod}):(this.negative&u.negative)!==0?($=this.neg().divmod(u.neg(),l),l!=="div"&&(O=$.mod.neg(),y&&O.negative!==0&&O.isub(u)),{div:$.div,mod:O}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?l==="div"?{div:this.divn(u.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modrn(u.words[0]))}:this._wordDiv(u,l)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var l=this.divmod(u);if(l.mod.isZero())return l.div;var y=l.div.negative!==0?l.mod.isub(u):l.mod,x=u.ushrn(1),O=u.andln(1),$=y.cmp(x);return $<0||O===1&&$===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modrn=function(u){var l=u<0;l&&(u=-u),r(u<=67108863);for(var y=(1<<26)%u,x=0,O=this.length-1;O>=0;O--)x=(y*x+(this.words[O]|0))%u;return l?-x:x},i.prototype.modn=function(u){return this.modrn(u)},i.prototype.idivn=function(u){var l=u<0;l&&(u=-u),r(u<=67108863);for(var y=0,x=this.length-1;x>=0;x--){var O=(this.words[x]|0)+y*67108864;this.words[x]=O/u|0,y=O%u}return this._strip(),l?this.ineg():this},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var l=this,y=u.clone();l.negative!==0?l=l.umod(u):l=l.clone();for(var x=new i(1),O=new i(0),$=new i(0),B=new i(1),N=0;l.isEven()&&y.isEven();)l.iushrn(1),y.iushrn(1),++N;for(var h=y.clone(),w=l.clone();!l.isZero();){for(var re=0,ee=1;(l.words[0]&ee)===0&&re<26;++re,ee<<=1);if(re>0)for(l.iushrn(re);re-- >0;)(x.isOdd()||O.isOdd())&&(x.iadd(h),O.isub(w)),x.iushrn(1),O.iushrn(1);for(var v=0,G=1;(y.words[0]&G)===0&&v<26;++v,G<<=1);if(v>0)for(y.iushrn(v);v-- >0;)($.isOdd()||B.isOdd())&&($.iadd(h),B.isub(w)),$.iushrn(1),B.iushrn(1);l.cmp(y)>=0?(l.isub(y),x.isub($),O.isub(B)):(y.isub(l),$.isub(x),B.isub(O))}return{a:$,b:B,gcd:y.iushln(N)}},i.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var l=this,y=u.clone();l.negative!==0?l=l.umod(u):l=l.clone();for(var x=new i(1),O=new i(0),$=y.clone();l.cmpn(1)>0&&y.cmpn(1)>0;){for(var B=0,N=1;(l.words[0]&N)===0&&B<26;++B,N<<=1);if(B>0)for(l.iushrn(B);B-- >0;)x.isOdd()&&x.iadd($),x.iushrn(1);for(var h=0,w=1;(y.words[0]&w)===0&&h<26;++h,w<<=1);if(h>0)for(y.iushrn(h);h-- >0;)O.isOdd()&&O.iadd($),O.iushrn(1);l.cmp(y)>=0?(l.isub(y),x.isub(O)):(y.isub(l),O.isub(x))}var re;return l.cmpn(1)===0?re=x:re=O,re.cmpn(0)<0&&re.iadd(u),re},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var l=this.clone(),y=u.clone();l.negative=0,y.negative=0;for(var x=0;l.isEven()&&y.isEven();x++)l.iushrn(1),y.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;y.isEven();)y.iushrn(1);var O=l.cmp(y);if(O<0){var $=l;l=y,y=$}else if(O===0||y.cmpn(1)===0)break;l.isub(y)}while(!0);return y.iushln(x)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){r(typeof u=="number");var l=u%26,y=(u-l)/26,x=1<<l;if(this.length<=y)return this._expand(y+1),this.words[y]|=x,this;for(var O=x,$=y;O!==0&&$<this.length;$++){var B=this.words[$]|0;B+=O,O=B>>>26,B&=67108863,this.words[$]=B}return O!==0&&(this.words[$]=O,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var l=u<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var y;if(this.length>1)y=1;else{l&&(u=-u),r(u<=67108863,"Number is too big");var x=this.words[0]|0;y=x===u?0:x<u?-1:1}return this.negative!==0?-y|0:y},i.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var l=this.ucmp(u);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var l=0,y=this.length-1;y>=0;y--){var x=this.words[y]|0,O=u.words[y]|0;if(x!==O){x<O?l=-1:x>O&&(l=1);break}}return l},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new Q(u)},i.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var L={k256:null,p224:null,p192:null,p25519:null};function z(u,l){this.name=u,this.p=new i(l,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},z.prototype.ireduce=function(u){var l=u,y;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),y=l.bitLength();while(y>this.n);var x=y<this.n?-1:l.ucmp(this.p);return x===0?(l.words[0]=0,l.length=1):x>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},z.prototype.split=function(u,l){u.iushrn(this.n,0,l)},z.prototype.imulK=function(u){return u.imul(this.k)};function Z(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(Z,z),Z.prototype.split=function(u,l){for(var y=4194303,x=Math.min(u.length,9),O=0;O<x;O++)l.words[O]=u.words[O];if(l.length=x,u.length<=9){u.words[0]=0,u.length=1;return}var $=u.words[9];for(l.words[l.length++]=$&y,O=10;O<u.length;O++){var B=u.words[O]|0;u.words[O-10]=(B&y)<<4|$>>>22,$=B}$>>>=22,u.words[O-10]=$,$===0&&u.length>10?u.length-=10:u.length-=9},Z.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var l=0,y=0;y<u.length;y++){var x=u.words[y]|0;l+=x*977,u.words[y]=l&67108863,l=x*64+(l/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function X(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(X,z);function ce(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(ce,z);function Me(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(Me,z),Me.prototype.imulK=function(u){for(var l=0,y=0;y<u.length;y++){var x=(u.words[y]|0)*19+l,O=x&67108863;x>>>=26,u.words[y]=O,l=x}return l!==0&&(u.words[u.length++]=l),u},i._prime=function(u){if(L[u])return L[u];var l;if(u==="k256")l=new Z;else if(u==="p224")l=new X;else if(u==="p192")l=new ce;else if(u==="p25519")l=new Me;else throw new Error("Unknown prime "+u);return L[u]=l,l};function Q(u){if(typeof u=="string"){var l=i._prime(u);this.m=l.p,this.prime=l}else r(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}Q.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},Q.prototype._verify2=function(u,l){r((u.negative|l.negative)===0,"red works only with positives"),r(u.red&&u.red===l.red,"red works only with red numbers")},Q.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(E(u,u.umod(this.m)._forceRed(this)),u)},Q.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},Q.prototype.add=function(u,l){this._verify2(u,l);var y=u.add(l);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},Q.prototype.iadd=function(u,l){this._verify2(u,l);var y=u.iadd(l);return y.cmp(this.m)>=0&&y.isub(this.m),y},Q.prototype.sub=function(u,l){this._verify2(u,l);var y=u.sub(l);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},Q.prototype.isub=function(u,l){this._verify2(u,l);var y=u.isub(l);return y.cmpn(0)<0&&y.iadd(this.m),y},Q.prototype.shl=function(u,l){return this._verify1(u),this.imod(u.ushln(l))},Q.prototype.imul=function(u,l){return this._verify2(u,l),this.imod(u.imul(l))},Q.prototype.mul=function(u,l){return this._verify2(u,l),this.imod(u.mul(l))},Q.prototype.isqr=function(u){return this.imul(u,u.clone())},Q.prototype.sqr=function(u){return this.mul(u,u)},Q.prototype.sqrt=function(u){if(u.isZero())return u.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var y=this.m.add(new i(1)).iushrn(2);return this.pow(u,y)}for(var x=this.m.subn(1),O=0;!x.isZero()&&x.andln(1)===0;)O++,x.iushrn(1);r(!x.isZero());var $=new i(1).toRed(this),B=$.redNeg(),N=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new i(2*h*h).toRed(this);this.pow(h,N).cmp(B)!==0;)h.redIAdd(B);for(var w=this.pow(h,x),re=this.pow(u,x.addn(1).iushrn(1)),ee=this.pow(u,x),v=O;ee.cmp($)!==0;){for(var G=ee,V=0;G.cmp($)!==0;V++)G=G.redSqr();r(V<v);var Y=this.pow(w,new i(1).iushln(v-V-1));re=re.redMul(Y),w=Y.redSqr(),ee=ee.redMul(w),v=V}return re},Q.prototype.invm=function(u){var l=u._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},Q.prototype.pow=function(u,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return u.clone();var y=4,x=new Array(1<<y);x[0]=new i(1).toRed(this),x[1]=u;for(var O=2;O<x.length;O++)x[O]=this.mul(x[O-1],u);var $=x[0],B=0,N=0,h=l.bitLength()%26;for(h===0&&(h=26),O=l.length-1;O>=0;O--){for(var w=l.words[O],re=h-1;re>=0;re--){var ee=w>>re&1;if($!==x[0]&&($=this.sqr($)),ee===0&&B===0){N=0;continue}B<<=1,B|=ee,N++,!(N!==y&&(O!==0||re!==0))&&($=this.mul($,x[B]),N=0,B=0)}h=26}return $},Q.prototype.convertTo=function(u){var l=u.umod(this.m);return l===u?l.clone():l},Q.prototype.convertFrom=function(u){var l=u.clone();return l.red=null,l},i.mont=function(u){return new ne(u)};function ne(u){Q.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(ne,Q),ne.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ne.prototype.convertFrom=function(u){var l=this.imod(u.mul(this.rinv));return l.red=null,l},ne.prototype.imul=function(u,l){if(u.isZero()||l.isZero())return u.words[0]=0,u.length=1,u;var y=u.imul(l),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=y.isub(x).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},ne.prototype.mul=function(u,l){if(u.isZero()||l.isZero())return new i(0)._forceRed(this);var y=u.mul(l),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=y.isub(x).iushrn(this.shift),$=O;return O.cmp(this.m)>=0?$=O.isub(this.m):O.cmpn(0)<0&&($=O.iadd(this.m)),$._forceRed(this)},ne.prototype.invm=function(u){var l=this.imod(u._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(e,Ca)})(yr);var Dw={exports:{}};/**
103 * [js-sha3]{@link https://github.com/emn178/js-sha3}
104 *
105 * @version 0.8.0
106 * @author Chen, Yi-Cyuan [[email protected]]
107 * @copyright Chen, Yi-Cyuan 2015-2018
108 * @license MIT
109 */(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",o=r?window:{};o.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",s=!o.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?o=Ca:i&&(o=self);var a=!o.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,d=!o.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),E=[31,7936,2031616,520093696],S=[4,1024,262144,67108864],M=[1,256,65536,16777216],R=[6,1536,393216,100663296],U=[0,8,16,24],P=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],J=[224,256,384,512],j=[128,256],T=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};(o.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(v){return Object.prototype.toString.call(v)==="[object Array]"}),d&&(o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(v){return typeof v=="object"&&v.buffer&&v.buffer.constructor===ArrayBuffer});for(var C=function(v,G,V){return function(Y){return new w(v,G,v).update(Y)[V]()}},L=function(v,G,V){return function(Y,ue){return new w(v,G,ue).update(Y)[V]()}},z=function(v,G,V){return function(Y,ue,he,ve){return l["cshake"+v].update(Y,ue,he,ve)[V]()}},Z=function(v,G,V){return function(Y,ue,he,ve){return l["kmac"+v].update(Y,ue,he,ve)[V]()}},X=function(v,G,V,Y){for(var ue=0;ue<T.length;++ue){var he=T[ue];v[he]=G(V,Y,he)}return v},ce=function(v,G){var V=C(v,G,"hex");return V.create=function(){return new w(v,G,v)},V.update=function(Y){return V.create().update(Y)},X(V,C,v,G)},Me=function(v,G){var V=L(v,G,"hex");return V.create=function(Y){return new w(v,G,Y)},V.update=function(Y,ue){return V.create(ue).update(Y)},X(V,L,v,G)},Q=function(v,G){var V=_[v],Y=z(v,G,"hex");return Y.create=function(ue,he,ve){return!he&&!ve?l["shake"+v].create(ue):new w(v,G,ue).bytepad([he,ve],V)},Y.update=function(ue,he,ve,Se){return Y.create(he,ve,Se).update(ue)},X(Y,z,v,G)},ne=function(v,G){var V=_[v],Y=Z(v,G,"hex");return Y.create=function(ue,he,ve){return new re(v,G,he).bytepad(["KMAC",ve],V).bytepad([ue],V)},Y.update=function(ue,he,ve,Se){return Y.create(ue,ve,Se).update(he)},X(Y,Z,v,G)},u=[{name:"keccak",padding:M,bits:J,createMethod:ce},{name:"sha3",padding:R,bits:J,createMethod:ce},{name:"shake",padding:E,bits:j,createMethod:Me},{name:"cshake",padding:S,bits:j,createMethod:Q},{name:"kmac",padding:S,bits:j,createMethod:ne}],l={},y=[],x=0;x<u.length;++x)for(var O=u[x],$=O.bits,B=0;B<$.length;++B){var N=O.name+"_"+$[B];if(y.push(N),l[N]=O.createMethod($[B],O.padding),O.name!=="sha3"){var h=O.name+$[B];y.push(h),l[h]=l[N]}}function w(v,G,V){this.blocks=[],this.s=[],this.padding=G,this.outputBits=V,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(v<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var Y=0;Y<50;++Y)this.s[Y]=0}w.prototype.update=function(v){if(this.finalized)throw new Error(n);var G,V=typeof v;if(V!=="string"){if(V==="object"){if(v===null)throw new Error(t);if(d&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!d||!ArrayBuffer.isView(v)))throw new Error(t)}else throw new Error(t);G=!0}for(var Y=this.blocks,ue=this.byteCount,he=v.length,ve=this.blockCount,Se=0,Ae=this.s,ye,qe;Se<he;){if(this.reset)for(this.reset=!1,Y[0]=this.block,ye=1;ye<ve+1;++ye)Y[ye]=0;if(G)for(ye=this.start;Se<he&&ye<ue;++Se)Y[ye>>2]|=v[Se]<<U[ye++&3];else for(ye=this.start;Se<he&&ye<ue;++Se)qe=v.charCodeAt(Se),qe<128?Y[ye>>2]|=qe<<U[ye++&3]:qe<2048?(Y[ye>>2]|=(192|qe>>6)<<U[ye++&3],Y[ye>>2]|=(128|qe&63)<<U[ye++&3]):qe<55296||qe>=57344?(Y[ye>>2]|=(224|qe>>12)<<U[ye++&3],Y[ye>>2]|=(128|qe>>6&63)<<U[ye++&3],Y[ye>>2]|=(128|qe&63)<<U[ye++&3]):(qe=65536+((qe&1023)<<10|v.charCodeAt(++Se)&1023),Y[ye>>2]|=(240|qe>>18)<<U[ye++&3],Y[ye>>2]|=(128|qe>>12&63)<<U[ye++&3],Y[ye>>2]|=(128|qe>>6&63)<<U[ye++&3],Y[ye>>2]|=(128|qe&63)<<U[ye++&3]);if(this.lastByteIndex=ye,ye>=ue){for(this.start=ye-ue,this.block=Y[ve],ye=0;ye<ve;++ye)Ae[ye]^=Y[ye];ee(Ae),this.reset=!0}else this.start=ye}return this},w.prototype.encode=function(v,G){var V=v&255,Y=1,ue=[V];for(v=v>>8,V=v&255;V>0;)ue.unshift(V),v=v>>8,V=v&255,++Y;return G?ue.push(Y):ue.unshift(Y),this.update(ue),ue.length},w.prototype.encodeString=function(v){var G,V=typeof v;
109if(V!=="string"){if(V==="object"){if(v===null)throw new Error(t);if(d&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!d||!ArrayBuffer.isView(v)))throw new Error(t)}else throw new Error(t);G=!0}var Y=0,ue=v.length;if(G)Y=ue;else for(var he=0;he<v.length;++he){var ve=v.charCodeAt(he);ve<128?Y+=1:ve<2048?Y+=2:ve<55296||ve>=57344?Y+=3:(ve=65536+((ve&1023)<<10|v.charCodeAt(++he)&1023),Y+=4)}return Y+=this.encode(Y*8),this.update(v),Y},w.prototype.bytepad=function(v,G){for(var V=this.encode(G),Y=0;Y<v.length;++Y)V+=this.encodeString(v[Y]);var ue=G-V%G,he=[];return he.length=ue,this.update(he),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,G=this.lastByteIndex,V=this.blockCount,Y=this.s;if(v[G>>2]|=this.padding[G&3],this.lastByteIndex===this.byteCount)for(v[0]=v[V],G=1;G<V+1;++G)v[G]=0;for(v[V-1]|=2147483648,G=0;G<V;++G)Y[G]^=v[G];ee(Y)}},w.prototype.toString=w.prototype.hex=function(){this.finalize();for(var v=this.blockCount,G=this.s,V=this.outputBlocks,Y=this.extraBytes,ue=0,he=0,ve="",Se;he<V;){for(ue=0;ue<v&&he<V;++ue,++he)Se=G[ue],ve+=p[Se>>4&15]+p[Se&15]+p[Se>>12&15]+p[Se>>8&15]+p[Se>>20&15]+p[Se>>16&15]+p[Se>>28&15]+p[Se>>24&15];he%v===0&&(ee(G),ue=0)}return Y&&(Se=G[ue],ve+=p[Se>>4&15]+p[Se&15],Y>1&&(ve+=p[Se>>12&15]+p[Se>>8&15]),Y>2&&(ve+=p[Se>>20&15]+p[Se>>16&15])),ve},w.prototype.arrayBuffer=function(){this.finalize();var v=this.blockCount,G=this.s,V=this.outputBlocks,Y=this.extraBytes,ue=0,he=0,ve=this.outputBits>>3,Se;Y?Se=new ArrayBuffer(V+1<<2):Se=new ArrayBuffer(ve);for(var Ae=new Uint32Array(Se);he<V;){for(ue=0;ue<v&&he<V;++ue,++he)Ae[he]=G[ue];he%v===0&&ee(G)}return Y&&(Ae[ue]=G[ue],Se=Se.slice(0,ve)),Se},w.prototype.buffer=w.prototype.arrayBuffer,w.prototype.digest=w.prototype.array=function(){this.finalize();for(var v=this.blockCount,G=this.s,V=this.outputBlocks,Y=this.extraBytes,ue=0,he=0,ve=[],Se,Ae;he<V;){for(ue=0;ue<v&&he<V;++ue,++he)Se=he<<2,Ae=G[ue],ve[Se]=Ae&255,ve[Se+1]=Ae>>8&255,ve[Se+2]=Ae>>16&255,ve[Se+3]=Ae>>24&255;he%v===0&&ee(G)}return Y&&(Se=he<<2,Ae=G[ue],ve[Se]=Ae&255,Y>1&&(ve[Se+1]=Ae>>8&255),Y>2&&(ve[Se+2]=Ae>>16&255)),ve};function re(v,G,V){w.call(this,v,G,V)}re.prototype=new w,re.prototype.finalize=function(){return this.encode(this.outputBits,!0),w.prototype.finalize.call(this)};var ee=function(v){var G,V,Y,ue,he,ve,Se,Ae,ye,qe,Qe,tt,tn,Je,ut,Wt,Ke,dt,On,it,gt,c,g,b,F,H,te,pe,Pe,Fe,st,Re,Le,Rn,wt,kt,Sr,At,lt,Sn,mt,bt,nr,Mt,Tt,Ht,_t,m,A,k,f,I,W,q,se,ae,we,Ee,Ze,ke,Be,Ue,ze;for(Y=0;Y<48;Y+=2)ue=v[0]^v[10]^v[20]^v[30]^v[40],he=v[1]^v[11]^v[21]^v[31]^v[41],ve=v[2]^v[12]^v[22]^v[32]^v[42],Se=v[3]^v[13]^v[23]^v[33]^v[43],Ae=v[4]^v[14]^v[24]^v[34]^v[44],ye=v[5]^v[15]^v[25]^v[35]^v[45],qe=v[6]^v[16]^v[26]^v[36]^v[46],Qe=v[7]^v[17]^v[27]^v[37]^v[47],tt=v[8]^v[18]^v[28]^v[38]^v[48],tn=v[9]^v[19]^v[29]^v[39]^v[49],G=tt^(ve<<1|Se>>>31),V=tn^(Se<<1|ve>>>31),v[0]^=G,v[1]^=V,v[10]^=G,v[11]^=V,v[20]^=G,v[21]^=V,v[30]^=G,v[31]^=V,v[40]^=G,v[41]^=V,G=ue^(Ae<<1|ye>>>31),V=he^(ye<<1|Ae>>>31),v[2]^=G,v[3]^=V,v[12]^=G,v[13]^=V,v[22]^=G,v[23]^=V,v[32]^=G,v[33]^=V,v[42]^=G,v[43]^=V,G=ve^(qe<<1|Qe>>>31),V=Se^(Qe<<1|qe>>>31),v[4]^=G,v[5]^=V,v[14]^=G,v[15]^=V,v[24]^=G,v[25]^=V,v[34]^=G,v[35]^=V,v[44]^=G,v[45]^=V,G=Ae^(tt<<1|tn>>>31),V=ye^(tn<<1|tt>>>31),v[6]^=G,v[7]^=V,v[16]^=G,v[17]^=V,v[26]^=G,v[27]^=V,v[36]^=G,v[37]^=V,v[46]^=G,v[47]^=V,G=qe^(ue<<1|he>>>31),V=Qe^(he<<1|ue>>>31),v[8]^=G,v[9]^=V,v[18]^=G,v[19]^=V,v[28]^=G,v[29]^=V,v[38]^=G,v[39]^=V,v[48]^=G,v[49]^=V,Je=v[0],ut=v[1],Ht=v[11]<<4|v[10]>>>28,_t=v[10]<<4|v[11]>>>28,pe=v[20]<<3|v[21]>>>29,Pe=v[21]<<3|v[20]>>>29,ke=v[31]<<9|v[30]>>>23,Be=v[30]<<9|v[31]>>>23,bt=v[40]<<18|v[41]>>>14,nr=v[41]<<18|v[40]>>>14,Rn=v[2]<<1|v[3]>>>31,wt=v[3]<<1|v[2]>>>31,Wt=v[13]<<12|v[12]>>>20,Ke=v[12]<<12|v[13]>>>20,m=v[22]<<10|v[23]>>>22,A=v[23]<<10|v[22]>>>22,Fe=v[33]<<13|v[32]>>>19,st=v[32]<<13|v[33]>>>19,Ue=v[42]<<2|v[43]>>>30,ze=v[43]<<2|v[42]>>>30,q=v[5]<<30|v[4]>>>2,se=v[4]<<30|v[5]>>>2,kt=v[14]<<6|v[15]>>>26,Sr=v[15]<<6|v[14]>>>26,dt=v[25]<<11|v[24]>>>21,On=v[24]<<11|v[25]>>>21,k=v[34]<<15|v[35]>>>17,f=v[35]<<15|v[34]>>>17,Re=v[45]<<29|v[44]>>>3,Le=v[44]<<29|v[45]>>>3,b=v[6]<<28|v[7]>>>4,F=v[7]<<28|v[6]>>>4,ae=v[17]<<23|v[16]>>>9,we=v[16]<<23|v[17]>>>9,At=v[26]<<25|v[27]>>>7,lt=v[27]<<25|v[26]>>>7,it=v[36]<<21|v[37]>>>11,gt=v[37]<<21|v[36]>>>11,I=v[47]<<24|v[46]>>>8,W=v[46]<<24|v[47]>>>8,Mt=v[8]<<27|v[9]>>>5,Tt=v[9]<<27|v[8]>>>5,H=v[18]<<20|v[19]>>>12,te=v[19]<<20|v[18]>>>12,Ee=v[29]<<7|v[28]>>>25,Ze=v[28]<<7|v[29]>>>25,Sn=v[38]<<8|v[39]>>>24,mt=v[39]<<8|v[38]>>>24,c=v[48]<<14|v[49]>>>18,g=v[49]<<14|v[48]>>>18,v[0]=Je^~Wt&dt,v[1]=ut^~Ke&On,v[10]=b^~H&pe,v[11]=F^~te&Pe,v[20]=Rn^~kt&At,v[21]=wt^~Sr&lt,v[30]=Mt^~Ht&m,v[31]=Tt^~_t&A,v[40]=q^~ae&Ee,v[41]=se^~we&Ze,v[2]=Wt^~dt&it,v[3]=Ke^~On&gt,v[12]=H^~pe&Fe,v[13]=te^~Pe&st,v[22]=kt^~At&Sn,v[23]=Sr^~lt&mt,v[32]=Ht^~m&k,v[33]=_t^~A&f,v[42]=ae^~Ee&ke,v[43]=we^~Ze&Be,v[4]=dt^~it&c,v[5]=On^~gt&g,v[14]=pe^~Fe&Re,v[15]=Pe^~st&Le,v[24]=At^~Sn&bt,v[25]=lt^~mt&nr,v[34]=m^~k&I,v[35]=A^~f&W,v[44]=Ee^~ke&Ue,v[45]=Ze^~Be&ze,v[6]=it^~c&Je,v[7]=gt^~g&ut,v[16]=Fe^~Re&b,v[17]=st^~Le&F,v[26]=Sn^~bt&Rn,v[27]=mt^~nr&wt,v[36]=k^~I&Mt,v[37]=f^~W&Tt,v[46]=ke^~Ue&q,v[47]=Be^~ze&se,v[8]=c^~Je&Wt,v[9]=g^~ut&Ke,v[18]=Re^~b&H,v[19]=Le^~F&te,v[28]=bt^~Rn&kt,v[29]=nr^~wt&Sr,v[38]=I^~Mt&Ht,v[39]=W^~Tt&_t,v[48]=Ue^~q&ae,v[49]=ze^~se&we,v[0]^=P[Y],v[1]^=P[Y+1]};if(a)e.exports=l;else for(x=0;x<y.length;++x)o[y[x]]=l[y[x]]})()})(Dw);var Dn={},an={};Object.defineProperty(an,"__esModule",{value:!0});an.output=an.exists=an.hash=an.bytes=an.bool=an.number=void 0;function ca(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}an.number=ca;function Hy(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}an.bool=Hy;function ud(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}an.bytes=ud;function Vy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");ca(e.outputLen),ca(e.blockLen)}an.hash=Vy;function Gy(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}an.exists=Gy;function qy(e,t){ud(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}an.output=qy;const zw={number:ca,bool:Hy,bytes:ud,hash:Vy,exists:Gy,output:qy};an.default=zw;var Ai={},Ky={},Ds={};const Fw={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},Ww=Object.freeze(Object.defineProperty({__proto__:null,crypto:Fw},Symbol.toStringTag,{value:"Module"})),Hw=Us(Ww);(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esMo
109dule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const t=Hw,n=C=>new Uint8Array(C.buffer,C.byteOffset,C.byteLength);e.u8=n;const r=C=>new Uint32Array(C.buffer,C.byteOffset,Math.floor(C.byteLength/4));e.u32=r;const o=C=>new DataView(C.buffer,C.byteOffset,C.byteLength);e.createView=o;const i=(C,L)=>C<<32-L|C>>>L;if(e.rotr=i,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},(C,L)=>L.toString(16).padStart(2,"0"));function a(C){if(!(C instanceof Uint8Array))throw new Error("Uint8Array expected");let L="";for(let z=0;z<C.length;z++)L+=s[C[z]];return L}e.bytesToHex=a;function d(C){if(typeof C!="string")throw new TypeError("hexToBytes: expected string, got "+typeof C);if(C.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const L=new Uint8Array(C.length/2);for(let z=0;z<L.length;z++){const Z=z*2,X=C.slice(Z,Z+2),ce=Number.parseInt(X,16);if(Number.isNaN(ce)||ce<0)throw new Error("Invalid byte sequence");L[z]=ce}return L}e.hexToBytes=d;const p=async()=>{};e.nextTick=p;async function E(C,L,z){let Z=Date.now();for(let X=0;X<C;X++){z(X);const ce=Date.now()-Z;ce>=0&&ce<L||(await(0,e.nextTick)(),Z+=ce)}}e.asyncLoop=E;function S(C){if(typeof C!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof C}`);return new TextEncoder().encode(C)}e.utf8ToBytes=S;function M(C){if(typeof C=="string"&&(C=S(C)),!(C instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof C})`);return C}e.toBytes=M;function R(...C){if(!C.every(Z=>Z instanceof Uint8Array))throw new Error("Uint8Array list expected");if(C.length===1)return C[0];const L=C.reduce((Z,X)=>Z+X.length,0),z=new Uint8Array(L);for(let Z=0,X=0;Z<C.length;Z++){const ce=C[Z];z.set(ce,X),X+=ce.length}return z}e.concatBytes=R;class U{clone(){return this._cloneInto()}}e.Hash=U;const P=C=>Object.prototype.toString.call(C)==="[object Object]"&&C.constructor===Object;function J(C,L){if(L!==void 0&&(typeof L!="object"||!P(L)))throw new TypeError("Options should be object or undefined");return Object.assign(C,L)}e.checkOpts=J;function j(C){const L=Z=>C().update(M(Z)).digest(),z=C();return L.outputLen=z.outputLen,L.blockLen=z.blockLen,L.create=()=>C(),L}e.wrapConstructor=j;function T(C){const L=(Z,X)=>C(X).update(M(Z)).digest(),z=C({});return L.outputLen=z.outputLen,L.blockLen=z.blockLen,L.create=Z=>C(Z),L}e.wrapConstructorWithOpts=T;function _(C=32){if(t.crypto.web)return t.crypto.web.getRandomValues(new Uint8Array(C));if(t.crypto.node)return new Uint8Array(t.crypto.node.randomBytes(C).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=_})(Ds);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const t=an,n=Ds;class r extends n.Hash{constructor(s,a){super(),this.finished=!1,this.destroyed=!1,t.default.hash(s);const d=(0,n.toBytes)(a);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const p=this.blockLen,E=new Uint8Array(p);E.set(d.length>p?s.create().update(d).digest():d);for(let S=0;S<E.length;S++)E[S]^=54;this.iHash.update(E),this.oHash=s.create();for(let S=0;S<E.length;S++)E[S]^=106;this.oHash.update(E),E.fill(0)}update(s){return t.default.exists(this),this.iHash.update(s),this}digestInto(s){t.default.exists(this),t.default.bytes(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:a,iHash:d,finished:p,destroyed:E,blockLen:S,outputLen:M}=this;return s=s,s.finished=p,s.destroyed=E,s.blockLen=S,s.outputLen=M,s.oHash=a._cloneInto(s.oHash),s.iHash=d._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const o=(i,s,a)=>new r(i,s).update(a).digest();e.hmac=o,e.hmac.create=(i,s)=>new r(i,s)})(Ky);Object.defineProperty(Ai,"__esModule",{value:!0});Ai.pbkdf2Async=Ai.pbkdf2=void 0;const fu=an,Vw=Ky,gi=Ds;function Qy(e,t,n,r){fu.default.hash(e);const o=(0,gi.checkOpts)({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:a}=o;if(fu.default.number(i),fu.default.number(s),fu.default.number(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,gi.toBytes)(t),p=(0,gi.toBytes)(n),E=new Uint8Array(s),S=Vw.hmac.create(e,d),M=S._cloneInto().update(p);return{c:i,dkLen:s,asyncTick:a,DK:E,PRF:S,PRFSalt:M}}function Jy(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),o.fill(0),n}function Gw(e,t,n,r){const{c:o,dkLen:i,DK:s,PRF:a,PRFSalt:d}=Qy(e,t,n,r);let p;const E=new Uint8Array(4),S=(0,gi.createView)(E),M=new Uint8Array(a.outputLen);for(let R=1,U=0;U<i;R++,U+=a.outputLen){const P=s.subarray(U,U+a.outputLen);S.setInt32(0,R,!1),(p=d._cloneInto(p)).update(E).digestInto(M),P.set(M.subarray(0,P.length));for(let J=1;J<o;J++){a._cloneInto(p).update(M).digestInto(M);for(let j=0;j<P.length;j++)P[j]^=M[j]}}return Jy(a,d,s,p,M)}Ai.pbkdf2=Gw;async function qw(e,t,n,r){const{c:o,dkLen:i,asyncTick:s,DK:a,PRF:d,PRFSalt:p}=Qy(e,t,n,r);let E;const S=new Uint8Array(4),M=(0,gi.createView)(S),R=new Uint8Array(d.outputLen);for(let U=1,P=0;P<i;U++,P+=d.outputLen){const J=a.subarray(P,P+d.outputLen);M.setInt32(0,U,!1),(E=p._cloneInto(E)).update(S).digestInto(R),J.set(R.subarray(0,J.length)),await(0,gi.asyncLoop)(o-1,s,j=>{d._cloneInto(E).update(R).digestInto(R);for(let T=0;T<J.length;T++)J[T]^=R[T]})}return Jy(d,p,a,E,R)}Ai.pbkdf2Async=qw;function qc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Kw(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function Zy(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Qw(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");qc(e.outputLen),qc(e.blockLen)}function Jw(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Zw(e,t){Zy(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const So={number:qc,bool:Kw,bytes:Zy,hash:Qw,exists:Jw,output:Zw};/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Nl=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),dr=(e,t)=>
109e<<32-t|e>>>t,Xw=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Xw)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Yw(e){if(typeof e!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}function ad(e){if(typeof e=="string"&&(e=Yw(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}class Xy{clone(){return this._cloneInto()}}function zs(e){const t=r=>e().update(ad(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function e3(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),d=r?4:0,p=r?0:4;e.setUint32(t+d,s,r),e.setUint32(t+p,a,r)}class ld extends Xy{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Nl(this.buffer)}update(t){So.exists(this);const{view:n,buffer:r,blockLen:o}=this;t=ad(t);const i=t.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const d=Nl(t);for(;o<=i-s;s+=o)this.process(d,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){So.exists(this),So.output(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let d=s;d<o;d++)n[d]=0;e3(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=Nl(t);this.get().forEach((d,p)=>a.setUint32(4*p,d,i))}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:s,pos:a}=this;return t.length=o,t.pos=a,t.finished=i,t.destroyed=s,o%n&&t.buffer.set(r),t}}const t3=(e,t,n)=>e&t^~e&n,n3=(e,t,n)=>e&t^e&n^t&n,r3=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Rr=new Uint32Array(64);class o3 extends ld{constructor(){super(64,32,8,!1),this.A=Pr[0]|0,this.B=Pr[1]|0,this.C=Pr[2]|0,this.D=Pr[3]|0,this.E=Pr[4]|0,this.F=Pr[5]|0,this.G=Pr[6]|0,this.H=Pr[7]|0}get(){const{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:d}=this;return[t,n,r,o,i,s,a,d]}set(t,n,r,o,i,s,a,d){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=d|0}process(t,n){for(let S=0;S<16;S++,n+=4)Rr[S]=t.getUint32(n,!1);for(let S=16;S<64;S++){const M=Rr[S-15],R=Rr[S-2],U=dr(M,7)^dr(M,18)^M>>>3,P=dr(R,17)^dr(R,19)^R>>>10;Rr[S]=P+Rr[S-7]+U+Rr[S-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:d,G:p,H:E}=this;for(let S=0;S<64;S++){const M=dr(a,6)^dr(a,11)^dr(a,25),R=E+M+t3(a,d,p)+r3[S]+Rr[S]|0,U=(dr(r,2)^dr(r,13)^dr(r,22))+n3(r,o,i)|0;E=p,p=d,d=a,a=s+R|0,s=i,i=o,o=r,r=R+U|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,d=d+this.F|0,p=p+this.G|0,E=E+this.H|0,this.set(r,o,i,s,a,d,p,E)}roundClean(){Rr.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ba=zs(()=>new o3),i3=Object.freeze(Object.defineProperty({__proto__:null,sha256:Ba},Symbol.toStringTag,{value:"Module"})),s3=Us(i3),du=BigInt(2**32-1),Kc=BigInt(32);function Yy(e,t=!1){return t?{h:Number(e&du),l:Number(e>>Kc&du)}:{h:Number(e>>Kc&du)|0,l:Number(e&du)|0}}
vendor: 2,047 bytes, line 109
109function u3(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:i,l:s}=Yy(e[o],t);[n[o],r[o]]=[i,s]}return[n,r]}const a3=(e,t)=>BigInt(e>>>0)<<Kc|BigInt(t>>>0),l3=(e,t,n)=>e>>>n,c3=(e,t,n)=>e<<32-n|t>>>n,f3=(e,t,n)=>e>>>n|t<<32-n,d3=(e,t,n)=>e<<32-n|t>>>n,h3=(e,t,n)=>e<<64-n|t>>>n-32,p3=(e,t,n)=>e>>>n-32|t<<64-n,y3=(e,t)=>t,g3=(e,t)=>e,m3=(e,t,n)=>e<<n|t>>>32-n,v3=(e,t,n)=>t<<n|e>>>32-n,w3=(e,t,n)=>t<<n-32|e>>>64-n,b3=(e,t,n)=>e<<n-32|t>>>64-n;function E3(e,t,n,r){const o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}const x3=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),S3=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,k3=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),M3=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,_3=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),A3=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0,rt={fromBig:Yy,split:u3,toBig:a3,shrSH:l3,shrSL:c3,rotrSH:f3,rotrSL:d3,rotrBH:h3,rotrBL:p3,rotr32H:y3,rotr32L:g3,rotlSH:m3,rotlSL:v3,rotlBH:w3,rotlBL:b3,add:E3,add3L:x3,add3H:S3,add4L:k3,add4H:M3,add5H:A3,add5L:_3},[T3,O3]=rt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
1095771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Br=new Uint32Array(80),Ur=new Uint32Array(80);class Ua extends ld{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:s,Dh:a,Dl:d,Eh:p,El:E,Fh:S,Fl:M,Gh:R,Gl:U,Hh:P,Hl:J}=this;return[t,n,r,o,i,s,a,d,p,E,S,M,R,U,P,J]}set(t,n,r,o,i,s,a,d,p,E,S,M,R,U,P,J){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=a|0,this.Dl=d|0,this.Eh=p|0,this.El=E|0,this.Fh=S|0,this.Fl=M|0,this.Gh=R|0,this.Gl=U|0,this.Hh=P|0,this.Hl=J|0}process(t,n){for(let _=0;_<16;_++,n+=4)Br[_]=t.getUint32(n),Ur[_]=t.getUint32(n+=4);for(let _=16;_<80;_++){const C=Br[_-15]|0,L=Ur[_-15]|0,z=rt.rotrSH(C,L,1)^rt.rotrSH(C,L,8)^rt.shrSH(C,L,7),Z=rt.rotrSL(C,L,1)^rt.rotrSL(C,L,8)^rt.shrSL(C,L,7),X=Br[_-2]|0,ce=Ur[_-2]|0,Me=rt.rotrSH(X,ce,19)^rt.rotrBH(X,ce,61)^rt.shrSH(X,ce,6),Q=rt.rotrSL(X,ce,19)^rt.rotrBL(X,ce,61)^rt.shrSL(X,ce,6),ne=rt.add4L(Z,Q,Ur[_-7],Ur[_-16]),u=rt.add4H(ne,z,Me,Br[_-7],Br[_-16]);Br[_]=u|0,Ur[_]=ne|0}let{Ah:r,Al:o,Bh:i,Bl:s,Ch:a,Cl:d,Dh:p,Dl:E,Eh:S,El:M,Fh:R,Fl:U,Gh:P,Gl:J,Hh:j,Hl:T}=this;for(let _=0;_<80;_++){const C=rt.rotrSH(S,M,14)^rt.rotrSH(S,M,18)^rt.rotrBH(S,M,41),L=rt.rotrSL(S,M,14)^rt.rotrSL(S,M,18)^rt.rotrBL(S,M,41),z=S&R^~S&P,Z=M&U^~M&J,X=rt.add5L(T,L,Z,O3[_],Ur[_]),ce=rt.add5H(X,j,C,z,T3[_],Br[_]),Me=X|0,Q=rt.rotrSH(r,o,28)^rt.rotrBH(r,o,34)^rt.rotrBH(r,o,39),ne=rt.rotrSL(r,o,28)^rt.rotrBL(r,o,34)^rt.rotrBL(r,o,39),u=r&i^r&a^i&a,l=o&s^o&d^s&d;j=P|0,T=J|0,P=R|0,J=U|0,R=S|0,U=M|0,{h:S,l:M}=rt.add(p|0,E|0,ce|0,Me|0),p=a|0,E=d|0,a=i|0,d=s|0,i=r|0,s=o|0;const y=rt.add3L(Me,ne,l);r=rt.add3H(y,ce,Q,u),o=y|0}({h:r,l:o}=rt.add(this.Ah|0,this.Al|0,r|0,o|0)),{h:i,l:s}=rt.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:a,l:d}=rt.add(this.Ch|0,this.Cl|0,a|0,d|0),{h:p,l:E}=rt.add(this.Dh|0,this.Dl|0,p|0,E|0),{h:S,l:M}=rt.add(this.Eh|0,this.El|0,S|0,M|0),{h:R,l:U}=rt.add(this.Fh|0,this.Fl|0,R|0,U|0),{h:P,l:J}=rt.add(this.Gh|0,this.Gl|0,P|0,J|0),{h:j,l:T}=rt.add(this.Hh|0,this.Hl|0,j|0,T|0),this.set(r,o,i,s,a,d,p,E,S,M,R,U,P,J,j,T)}roundClean(){Br.fill(0),Ur.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class C3 extends Ua{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class N3 extends Ua{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const j3=zs(()=>new Ua),I3=zs(()=>new C3),$3=zs(()=>new N3),P3=Object.freeze(Object.defineProperty({__proto__:null,SHA512:Ua,sha512:j3,sha512_256:I3,sha384:$3},Symbol.toStringTag,{value:"Module"})),R3=Us(P3);var cd={};(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esMo
109dule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64url=e.base64=e.base32crockford=e.base32hex=e.base32=e.base16=e.utils=e.assertNumber=void 0;function t(Q){if(!Number.isSafeInteger(Q))throw new Error(`Wrong integer: ${Q}`)}e.assertNumber=t;function n(...Q){const ne=(y,x)=>O=>y(x(O)),u=Array.from(Q).reverse().reduce((y,x)=>y?ne(y,x.encode):x.encode,void 0),l=Q.reduce((y,x)=>y?ne(y,x.decode):x.decode,void 0);return{encode:u,decode:l}}function r(Q){return{encode:ne=>{if(!Array.isArray(ne)||ne.length&&typeof ne[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return ne.map(u=>{if(t(u),u<0||u>=Q.length)throw new Error(`Digit index outside alphabet: ${u} (alphabet: ${Q.length})`);return Q[u]})},decode:ne=>{if(!Array.isArray(ne)||ne.length&&typeof ne[0]!="string")throw new Error("alphabet.decode input should be array of strings");return ne.map(u=>{if(typeof u!="string")throw new Error(`alphabet.decode: not string element=${u}`);const l=Q.indexOf(u);if(l===-1)throw new Error(`Unknown letter: "${u}". Allowed: ${Q}`);return l})}}}function o(Q=""){if(typeof Q!="string")throw new Error("join separator should be string");return{encode:ne=>{if(!Array.isArray(ne)||ne.length&&typeof ne[0]!="string")throw new Error("join.encode input should be array of strings");for(let u of ne)if(typeof u!="string")throw new Error(`join.encode: non-string input=${u}`);return ne.join(Q)},decode:ne=>{if(typeof ne!="string")throw new Error("join.decode input should be string");return ne.split(Q)}}}function i(Q,ne="="){if(t(Q),typeof ne!="string")throw new Error("padding chr should be string");return{encode(u){if(!Array.isArray(u)||u.length&&typeof u[0]!="string")throw new Error("padding.encode input should be array of strings");for(let l of u)if(typeof l!="string")throw new Error(`padding.encode: non-string input=${l}`);for(;u.length*Q%8;)u.push(ne);return u},decode(u){if(!Array.isArray(u)||u.length&&typeof u[0]!="string")throw new Error("padding.encode input should be array of strings");for(let y of u)if(typeof y!="string")throw new Error(`padding.decode: non-string input=${y}`);let l=u.length;if(l*Q%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;l>0&&u[l-1]===ne;l--)if(!((l-1)*Q%8))throw new Error("Invalid padding: string has too much padding");return u.slice(0,l)}}}function s(Q){if(typeof Q!="function")throw new Error("normalize fn should be function");return{encode:ne=>ne,decode:ne=>Q(ne)}}function a(Q,ne,u){if(ne<2)throw new Error(`convertRadix: wrong from=${ne}, base cannot be less than 2`);if(u<2)throw new Error(`convertRadix: wrong to=${u}, base cannot be less than 2`);if(!Array.isArray(Q))throw new Error("convertRadix: data should be array");if(!Q.length)return[];let l=0;const y=[],x=Array.from(Q);for(x.forEach(O=>{if(t(O),O<0||O>=ne)throw new Error(`Wrong integer: ${O}`)});;){let O=0,$=!0;for(let B=l;B<x.length;B++){const N=x[B],h=ne*O+N;if(!Number.isSafeInteger(h)||ne*O/ne!==O||h-N!==ne*O)throw new Error("convertRadix: carry overflow");if(O=h%u,x[B]=Math.floor(h/u),!Number.isSafeInteger(x[B])||x[B]*u+O!==h)throw new Error("convertRadix: carry overflow");if($)x[B]?$=!1:l=B;else continue}if(y.push(O),$)break}for(let O=0;O<Q.length-1&&Q[O]===0;O++)y.push(0);return y.reverse()}const d=(Q,ne)=>ne?d(ne,Q%ne):Q,p=(Q,ne)=>Q+(ne-d(Q,ne));function E(Q,ne,u,l){if(!Array.isArray(Q))throw new Error("convertRadix2: data should be array");if(ne<=0||ne>32)throw new Error(`convertRadix2: wrong from=${ne}`);if(u<=0||u>32)throw new Error(`convertRadix2: wrong to=${u}`);if(p(ne,u)>32)throw new Error(`convertRadix2: carry overflow from=${ne} to=${u} carryBits=${p(ne,u)}`);let y=0,x=0;const O=2**u-1,$=[];for(const B of Q){if(t(B),B>=2**ne)throw new Error(`convertRadix2: invalid data word=${B} from=${ne}`);if(y=y<<ne|B,x+ne>32)throw new Error(`convertRadix2: carry overflow pos=${x} from=${ne}`);for(x+=ne;x>=u;x-=u)$.push((y>>x-u&O)>>>0);y&=2**x-1}if(y=y<<u-x&O,!l&&x>=ne)throw new Error("Excess padding");if(!l&&y)throw new Error(`Non-zero padding: ${y}`);return l&&x>0&&$.push(y>>>0),$}function S(Q){return t(Q),{encode:ne=>{if(!(ne instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return a(Array.from(ne),2**8,Q)},decode:ne=>{if(!Array.isArray(ne)||ne.length&&typeof ne[0]!="number")throw new Error("radix.decode input should be array of str
109ings");return Uint8Array.from(a(ne,Q,2**8))}}}function M(Q,ne=!1){if(t(Q),Q<=0||Q>32)throw new Error("radix2: bits should be in (0..32]");if(p(8,Q)>32||p(Q,8)>32)throw new Error("radix2: carry overflow");return{encode:u=>{if(!(u instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return E(Array.from(u),8,Q,!ne)},decode:u=>{if(!Array.isArray(u)||u.length&&typeof u[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(E(u,Q,8,ne))}}}function R(Q){if(typeof Q!="function")throw new Error("unsafeWrapper fn should be function");return function(...ne){try{return Q.apply(null,ne)}catch{}}}function U(Q,ne){if(t(Q),typeof ne!="function")throw new Error("checksum fn should be function");return{encode(u){if(!(u instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const l=ne(u).slice(0,Q),y=new Uint8Array(u.length+Q);return y.set(u),y.set(l,u.length),y},decode(u){if(!(u instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const l=u.slice(0,-Q),y=ne(l).slice(0,Q),x=u.slice(-Q);for(let O=0;O<Q;O++)if(y[O]!==x[O])throw new Error("Invalid checksum");return l}}}e.utils={alphabet:r,chain:n,checksum:U,radix:S,radix2:M,join:o,padding:i},e.base16=n(M(4),r("0123456789ABCDEF"),o("")),e.base32=n(M(5),r("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),i(5),o("")),e.base32hex=n(M(5),r("0123456789ABCDEFGHIJKLMNOPQRSTUV"),i(5),o("")),e.base32crockford=n(M(5),r("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),o(""),s(Q=>Q.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),e.base64=n(M(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i(6),o("")),e.base64url=n(M(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(6),o(""));const P=Q=>n(S(58),r(Q),o(""));e.base58=P("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=P("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=P("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const J=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(Q){let ne="";for(let u=0;u<Q.length;u+=8){const l=Q.subarray(u,u+8);ne+=e.base58.encode(l).padStart(J[l.length],"1")}return ne},decode(Q){let ne=[];for(let u=0;u<Q.length;u+=11){const l=Q.slice(u,u+11),y=J.indexOf(l.length),x=e.base58.decode(l);for(let O=0;O<x.length-y;O++)if(x[O]!==0)throw new Error("base58xmr: wrong padding");ne=ne.concat(Array.from(x.slice(x.length-y)))}return Uint8Array.from(ne)}};const j=Q=>n(U(4,ne=>Q(Q(ne))),e.base58);e.base58check=j;const T=n(r("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),_=[996825010,642813549,513874426,1027748829,705979059];function C(Q){const ne=Q>>25;let u=(Q&33554431)<<5;for(let l=0;l<_.length;l++)(ne>>l&1)===1&&(u^=_[l]);return u}function L(Q,ne,u=1){const l=Q.length;let y=1;for(let x=0;x<l;x++){const O=Q.charCodeAt(x);if(O<33||O>126)throw new Error(`Invalid prefix (${Q})`);y=C(y)^O>>5}y=C(y);for(let x=0;x<l;x++)y=C(y)^Q.charCodeAt(x)&31;for(let x of ne)y=C(y)^x;for(let x=0;x<6;x++)y=C(y);return y^=u,T.encode(E([y%2**30],30,5,!1))}function z(Q){const ne=Q==="bech32"?1:734539939,u=M(5),l=u.decode,y=u.encode,x=R(l);function O(h,w,re=90){if(typeof h!="string")throw new Error(`bech32.encode prefix should be string, not ${typeof h}`);if(!Array.isArray(w)||w.length&&typeof w[0]!="number")throw new Error(`bech32.encode words should be array of numbers, not ${typeof w}`);const ee=h.length+7+w.length;if(re!==!1&&ee>re)throw new TypeError(`Length ${ee} exceeds limit ${re}`);return h=h.toLowerCase(),`${h}1${T.encode(w)}${L(h,w,ne)}`}function $(h,w=90){if(typeof h!="string")throw new Error(`bech32.decode input should be string, not ${typeof h}`);if(h.length<8||w!==!1&&h.length>w)throw new TypeError(`Wrong string length: ${h.length} (${h}). Expected (8..${w})`);const re=h.toLowerCase();if(h!==re&&h!==h.toUpperCase())throw new Error("String must be lowercase or uppercase");h=re;const ee=h.lastIndexOf("1");if(ee===0||ee===-1)throw new Error('Letter "1" must be present between prefix and data only');const v=h.slice(0,ee),G=h.slice(ee+1);if(G.length<6)throw new Error("Data must be at least 6 characters long");const V=T.decode(G).slice(0,-6),Y=L(v,V,ne);if(!G.endsWith(Y))throw new Error(`Invalid checksum in ${h}: expected "${Y}"`);return{prefix:v,words:V}}const B=R($);function N(h){const{prefix:w,words:re}=$(h,!1);return{prefix:w,words:re,bytes:l(re)}}return{encode:O,decode:$,decodeToBytes:N,decodeUnsafe:B,fromWords:l,fromWordsUnsafe:x,toWords:y}}e.bech32=z("bech32"),e.bech32m=z("bech32m"),e.utf8={encode:Q=>new TextDecoder().decode(Q),decode:Q=>new TextEncoder().encode(Q)},e.hex=n(M(4),r("0123456789abcdef"),o(""),s(Q=>{if(typeof Q!="string"||Q.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Q} with length ${Q.length}`);return Q.toLowerCase()}));const Z={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},X=`Invalid encoding type. Available types: ${Object.keys(Z).join(", ")}`,ce=(Q,ne)=>{if(typeof Q!="string"||!Z.hasOwnProperty(Q))throw new TypeError(X);if(!(ne instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Z[Q].encode(ne)};e.bytesToString=ce,e.str=e.bytesToString;const Me=(Q,ne)=>
109{if(!Z.hasOwnProperty(Q))throw new TypeError(X);if(typeof ne!="string")throw new TypeError("stringToBytes() expects string");return Z[Q].decode(ne)};e.stringToBytes=Me,e.bytes=e.stringToBytes})(cd);Object.defineProperty(Dn,"__esModule",{value:!0});Dn.mnemonicToSeedSync=Dn.mnemonicToSeed=Dn.validateMnemonic=Dn.entropyToMnemonic=Dn.mnemonicToEntropy=Dn.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const eg=an,tg=Ai,B3=s3,ng=R3,U3=Ds,hu=cd,L3=e=>e[0]==="\u3042\u3044\u3053\u304F\u3057\u3093";function rg(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function fd(e){const t=rg(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}function og(e){eg.default.bytes(e,16,20,24,28,32)}function D3(e,t=128){if(eg.default.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return ug((0,U3.randomBytes)(t/8),e)}Dn.generateMnemonic=D3;const z3=e=>{const t=8-e.length/4;return new Uint8Array([(0,B3.sha256)(e)[0]>>t<<t])};function ig(e){if(!Array.isArray(e)||e.length!==2**11||typeof e[0]!="string")throw new Error("Worlist: expected array of 2048 strings");return e.forEach(t=>{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),hu.utils.chain(hu.utils.checksum(1,z3),hu.utils.radix2(11,!0),hu.utils.alphabet(e))}function sg(e,t){const{words:n}=fd(e),r=ig(t).decode(n);return og(r),r}Dn.mnemonicToEntropy=sg;function ug(e,t){return og(e),ig(t).encode(e).join(L3(t)?"\u3000":" ")}Dn.entropyToMnemonic=ug;function F3(e,t){try{sg(e,t)}catch{return!1}return!0}Dn.validateMnemonic=F3;const ag=e=>rg(`mnemonic${e}`);function W3(e,t=""){return(0,tg.pbkdf2Async)(ng.sha512,fd(e).nfkd,ag(t),{c:2048,dkLen:64})}Dn.mnemonicToSeed=W3;function H3(e,t=""){return(0,tg.pbkdf2)(ng.sha512,fd(e).nfkd,ag(t),{c:2048,dkLen:64})}Dn.mnemonicToSeedSync=H3;class lg extends Xy{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,So.hash(t);const r=ad(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;s<i.length;s++)i[s]^=54;this.iHash.update(i),this.oHash=t.create();for(let s=0;s<i.length;s++)i[s]^=106;this.oHash.update(i),i.fill(0)}update(t){return So.exists(this),this.iHash.update(t),this}digestInto(t){So.exists(this),So.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:s,outputLen:a}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=s,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const dd=(e,t,n)=>new lg(e,t).update(n).digest();dd.create=(e,t)=>new lg(e,t);/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const vt=BigInt(0),Pt=BigInt(1),Gr=BigInt(2),as=BigInt(3),V3=BigInt(8),Kt=Object.freeze({a:vt,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:Pt,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function Yh(e){const{a:t,b:n}=Kt,r=$e(e*e),o=$e(r*e);return $e(o+t*e+n)}const pu=Kt.a===vt;class G3 extends Error{constructor(t){super(t)}}class xt{constructor(t,n,r){this.x=t,this.y=n,this.z=r}static fromAffine(t){if(!(t instanceof Yt))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new xt(t.x,t.y,Pt)}static toAffineBatch(t){const n=Z3(t.map(r=>r.z));return t.map((r,o)=>r.toAffine(n[o]))}static normalizeZ(t){return xt.toAffineBatch(t).map(xt.fromAffine)}equals(t){if(!(t instanceof xt))throw new TypeError("JacobianPoint expected");const{x:n,y:r,z:o}=this,{x:i,y:s,z:a}=t,d=$e(o*o),p=$e(a*a),E=$e(n*p),S=$e(i*d),M=$e($e(r*a)*p),R=$e($e(s*o)*d);return E===S&&M===R}negate(){return new xt(this.x,$e(-this.y),this.z)}double(){const{x:t,y:n,z:r}=this,o=$e(t*t),i=$e(n*n),s=$e(i*i),a=t+i,d=$e(Gr*($e(a*a)-o-s)),p=$e(as*o),E=$e(p*p),S=$e(E-Gr*d),M=$e(p*(d-S)-V3*s),R=$e(Gr*n*r);return new xt(S,M,R)}add(t){if(!(t instanceof xt))throw new TypeError("JacobianPoint expected");const{x:n,y:r,z:o}=this,{x:i,y:s,z:a}=t;if(i===vt||s===vt)return this;if(n===vt||r===vt)return t;const d=$e(o*o),p=$e(a*a),E=$e(n*p),S=$e(i*d),M=$e($e(r*a)*p),R=$e($e(s*o)*d),U=$e(S-E),P=$e(R-M);if(U===vt)return P===vt?this.double():xt.ZERO;const J=$e(U*U),j=$e(U*J),T=$e(E*J),_=$e(P*P-j-Gr*T),C=$e(P*(T-_)-M*j),L=$e(o*a*U);return new xt(_,C,L)}subtract(t){return this.add(t.negate())}multiplyUnsafe(t){const n=xt.ZERO;if(typeof t=="bigint"&&t===vt)return n;let r=rp(t);if(r===Pt)return this;if(!pu){let S=n,M=this;for(;r>vt;)r&Pt&&(S=S.add(M)),M=M.double(),r>>=Pt;return S}
109let{k1neg:o,k1:i,k2neg:s,k2:a}=ip(r),d=n,p=n,E=this;for(;i>vt||a>vt;)i&Pt&&(d=d.add(E)),a&Pt&&(p=p.add(E)),E=E.double(),i>>=Pt,a>>=Pt;return o&&(d=d.negate()),s&&(p=p.negate()),p=new xt($e(p.x*Kt.beta),p.y,p.z),d.add(p)}precomputeWindow(t){const n=pu?128/t+1:256/t+1,r=[];let o=this,i=o;for(let s=0;s<n;s++){i=o,r.push(i);for(let a=1;a<2**(t-1);a++)i=i.add(o),r.push(i);o=i.double()}return r}wNAF(t,n){!n&&this.equals(xt.BASE)&&(n=Yt.BASE);const r=n&&n._WINDOW_SIZE||1;if(256%r)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let o=n&&Qc.get(n);o||(o=this.precomputeWindow(r),n&&r!==1&&(o=xt.normalizeZ(o),Qc.set(n,o)));let i=xt.ZERO,s=xt.ZERO;const a=1+(pu?128/r:256/r),d=2**(r-1),p=BigInt(2**r-1),E=2**r,S=BigInt(r);for(let M=0;M<a;M++){const R=M*d;let U=Number(t&p);if(t>>=S,U>d&&(U-=E,t+=Pt),U===0){let P=o[R];M%2&&(P=P.negate()),s=s.add(P)}else{let P=o[R+Math.abs(U)-1];U<0&&(P=P.negate()),i=i.add(P)}}return{p:i,f:s}}multiply(t,n){let r=rp(t),o,i;if(pu){const{k1neg:s,k1:a,k2neg:d,k2:p}=ip(r);let{p:E,f:S}=this.wNAF(a,n),{p:M,f:R}=this.wNAF(p,n);s&&(E=E.negate()),d&&(M=M.negate()),M=new xt($e(M.x*Kt.beta),M.y,M.z),o=E.add(M),i=S.add(R)}else{const{p:s,f:a}=this.wNAF(r,n);o=s,i=a}return xt.normalizeZ([o,i])[0]}toAffine(t=La(this.z)){const{x:n,y:r,z:o}=this,i=t,s=$e(i*i),a=$e(s*i),d=$e(n*s),p=$e(r*a);if($e(o*i)!==Pt)throw new Error("invZ was invalid");return new Yt(d,p)}}xt.BASE=new xt(Kt.Gx,Kt.Gy,Pt);xt.ZERO=new xt(vt,Pt,vt);const Qc=new WeakMap;class Yt{constructor(t,n){this.x=t,this.y=n}_setWindowSize(t){this._WINDOW_SIZE=t,Qc.delete(this)}hasEvenY(){return this.y%Gr===vt}static fromCompressedHex(t){const n=t.length===32,r=Oo(n?t:t.subarray(1));if(!Il(r))throw new Error("Point is not on curve");const o=Yh(r);let i=J3(o);const s=(i&Pt)===Pt;n?s&&(i=$e(-i)):(t[0]&1)===1!==s&&(i=$e(-i));const a=new Yt(r,i);return a.assertValidity(),a}static fromUncompressedHex(t){const n=Oo(t.subarray(1,33)),r=Oo(t.subarray(33,65)),o=new Yt(n,r);return o.assertValidity(),o}static fromHex(t){const n=Jc(t),r=n.length,o=n[0];if(r===32||r===33&&(o===2||o===3))return this.fromCompressedHex(n);if(r===65&&o===4)return this.fromUncompressedHex(n);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${r}`)}static fromPrivateKey(t){return Yt.BASE.multiply(Zc(t))}static fromSignature(t,n,r){t=Jc(t);const o=Y3(t),{r:i,s}=e6(n);if(r!==0&&r!==1)throw new Error("Cannot recover signature: invalid recovery bit");const a=r&1?"03":"02",d=Yt.fromHex(a+mi(i)),{n:p}=Kt,E=La(i,p),S=$e(-o*E,p),M=$e(s*E,p),R=Yt.BASE.multiplyAndAddUnsafe(d,S,M);if(!R)throw new Error("Cannot recover signature: point at infinify");return R.assertValidity(),R}toRawBytes(t=!1){return To(this.toHex(t))}toHex(t=!1){const n=mi(this.x);return t?`${this.hasEvenY()?"02":"03"}${n}`:`04${n}${mi(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const t="Point is not on elliptic curve",{x:n,y:r}=this;if(!Il(n)||!Il(r))throw new Error(t);const o=$e(r*r),i=Yh(n);if($e(o-i)!==vt)throw new Error(t)}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new Yt(this.x,$e(-this.y))}double(){return xt.fromAffine(this).double().toAffine()}add(t){return xt.fromAffine(this).add(xt.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return xt.fromAffine(this).multiply(t,this).toAffine()}multiplyAndAddUnsafe(t,n,r){const o=xt.fromAffine(this),i=n===vt||n===Pt||this!==Yt.BASE?o.multiplyUnsafe(n):o.multiply(n),s=xt.fromAffine(t).multiplyUnsafe(r),a=i.add(s);return a.equals(xt.ZERO)?void 0:a.toAffine()}}Yt.BASE=new Yt(Kt.Gx,Kt.Gy);Yt.ZERO=new Yt(vt,vt);function ep(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function tp(e){if(e.length<2||e[0]!==2)throw new Error(`Invalid signature integer tag: ${Ti(e)}`);const t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(n[0]===0&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Oo(n),left:e.subarray(t+2)}}function q3(e){if(e.length<2||e[0]!=48)throw new Error(`Invalid signature tag: ${Ti(e)}`);
109if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:n}=tp(e.subarray(2)),{data:r,left:o}=tp(n);if(o.length)throw new Error(`Invalid signature: left bytes after parsing: ${Ti(o)}`);return{r:t,s:r}}class Ao{constructor(t,n){this.r=t,this.s=n,this.assertValidity()}static fromCompact(t){const n=t instanceof Uint8Array,r="Signature.fromCompact";if(typeof t!="string"&&!n)throw new TypeError(`${r}: Expected string or Uint8Array`);const o=n?Ti(t):t;if(o.length!==128)throw new Error(`${r}: Expected 64-byte hex`);return new Ao(fa(o.slice(0,64)),fa(o.slice(64,128)))}static fromDER(t){const n=t instanceof Uint8Array;if(typeof t!="string"&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r,s:o}=q3(n?t:To(t));return new Ao(r,o)}static fromHex(t){return this.fromDER(t)}assertValidity(){const{r:t,s:n}=this;if(!da(t))throw new Error("Invalid Signature: r must be 0 < r < n");if(!da(n))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const t=Kt.n>>Pt;return this.s>t}normalizeS(){return this.hasHighS()?new Ao(this.r,Kt.n-this.s):this}toDERRawBytes(t=!1){return To(this.toDERHex(t))}toDERHex(t=!1){const n=ep(Gi(this.s));if(t)return n;const r=ep(Gi(this.r)),o=Gi(r.length/2),i=Gi(n.length/2);return`30${Gi(r.length/2+n.length/2+4)}02${o}${r}02${i}${n}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return To(this.toCompactHex())}toCompactHex(){return mi(this.r)+mi(this.s)}}function Vi(...e){if(!e.every(r=>r instanceof Uint8Array))throw new Error("Uint8Array list expected");if(e.length===1)return e[0];const t=e.reduce((r,o)=>r+o.length,0),n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){const i=e[r];n.set(i,o),o+=i.length}return n}const K3=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ti(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let n=0;n<e.length;n++)t+=K3[e[n]];return t}const Q3=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function mi(e){if(typeof e!="bigint")throw new Error("Expected bigint");if(!(vt<=e&&e<Q3))throw new Error("Expected number < 2^256");return e.toString(16).padStart(64,"0")}function np(e){const t=To(mi(e));if(t.length!==32)throw new Error("Error: expected 32 bytes");return t}function Gi(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function fa(e){if(typeof e!="string")throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function To(e){if(typeof e!="string")throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=n*2,o=e.slice(r,r+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");t[n]=i}return t}function Oo(e){return fa(Ti(e))}function Jc(e){return e instanceof Uint8Array?Uint8Array.from(e):To(e)}function rp(e){if(typeof e=="number"&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if(typeof e=="bigint"&&da(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function $e(e,t=Kt.P){const n=e%t;return n>=vt?n:t+n}function qn(e,t){const{P:n}=Kt;let r=e;for(;t-- >vt;)r*=r,r%=n;return r}function J3(e){const{P:t}=Kt,n=BigInt(6),r=BigInt(11),o=BigInt(22),i=BigInt(23),s=BigInt(44),a=BigInt(88),d=e*e*e%t,p=d*d*e%t,E=qn(p,as)*p%t,S=qn(E,as)*p%t,M=qn(S,Gr)*d%t,R=qn(M,r)*M%t,U=qn(R,o)*R%t,P=qn(U,s)*U%t,J=qn(P,a)*P%t,j=qn(J,s)*U%t,T=qn(j,as)*p%t,_=qn(T,i)*R%t,C=qn(_,n)*d%t;return qn(C,Gr)}function La(e,t=Kt.P){if(e===vt||t<=vt)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=$e(e,t),r=t,o=vt,i=Pt;for(;n!==vt;){const s=r/n,a=r%n,d=o-i*s;r=n,n=a,o=i,i=d}if(r!==Pt)throw new Error("invert: does not exist");return $e(o,t)}function Z3(e,t=Kt.P){const n=new Array(e.length),r=e.reduce((i,s,a)=>s===vt?i:(n[a]=i,$e(i*s,t)),Pt),o=La(r,t);return e.reduceRight((i,s,a)=>s===vt?i:(n[a]=$e(i*n[a],t),$e(i*s,t)),o),n}const op=(e,t)=>(e+t/Gr)/t,X3={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-Pt*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function ip(e){const{n:t}=Kt,{a1:n,b1:r,a2:o,b2:i,POW_2_128:s}=X3,a=op(i*e,t),d=op(-r*e,t);let p=$e(e-a*n-d*o,t),E=$e(-a*r-d*i,t);const S=p>s,M=E>s;if(S&&(p=t-p),M&&(E=t-E),p>s||E>s)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:S,k1:p,k2neg:M,k2:E}}function Y3(e){const{n:t}
109=Kt,n=e.length*8-256;let r=Oo(e);return n>0&&(r=r>>BigInt(n)),r>=t&&(r-=t),r}let vi,jl;function da(e){return vt<e&&e<Kt.n}function Il(e){return vt<e&&e<Kt.P}function Zc(e){let t;if(typeof e=="bigint")t=e;else if(typeof e=="number"&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if(typeof e=="string"){if(e.length!==64)throw new Error("Expected 32 bytes of private key");t=fa(e)}else if(e instanceof Uint8Array){if(e.length!==32)throw new Error("Expected 32 bytes of private key");t=Oo(e)}else throw new TypeError("Expected valid private key");if(!da(t))throw new Error("Expected private key: 0 < key < n");return t}function e6(e){if(e instanceof Ao)return e.assertValidity(),e;try{return Ao.fromDER(e)}catch{return Ao.fromCompact(e)}}Yt.BASE._setWindowSize(8);const Bn={node:zy,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},yu={},qr={bytesToHex:Ti,hexToBytes:To,concatBytes:Vi,mod:$e,invert:La,isValidPrivateKey(e){try{return Zc(e),!0}catch{return!1}},_bigintTo32Bytes:np,_normalizePrivateKey:Zc,hashToPrivateKey:e=>{if(e=Jc(e),e.length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");const t=$e(Oo(e),Kt.n-Pt)+Pt;return np(t)},randomBytes:(e=32)=>{if(Bn.web)return Bn.web.getRandomValues(new Uint8Array(e));if(Bn.node){const{randomBytes:t}=Bn.node;return Uint8Array.from(t(e))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>qr.hashToPrivateKey(qr.randomBytes(40)),sha256:async(...e)=>{if(Bn.web){const t=await Bn.web.subtle.digest("SHA-256",Vi(...e));return new Uint8Array(t)}else if(Bn.node){const{createHash:t}=Bn.node,n=t("sha256");return e.forEach(r=>n.update(r)),Uint8Array.from(n.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(Bn.web){const n=await Bn.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),r=Vi(...t),o=await Bn.web.subtle.sign("HMAC",n,r);return new Uint8Array(o)}else if(Bn.node){const{createHmac:n}=Bn.node,r=n("sha256",e);return t.forEach(o=>r.update(o)),Uint8Array.from(r.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...t)=>{let n=yu[e];if(n===void 0){const r=await qr.sha256(Uint8Array.from(e,o=>
109o.charCodeAt(0)));n=Vi(r,r),yu[e]=n}return qr.sha256(n,...t)},taggedHashSync:(e,...t)=>{if(typeof vi!="function")throw new G3("sha256Sync is undefined, you need to set it");let n=yu[e];if(n===void 0){const r=vi(Uint8Array.from(e,o=>o.charCodeAt(0)));n=Vi(r,r),yu[e]=n}return vi(n,...t)},precompute(e=8,t=Yt.BASE){const n=t===Yt.BASE?t:new Yt(t.x,t.y);return n._setWindowSize(e),n.multiply(as),n}};Object.defineProperties(qr,{sha256Sync:{configurable:!1,get(){return vi},set(e){vi||(vi=e)}},hmacSha256Sync:{configurable:!1,get(){return jl},set(e){jl||(jl=e)}}});const t6=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),cg=Uint8Array.from({length:16},(e,t)=>t),n6=cg.map(e=>(9*e+5)%16);let hd=[cg],pd=[n6];for(let e=0;e<4;e++)for(let t of[hd,pd])t.push(t[e].map(n=>t6[n]));const fg=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),r6=hd.map((e,t)=>e.map(n=>fg[t][n])),o6=pd.map((e,t)=>e.map(n=>fg[t][n])),i6=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),s6=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),gu=(e,t)=>e<<t|e>>>32-t;function sp(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}const mu=new Uint32Array(16);class u6 extends ld{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:r,h3:o,h4:i}=this;return[t,n,r,o,i]}set(t,n,r,o,i){this.h0=t|0,this.h1=n|0,this.h2=r|0,this.h3=o|0,this.h4=i|0}process(t,n){for(let R=0;R<16;R++,n+=4)mu[R]=t.getUint32(n,!0);let r=this.h0|0,o=r,i=this.h1|0,s=i,a=this.h2|0,d=a,p=this.h3|0,E=p,S=this.h4|0,M=S;for(let R=0;R<5;R++){const U=4-R,P=i6[R],J=s6[R],j=hd[R],T=pd[R],_=r6[R],C=o6[R];for(let L=0;L<16;L++){const z=gu(r+sp(R,i,a,p)+mu[j[L]]+P,_[L])+S|0;r=S,S=p,p=gu(a,10)|0,a=i,i=z}for(let L=0;L<16;L++){const z=gu(o+sp(U,s,d,E)+mu[T[L]]+J,C[L])+M|0;o=M,M=E,E=gu(d,10)|0,d=s,s=z}}this.set(this.h1+a+E|0,this.h2+p+M|0,this.h3+S+o|0,this.h4+r+s|0,this.h0+i+d|0)}roundClean(){mu.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}zs(()=>new u6);qr.hmacSha256Sync=(e,...t)=>dd(Ba,e,qr.concatBytes(...t));cd.base58check(Ba);Ds.utf8ToBytes("Bitcoin seed");var vu,a6=new Uint8Array(16);function dg(){if(!vu&&(vu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!vu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vu(a6)}const l6=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Da(e){return typeof e=="string"&&l6.test(e)}var sn=[];for(var $l=0;$l<256;++$l)sn.push(($l+256).toString(16).substr(1));function za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(sn[e[t+0]]+sn[e[t+1]]+sn[e[t+2]]+sn[e[t+3]]+"-"+sn[e[t+4]]+sn[e[t+5]]+"-"+sn[e[t+6]]+sn[e[t+7]]+"-"+sn[e[t+8]]+sn[e[t+9]]+"-"+sn[e[t+10]]+sn[e[t+11]]+sn[e[t+12]]+sn[e[t+13]]+sn[e[t+14]]+sn[e[t+15]]).toLowerCase();if(!Da(n))throw TypeError("Stringified UUID is invalid");return n}var up,Pl,Rl=0,Bl=0;function c6(e,t,n){var r=t&&n||0,o=t||new Array(16);e=e||{};var i=e.node||up,s=e.clockseq!==void 0?e.clockseq:Pl;if(i==null||s==null){var a=e.random||(e.rng||dg)();i==null&&(i=up=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=Pl=(a[6]<<8|a[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Bl+1,E=d-Rl+(p-Bl)/1e4;if(E<0&&e.clockseq===void 0&&(s=s+1&16383),(E<0||d>Rl)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Rl=d,Bl=p,Pl=s,d+=122192928e5;var S=((d&268435455)*1e4+p)%4294967296;o[r++]=S>>>24&255,o[r++]=S>>>16&255,o[r++]=S>>>8&255,o[r++]=S&255;var M=d/4294967296*1e4&268435455;o[r++]=M>>>8&255,o[r++]=M&255,o[r++]=M>>>24&15|16,o[r++]=M>>>16&255,o[r++]=s>>>8|128,o[r++]=s&255;for(var R=0;R<6;++R)o[r+R]=i[R];return t||za(o)}function hg(e){if(!Da(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function f6(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var d6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",h6="6ba7b811-9dad-11d1-80b4-00c04fd430c8";
vendor: 5,355 bytes, line 109
109function pg(e,t,n){function r(o,i,s,a){if(typeof o=="string"&&(o=f6(o)),typeof i=="string"&&(i=hg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+o.length);if(d.set(i),d.set(o,i.length),d=n(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,s){a=a||0;for(var p=0;p<16;++p)s[a+p]=d[p];return s}return za(d)}try{r.name=e}catch{}return r.DNS=d6,r.URL=h6,r}function p6(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return y6(g6(m6(e),e.length*8))}function y6(e){for(var t=[],n=e.length*32,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(s)}return t}function yg(e){return(e+64>>>9<<4)+14+1}function g6(e,t){e[t>>5]|=128<<t%32,e[yg(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,d=r,p=o,E=i;n=gn(n,r,o,i,e[s],7,-680876936),i=gn(i,n,r,o,e[s+1],12,-389564586),o=gn(o,i,n,r,e[s+2],17,606105819),r=gn(r,o,i,n,e[s+3],22,-1044525330),n=gn(n,r,o,i,e[s+4],7,-176418897),i=gn(i,n,r,o,e[s+5],12,1200080426),o=gn(o,i,n,r,e[s+6],17,-1473231341),r=gn(r,o,i,n,e[s+7],22,-45705983),n=gn(n,r,o,i,e[s+8],7,1770035416),i=gn(i,n,r,o,e[s+9],12,-1958414417),o=gn(o,i,n,r,e[s+10],17,-42063),r=gn(r,o,i,n,e[s+11],22,-1990404162),n=gn(n,r,o,i,e[s+12],7,1804603682),i=gn(i,n,r,o,e[s+13],12,-40341101),o=gn(o,i,n,r,e[s+14],17,-1502002290),r=gn(r,o,i,n,e[s+15],22,1236535329),n=mn(n,r,o,i,e[s+1],5,-165796510),i=mn(i,n,r,o,e[s+6],9,-1069501632),o=mn(o,i,n,r,e[s+11],14,643717713),r=mn(r,o,i,n,e[s],20,-373897302),n=mn(n,r,o,i,e[s+5],5,-701558691),i=mn(i,n,r,o,e[s+10],9,38016083),o=mn(o,i,n,r,e[s+15],14,-660478335),r=mn(r,o,i,n,e[s+4],20,-405537848),n=mn(n,r,o,i,e[s+9],5,568446438),i=mn(i,n,r,o,e[s+14],9,-1019803690),o=mn(o,i,n,r,e[s+3],14,-187363961),r=mn(r,o,i,n,e[s+8],20,1163531501),n=mn(n,r,o,i,e[s+13],5,-1444681467),i=mn(i,n,r,o,e[s+2],9,-51403784),o=mn(o,i,n,r,e[s+7],14,1735328473),r=mn(r,o,i,n,e[s+12],20,-1926607734),n=vn(n,r,o,i,e[s+5],4,-378558),i=vn(i,n,r,o,e[s+8],11,-2022574463),o=vn(o,i,n,r,e[s+11],16,1839030562),r=vn(r,o,i,n,e[s+14],23,-35309556),n=vn(n,r,o,i,e[s+1],4,-1530992060),i=vn(i,n,r,o,e[s+4],11,1272893353),o=vn(o,i,n,r,e[s+7],16,-155497632),r=vn(r,o,i,n,e[s+10],23,-1094730640),n=vn(n,r,o,i,e[s+13],4,681279174),i=vn(i,n,r,o,e[s],11,-358537222),o=vn(o,i,n,r,e[s+3],16,-722521979),r=vn(r,o,i,n,e[s+6],23,76029189),n=vn(n,r,o,i,e[s+9],4,-640364487),i=vn(i,n,r,o,e[s+12],11,-421815835),o=vn(o,i,n,r,e[s+15],16,530742520),r=vn(r,o,i,n,e[s+2],23,-995338651),n=wn(n,r,o,i,e[s],6,-198630844),i=wn(i,n,r,o,e[s+7],10,1126891415),o=wn(o,i,n,r,e[s+14],15,-1416354905),r=wn(r,o,i,n,e[s+5],21,-57434055),n=wn(n,r,o,i,e[s+12],6,1700485571),i=wn(i,n,r,o,e[s+3],10,-1894986606),o=wn(o,i,n,r,e[s+10],15,-1051523),r=wn(r,o,i,n,e[s+1],21,-2054922799),n=wn(n,r,o,i,e[s+8],6,1873313359),i=wn(i,n,r,o,e[s+15],10,-30611744),o=wn(o,i,n,r,e[s+6],15,-1560198380),r=wn(r,o,i,n,e[s+13],21,1309151649),n=wn(n,r,o,i,e[s+4],6,-145523070),i=wn(i,n,r,o,e[s+11],10,-1120210379),o=wn(o,i,n,r,e[s+2],15,718787259),r=wn(r,o,i,n,e[s+9],21,-343485551),n=Kr(n,a),r=Kr(r,d),o=Kr(o,p),i=Kr(i,E)}return[n,r,o,i]}function m6(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(yg(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Kr(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function v6(e,t){return e<<t|e>>>32-t}function Fa(e,t,n,r,o,i){return Kr(v6(Kr(Kr(t,e),Kr(r,i)),o),n)}function gn(e,t,n,r,o,i,s){return Fa(t&n|~t&r,e,t,o,i,s)}function mn(e,t,n,r,o,i,s){return Fa(t&r|n&~r,e,t,o,i,s)}function vn(e,t,n,r,o,i,s){return Fa(t^n^r,e,t,o,i,s)}function wn(e,t,n,r,o,i,s){return Fa(n^(t|~r),e,t,o,i,s)}var w6=pg("v3",48,p6);const b6=w6;function E6(e,t,n){e=e||{};var r=e.random||(e.rng||dg)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return za(r)}function x6(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Ul(e,t){return e<<t|e>>>32-t}function S6(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),d=0;d<s;++d){for(var p=new Uint32Array(16),E=0;E<16;++E)p[E]=e[d*64+E*4]<<24|e[d*64+E*4+1]<<16|e[d*64+E*4+2]<<8|e[d*64+E*4+3];a[d]=p}a[s-1][14]=(e.length-1)*8/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=(e.length-1)*8&4294967295;for(var S=0;S<s;++S){for(var M=new Uint32Array(80),R=0;R<16;++R)M[R]=a[S][R];for(var U=16;U<80;++U)M[U]=Ul(M[U-3]^M[U-8]^M[U-14]^M[U-16],1);for(var P=n[0],J=n[1],j=n[2],T=n[3],_=n[4],C=0;C<80;++C){var L=Math.floor(C/20),z=Ul(P,5)+x6(L,J,j,T)+_+t[L]+M[C]>>>0;_=T,T=j,j=Ul(J,30)>>>0,J=P,P=z}n[0]=n[0]+P>>>0,n[1]=n[1]+J>>>0,n[2]=n[2]+j>>>0,n[3]=n[3]+T>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>
1098&255,n[4]&255]}var k6=pg("v5",80,S6);const M6=k6,_6="00000000-0000-0000-0000-000000000000";function A6(e){if(!Da(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const T6=Object.freeze(Object.defineProperty({__proto__:null,v1:c6,v3:b6,v4:E6,v5:M6,NIL:_6,version:A6,validate:Da,stringify:za,parse:hg},Symbol.toStringTag,{value:"Module"})),gg=Us(T6),O6=gg.v4,C6=function(e,t,n,r){if(typeof e!="string")throw new TypeError(e+" must be a string");r=r||{};const o=typeof r.version=="number"?r.version:2;if(o!==1&&o!==2)throw new TypeError(o+" must be 1 or 2");const i={method:e};if(o===2&&(i.jsonrpc="2.0"),t){if(typeof t!="object"&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");i.params=t}if(typeof n>"u"){const s=typeof r.generator=="function"?r.generator:function(){return O6()};i.id=s(i,r)}else o===2&&n===null?r.notificationIdNull&&(i.id=null):i.id=n;return i};var N6=C6;const j6=gg.v4,I6=N6,Cs=function(e,t){if(!(this instanceof Cs))return new Cs(e,t);t||(t={}),this.options={reviver:typeof t.reviver<"u"?t.reviver:null,replacer:typeof t.replacer<"u"?t.replacer:null,generator:typeof t.generator<"u"?t.generator:function(){return j6()},version:typeof t.version<"u"?t.version:2,notificationIdNull:typeof t.notificationIdNull=="boolean"?t.notificationIdNull:!1},this.callServer=e};var $6=Cs;Cs.prototype.request=function(e,t,n,r){const o=this;let i=null;const s=Array.isArray(e)&&typeof t=="function";if(this.options.version===1&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&e&&typeof e=="object"&&typeof t=="function")r=t,i=e;else{typeof n=="function"&&(r=n,n=void 0);const d=typeof r=="function";try{i=I6(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(p){if(d)return r(p);throw p}if(!d)return i}let a;try{a=JSON.stringify(i,this.options.replacer)}catch(d){return r(d)}return this.callServer(a,function(d,p){o._parseResponse(d,p,r)}),i};Cs.prototype._parseResponse=function(e,t,n){if(e){n(e);return}if(!t)return n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(o){return n(o)}if(n.length===3)if(Array.isArray(r)){const o=function(s){return typeof s.error<"u"},i=function(s){return!o(s)};return n(null,r.filter(o),r.filter(i))}else return n(null,r.error,r.result);n(null,r)};var Xc={exports:{}};(function(e,t){var n=typeof self<"u"?self:Ca,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(s){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function d(l){return l&&DataView.prototype.isPrototypeOf(l)}if(a.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(l){return l&&p.indexOf(Object.prototype.toString.call(l))>-1};function S(l){if(typeof l!="string"&&(l=String(l)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(l))throw new TypeError("Invalid character in header field name");return l.toLowerCase()}function M(l){return typeof l!="string"&&(l=String(l)),l}function R(l){var y={next:function(){var x=l.shift();return{done:x===void 0,value:x}}};return a.iterable&&(y[Symbol.iterator]=function(){return y}),y}function U(l){this.map={},l instanceof U?l.forEach(function(y,x){this.append(x,y)},this):Array.isArray(l)?l.forEach(function(y){this.append(y[0],y[1])},this):l&&Object.getOwnPropertyNames(l).forEach(function(y){this.append(y,l[y])},this)}U.prototype.append=function(l,y){l=S(l),y=M(y);var x=this.map[l];this.map[l]=x?x+", "+y:y},U.prototype.delete=function(l){delete this.map[S(l)]},U.prototype.get=function(l){return l=S(l),this.has(l)?this.map[l]:null},U.prototype.has=function(l){return this.map.hasOwnProperty(S(l))},U.prototype.set=function(l,y){this.map[S(l)]=M(y)},U.prototype.forEach=function(l,y){for(var x in this.map)this.map.hasOwnProperty(x)&&l.call(y,this.map[x],x,this)},U.prototype.keys=function(){var l=[];return this.forEach(function(y,x){l.push(x)}),R(l)},U.prototype.values=function(){var l=[];return this.forEach(function(y){l.push(y)}),R(l)},U.prototype.entries=function(){var l=[];return this.forEach(function(y,x){l.push([x,y])}),R(l)},a.iterable&&(U.prototype[Symbol.iterator]=U.prototype.entries);function P(l){if(l.bodyUsed)return Promise.reject(new TypeError("Already read"));l.bodyUsed=!0}function J(l){return new Promise(function(y,x){l.onload=function(){y(l.result)},l.onerror=function(){x(l.error)}})}function j(l){var y=new FileReader,x=J(y);return y.readAsArrayBuffer(l),x}function T(l){var y=new FileReader,x=J(y);return y.readAsText(l),x}function _(l){for(var y=new Uint8Array(l),x=new Array(y.length),O=0;O<y.length;O++)x[O]=String.fromCharCode(y[O]);return x.join("")}function C(l){if(l.slice)return l.slice(0);var y=new Uint8Array(l.byteLength);return y.set(new Uint8Array(l)),y.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(l){this._bodyInit=l,l?typeof l=="string"?this._bodyText=l:a.blob&&Blob.prototype.isPrototypeOf(l)?this._bodyBlob=l:a.formData&&FormData.prototype.isPrototypeOf(l)?this._bodyFormData=l:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(l)?this._bodyText=l.toString():a.arrayBuffer&&a.blob&&d(l)?(this._bodyArrayBuffer=C(l.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(l)||E(l))?this._bodyArrayBuffer=C(l):this._bodyText=l=Object.prototype.toString.call(l):this._bodyText="",this.headers.get("content-type")||(typeof l=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(l)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var l=P(this);if(l)return l;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var l=P(this);if(l)return l;if(this._bodyBlob)return T(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(ce)}),this.json=function(){return this.text().then(JSON.parse)},this}var z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Z(l){var y=l.toUpperCase();return z.indexOf(y)>-1?y:l}function X(l,y){y=y||{};var x=y.body;if(l instanceof X){if(l.bodyUsed)throw new TypeError("Already read");this.url=l.url,this.credentials=l.credentials,y.headers||(this.headers=new U(l.headers)),this.method=l.method,this.mode=l.mode,this.signal=l.signal,!x&&l._bodyInit!=null&&(x=l._bodyInit,l.bodyUsed=!0)}else this.url=String(l);if(this.credentials=y.credentials||this.credentials||"same-origin",(y.headers||!this.headers)&&(this.headers=new U(y.headers)),this.method=Z(y.method||this.method||"GET"),this.mode=y.mode||this.mode||null,this.signal=y.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function ce(l){var y=new FormData;return l.trim().split("&").forEach(function(x){if(x){var O=x.split("="),$=O.shift().replace(/\+/g," "),B=O.join("=").replace(/\+/g," ");y.append(decodeURIComponent($),decodeURIComponent(B))}}),y}function Me(l){var y=new U,x=l.replace(/\r?\n[\t ]+/g," ");
109return x.split(/\r?\n/).forEach(function(O){var $=O.split(":"),B=$.shift().trim();if(B){var N=$.join(":").trim();y.append(B,N)}}),y}L.call(X.prototype);function Q(l,y){y||(y={}),this.type="default",this.status=y.status===void 0?200:y.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in y?y.statusText:"OK",this.headers=new U(y.headers),this.url=y.url||"",this._initBody(l)}L.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new U(this.headers),url:this.url})},Q.error=function(){var l=new Q(null,{status:0,statusText:""});return l.type="error",l};var ne=[301,302,303,307,308];Q.redirect=function(l,y){if(ne.indexOf(y)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:y,headers:{location:l}})},s.DOMException=i.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,y){this.message=l,this.name=y;var x=Error(l);this.stack=x.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function u(l,y){return new Promise(function(x,O){var $=new X(l,y);if($.signal&&$.signal.aborted)return O(new s.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function N(){B.abort()}B.onload=function(){var h={status:B.status,statusText:B.statusText,headers:Me(B.getAllResponseHeaders()||"")};h.url="responseURL"in B?B.responseURL:h.headers.get("X-Request-URL");var w="response"in B?B.response:B.responseText;x(new Q(w,h))},B.onerror=function(){O(new TypeError("Network request failed"))},B.ontimeout=function(){O(new TypeError("Network request failed"))},B.onabort=function(){O(new s.DOMException("Aborted","AbortError"))},B.open($.method,$.url,!0),$.credentials==="include"?B.withCredentials=!0:$.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&a.blob&&(B.responseType="blob"),$.headers.forEach(function(h,w){B.setRequestHeader(w,h)}),$.signal&&($.signal.addEventListener("abort",N),B.onreadystatechange=function(){B.readyState===4&&$.signal.removeEventListener("abort",N)}),B.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return u.polyfill=!0,i.fetch||(i.fetch=u,i.Headers=U,i.Request=X,i.Response=Q),s.Headers=U,s.Request=X,s.Response=Q,s.fetch=u,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(Xc,Xc.exports);const mg=hv(Xc.exports);var Yc={exports:{}};(function(e,t){(function(n,r){r(t)})(Ca,function(n){var r=!0;function o(w){return w&&w.circularRefs!==void 0&&w.circularRefs!==null&&(r=w.circularRefs===!0),{circularRefs:r}}function i(w){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re})(w)}function s(w,re){for(var ee=0;ee<re.length;ee++){var v=re[ee];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(w,v.key,v)}}var a=function(){function w(v){(function(G,V){if(!(G instanceof V))throw new TypeError("Cannot call a class as a function")})(this,w),this.value=function G(V){{if(typeof V=="string"){if(!p(V))throw new Error('Invalid number (value: "'+V+'")');return V}if(typeof V!="number")return G(V&&V.valueOf());if(15<d(V+"").length)throw new Error("Invalid number: contains more than 15 digits (value: "+V+")");if(isNaN(V))throw new Error("Invalid number: NaN");if(!isFinite(V))throw new Error("Invalid number: Infinity");return V+""}}(v),this.type="LosslessNumber",this.isLosslessNumber=!0}var re,ee;return re=w,(ee=[{key:"valueOf",value:function(){var v=parseFloat(this.value),G=d(this.value);if(15<G.length)throw new Error("Cannot convert to number: number would be truncated (value: "+this.value+")");if(!isFinite(v))throw new Error("Cannot convert to number: number would overflow (value: "+this.value+")");if(Math.abs(v)<Number.MIN_VALUE&&!/^0*$/.test(G))throw new Error("Cannot convert to number: number would underflow (value: "+this.value+")");return v}},{key:"toString",value:function(){return this.value}}])&&s(re.prototype,ee),w}();
109function d(w){return(typeof w!="string"?w+"":w).replace(/^-/,"").replace(/e.*$/,"").replace(/^0\.?0*|\./,"")}function p(w){return/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/.test(w)}function E(w,re,ee,v){return Array.isArray(ee)?v.call(w,re,function(G,V){for(var Y=[],ue=0;ue<G.length;ue++)Y[ue]=E(G,ue+"",G[ue],V);return Y}(ee,v)):ee&&i(ee)==="object"&&!ee.isLosslessNumber?v.call(w,re,function(G,V){var Y,ue={};for(Y in G)G.hasOwnProperty(Y)&&(ue[Y]=E(G,Y,G[Y],V));return ue}(ee,v)):v.call(w,re,ee)}function S(w){return encodeURIComponent(w.replace(/\//g,"~1").replace(/~/g,"~0"))}function M(w){return decodeURIComponent(w).replace(/~1/g,"/").replace(/~0/g,"~")}function R(w){return"#/"+w.map(S).join("/")}var U={NULL:0,DELIMITER:1,NUMBER:2,STRING:3,SYMBOL:4,UNKNOWN:5},P={"":!0,"{":!0,"}":!0,"[":!0,"]":!0,":":!0,",":!0},J={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
110`,r:"\r",t:"	"},j="",T=0,_="",C="",L=U.NULL,z=[],Z=[];function X(){T++,_=j.charAt(T)}function ce(){for(L=U.NULL,C="";_===" "||_==="	"||_===`
111`||_==="\r";)X();if(P[_])return L=U.DELIMITER,C=_,void X();if(Q(_)||_==="-"){if(L=U.NUMBER,_==="-"){if(C+=_,X(),!Q(_))throw ne("Invalid number, digit expected",T)}else _==="0"&&(C+=_,X());for(;Q(_);)C+=_,X();if(_==="."){if(C+=_,X(),!Q(_))throw ne("Invalid number, digit expected",T);for(;Q(_);)C+=_,X()}if(_==="e"||_==="E"){if(C+=_,X(),_!=="+"&&_!=="-"||(C+=_,X()),!Q(_))throw ne("Invalid number, digit expected",T);for(;Q(_);)C+=_,X()}}else if(_!=='"'){if(!Me(_)){for(L=U.UNKNOWN;_!=="";)C+=_,X();throw ne('Syntax error in part "'+C+'"')}for(L=U.SYMBOL;Me(_);)C+=_,X()}else{for(L=U.STRING,X();_!==""&&_!=='"';)if(_==="\\"){X();var w=J[_];if(w!==void 0)C+=w,X();else{if(_!=="u")throw ne('Invalid escape character "\\'+_+'"',T);X();for(var re="",ee=0;ee<4;ee++){if(!/^[0-9a-fA-F]/.test(_))throw ne("Invalid unicode character");re+=_,X()}C+=String.fromCharCode(parseInt(re,16))}}else C+=_,X();if(_!=='"')throw ne("End of string expected");X()}}function Me(w){return/^[a-zA-Z_]/.test(w)}function Q(w){return"0"<=w&&w<="9"}function ne(w,re){return re===void 0&&(re=T-C.length),w=new SyntaxError(w+" (char "+re+")"),w.char=re,w}function u(){if(L!==U.DELIMITER||C!=="{")return function(){if(L!==U.DELIMITER||C!=="[")return function(){if(L!==U.STRING)return function(){if(L!==U.NUMBER)return function(){if(L!==U.SYMBOL)return function(){throw ne(C===""?"Unexpected end of json string":"Value expected")}();if(C==="true")return ce(),!0;if(C==="false")return ce(),!1;if(C!=="null")throw ne('Unknown symbol "'+C+'"');return ce(),null}();var ue=new a(C);return ce(),ue}();var Y=C;return ce(),Y}();ce();var G=[];if(L===U.DELIMITER&&C==="]")return ce(),G;var V=Z.length;for(Z[V]=G;z[V]=G.length+"",G.push(u()),L===U.DELIMITER&&C===",";)ce();if(L===U.DELIMITER&&C==="]")return ce(),Z.length=V,z.length=V,G;throw ne('Comma or end of array "]" expected')}();var w,re;ce();var ee={};if(L===U.DELIMITER&&C==="}")return ce(),ee;var v=Z.length;for(Z[v]=ee;;){if(L!==U.STRING)throw ne("Object key expected");if(re=C,ce(),L!==U.DELIMITER||C!==":")throw ne("Colon expected");if(ce(),ee[z[v]=re]=u(),L!==U.DELIMITER||C!==",")break;ce()}if(L!==U.DELIMITER||C!=="}")throw ne('Comma or end of object "}" expected');return ce(),typeof(w=ee).$ref=="string"&&Object.keys(w).length===1?function(G){if(!o().circularRefs)return G;for(var V=function(ue){if((ue=ue.split("/").map(M)).shift()!=="#")throw SyntaxError("Cannot parse JSON Pointer: no valid URI fragment");return ue[ue.length-1]===""&&ue.pop(),ue}(G.$ref),Y=0;Y<V.length;Y++)if(V[Y]!==z[Y])throw new Error('Invalid circular reference "'+G.$ref+'"');return Z[V.length]}(ee):(Z.length=v,z.length=v,ee)}var l=[],y=[];function x(G,re,ee){y=[],l=[];var v,G=typeof re=="function"?re.call({"":G},"",G):G;return typeof ee=="number"?10<ee?v=h(" ",10):1<=ee&&(v=h(" ",ee)):typeof ee=="string"&&ee!==""&&(v=ee),O(G,re,v,"")}function O(w,re,ee,v){return typeof w=="boolean"||w instanceof Boolean||w===null||typeof w=="number"||w instanceof Number||typeof w=="string"||w instanceof String||w instanceof Date?JSON.stringify(w):w&&w.isLosslessNumber?w.value:Array.isArray(w)?function(G,V,Y,ue){var he=Y?ue+Y:void 0,ve=Y?`[
112`:"[";if(B(G))return N(G,V,Y,ue);var Se=y.length;y[Se]=G;for(var Ae=0;Ae<G.length;Ae++){var ye=Ae+"",qe=typeof V=="function"?V.call(G,ye,G[Ae]):G[Ae];Y&&(ve+=he),qe!==void 0&&typeof qe!="function"?(l[Se]=ye,ve+=O(qe,V,Y,he)):ve+="null",Ae<G.length-1&&(ve+=Y?`,
113`:",")}return y.length=Se,l.length=Se,ve+=Y?`
114`+ue+"]":"]"}(w,re,ee,v):w&&i(w)==="object"?$(w,re,ee,v):void 0}function $(w,re,ee,v){var G=ee?v+ee:void 0,V=!0,Y=ee?`{
115`:"{";if(typeof w.toJSON=="function")return x(w.toJSON(),re,ee);if(B(w))return N(w,re,ee,v);var ue,he,ve,Se,Ae,ye=y.length;for(ue in y[ye]=w)w.hasOwnProperty(ue)&&(he=typeof re=="function"?re.call(w,ue,w[ue]):w[ue],ve=ue,Ae=re,(Se=he)===void 0||typeof Se=="function"||Array.isArray(Ae)&&!function(qe,Qe){for(var tt=0;tt<qe.length;tt++)if(qe[tt]==Qe)return!0;return!1}(Ae,ve)||(V?V=!1:Y+=ee?`,
116`:",",ve=JSON.stringify(ue),Y+=ee?G+ve+": ":ve+":",l[ye]=ue,Y+=O(he,re,ee,G)));return y.length=ye,l.length=ye,Y+=ee?`
117`+v+"}":"}"}function B(w){return y.indexOf(w)!==-1}function N(w,re,ee,v){if(!o().circularRefs)throw new Error('Circular reference at "'+R(l)+'"');return w=y.indexOf(w),$({$ref:R(l.slice(0,w))},re,ee,v)}function h(w,re){for(var ee="";0<re--;)ee+=w;return ee}n.LosslessNumber=a,n.config=o,n.parse=function(w,re){T=0,_=(j=w).charAt(0),C="",L=U.NULL,Z=[],z=[],ce();var ee=u();if(C!=="")throw ne("Unexpected characters");return re?E({"":w=ee},"",w,re):ee},n.stringify=x,Object.defineProperty(n,"__esModule",{value:!0})})}
117)(Yc,Yc.exports);function P6(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0}function vg(e,t){for(var n=e.replace(/[^A-Za-z0-9+/]/g,""),r=n.length,o=t?Math.ceil((r*3+1>>2)/t)*t:r*3+1>>2,i=new Uint8Array(o),s,a,d=0,p=0,E=0;E<r;E++)if(a=E&3,d|=P6(n.charCodeAt(E))<<6*(3-a),a===3||r-E===1){for(s=0;s<3&&p<o;s++,p++)i[p]=d>>>(16>>>s&24)&255;d=0}return i}function wu(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65}function wg(e){for(var t=2,n="",r=e.length,o=0,i=0;i<r;i++)t=i%3,i>0&&i*4/3%76===0&&(n+=""),o|=e[i]<<(16>>>t&24),(t===2||e.length-i===1)&&(n+=String.fromCodePoint(wu(o>>>18&63),wu(o>>>12&63),wu(o>>>6&63),wu(o&63)),o=0);return n.slice(0,n.length-2+t)+(t===2?"":t===1?"=":"==")}function bg(e){let t=e.replace("0x","").match(/.{1,2}/g).map(n=>parseInt(n,16));if(t===null)throw new Error(`Unable to parse HEX: ${e}`);return Uint8Array.from(t)}function Eg(e){return e.reduce((t,n)=>t+n.toString(16).padStart(2,"0"),"")}var R6=class{constructor(e){this.bytePosition=0,this.dataView=new DataView(e.buffer)}shift(e){return this.bytePosition+=e,this}read8(){let e=this.dataView.getUint8(this.bytePosition);return this.shift(1),new yr.exports.BN(e,10)}read16(){let e=this.dataView.getUint16(this.bytePosition,!0);return this.shift(2),new yr.exports.BN(e,10)}read32(){let e=this.dataView.getUint32(this.bytePosition,!0);return this.shift(4),new yr.exports.BN(e,10)}read64(){let e=this.read32(),t=this.read32().toString(16)+e.toString(16).padStart(8,"0");return new yr.exports.BN(t,16)}read128(){let e=this.read64(),t=this.read64().toString(16)+e.toString(16).padStart(8,"0");return new yr.exports.BN(t,16)}read256(){let e=this.read128(),t=this.read128().toString(16)+e.toString(16).padStart(16,"0");return new yr.exports.BN(t,16)}readBytes(e){let t=this.bytePosition+this.dataView.byteOffset,n=new Uint8Array(this.dataView.buffer,t,e);return this.shift(e),n}readULEB(){let e=this.bytePosition+this.dataView.byteOffset,t=new 
117Uint8Array(this.dataView.buffer,e),{value:n,length:r}=U6(t);return this.shift(r),n}readVec(e){let t=this.readULEB(),n=[];for(let r=0;r<t;r++)n.push(e(this,r,t));return n}},vo=class{constructor(e=1024){this.bytePosition=0,this.dataView=new DataView(new ArrayBuffer(e))}static toBN(e){switch(typeof e){case"boolean":return e=+e,new yr.exports.BN(e.toString());case"bigint":return new yr.exports.BN(e.toString());default:return new yr.exports.BN(e)}}shift(e){return this.bytePosition+=e,this}write8(e){return this.dataView.setUint8(this.bytePosition,+vo.toBN(e)),this.shift(1)}write16(e){return this.dataView.setUint16(this.bytePosition,+vo.toBN(e),!0),this.shift(2)}write32(e){return this.dataView.setUint32(this.bytePosition,+vo.toBN(e),!0),this.shift(4)}write64(e){return vo.toBN(e).toArray("le",8).forEach(t=>this.write8(t)),this}write128(e){return vo.toBN(e).toArray("le",16).forEach(t=>this.write8(t)),this}write256(e){return vo.toBN(e).toArray("le",32).forEach(t=>this.write8(t)),this}writeULEB(e){return B6(e).forEach(t=>this.write8(t)),this}writeVec(e,t){return this.writeULEB(e.length),Array.from(e).forEach((n,r)=>t(this,n,r,e.length)),this}*[Symbol.iterator](){for(let e=0;e<this.bytePosition;e++)yield this.dataView.getUint8(e);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(e){return xg(this.toBytes(),e)}};function B6(e){let t=[],n=0;if(e===0)return[0];for(;e>0;)t[n]=e&127,(e>>=7)&&(t[n]|=128),n+=1;return t}function U6(e){let t=0,n=0,r=0;for(;;){let o=e[r];if(r+=1,t|=(o&127)<<n,(o&128)===0)break;n+=7}return{value:t,length:r}}var ef=class{constructor(e){if(this.types=new Map,e instanceof ef){this.schema=e.schema,this.types=new Map(e.types);return}if(this.schema=e,this.registerAddressType(ef.ADDRESS,e.addressLength,e.addressEncoding),this.registerVectorType(e.vectorType),e.types&&e.types.structs)for(let t of Object.keys(e.types.structs))this.registerStructType(t,e.types.structs[t]);if(e.types&&e.types.enums)for(let t of Object.keys(e.types.enums))this.registerEnumType(t,e.types.enums[t]);e.withPrimitives!==!1&&L6(this)}ser(e,t,n=1024){let{typeName:r,typeParams:o}=this.parseTypeName(e);return this.getTypeInterface(r).encode(t,n,o)}de(e,t,n){if(typeof t=="string")if(n)t=Sg(t,n);else throw new Error("To pass a string to `bcs.de`, specify encoding");let{typeName:r,typeParams:o}=this.parseTypeName(e);return this.getTypeInterface(r).decode(t,o)}hasType(e){return this.types.has(e)}registerType(e,t,n,r=()=>!0){return this.types.set(e,{encode(o,i=1024,s){return this._encodeRaw(new vo(i),o,s)},decode(o,i){return this._decodeRaw(new R6(o),i)},_encodeRaw(o,i,s){if(r(i))return t(o,i,s);throw new Error(`Validation failed for type ${e}, data: ${i}`)},_decodeRaw(o,i){return n(o,i)}}),this}registerAddressType(e,t,n="hex"){switch(n){case"base64":return this.registerType(e,(r,o)=>vg(o).reduce((i,s)=>i.write8(s),r),r=>wg(r.readBytes(t)));case"hex":return this.registerType(e,(r,o)=>bg(o).reduce((i,s)=>i.write8(s),r),r=>Eg(r.readBytes(t)));default:throw new Error("Unsupported encoding! Use either hex or base64")}}registerVectorType(e,t){let{typeName:n,typeParams:r}=this.parseTypeName(e);if(r.length>1)throw new Error("Vector can have only one type parameter; got "+e);return this.registerType(n,(o,i,s)=>o.writeVec(i,(a,d)=>{let p=t||s[0];if(p){let{typeName:E,typeParams:S}=this.parseTypeName(p);return this.getTypeInterface(t||E)._encodeRaw(a,d,S)}else throw new Error(`Incorrect number of type parameters passed to vector '${n}'`)}),(o,i)=>o.readVec(s=>{let a=t||i[0];if(a){let{typeName:d,typeParams:p}=this.parseTypeName(a);return this.getTypeInterface(t||d)._decodeRaw(s,p)}else throw new Error(`Incorrect number of type parameters passed to vector '${n}'`)}))}registerStructType(e,t){let n=Object.freeze(t),r=Object.keys(n),{typeName:o,typeParams:i}=this.parseTypeName(e);return this.registerType(o,(s,a,d)=>{if(!a||a.constructor!==Object)throw new Error(`Expected ${e} to be an Object, got: ${a}`);for(let p of r)if(p in a){let E=i.indexOf(n[p]),S=E===-1?n[p]:d[E];{let{typeName:M,typeParams:R}=this.parseTypeName(S);this.getTypeInterface(M)._encodeRaw(s,a[p],R)}}else throw new Error(`Struct ${e} requires field ${p}:${n[p]}`);return s},(s,a)=>{let d={};for(let p of r){let E=i.indexOf(n[p]),S=E===-1?n[p]:a[E];{let{typeName:M,typeParams:R}=this.parseTypeName(S);d[p]=this.getTypeInterface(M)._decodeRaw(s,R)}}return d})}registerEnumType(e,t){let n=Object.freeze(t),r=Object.keys(n),{typeName:o,typeParams:i}=this.parseTypeName(e);return this.registerType(o,(s,a,d)=>
117{if(a===void 0)throw new Error(`Unable to write enum ${e}, missing data`);let p=Object.keys(a)[0];if(p===void 0)throw new Error(`Unknown invariant of the enum ${e}`);let E=r.indexOf(p);if(E===-1)throw new Error(`Unknown invariant of the enum ${e}, allowed values: ${r}`);let S=r[E],M=n[S];if(s.write8(E),M===null)return s;let R=i.indexOf(M),U=R===-1?M:d[R];{let{typeName:P,typeParams:J}=this.parseTypeName(U);return this.getTypeInterface(P)._encodeRaw(s,a[p],J)}},(s,a)=>{let d=s.readULEB(),p=r[d],E=n[p];if(d===-1)throw new Error(`Decoding type mismatch, expected enum ${e} invariant index, received ${d}`);if(E===null)return{[p]:!0};let S=i.indexOf(E),M=S===-1?E:a[S];{let{typeName:R,typeParams:U}=this.parseTypeName(M);return{[p]:this.getTypeInterface(R)._decodeRaw(s,U)}}})}getTypeInterface(e){let t=this.types.get(e);if(t===void 0)throw new Error(`Type ${e} is not registered`);return t}parseTypeName(e){let[t,n]=this.schema.genericSeparators||["<",">"],r=e.indexOf(t),o=Array.from(e).reverse().indexOf(n);if(r===-1&&o===-1)return{typeName:e,typeParams:[]};if(r===-1||o===-1)throw new Error(`Unclosed generic in name '${e}'`);let i=e.slice(0,r),s=e.slice(r+1,e.length-o-1).split(",").map(a=>a.trim());return{typeName:i,typeParams:s}}},Xt=ef;Xt.U8="u8";Xt.U16="u16";Xt.U32="u32";Xt.U64="u64";Xt.U128="u128";Xt.U256="u256";Xt.BOOL="bool";Xt.VECTOR="vector";Xt.ADDRESS="address";Xt.STRING="string";function xg(e,t){switch(t){case"base64":return wg(e);case"hex":return Eg(e);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function Sg(e,t){switch(t){case"base64":return vg(e);case"hex":return bg(e);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function L6(e){e.registerType(Xt.U8,(t,n)=>t.write8(n),t=>t.read8(),t=>t<256),e.registerType(Xt.U16,(t,n)=>t.write16(n),t=>t.read16(),t=>t<65536),e.registerType(Xt.U32,(t,n)=>t.write32(n),t=>t.read32(),t=>t<=4294967296),e.registerType(Xt.U64,(t,n)=>t.write64(n),t=>t.read64(),t=>!0),e.registerType(Xt.U128,(t,n)=>t.write128(n),t=>t.read128(),t=>!0),e.registerType(Xt.U256,(t,n)=>t.write256(n),t=>t.read256(),t=>!0),e.registerType(Xt.BOOL,(t,n)=>t.write8(n),t=>t.read8().toString(10)==="1",t=>!0),e.registerType(Xt.STRING,(t,n)=>t.writeVec(Array.from(n),(r,o)=>r.write8(o.charCodeAt(0))),t=>t.readVec(n=>n.read8()).map(n=>String.fromCharCode(n)).join(""),t=>!0)}function D6(){return{genericSeparators:["<",">"],vectorType:"vector",addressLength:20,addressEncoding:"hex"}}var yd={},Wa={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Wa);var ap={exports:{}},lp;function gd(){return lp||(lp=1,function(e){function t(r,o){for(var i=0;i<o.length;i++){var s=o[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function n(r,o,i){return o&&t(r.prototype,o),i&&t(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ap)),ap.exports}var cp={exports:{}},fp;function md(){return fp||(fp=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(cp)),cp.exports}var dp={exports:{}},hp={exports:{}},pp;function z6(){return pp||(pp=1,function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hp)),hp.exports}var yp;function vd(){return yp||(yp=1,function(e){var t=z6();function n(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&t(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(dp)),dp.exports}var gp={exports:{}},mp={exports:{}},vp;function wd(){return vp||(vp=1,function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(mp)),mp.exports}
117var wp={exports:{}},bp;function F6(){return bp||(bp=1,function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wp)),wp.exports}var Ep;function bd(){return Ep||(Ep=1,function(e){var t=wd().default,n=F6();function r(o,i){if(i&&(t(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(gp)),gp.exports}var xp={exports:{}},Sp;function Ed(){return Sp||(Sp=1,function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(xp)),xp.exports}var kp={},Mp={exports:{}},_p;function kg(){return _p||(_p=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(d,p,E){this.fn=d,this.context=p,this.once=E||!1}function i(d,p,E,S,M){if(typeof E!="function")throw new TypeError("The listener must be a function");var R=new o(E,S||d,M),U=n?n+p:p;return d._events[U]?d._events[U].fn?d._events[U]=[d._events[U],R]:d._events[U].push(R):(d._events[U]=R,d._eventsCount++),d}function s(d,p){--d._eventsCount===0?d._events=new r:delete d._events[p]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var d=[],p,E;if(this._eventsCount===0)return d;for(E in p=this._events)t.call(p,E)&&d.push(n?E.slice(1):E);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},a.prototype.listeners=function(d){var p=n?n+d:d,E=this._events[p];if(!E)return[];if(E.fn)return[E.fn];for(var S=0,M=E.length,R=new Array(M);S<M;S++)R[S]=E[S].fn;return R},a.prototype.listenerCount=function(d){var p=n?n+d:d,E=this._events[p];return E?E.fn?1:E.length:0},a.prototype.emit=function(d,p,E,S,M,R){var U=n?n+d:d;if(!this._events[U])return!1;var P=this._events[U],J=arguments.length,j,T;if(P.fn){switch(P.once&&this.removeListener(d,P.fn,void 0,!0),J){case 1:return P.fn.call(P.context),!0;case 2:return P.fn.call(P.context,p),!0;case 3:return P.fn.call(P.context,p,E),!0;case 4:return P.fn.call(P.context,p,E,S),!0;case 5:return P.fn.call(P.context,p,E,S,M),!0;case 6:return P.fn.call(P.context,p,E,S,M,R),!0}for(T=1,j=new Array(J-1);T<J;T++)j[T-1]=arguments[T];P.fn.apply(P.context,j)}else{var _=P.length,C;for(T=0;T<_;T++)switch(P[T].once&&this.removeListener(d,P[T].fn,void 0,!0),J){case 1:P[T].fn.call(P[T].context);break;case 2:P[T].fn.call(P[T].context,p);break;case 3:P[T].fn.call(P[T].context,p,E);break;case 4:P[T].fn.call(P[T].context,p,E,S);break;default:if(!j)for(C=1,j=new Array(J-1);C<J;C++)j[C-1]=arguments[C];P[T].fn.apply(P[T].context,j)}}return!0},a.prototype.on=function(d,p,E){return i(this,d,p,E,!1)},a.prototype.once=function(d,p,E){return i(this,d,p,E,!0)},a.prototype.removeListener=function(d,p,E,S){var M=n?n+d:d;if(!this._events[M])return this;if(!p)return s(this,M),this;var R=this._events[M];if(R.fn)R.fn===p&&(!S||R.once)&&(!E||R.context===E)&&s(this,M);else{for(var U=0,P=[],J=R.length;U<J;U++)(R[U].fn!==p||S&&!R[U].once||E&&R[U].context!==E)&&P.push(R[U]);P.length?this._events[M]=P.length===1?P[0]:P:s(this,M)}return this},a.prototype.removeAllListeners=function(d){var p;return d?(p=n?n+d:d,this._events[p]&&s(this,p)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(Mp)),Mp.exports}var Ap;function W6(){return Ap||(Ap=1,function(e){var t=Wa.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=S;var n=t(md()),r=t(gd()),o=t(vd()),i=t(bd()),s=t(Ed()),a=kg();function d(M){var R=p();return function(){var U=(0,s.default)(M),P;if(R){var J=(0,s.default)(this).constructor;P=Reflect.construct(U,arguments,J)}else P=U.apply(this,arguments);return(0,i.default)(this,P)}}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var E=function(M){(0,o.default)(U,M);var R=d(U);function U(P,J,j){var T;return(0,n.default)(this,U),T=R.call(this),T.socket=new window.WebSocket(P,j),T.socket.onopen=function(){return T.emit("open")},T.socket.onmessage=function(_){return T.emit("message",_.data)},T.socket.onerror=function(_){return T.emit("error",_)},T.socket.onclose=function(_){T.emit("close",_.code,_.reason)},T}return(0,r.default)(U,[{key:"send",value:function(P,J,j){var T=j||J;try{this.socket.send(P),T()}catch(_){T(_)}}},{key:"close",value:function(P,J){this.socket.close(P,J)}},{key:"addEventListener",value:function(P,J,j){this.socket.addEventListener(P,J,j)}}]),U}(a.EventEmitter);function S(M,R){return new E(M,R)}}(kp)),kp}var Tp={},Op={exports:{}},Cp;function H6(){return Cp||(Cp=1,function(e){var t=wd().default;function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exp
vendor: 4,518 bytes, line 117
117orts=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},a=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function E(u,l,y){return Object.defineProperty(u,l,{value:y,enumerable:!0,configurable:!0,writable:!0}),u[l]}try{E({},"")}catch{E=function(u,l,y){return u[l]=y}}function S(u,l,y,x){var O=l&&l.prototype instanceof U?l:U,$=Object.create(O.prototype),B=new Me(x||[]);return $._invoke=function(N,h,w){var re="suspendedStart";return function(ee,v){if(re==="executing")throw new Error("Generator is already running");if(re==="completed"){if(ee==="throw")throw v;return ne()}for(w.method=ee,w.arg=v;;){var G=w.delegate;if(G){var V=Z(G,w);if(V){if(V===R)continue;return V}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(re==="suspendedStart")throw re="completed",w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);re="executing";var Y=M(N,h,w);if(Y.type==="normal"){if(re=w.done?"completed":"suspendedYield",Y.arg===R)continue;return{value:Y.arg,done:w.done}}Y.type==="throw"&&(re="completed",w.method="throw",w.arg=Y.arg)}}}(u,y,B),$}function M(u,l,y){try{return{type:"normal",arg:u.call(l,y)}}catch(x){return{type:"throw",arg:x}}}r.wrap=S;var R={};function U(){}function P(){}function J(){}var j={};E(j,a,function(){return this});var T=Object.getPrototypeOf,_=T&&T(T(Q([])));_&&_!==o&&i.call(_,a)&&(j=_);var C=J.prototype=U.prototype=Object.create(j);function L(u){["next","throw","return"].forEach(function(l){E(u,l,function(y){return this._invoke(l,y)})})}function z(u,l){function y(O,$,B,N){var h=M(u[O],u,$);if(h.type!=="throw"){var w=h.arg,re=w.value;return re&&t(re)=="object"&&i.call(re,"__await")?l.resolve(re.__await).then(function(ee){y("next",ee,B,N)},function(ee){y("throw",ee,B,N)}):l.resolve(re).then(function(ee){w.value=ee,B(w)},function(ee){return y("throw",ee,B,N)})}N(h.arg)}var x;this._invoke=function(O,$){function B(){return new l(function(N,h){y(O,$,N,h)})}return x=x?x.then(B,B):B()}}function Z(u,l){var y=u.iterator[l.method];if(y===void 0){if(l.delegate=null,l.method==="throw"){if(u.iterator.return&&(l.method="return",l.arg=void 0,Z(u,l),l.method==="throw"))return R;l.method="throw",l.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var x=M(y,u.iterator,l.arg);if(x.type==="throw")return l.method="throw",l.arg=x.arg,l.delegate=null,R;var O=x.arg;return O?O.done?(l[u.resultName]=O.value,l.next=u.nextLoc,l.method!=="return"&&(l.method="next",l.arg=void 0),l.delegate=null,R):O:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,R)}function X(u){var l={tryLoc:u[0]};1 in u&&(l.catchLoc=u[1]),2 in u&&(l.finallyLoc=u[2],l.afterLoc=u[3]),this.tryEntries.push(l)}function ce(u){var l=u.completion||{};l.type="normal",delete l.arg,u.completion=l}function Me(u){this.tryEntries=[{tryLoc:"root"}],u.forEach(X,this),this.reset(!0)}function Q(u){if(u){var l=u[a];if(l)return l.call(u);if(typeof u.next=="function")return u;if(!isNaN(u.length)){var y=-1,x=function O(){for(;++y<u.length;)if(i.call(u,y))return O.value=u[y],O.done=!1,O;return O.value=void 0,O.done=!0,O};return x.next=x}}return{next:ne}}function ne(){return{value:void 0,done:!0}}return P.prototype=J,E(C,"constructor",J),E(J,"constructor",P),P.displayName=E(J,p,"GeneratorFunction"),r.isGeneratorFunction=function(u){var l=typeof u=="function"&&u.constructor;return!!l&&(l===P||(l.displayName||l.name)==="GeneratorFunction")},r.mark=function(u){return Object.setPrototypeOf?Object.setPrototypeOf(u,J):(u.__proto__=J,E(u,p,"GeneratorFunction")),u.prototype=Object.create(C),u},r.awrap=function(u){return{__await:u}},L(z.prototype),E(z.prototype,d,function(){return this}),r.AsyncIterator=z,r.async=function(u,l,y,x,O){O===void 0&&(O=Promise);var $=new z(S(u,l,y,x),O);return r.isGeneratorFunction(l)?$:$.next().then(function(B){return B.done?B.value:$.next()})},L(C),E(C,p,"Generator"),E(C,a,function(){return this}),E(C,"toString",function(){return"[object Generator]"}),r.keys=function(u){var l=[];for(var y in u)l.push(y);return l.reverse(),function x(){for(;l.length;){var O=l.pop();if(O in u)return x.value=O,x.done=!1,x}return x.done=!0,x}},r.values=Q,Me.prototype={constructor:Me,reset:function(u){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
117h(ce),!u)for(var l in this)l.charAt(0)==="t"&&i.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=void 0)},stop:function(){this.done=!0;var u=this.tryEntries[0].completion;if(u.type==="throw")throw u.arg;return this.rval},dispatchException:function(u){if(this.done)throw u;var l=this;function y(h,w){return $.type="throw",$.arg=u,l.next=h,w&&(l.method="next",l.arg=void 0),!!w}for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x],$=O.completion;if(O.tryLoc==="root")return y("end");if(O.tryLoc<=this.prev){var B=i.call(O,"catchLoc"),N=i.call(O,"finallyLoc");if(B&&N){if(this.prev<O.catchLoc)return y(O.catchLoc,!0);if(this.prev<O.finallyLoc)return y(O.finallyLoc)}else if(B){if(this.prev<O.catchLoc)return y(O.catchLoc,!0)}else{if(!N)throw new Error("try statement without catch or finally");if(this.prev<O.finallyLoc)return y(O.finallyLoc)}}}},abrupt:function(u,l){for(var y=this.tryEntries.length-1;y>=0;--y){var x=this.tryEntries[y];if(x.tryLoc<=this.prev&&i.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var O=x;break}}O&&(u==="break"||u==="continue")&&O.tryLoc<=l&&l<=O.finallyLoc&&(O=null);var $=O?O.completion:{};return $.type=u,$.arg=l,O?(this.method="next",this.next=O.finallyLoc,R):this.complete($)},complete:function(u,l){if(u.type==="throw")throw u.arg;return u.type==="break"||u.type==="continue"?this.next=u.arg:u.type==="return"?(this.rval=this.arg=u.arg,this.method="return",this.next="end"):u.type==="normal"&&l&&(this.next=l),R},finish:function(u){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.finallyLoc===u)return this.complete(y.completion,y.afterLoc),ce(y),R}},catch:function(u){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.tryLoc===u){var x=y.completion;if(x.type==="throw"){var O=x.arg;ce(y)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(u,l,y){return this.delegate={iterator:Q(u),resultName:l,nextLoc:y},this.method==="next"&&(this.arg=void 0),R}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Op)),Op.exports}var Ll,Np;function V6(){if(Np)return Ll;Np=1;var e=H6()();Ll=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return Ll}var jp={exports:{}},Ip;function G6(){return Ip||(Ip=1,function(e){function t(r,o,i,s,a,d,p){try{var E=r[d](p),S=E.value}catch(M){i(M);return}E.done?o(S):Promise.resolve(S).then(s,a)}function n(r){return function(){var o=this,i=arguments;return new Promise(function(s,a){var d=r.apply(o,i);function p(S){t(d,s,a,p,E,"next",S)}function E(S){t(d,s,a,p,E,"throw",S)}p(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(jp)),jp.exports}var $p;function q6(){return $p||($p=1,function(e){var t=Wa.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(V6()),r=t(G6()),o=t(wd()),i=t(md()),s=t(gd()),a=t(vd()),d=t(bd()),p=t(Ed()),E=kg();function S(P){var J=M();return function(){var j=(0,p.default)(P),T;if(J){var _=(0,p.default)(this).constructor;T=Reflect.construct(j,arguments,_)}else T=j.apply(this,arguments);return(0,d.default)(this,T)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var R=function(P,J){var j={};for(var T in P)Object.prototype.hasOwnProperty.call(P,T)&&J.indexOf(T)<0&&(j[T]=P[T]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,T=Object.getOwnPropertySymbols(P);_<T.length;_++)J.indexOf(T[_])<0&&Object.prototype.propertyIsEnumerable.call(P,T[_])&&(j[T[_]]=P[T[_]]);return j},U=function(P){(0,a.default)(j,P);var J=S(j);function j(T){var _,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ws://localhost:8080",L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=arguments.length>3?arguments[3]:void 0;(0,i.default)(this,j);var Z=L.autoconnect,X=Z===void 0?!0:Z,ce=L.reconnect,Me=ce===void 0?!0:ce,Q=L.reconnect_interval,ne=Q===void 0?1e3:Q,u=L.max_reconnects,l=u===void 0?5:u,y=R(L,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return _=J.call(this),_.webSocketFactory=T,_.queue={},_.rpc_id=0,_.address=C,_.autoconnect=X,_.ready=!1,_.reconnect=Me,_.reconnect_interval=ne,_.max_reconnects=l,_.rest_options=y,_.current_reconnects=0,_.generate_request_id=z||function(){return++_.rpc_id},_.autoconnect&&_._connect(_.address,Object.assign({autoconnect:_.autoconnect,reconnect:_.reconnect,reconnect_interval:_.reconnect_interval,max_reconnects:_.max_reconnects},_.rest_options)),_}
117return(0,s.default)(j,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(T,_,C,L){var z=this;return!L&&(0,o.default)(C)==="object"&&(L=C,C=null),new Promise(function(Z,X){if(!z.ready)return X(new Error("socket not ready"));var ce=z.generate_request_id(T,_),Me={jsonrpc:"2.0",method:T,params:_||null,id:ce};z.socket.send(JSON.stringify(Me),L,function(Q){if(Q)return X(Q);z.queue[ce]={promise:[Z,X]},C&&(z.queue[ce].timeout=setTimeout(function(){delete z.queue[ce],X(new Error("reply timeout"))},C))})})}},{key:"login",value:function(){var T=(0,r.default)(n.default.mark(function C(L){var z;return n.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,this.call("rpc.login",L);case 2:if(z=Z.sent,z){Z.next=5;break}throw new Error("authentication failed");case 5:return Z.abrupt("return",z);case 6:case"end":return Z.stop()}},C,this)}));function _(C){return T.apply(this,arguments)}return _}()},{key:"listMethods",value:function(){var T=(0,r.default)(n.default.mark(function C(){return n.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.call("__listMethods");case 2:return L.abrupt("return",L.sent);case 3:case"end":return L.stop()}},C,this)}));function _(){return T.apply(this,arguments)}return _}()},{key:"notify",value:function(T,_){var C=this;return new Promise(function(L,z){if(!C.ready)return z(new Error("socket not ready"));var Z={jsonrpc:"2.0",method:T,params:_||null};C.socket.send(JSON.stringify(Z),function(X){if(X)return z(X);L()})})}},{key:"subscribe",value:function(){var T=(0,r.default)(n.default.mark(function C(L){var z;return n.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return typeof L=="string"&&(L=[L]),Z.next=3,this.call("rpc.on",L);case 3:if(z=Z.sent,!(typeof L=="string"&&z[L]!=="ok")){Z.next=6;break}throw new Error("Failed subscribing to an event '"+L+"' with: "+z[L]);case 6:return Z.abrupt("return",z);case 7:case"end":return Z.stop()}},C,this)}));function _(C){return T.apply(this,arguments)}return _}()},{key:"unsubscribe",value:function(){var T=(0,r.default)(n.default.mark(function C(L){var z;return n.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return typeof L=="string"&&(L=[L]),Z.next=3,this.call("rpc.off",L);case 3:if(z=Z.sent,!(typeof L=="string"&&z[L]!=="ok")){Z.next=6;break}throw new Error("Failed unsubscribing from an event with: "+z);case 6:return Z.abrupt("return",z);case 7:case"end":return Z.stop()}},C,this)}));function _(C){return T.apply(this,arguments)}return _}()},{key:"close",value:function(T,_){this.socket.close(T||1e3,_)}},{key:"_connect",value:function(T,_){var C=this;this.socket=this.webSocketFactory(T,_),this.socket.addEventListener("open",function(){C.ready=!0,C.emit("open"),C.current_reconnects=0}),this.socket.addEventListener("message",function(L){var z=L.data;z instanceof ArrayBuffer&&(z=Buffer.from(z).toString());try{z=JSON.parse(z)}catch{return}if(z.notification&&C.listeners(z.notification).length){if(!Object.keys(z.params).length)return C.emit(z.notification);var Z=[z.notification];if(z.params.constructor===Object)Z.push(z.params);else for(var X=0;X<z.params.length;X++)Z.push(z.params[X]);return Promise.resolve().then(function(){C.emit.apply(C,Z)})}if(!C.queue[z.id])return z.method&&z.params?Promise.resolve().then(function(){C.emit(z.method,z.params)}):void 0;"error"in z=="result"in z&&C.queue[z.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),C.queue[z.id].timeout&&clearTimeout(C.queue[z.id].timeout),z.error?C.queue[z.id].promise[1](z.error):C.queue[z.id].promise[0](z.result),delete C.queue[z.id]}),this.socket.addEventListener("error",function(L){return C.emit("error",L)}),this.socket.addEventListener("close",function(L){var z=L.code,Z=L.reason;C.ready&&setTimeout(function(){return C.emit("close",z,Z)},0),C.ready=!1,C.socket=void 0,z!==1e3&&(C.current_reconnects++,C.reconnect&&(C.max_reconnects>C.current_reconnects||C.max_reconnects===0)&&setTimeout(function(){return C._connect(T,_)},C.reconnect_interval))})}}]),j}(E.EventEmitter);e.default=U}(Tp)),Tp}var zo=Wa.exports;Object.defineProperty(yd,"__esModule",{value:!0});var Mg=yd.Client=void 0,K6=zo(gd()),Q6=zo(md()),J6=zo(vd()),Z6=zo(bd()),Pp=zo(Ed()),X6=zo(W6()),Y6=zo(q6());function e8(e){var t=t8();return function(){var n=(0,Pp.default)(e),r;if(t){var o=(0,Pp.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,Z6.default)(this,r)}}function t8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var n8=function(e){(0,J6.default)(n,e);var t=e8(n);function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ws://localhost:8080",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.autoconnect,s=i===void 0?!0:i,a=o.reconnect,d=a===void 0?!0:a,p=o.reconnect_interval,E=p===void 0?1e3:p,S=o.max_reconnects,M=S===void 0?5:S,R=arguments.length>2?arguments[2]:void 0;return(0,Q6.default)(this,n),t.call(this,X6.default,r,{autoconnect:s,reconnect:d,reconnect_interval:E,max_reconnects:M},R)}return(0,K6.default)(n)}(Y6.default);Mg=yd.Client=n8;qr.hmacSha256Sync=(e,...t)=>{const n=dd.create(Ba,e);return t.forEach(r=>n.update(r)),n.digest()};var r8=class{};function Dl(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&e.jsonrpc==="2.0"&&typeof e.id=="string"}function o8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&e.jsonrpc==="2.0"&&typeof e.id=="string"&&(e.error!==null&&typeof e.error=="object"||typeof e.error=="function")&&typeof e.error.message=="string"}var Rp="The response returned from RPC server does not match the TypeScript definition. This is likely because the SDK ver
117sion is not compatible with the RPC server. Please update your SDK version to the latest. ",i8=class{constructor(e,t){this.rpcClient=this.createRpcClient(e,t)}createRpcClient(e,t){return new $6(async(n,r)=>{const o={method:"POST",body:n,headers:Object.assign({"Content-Type":"application/json"},t||{})};try{let i=await mg(e,o);const s=await i.text();let a;try{a=JSON.stringify(Yc.exports.parse(s,(d,p)=>{if(p==null)return p;if(d==="balance"&&typeof p=="number")return p.toString();try{if(p.isLosslessNumber)return p.valueOf()}catch{return p.toString()}return p}))}catch{a=s}i.ok?r(null,a):r(new Error(`${i.status} ${i.statusText}: ${s}`))}catch(i){i instanceof Error&&r(i)}},{})}async requestWithType(e,t,n,r=!1){const o=await this.request(e,t);if(o8(o))throw new Error(`RPC Error: ${o.error.message}`);if(Dl(o)){const i=n(o.result),s=Rp+`Result received was: ${JSON.stringify(o.result)}`;if(r&&!i)return console.warn(s),o.result;if(!i)throw new Error(`RPC Error: ${s}`);return o.result}throw new Error(`Unexpected RPC Response: ${o}`)}async request(e,t){return new Promise((n,r)=>{this.rpcClient.request(e,t,(o,i)=>{if(o){r(o);return}n(i)})})}async batchRequestWithType(e,t,n=!1){const r=await this.batchRequest(e),o=r.filter(i=>Dl(i)&&(n||t(i.result)));if(r.length>o.length){console.warn(`Batch request contains invalid responses. ${r.length-o.length} of the ${r.length} requests has invalid schema.`);const i=r.find(a=>!t(a.result)),s=r.findIndex(a=>!Dl(a));i&&console.warn(Rp+`One example mismatch is: ${JSON.stringify(i.result)}`),s!==-1&&console.warn(`The request ${JSON.stringify(e[s])} within a batch request returns an invalid response ${JSON.stringify(r[s])}`)}return o.map(i=>i.result)}async batchRequest(e){return new Promise((t,n)=>{e.length===0&&t([]);const r=e.map(o=>this.rpcClient.request(o.method,o.args));this.rpcClient.request(r,(o,i)=>{if(o){n(o);return}t(i)})})}};function be(e,t){return typeof e=="string"}function $i(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.AddressOwner)||(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.ObjectOwner)||(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.SingleOwner)||(e!==null&&typeof e=="object"||typeof e=="function")&&(e.Shared!==null&&typeof e.Shared=="object"||typeof e.Shared=="function")&&Ot(e.Shared.initial_shared_version)||e==="Shared"||e==="Immutable"}function Wn(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.digest)&&be(e.objectId)&&Ot(e.version)}function s8(e,t){return Wn(e)&&(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.type)&&$i(e.owner)&&be(e.previousTransaction)}function u8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Object.entries(e).every(([n,r])=>be(n))}function a8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Object.entries(e).every(([n,r])=>be(r)&&be(n))}function l8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Bp(e.dataType)&&_g(e)||(e!==null&&typeof e=="object"||typeof e=="function")&&Bp(e.dataType)&&Ag(e)}function _g(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.type)&&u8(e.fields)&&(typeof e.has_public_transfer>"u"||e.has_public_transfer===!1||e.has_public_transfer===!0)}function Ag(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&a8(e.disassembled)}function c8(e,t){return be(e)||(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.Object)}function f8(e,t){return Array.isArray(e)&&e.every(n=>c8(n))}function d8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Object.entries(e).every(([n,r])=>Tg(r)&&be(n))}function Tg(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.file_format_version)&&be(e.address)&&be(e.name)&&Array.isArray(e.friends)&&e.friends.every(n=>h8(n))&&(e.structs!==null&&typeof e.structs=="object"||typeof e.structs=="function")&&Object.entries(e.structs).every(([n,r])=>Og(r)&&be(n))&&(e.exposed_functions!==null&&typeof e.exposed_functions=="object"||typeof e.exposed_functions=="function")&&Object.entries(e.exposed_functions).every(([n,r])=>Cg(r)&&be(n))}function h8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.address)&&be(e.name)}
117function Og(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&xd(e.abilities)&&Array.isArray(e.type_parameters)&&e.type_parameters.every(n=>p8(n))&&Array.isArray(e.fields)&&e.fields.every(n=>y8(n))}function p8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&xd(e.constraints)&&typeof e.is_phantom=="boolean"}function y8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.name)&&Co(e.type_)}function Cg(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&g8(e.visibility)&&typeof e.is_entry=="boolean"&&Array.isArray(e.type_parameters)&&e.type_parameters.every(n=>xd(n))&&Array.isArray(e.parameters)&&e.parameters.every(n=>Co(n))&&Array.isArray(e.return_)&&e.return_.every(n=>Co(n))}function g8(e,t){return e==="Private"||e==="Public"||e==="Friend"}function Ot(e,t){return typeof e=="number"}function xd(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.abilities)&&e.abilities.every(n=>be(n))}function Co(e,t){return be(e)||m8(e)||(e!==null&&typeof e=="object"||typeof e=="function")&&Co(e.Reference)||(e!==null&&typeof e=="object"||typeof e=="function")&&Co(e.MutableReference)||(e!==null&&typeof e=="object"||typeof e=="function")&&Co(e.Vector)||v8(e)}function m8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.TypeParameter)}function v8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&(e.Struct!==null&&typeof e.Struct=="object"||typeof e.Struct=="function")&&be(e.Struct.address)&&be(e.Struct.module)&&be(e.Struct.name)&&Array.isArray(e.Struct.type_arguments)&&e.Struct.type_arguments.every(n=>Co(n))}function oo(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&l8(e.data)&&$i(e.owner)&&be(e.previousTransaction)&&Ot(e.storageRebate)&&Wn(e.reference)}function w8(e,t){return e==="Exists"||e==="NotExists"||e==="Deleted"}function Bp(e,t){return e==="moveObject"||e==="package"}function Up(e,t){return Array.isArray(e)&&e.every(n=>s8(n))}function Lp(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&w8(e.status)&&(be(e.details)||Wn(e.details)||oo(e.details))}function b8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&be(e.type)&&(typeof e.fields>"u"||e.fields!==null&&typeof e.fields=="object"||typeof e.fields=="function")&&be(e.bcs)}function E8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.sender)&&be(e.packageId)}function x8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&$i(e.owner)&&T8(e.changeType)&&be(e.coinType)&&be(e.coinObjectId)&&Ot(e.version)&&Ot(e.amount)}function S8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&$i(e.recipient)&&be(e.objectType)&&be(e.objectId)&&Ot(e.version)}function k8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&be(e.objectType)&&be(e.objectId)&&Ot(e.version)}function M8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&be(e.objectId)&&Ot(e.version)}function _8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.packageId)&&be(e.transactionModule)&&be(e.sender)&&$i(e.recipient)&&be(e.objectType)&&be(e.objectId)&&Ot(e.version)}function A8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&b8(e.moveEvent)||(e!==null&&typeof e=="object"||typeof e=="function")&&E8(e.publish)||(e!==null&&typeof e=="object"||typeof e=="function")&&x8(e.coinBalanceChange)||(e!==null&&typeof e=="object"||typeof e=="function")&&S8(e.transferObject)||(e!==null&&typeof e=="object"||typeof e=="function")&&k8(e.mutateObject)||(e!==null&&typeof e=="object"||typeof e=="function")&&M8(e.deleteObject)||(e!==null&&typeof e=="object"||typeof e=="function")&&_8(e.newObject)||(e!==null&&typeof e=="object"||typeof e=="function")&&typeof e.epochChange=="bigint"||(e!==null&&typeof e=="object"||typeof e=="function")&&typeof e.checkpoint=="bigint"}function T8(e,t){return e==="Gas"||e==="Pay"||e==="Receive"}function Ng(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.timestamp)&&be(e.txDigest)&&A8(e.event)}function ho(e,t){return Array.isArray(e)&&e.every(n=>Ng(n))}function O8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.subscription)&&Ng(e.result)}function C8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.recipient)&&Wn(e.objectRef)}function N8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.recipient)&&(e.amount===null||Ot(e.amount))}function j8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.epoch)&&Ot(e.storage_charge)&&Ot(e.computation_charge)}function I8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.coins)&&e.coins.every(n=>Wn(n))&&Array.isArray(e.recipients)&&e.recipients.every(n=>be(n))&&Array.isArray(e.amounts)&&e.amounts.every(n=>Ot(n))}function $8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.coins)&&e.coins.every(n=>Wn(n))&&Array.isArray(e.recipients)&&e.recipients.every(n=>be(n))&&Array.isArray(e.amounts)&&e.amounts.every(n=>Ot(n))}function P8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.coins)&&e.coins.every(n=>Wn(n))&&be(e.recipient)}function R8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&C8(e.TransferObject)||(e!==null&&typeof e=="object"||typeof e=="function")&&Ag(e.Publish)||(e!==null&&typeof e=="object"||typeof e=="function")&&G8(e.Call)||(e!==null&&typeof e=="object"||typeof e=="function")&&N8(e.TransferSui)||(e!==null&&typeof e=="object"||typeof e=="function")&&j8(e.ChangeEpoch)||(e!==null&&typeof e=="object"||typeof e=="function")&&I8(e.Pay)||(e!==null&&typeof e=="object"||typeof e=="function")&&$8(e.PaySui)||(e!==null&&typeof e=="object"||typeof e=="function")&&P8(e.PayAllSui)}function B8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.transactions)&&e.transactions.every(n=>R8(n))&&be(e.sender)&&Wn(e.gasPayment)&&Ot(e.gasBudget)}function U8(e,t){return be(e)||Array.isArray(e)&&e.every(n=>be(n))}function L8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.epoch)&&U8(e.signature)}function tf(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.transactionDigest)&&B8(e.data)&&be(e.txSignature)&&L8(e.authSignInfo)}function D8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Ot(e.computationCost)&&Ot(e.storageCost)&&Ot(e.storageRebate)}function z8(e,t){return e==="success"||e==="failure"}function F8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&z8(e.status)&&(typeof e.error>"u"||be(e.error))}function bu(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&$i(e.owner)&&Wn(e.reference)}function jg(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&F8(e.status)&&D8(e.gasUsed)&&(typeof e.sharedObjects>"u"||Array.isArray(e.sharedObjects)&&e.sharedObjects.every(n=>Wn(n)))&&be(e.transactionDigest)&&(typeof e.created>"u"||Array.isArray(e.created)&&e.created.every(n=>bu(n)))&&(typeof e.mutated>"u"||Array.isArray(e.mutated)&&e.mutated.every(n=>bu(n)))&&(typeof e.unwrapped>"u"||Array.isArray(e.unwrapped)&&e.unwrapped.every(n=>bu(n)))&&(typeof e.deleted>"u"||Array.isArray(e.deleted)&&e.deleted.every(n=>Wn(n)))&&(typeof e.wrapped>"u"||Array.isArray(e.wrapped)&&e.wrapped.every(n=>Wn(n)))&&bu(e.gasObject)&&(typeof e.events>"u"||Array.isArray(e.events))&&(typeof e.dependencies>"u"||Array.isArray(e.dependencies)&&e.dependencies.every(n=>be(n)))}function Dp(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&tf(e.certificate)&&jg(e.effects)&&(e.timestamp_ms===null||Ot(e.timestamp_ms))&&(e.parsed_data===null||(e.parsed_data!==null&&typeof e.parsed_data=="object"||typeof e.parsed_data=="function")&&K8(e.parsed_data.SplitCoin)||(e.parsed_data!==null&&typeof e.parsed_data=="object"||typeof e.parsed_data=="function")&&q8(e.parsed_data.MergeCoin)||(e.parsed_data!==null&&typeof e.parsed_data=="object"||typeof e.parsed_data=="function")&&Q8(e.parsed_data.Publish))}function W8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&jg(e.effects)}function H8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&(e.ImmediateReturn!==null&&typeof e.ImmediateReturn=="object"||typeof e.ImmediateReturn=="function")&&be(e.ImmediateReturn.tx_digest)||(e!==null&&typeof e=="object"||typeof e=="function")&&(e.TxCert!==null&&typeof e.TxCert=="object"||typeof e.TxCert=="function")&&tf(e.TxCert.certificate)||(e!==null&&typeof e=="object"||typeof e=="function")&&(e.EffectsCert!==null&&typeof e.EffectsCert=="object"||typeof e.EffectsCert=="function")&&tf(e.EffectsCert.certificate)&&W8(e.EffectsCert.effects)}function V8(e,t){return Array.isArray(e)&&e.every(n=>be(n))}function zl(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.data)&&e.data.every(n=>be(n))&&(e.nextCursor===null||be(e.nextCursor))}function G8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Wn(e.package)&&be(e.module)&&be(e.function)&&(typeof e.typeArguments>"u"||Array.isArray(e.typeArguments)&&e.typeArguments.every(n=>be(n)))&&(typeof e.arguments>"u"||Array.isArray(e.arguments)&&e.arguments.every(n=>Ig(n)))}function Ig(e,t){return be(e)||Ot(e)||e===!1||e===!0||Array.isArray(e)&&e.every(n=>Ig(n))}function q8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&oo(e.updatedCoin)&&oo(e.updatedGas)}function K8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&oo(e.updatedCoin)&&Array.isArray(e.newCoins)&&e.newCoins.every(n=>oo(n))&&oo(e.updatedGas)}function Q8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&Array.isArray(e.createdObjects)&&e.createdObjects.every(n=>oo(n))&&J8(e.package)&&oo(e.updatedGas)}function J8(e,t){return(e!==null&&typeof e=="object"||typeof e=="function")&&be(e.digest)&&be(e.objectId)&&Ot(e.version)}var Z8=20;
117function nf(e,t=!1){let n=e.toLowerCase();return!t&&n.startsWith("0x")&&(n=n.slice(2)),`0x${n.padStart(Z8*2,"0")}`}function X8(e,t=!1){return nf(e,t)}BigInt(1e9);function Sd(e){return e.status!=="Exists"?void 0:e.details}function Y8(e){return e.status!=="Deleted"?void 0:e.details}function e4(e){return e.status!=="NotExists"?void 0:e.details}function $g(e){var t;return((t=Sd(e))==null?void 0:t.reference)||Y8(e)}function t4(e){var t,n;return"objectId"in e?e.objectId:(t=(n=$g(e))==null?void 0:n.objectId)!=null?t:e4(e)}function n4(e){var t;return(t=ha(e))==null?void 0:t.type}function r4(e){var t;return"fields"in e?e.fields:(t=ha(e))==null?void 0:t.fields}function ha(e){const t="data"in e?e:Sd(e);if((t==null?void 0:t.data.dataType)==="moveObject")return t.data}var po=100,Ko=0,Qo=Number.MAX_SAFE_INTEGER,Pg="0x2",zp=`${Pg}::sui::SUI`,o4=`${Pg}::coin::Coin`,i4=/^0x2::coin::Coin<(.+)>$/,Ct=class{static isCoin(e){var t,n;return(t=(n=Ct.getType(e))==null?void 0:n.startsWith(o4))!=null?t:!1}static getCoinTypeArg(e){var t;const n=(t=Ct.getType(e))==null?void 0:t.match(i4);return n?n[1]:null}static isSUI(e){const t=Ct.getCoinTypeArg(e);return t?Ct.getCoinSymbol(t)==="SUI":!1}static getCoinSymbol(e){return e.substring(e.lastIndexOf(":")+1)}static getCoinStructTag(e){return{address:X8(e.split("::")[0]),module:e.split("::")[1],name:e.split("::")[2],typeParams:[]}}static getID(e){return _g(e)?e.fields.id.id:t4(e)}static selectCoinsWithBalanceGreaterThanOrEqual(e,t,n=[]){return Ct.sortByBalance(e.filter(r=>!n.includes(Ct.getID(r))&&Ct.getBalance(r)>=t))}static selectCoinWithBalanceGreaterThanOrEqual(e,t,n=[]){return e.find(r=>!n.includes(Ct.getID(r))&&Ct.getBalance(r)>=t)}static selectCoinSetWithCombinedBalanceGreaterThanOrEqual(e,t,n=[]){const r=Ct.sortByBalance(e.filter(a=>!n.includes(Ct.getID(a)))),o=Ct.totalBalance(r);if(o<t)return[];if(o===t)return r;let i=BigInt(0),s=[];for(;i<o;){const a=t-i,d=r.find(E=>Ct.getBalance(E)>=a);if(d){s.push(d);break}const p=r.pop();s.push(p),i+=Ct.getBalance(p)}return Ct.sortByBalance(s)}static totalBalance(e){return e.reduce((t,n)=>t+Ct.getBalance(n),BigInt(0))}static sortByBalance(e){return e.sort((t,n)=>Ct.getBalance(t)<Ct.getBalance(n)?-1:Ct.getBalance(t)>Ct.getBalance(n)?1:0)}static getBalance(e){var t;if(!Ct.isCoin(e))return;const n=(t=r4(e))==null?void 0:t.balance;return BigInt(n)}static getZero(){return BigInt(0)}static getType(e){return"status"in e?n4(e):e.type}},xn=new Xt(D6());xn.registerType("utf8string",(e,t)=>{let n=Array.from(Gc.Buffer.from(t));return e.writeVec(n,(r,o)=>r.write8(o))},e=>{let t=e.readVec(n=>n.read8());return Gc.Buffer.from(t).toString("utf-8")}).registerType("ObjectDigest",(e,t)=>{let n=Array.from(Sg(t,"base64"));return e.writeVec(n,(r,o)=>r.write8(o))},e=>{let t=e.readVec(n=>n.read8());return xg(new Uint8Array(t),"base64")});xn.registerStructType("SuiObjectRef",{objectId:"address",version:"u64",digest:"ObjectDigest"});xn.registerStructType("TransferObjectTx",{recipient:"address",object_ref:"SuiObjectRef"});xn.registerStructType("PayTx",{coins:"vector<SuiObjectRef>",recipients:"vector<address>",amounts:"vector<u64>"});xn.registerStructType("PaySuiTx",{coins:"vector<SuiObjectRef>",recipients:"vector<address>",amounts:"vector<u64>"});xn.registerStructType("PayAllSuiTx",{coins:"vector<SuiObjectRef>",recipient:"address"});xn.registerEnumType("Option<T>",{None:null,Some:"T"});xn.registerStructType("TransferSuiTx",{recipient:"address",amount:"Option<u64>"});xn.registerStructType("PublishTx",{modules:"vector<vector<u8>>"});xn.registerStructType("SharedObjectRef",{objectId:"address",initialSharedVersion:"u64"}).registerEnumType("ObjectArg",{ImmOrOwned:"SuiObjectRef",Shared:"SharedObjectRef"}).registerEnumType("CallArg",{Pure:"vector<u8>",Object:"ObjectArg",ObjVec:"vector<ObjectArg>"});xn.registerEnumType("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:"TypeTag",struct:"StructTag",u16:null,u32:null,u256:null}).registerStructType("StructTag",{address:"address",module:"string",name:"string",typeParams:"vector<TypeTag>"});xn.registerStructType("MoveCallTx",{package:"SuiObjectRef",module:"string",function:"string",typeArguments:"vector<TypeTag>",arguments:"vector<CallArg>"});xn.registerEnumType("Transaction",{TransferObject:"TransferObjectTx",Publish:"PublishTx",Call:"MoveCallTx",TransferSui:"TransferSuiTx",Pay:"PayTx",PaySui:"PaySuiTx",PayAllSui:"PayAllSuiTx"});xn.registerEnumType("TransactionKind",{Single:"Transaction",Batch:"vector<Transaction>"});xn.registerStructType("TransactionData",{kind:"TransactionKind",sender:"address",gasPayment:"SuiObjectRef",gasPrice:"u64",gasBudget:"u64"});xn.registerEnumType("ObjectArg_Deprecated",{ImmOrOwned:"SuiObjectRef",Shared_Deprecated:"address"}).registerEnumType("CallArg_Deprecated",{Pure:"vector<u8>",Object:"ObjectArg_Deprecated",ObjVec:"vector<ObjectArg_Deprecated>"}).registerStructType("MoveCallTx_Deprecated",{package:"SuiObjectRef",module:"string",function:"string",typeArguments:"vector<TypeTag>",arguments:"vector<CallArg_Deprecated>"}).registerEnumType("Transaction_Deprecated",{TransferObject:"TransferObjectTx",Publish:"PublishTx",Call:"MoveCallTx_Deprecated",TransferSui:"TransferSuiTx",Pay:"PayTx",PaySui:"PaySuiTx",PayAllSui:"PayAllSuiTx"}).registerEnumType("TransactionKind_Deprecated",{Single:"Transaction_Deprecated",Batch:"vector<Transaction_Deprecated>"}).registerStructType("TransactionData_Deprecated",{kind:"TransactionKind_Deprecated",sender:"address",gasPayment:"SuiObjectRef",gasPrice:"u64",gasBudget:"u64"});function s4(e){const t=e.split(".");return{major:parseInt(t[0],10),minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}var u4=(e,t)=>{const n=new URL(e);return n.protocol=n.protocol.replace("http","ws"),n.port=(t!=null?t:9001).toString(),n.toString()},a4=e=>e&&"subscription"in e&&typeof e.subscription=="number"&&"result"in e&&typeof e.result=="object",Rg={connectTimeout:15e3,callTimeout:3e4,reconnectInterval:3e3,maxReconnects:5},Fp="sui_subscribeEvent",l4="sui_unsubscribeEvent",c4=class{constructor(e,t,n=Rg){this.endpoint=e,this.skipValidation=t,this.options=n,this.connectionState=0,this.connectionTimeout=null,this.isSetup=!1,this.connectionPromise=null,this.eventSubscriptions=new Map,this.endpoint.startsWith("http")&&(this.endpoint=u4(this.endpoint)),this.rpcClient=new Mg(this.endpoint,{reconnect_interval:this.options.reconnectInterval,max_reconnects:this.options.maxReconnects,autoconnect:!1})}setupSocket(){this.isSetup||(this.rpcClient.on("open",()=>{this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.connectionState=2,this.rpcClient.socket.on("message",this.onSocketMessage.bind(this))}),this.rpcClient.on("close",()=>{this.connectionState=0}),this.rpcClient.on("error",console.error),this.isSetup=!0)}onSocketMessage(e){const t=JSON.parse(e),n=t.params;
117if(t.method===Fp){if(this.skipValidation&&a4(n)){const r=this.eventSubscriptions.get(n.subscription);r&&r.onMessage(n.result)}else if(O8(n)){const r=this.eventSubscriptions.get(n.subscription);r&&r.onMessage(n.result)}}}async connect(){return this.connectionPromise?this.connectionPromise:this.connectionState===2?Promise.resolve():(this.setupSocket(),this.rpcClient.connect(),this.connectionState=1,this.connectionPromise=new Promise((e,t)=>{this.connectionTimeout=setTimeout(()=>t(new Error("timeout")),this.options.connectTimeout),this.rpcClient.once("open",()=>{this.refreshSubscriptions(),this.connectionPromise=null,e()}),this.rpcClient.once("error",n=>{this.connectionPromise=null,t(n)})}),this.connectionPromise)}async refreshSubscriptions(){if(this.eventSubscriptions.size!==0)try{let e=new Map;(await Promise.all(Array.from(this.eventSubscriptions.values()).map(async t=>{const n=t.onMessage,r=t.filter;return!r||!n?Promise.resolve(null):{id:await this.subscribeEvent(r,n),onMessage:n,filter:r}}))).forEach(t=>{if(t===null)return;const n=t.filter,r=t.onMessage;e.set(t.id,{filter:n,onMessage:r})}),this.eventSubscriptions=e}catch(e){throw new Error(`error refreshing event subscriptions: ${e}`)}}async subscribeEvent(e,t){try{this.connectionState!=2&&await this.connect();let n=await this.rpcClient.call(Fp,[e],this.options.callTimeout);return this.eventSubscriptions.set(n,{filter:e,onMessage:t}),n}catch(n){throw new Error(`Error subscribing to event: ${n}, filter: ${JSON.stringify(e)}`)}}async unsubscribeEvent(e){try{this.connectionState!=2&&await this.connect();let t=await this.rpcClient.call(l4,[e],this.options.callTimeout);return this.eventSubscriptions.delete(e)||t}catch(t){throw new Error(`Error unsubscribing from event: ${t}, subscription: ${e}}`)}}},Bg=(e=>(e.LOCAL="LOCAL",e.DEVNET="DEVNET",e))(Bg||{}),f4={LOCAL:{fullNode:"http://127.0.0.1:9000",faucet:"http://127.0.0.1:9123/gas"},DEVNET:{fullNode:"https://fullnode.devnet.sui.io/",faucet:"https://faucet.devnet.sui.io/gas"}};async function d4(e,t,n){const r=await(await mg(e,{method:"POST",body:JSON.stringify({FixedAmountRequest:{recipient:t}}),headers:{"Content-Type":"application/json",...n||{}}})).json();if(r.error)throw new Error(`Faucet returns error: ${r.error}`);return r}var h4=e=>typeof e=="number",p4=e=>!0,Wp={skipDataValidation:!0,socketOptions:Rg,versionCacheTimoutInSeconds:600},y4=class extends r8{constructor(e="DEVNET",t=Wp){super(),this.options=t,Object.values(Bg).includes(e)?this.endpoints=f4[e]:this.endpoints={fullNode:e,faucet:t.faucetURL};const n={...Wp,...t};this.client=new i8(this.endpoints.fullNode),this.wsClient=new c4(this.endpoints.fullNode,n.skipDataValidation,n.socketOptions)}async getRpcApiVersion(){var e;if(this.rpcApiVersion&&this.cacheExpiry&&this.cacheExpiry<=Date.now())return this.rpcApiVersion;try{const t=await this.client.requestWithType("rpc.discover",[],p4,this.options.skipDataValidation);return this.rpcApiVersion=s4(t.info.version),this.cacheExpiry=Date.now()+((e=this.options.versionCacheTimoutInSeconds)!=null?e:0),this.rpcApiVersion}catch(t){console.warn("Error fetching version number of the RPC API",t)}}async requestSuiFromFaucet(e,t){if(!this.endpoints.faucet)throw new Error("Faucet URL is not specified");return d4(this.endpoints.faucet,e,t)}async getMoveFunctionArgTypes(e,t,n){try{return await this.client.requestWithType("sui_getMoveFunctionArgTypes",[e,t,n],f8,this.options.skipDataValidation)}catch{throw new Error(`Error fetching Move function arg types with package object ID: ${e}, module name: ${t}, function name: ${n}`)}}async getNormalizedMoveModulesByPackage(e){try{return await this.client.requestWithType("sui_getNormalizedMoveModulesByPackage",[e],d8,this.options.skipDataValidation)}catch(t){throw new Error(`Error fetching package: ${t} for package ${e}`)}}async getNormalizedMoveModule(e,t){try{return await this.client.requestWithType("sui_getNormalizedMoveModule",[e,t],Tg,this.options.skipDataValidation)}catch(n){throw new Error(`Error fetching module: ${n} for package ${e}, module ${t}}`)}}async getNormalizedMoveFunction(e,t,n){try{return await this.client.requestWithType("sui_getNormalizedMoveFunction",[e,t,n],Cg,this.options.skipDataValidation)}catch(r){throw new Error(`Error fetching function: ${r} for package ${e}, module ${t} and function ${n}}`)}}async getNormalizedMoveStruct(e,t,n){try{return await this.client.requestWithType("sui_getNormalizedMoveStruct",[e,t,n],Og,this.options.skipDataValidation)}catch(r){throw new Error(`Error fetching struct: ${r} for package ${e}, module ${t} and struct ${n}}`)}}async getObjectsOwnedByAddress(e){try{return await this.client.requestWithType("sui_getObjectsOwnedByAddress",[e],Up,this.options.skipDataValidation)}catch(t){throw new Error(`Error fetching owned object: ${t} for address ${e}`)}}async getGasObjectsOwnedByAddress(e){return(await this.getObjectsOwnedByAddress(e)).filter(t=>Ct.isSUI(t))}getCoinDenominationInfo(e){const[t,n,r]=e.split("::");if(nf(t)!==nf("0x2")||n!="sui"||r!=="SUI")throw new Error("only SUI coin is supported in getCoinDenominationInfo for now.");return{coinType:e,basicUnit:"MIST",decimalNumber:9}}async getCoinBalancesOwnedByAddress(e,t){const n=(await this.getObjectsOwnedByAddress(e)).filter(r=>Ct.isCoin(r)&&(t===void 0||t===Ct.getCoinTypeArg(r))).map(r=>r.objectId);return await this.getObjectBatch(n)}async selectCoinsWithBalanceGreaterThanOrEqual(e,t,n=zp,r=[]){const o=await this.getCoinBalancesOwnedByAddress(e,n);return await Ct.selectCoinsWithBalanceGreaterThanOrEqual(o,t,r)}async selectCoinSetWithCombinedBalanceGreaterThanOrEqual(e,t,n=zp,r=[]){const o=await this.getCoinBalancesOwnedByAddress(e,n);return await Ct.selectCoinSetWithCombinedBalanceGreaterThanOrEqual(o,t,r)}async getObjectsOwnedByObject(e){try{return await this.client.requestWithType("sui_getObjectsOwnedByObject",[e],Up,this.options.skipDataValidation)}catch(t){throw new Error(`Error fetching owned object: ${t} for objectId ${e}`)}}async getObject(e){try{return await this.client.requestWithType("sui_getObject",[e],Lp,this.options.skipDataValidation)}catch(t){throw new Error(`Error fetching object info: ${t} for id ${e}`)}}async getObjectRef(e){const t=await this.getObject(e);return $g(t)}async getObjectBatch(e){const t=e.map(n=>({method:"sui_getObject",args:[n]}));try{return await this.client.batchRequestWithType(t,Lp,this.options.skipDataValidation)}catch(n){throw new Error(`Error fetching object info: ${n} for id ${e}`)}}async getTransactions(e,t=null,n=null,r="Descending"){try{return await this.client.requestWithType("sui_getTransactions",[e,t,n,r],zl,this.options.skipDataValidation)}catch(o){throw new Error(`Error getting transactions for query: ${o} for query ${e}`)}}async getTransactionsForObject(e,t="Descending"){const n=[{method:"sui_getTransactions",args:[{InputObject:e}
117,null,null,t]},{method:"sui_getTransactions",args:[{MutatedObject:e},null,null,t]}];try{const r=await this.client.batchRequestWithType(n,zl,this.options.skipDataValidation);return[...r[0].data,...r[1].data]}catch(r){throw new Error(`Error getting transactions for object: ${r} for id ${e}`)}}async getTransactionsForAddress(e,t="Descending"){const n=[{method:"sui_getTransactions",args:[{ToAddress:e},null,null,t]},{method:"sui_getTransactions",args:[{FromAddress:e},null,null,t]}];try{const r=await this.client.batchRequestWithType(n,zl,this.options.skipDataValidation);return[...r[0].data,...r[1].data]}catch(r){throw new Error(`Error getting transactions for address: ${r} for id ${e}`)}}async getTransactionWithEffects(e){try{return await this.client.requestWithType("sui_getTransaction",[e],Dp,this.options.skipDataValidation)}catch(t){throw new Error(`Error getting transaction with effects: ${t} for digest ${e}`)}}async getTransactionWithEffectsBatch(e){const t=e.map(n=>({method:"sui_getTransaction",args:[n]}));try{return await this.client.batchRequestWithType(t,Dp,this.options.skipDataValidation)}catch(n){const r=e.join(", ").substring(0,-2);throw new Error(`Error getting transaction effects: ${n} for digests [${r}]`)}}async executeTransactionWithRequestType(e,t,n,r,o="WaitForEffectsCert"){try{return await this.client.requestWithType("sui_executeTransaction",[e,t,n,r,o],H8,this.options.skipDataValidation)}catch(i){throw new Error(`Error executing transaction with request type: ${i}}`)}}async getTotalTransactionNumber(){try{return await this.client.requestWithType("sui_getTotalTransactionNumber",[],h4,this.options.skipDataValidation)}catch(e){throw new Error(`Error fetching total transaction number: ${e}`)}}async getTransactionDigestsInRange(e,t){try{return await this.client.requestWithType("sui_getTransactionsInRange",[e,t],V8,this.options.skipDataValidation)}catch(n){throw new Error(`Error fetching transaction digests in range: ${n} for range ${e}-${t}`)}}async getEventsByTransaction(e,t=po){try{return await this.client.requestWithType("sui_getEventsByTransaction",[e,t],ho,this.options.skipDataValidation)}catch(n){throw new Error(`Error getting events by transaction: ${e}, with error: ${n}`)}}async getEventsByModule(e,t,n=po,r=Ko,o=Qo){try{return await this.client.requestWithType("sui_getEventsByModule",[e,t,n,r,o],ho,this.options.skipDataValidation)}catch(i){throw new Error(`Error getting events by transaction module: ${e}::${t}, with error: ${i}`)}}async getEventsByMoveEventStructName(e,t=po,n=Ko,r=Qo){try{return await this.client.requestWithType("sui_getEventsByMoveEventStructName",[e,t,n,r],ho,this.options.skipDataValidation)}catch(o){throw new Error(`Error getting events by move event struct name: ${e}, with error: ${o}`)}}async getEventsBySender(e,t=po,n=Ko,r=Qo){try{return await this.client.requestWithType("sui_getEventsBySender",[e,t,n,r],ho,this.options.skipDataValidation)}catch(o){throw new Error(`Error getting events by sender: ${e}, with error: ${o}`)}}async getEventsByRecipient(e,t=po,n=Ko,r=Qo){try{return await this.client.requestWithType("sui_getEventsByRecipient",[e,t,n,r],ho,this.options.skipDataValidation)}catch(o){throw new Error(`Error getting events by receipient: ${e}, with error: ${o}`)}}async getEventsByObject(e,t=po,n=Ko,r=Qo){try{return await this.client.requestWithType("sui_getEventsByObject",[e,t,n,r],ho,this.options.skipDataValidation)}catch(o){throw new Error(`Error getting events by object: ${e}, with error: ${o}`)}}async getEventsByTimeRange(e=po,t=Ko,n=Qo){try{return await this.client.requestWithType("sui_getEventsByTimeRange",[e,t,n],ho,this.options.skipDataValidation)}catch(r){throw new Error(`Error getting events by time range: ${t} thru ${n}, with error: ${r}`)}}async subscribeEvent(e,t){return this.wsClient.subscribeEvent(e,t)}async unsubscribeEvent(e){return this.wsClient.unsubscribeEvent(e)}};Array.from("TransactionData::").map(e=>e.charCodeAt(0));const Hp="0x2::coin::Coin",g4=/^0x2::coin::Coin<(.+)>$/;class ko{static isCoin(t){return t.type.startsWith(Hp)}static isSUI(t){const n=ko.getCoinTypeArg(t);return n?ko.getCoinSymbol(n)==="SUI":!1}static getCoinObject(t){const n=ko.getCoinTypeArg(t);return{objectId:t.fields.id.id,symbol:n?ko.getCoinSymbol(n):"",balance:BigInt(t.fields.balance)}}static getBalance(t){return BigInt(t.fields.balance)}static getCoinTypeArg(t){const n=t.type.match(g4);
117return n?n[1]:null}static getCoinSymbol(t){return t.substring(t.lastIndexOf(":")+1)}static getCoinTypeFromArg(t){return`${Hp}<${t}>`}}class Vp{static isNft(t){return!!(t.fields.name&&t.fields.description&&t.fields.url)}static getNftObject(t,n){return{objectId:t.fields.id.id,name:t.fields.name,description:t.fields.description,url:t.fields.url,previousTransaction:n,objectType:t.type}}}const m4="0x0000000000000000000000000000000000000005";class v4{constructor(t,n){_s(this,"query"),this.query=new w4(t)}}class w4{constructor(t){_s(this,"provider"),this.provider=new y4(t)}async getActiveValidators(){return(await this.provider.getObject(m4)).details.data.fields.validators.fields.active_validators}async getOwnedObjects(t){const n=(await this.provider.getObjectsOwnedByAddress(t)).map(r=>r.objectId);return(await this.provider.getObjectBatch(n)).filter(r=>r.status==="Exists").map(r=>Sd(r))}async getOwnedCoins(t){return(await this.getOwnedObjects(t)).map(n=>({id:n.reference.objectId,object:ha(n)})).filter(n=>n.object&&ko.isCoin(n.object)).map(n=>ko.getCoinObject(n.object))}async getOwnedNfts(t){return(await this.getOwnedObjects(t)).map(n=>({id:n.reference.objectId,object:ha(n),previousTransaction:n.previousTransaction})).filter(n=>n.object&&Vp.isNft(n.object)).map(n=>{const r=n.object;return Vp.getNftObject(r,n.previousTransaction)})}async getNormalizedMoveFunction(t,n,r){return await this.provider.getNormalizedMoveFunction(t,n,r)}}function b4(e,t){return!t&&!e}async function E4(e){const{network:t,address:n}=e,r=await new v4(t.queryRpcUrl,t.gatewayRpcUrl).query.getOwnedCoins(n),o=new Map;for(const i of r)o.has(i.symbol)?o.set(i.symbol,o.get(i.symbol)+i.balance):o.set(i.symbol,i.balance);return Array.from(o.entries()).map(i=>({symbol:i[0],balance:String(i[1])}))}function x4({address:e,symbol:t,opts:n={}}){const[r,o]=K.exports.useState("0"),{networkId:i="devnet"}=n,s=Tw.getNetwork($a.devnet),{data:a,error:d,isValidating:p}=_w([`a?network=${i}`,e,s],E);async function E(M,R,U){const P=new Map;if(!R||!U)return P;const J=await E4({address:R,network:s});if(!J)throw new Error(`fetch coinsBalance failed: ${R}, ${i}`);return J.forEach(j=>{P.set(j.symbol,j.balance)}),P}const S=K.exports.useCallback(M=>{var R;return!M||!a?"0":(R=a.get(M))!=null?R:"0"},[a]);return K.exports.useEffect(()=>{if(!a||!t)return;const M=a.get(t);o(M!=null?M:"0")},[a,t]),{balance:r,error:d,isValidating:p,loading:b4(a,d),getBalance:S}}function S4(){var e;const{account:t}=Ls(),{error:n,loading:r,balance:o}=x4({address:(e=t==null?void 0:t.address)!=null?e:"",symbol:"SUI",opts:{networkId:$a.devnet}});return{balance:o,error:n,loading:r}}function wi(e){return Array.isArray(e)&&e.length>0}function Gp(e){return"standard:connect"in e.features&&"standard:events"in e.features&&"sui:signAndExecuteTransaction"in e.features}const k4=e=>{const{icon:t,alt:n="icon"}=e;return je("div",{onClick:e.onClick,className:e.className,style:e.style,children:typeof t=="string"?je("img",{src:t,alt:n,className:e.elClassName,style:e.elStyle}):pa.cloneElement(t)})},M4=()=>qt("div",{className:"wkit-dialog__header",children:[je(Ts,{className:"wkit-dialog__title",children:"Connect Wallet"}),je(Q5,{style:{position:"absolute",right:"16px",top:"16px"},className:"wkit-dialog__close",children:je(Z5,{})})]}),_4=()=>qt("div",{className:"wkit-new-to-sui",children:[je("span",{className:"wkit-new-to-sui__text",children:"New to sui? "}),je("a",{className:"wkit-new-to-sui__link",href:"https://suiet.app/docs/getting-started",target:"_blank",children:"Learn More Here"})]}),A4=e=>{const{wallet:t}=e,[n,r]=K.exports.useState("");return K.exports.useEffect(()=>{!t.iconUrl||r(t.iconUrl)},[t.iconUrl]),qt("div",{className:"wkit-select-item",onClick:()=>{var o;(o=e.onSelect)==null||o.call(e,t)},children:[je(k4,{icon:n,className:"wkit-select-item__icon",elClassName:"wkit-select-item__icon"}),t.name]},t.name)},qp=e=>wi(e.wallets)?qt("div",{className:"wkit-select__container",children:[je("div",{className:"wkit-select__title",children:e.title}),wi(e.wallets)&&e.wallets.map(t=>je(A4,{wallet:t,onSelect:e.onSelect},t.name))]}):null,T4=e=>{const{wallet:t}=e;return qt("section",{children:[qt("div",{className:"wkit-dialog__header",children:[je(Ts,{className:"wkit-dialog__title",style:{margin:"-8px 12px -6px -8px"},children:je("span",{className:"wkit-dialog__close",onClick:e.onNavBack,children:je(Oy,{})})}),je(Ts,{className:"wkit-dialog__title",children:"Install Wallet"})]}),qt("div",{className:"wkit-install",children:[je("img",{className:"wkit-install__logo",src:t.iconUrl,alt:`${t.name} logo`}),je("h1",{className:"wkit-install__title",children:"You haven\u2019t install this wallet"}),je("p",{className:"wkit-install__description",children:"Install wallet via Chrome Extension Store"}),je("button",{className:"wkit-button wkit-install__button",onClick:()=>{var n;if(!((n=t.downloadUrl)!=null&&n.browserExtension))throw new Qn(`no downloadUrl config on this wallet: ${t.name}`);window.open(t.downloadUrl.browserExtension,"_blank")},children:"Get Wallet"})]})]})},O4=e=>{const{wallet:t}=e;return qt("section",{children:[qt("div",{className:"wkit-dialog__header",children:[je(Ts,{className:"wkit-dialog__title",style:{margin:"-6px 12px -6px -8px"},children:je("span",{className:"wkit-dialog__close",onClick:e.onNavBack,children:je(Oy,{})})}),je(Ts,{className:"wkit-dialog__title",children:"Connecting"})]}),qt("div",{className:"wkit-connecting",children:[je("img",{className:"wkit-connecting__logo",src:t.iconUrl,alt:`logo of ${t.name}`}),qt("h1",{className:"wkit-connecting__title",children:["Opening ",t.name]}),je("p",{className:"wkit-connecting__description",children:"Confirm connection in the extension"})]})]})},C4=e=>{const{configuredWallets:t,detectedWallets:n,select:r,connecting:o,c
117onnected:i,allAvailableWallets:s}=Ls(),[a,d]=K.exports.useState();K.exports.useEffect(()=>{var S;i&&((S=e.onOpenChange)==null||S.call(e,!1))},[i]);const p=K.exports.useCallback(S=>{d(S),s.find(M=>M.name===S.name)&&r(S.name)},[r]);function E(){if(a){if(!a.installed)return je(T4,{wallet:a,onNavBack:()=>{d(void 0)}});if(o)return je(O4,{wallet:a,onNavBack:()=>{d(void 0)}})}return qt(ed,{children:[je(M4,{}),qt("div",{className:"wkit-select__scroll",children:[je(qp,{title:"Popular",wallets:t,onSelect:p}),je(qp,{title:"Others",wallets:n,onSelect:p})]}),je("div",{style:{height:"41px",flexShrink:"0"}}),je(_4,{})]})}return je(J5,{open:e.open,onOpenChange:e.onOpenChange,trigger:e.children,contentProps:{onOpenAutoFocus:S=>{S.preventDefault()}},children:E()})};function N4(e){return!e||!e.startsWith("0x")||e.length!==42?e:e.slice(0,4)+"...."+e.slice(-4)}function j4(e){const t=Number(e)/1e9;if(t<1)return I4(e);if(t>=1e6&&t<1e9)return n(t,1e6,"M");if(t>=1e9&&t<1e12)return n(t,1e9,"B");if(t>=1e12)return n(t,1e12,"T");function n(r,o,i){const s=String(Math.floor(r/(o/1e3))).padEnd(4,"0");return Intl.NumberFormat("en-US").format(Number(s)).replace(",",".")+i}return Intl.NumberFormat("en-US").format(t)}function I4(e){const t=Number(e)/1e9;if(t===0)return"0";const n=Math.ceil(-Math.log10(t));return Number(e)%Math.pow(10,10-(n+2))===0&&Number(e)%Math.pow(10,10-(n+1))===0?Fl(t,n):Number(e)%Math.pow(10,10-(n+2))===0&&Number(e)%Math.pow(10,10-(n+1))!==0?Fl(t,n+1):Fl(t,n+2)}function Fl(e,t){return t=t||0,t=Math.pow(10,t),$4(Math.floor(e*t)/t)}function $4(e){if(isNaN(e))return e.toString();const t=""+e;return/e/i.test(t)?e.toFixed(18).replace(/\.?0+$/,""):e.toString()}function P4(e){const{disconnect:t,account:n}=Ls(),{balance:r}=S4(),[o,i]=K.exports.useState(!1);return qt("div",{className:la("wkit-connected-container"),children:[qt("button",{className:la("wkit-connected-button"),onClick:()=>{i(!o)},children:[qt("span",{className:"wkit-connected-button__balance",children:[j4(r)," SUI"]}),je("div",{className:"wkit-connected-button__divider"}),qt("div",{className:"wkit-address-select",children:[je("span",{className:"wkit-address-select__address",children:N4(n.address)}),je("span",{className:"wkit-address-select__right-arrow",children:je(X5,{})})]})]}),o&&je("div",{className:"wkit-disconnect-button__container",children:je("button",{className:"wkit-disconnect-button",onClick:()=>{i(!1),t().then(()=>{var s;(s=e.onDisconnect)==null||s.call(e)})},children:"Disconnect"})})]})}const R4=e=>{const{label:t="Connect Button"}=e,[n,r]=K.exports.useState(!1),{connected:o}=Ls();return o?je(P4,{onDisconnect:()=>{r(!1)}}):je(C4,{open:n,onOpenChange:i=>r(i),children:je("button",{className:la("wkit-button",e.className),style:e.style,children:e.children||t})})},B4=Object.freeze({name:nd.SUI_WALLET,iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////9/f39/f3+/v7x+Pz///95wfGj1PXI5fgEMJeQAAAAB3RSTlMAECNgmNr40ET05wAAAOBJREFUeNplUksOgjAQbYw38LdloQdw5VZJDGuNiWtXdGvUFjlAtT2AVC4AekrLvKKYvoTMm5fpfGGswWCdit2cfTFNZYO49YfSYwW/t2+FS0TCTH6x/Q/wISPZwcYJSVc4uxdg1wI2Yn0QbmCXbAKin7AHtiCbq6wicvI5syK/+azowlZSoxNGc4l7IWswhqKlagtD4Kl9CAWBAmspbGHwhJK+HDMlkiaIcJ9BWWqMu64yhcbGVMU5nKoc/XC2fGs/HMbPra78+MGCwhUGSw7OEB4qOKU7Nrki/p2/8zt8ABpiv63tyiOHAAAAAElFTkSuQmCC",downloadUrl:{browserExtension:"https://chrome.google.com/webstore/detail/sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil"}}),U4=Object.freeze({name:nd.SUIET_WALLET,iconUrl:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMTYiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNzA4XzI4Mjk3KSIvPjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMTcwOF8yODI5NykiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0yMi44IDIwYy0xLjQgMC0yLjctMS40LTMuMy0yLjMtLjcuOS0yIDIuMy0zLjQgMi4zcy0yLjctMS40LTMuNC0yLjNjLS42LjktMS45IDIuMy0zLjMgMi4zLS4zIDAtLjUtLjItLjUtLjVzLjItLjUuNS0uNWMxLjEgMCAyLjYtMS45IDIuOS0yLjVsLjUtLjJjLjIgMCAuMyAwIC40LjIuNC42IDEuOCAyLjUgMi45IDIuNSAxLjEgMCAyLjUtMS45IDIuOS0yLjVsLjQtLjJjLjIgMCAuNCAwIC41LjIuNC42IDEuOCAyLjUgMi45IDIuNS4yIDAgLjUuMi41LjVzLS4yLjUtLjUuNXoiLz48cGF0aCBkPSJNMjIuOCAyMy4zYy0xLjQgMC0yLjctMS4zLTMuMy0yLjMtLjcgMS0yIDIuMy0zLjQgMi4zUzEzLjQgMjIgMTIuNyAyMWMtLjYgMS0xLjkgMi4zLTMuMyAyLjMtLjMgMC0uNS0uMy0uNS0uNSAwLS4zLjItLjYuNS0uNiAxLjEgMCAyLjYtMS44IDIuOS0yLjRsLjUtLjIuNC4yYy40LjYgMS44IDIuNCAyLjkgMi40IDEuMSAwIDIuNS0xLjggMi45LTIuNGwuNC0uMi41LjJjLjQuNiAxLjggMi40IDIuOSAyLjQuMiAwIC41LjMu
117NS42IDAgLjItLjIuNS0uNS41ek05LjggMTYuN2MtLjMgMC0uNS0uMi0uNS0uNEw5LjEgMTVjMC0zLjkgMy4yLTcgNy03IDMuOSAwIDcgMy4xIDcgN2wtLjEgMS4yYzAgLjMtLjMuNS0uNi41LS40LS4xLS41LS4zLS40LS43di0xYzAtMy4zLTIuNi02LTUuOS02LTMuMiAwLTUuOSAyLjctNS45IDZsLjEgMWMuMS40LS4xLjctLjQuN2gtLjF6Ii8+PC9nPjxkZWZzPjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8xNzA4XzI4Mjk3IiB4PSI0LjkiIHk9IjYiIHdpZHRoPSIyMi40MzciIGhlaWdodD0iMjMuMzE5IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz48ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+PGZlT2Zmc2V0IGR5PSIyIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMiIvPjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwLjE3NTY5NCAwIDAgMCAwIDAuNTc0MTQyIDAgMCAwIDAgMC45MTY2NjcgMCAwIDAgMSAwIi8+PGZlQmxlbmQgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE3MDhfMjgyOTciLz48ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTcwOF8yODI5NyIgcmVzdWx0PSJzaGFwZSIvPjwvZmlsdGVyPjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8xNzA4XzI4Mjk3IiB5MT0iNCIgeDI9IjI4Ljg4OSIgeTI9IjMyIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzNFQTJGOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzY3QzhGRiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",downloadUrl:{browserExtension:"https://chrome.google.com/webstore/detail/suiet/khpkpbbcccdmmclmpigdgddabeilkdpd"}}),L4=[U4,B4];var D4=globalThis&&globalThis.__classPrivateFieldSet||function(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n},z4=globalThis&&globalThis.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Bu;let sr;const Uu=new Set,li={};function F4(){if(sr||(sr=Object.freeze({register:Kp,get:W4,on:H4}),typeof window>"u"))return sr;const e=Object.freeze({register:Kp});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(t){console.error(`wallet-standard:register-wallet event listener could not be added
118`,t)}try{window.dispatchEvent(new V4(e))}catch(t){console.error(`wallet-standard:app-ready event could not be dispatched
119`,t)}return sr}function Kp(...e){var t;return e=e.filter(n=>!Uu.has(n)),e.length?(e.forEach(n=>Uu.add(n)),(t=li.register)==null||t.forEach(n=>rf(()=>n(...e))),function(){var n;e.forEach(r=>Uu.delete(r)),(n=li.unregister)==null||n.forEach(r=>rf(()=>r(...e)))}):()=>{}}function W4(){return[...Uu]}function H4(e,t){var n;return(n=li[e])!=null&&n.push(t)||(li[e]=[t]),function(){var r;li[e]=(r=li[e])==null?void 0:r.filter(o=>t!==o)}}function rf(e){try{e()}catch(t){console.error(t)}}class V4 extends Event{constructor(t){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),Bu.set(this,void 0),D4(this,Bu,t,"f")}get detail(){return z4(this,Bu,"f")}get type(){return"wallet-standard:app-ready"}preventDefault(){throw new Error("preventDefault cannot be called")}stopImmediatePropagation(){throw new Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw new Error("stopPropagation cannot be called")}}Bu=new WeakMap;function G4(){if(sr||(sr=F4(),typeof window>"u"))return sr;const e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),sr;const{register:t}=sr,n=(...r)=>r.forEach(o=>rf(()=>o({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:n})})}catch{return console.error("window.navigator.wallets could not be set"),sr}return n(...e),sr}var q4=typeof global=="object"&&global&&global.Object===Object&&global;const K4=q4;var Q4=typeof self=="object"&&self&&self.Object===Object&&self,J4=K4||Q4||Function("return this")();const kd=J4;var Z4=kd.Symbol;const Oi=Z4;var Ug=Object.prototype,X4=Ug.hasOwnProperty,Y4=Ug.toString,qi=Oi?Oi.toStringTag:void 0;function eb(e){var t=X4.call(e,qi),n=e[qi];try{e[qi]=void 0;var r=!0}catch{}var o=Y4.call(e);return r&&(t?e[qi]=n:delete e[qi]),o}var tb=Object.prototype,nb=tb.toString;function rb(e){return nb.call(e)}
vendor: 5,039 bytes, line 119
119var ob="[object Null]",ib="[object Undefined]",Qp=Oi?Oi.toStringTag:void 0;function Md(e){return e==null?e===void 0?ib:ob:Qp&&Qp in Object(e)?eb(e):rb(e)}function _d(e){return e!=null&&typeof e=="object"}var sb="[object Symbol]";function Ad(e){return typeof e=="symbol"||_d(e)&&Md(e)==sb}function ub(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ab=Array.isArray;const Ha=ab;var lb=1/0,Jp=Oi?Oi.prototype:void 0,Zp=Jp?Jp.toString:void 0;function Lg(e){if(typeof e=="string")return e;if(Ha(e))return ub(e,Lg)+"";if(Ad(e))return Zp?Zp.call(e):"";var t=e+"";return t=="0"&&1/e==-lb?"-0":t}function Dg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cb="[object AsyncFunction]",fb="[object Function]",db="[object GeneratorFunction]",hb="[object Proxy]";function pb(e){if(!Dg(e))return!1;var t=Md(e);return t==fb||t==db||t==cb||t==hb}var yb=kd["__core-js_shared__"];const Wl=yb;var Xp=function(){var e=/[^.]+$/.exec(Wl&&Wl.keys&&Wl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gb(e){return!!Xp&&Xp in e}var mb=Function.prototype,vb=mb.toString;function wb(e){if(e!=null){try{return vb.call(e)}catch{}try{return e+""}catch{}}return""}var bb=/[\\^$.*+?()[\]{}|]/g,Eb=/^\[object .+?Constructor\]$/,xb=Function.prototype,Sb=Object.prototype,kb=xb.toString,Mb=Sb.hasOwnProperty,_b=RegExp("^"+kb.call(Mb).replace(bb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ab(e){if(!Dg(e)||gb(e))return!1;var t=pb(e)?_b:Eb;return t.test(wb(e))}function Tb(e,t){return e==null?void 0:e[t]}function zg(e,t){var n=Tb(e,t);return Ab(n)?n:void 0}var Ob=9007199254740991,Cb=/^(?:0|[1-9]\d*)$/;function Nb(e,t){var n=typeof e;return t=t==null?Ob:t,!!t&&(n=="number"||n!="symbol"&&Cb.test(e))&&e>-1&&e%1==0&&e<t}function jb(e,t){return e===t||e!==e&&t!==t}var Ib=9007199254740991;function $b(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ib}var Pb="[object Arguments]";function Yp(e){return _d(e)&&Md(e)==Pb}var Fg=Object.prototype,Rb=Fg.hasOwnProperty,Bb=Fg.propertyIsEnumerable,Ub=Yp(function(){return arguments}())?Yp:function(e){return _d(e)&&Rb.call(e,"callee")&&!Bb.call(e,"callee")};const Lb=Ub;var Db=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zb=/^\w*$/;function Fb(e,t){if(Ha(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ad(e)?!0:zb.test(e)||!Db.test(e)||t!=null&&e in Object(t)}var Wb=zg(Object,"create");const Ns=Wb;function Hb(){this.__data__=Ns?Ns(null):{},this.size=0}function Vb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gb="__lodash_hash_undefined__",qb=Object.prototype,Kb=qb.hasOwnProperty;function Qb(e){var t=this.__data__;if(Ns){var n=t[e];return n===Gb?void 0:n}return Kb.call(t,e)?t[e]:void 0}var Jb=Object.prototype,Zb=Jb.hasOwnProperty;function Xb(e){var t=this.__data__;return Ns?t[e]!==void 0:Zb.call(t,e)}var Yb="__lodash_hash_undefined__";function eE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ns&&t===void 0?Yb:t,this}function Bo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bo.prototype.clear=Hb;Bo.prototype.delete=Vb;Bo.prototype.get=Qb;Bo.prototype.has=Xb;Bo.prototype.set=eE;function tE(){this.__data__=[],this.size=0}function Va(e,t){for(var n=e.length;n--;)if(jb(e[n][0],t))return n;return-1}var nE=Array.prototype,rE=nE.splice;function oE(e){var t=this.__data__,n=Va(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rE.call(t,n,1),--this.size,!0}function iE(e){var t=this.__data__,n=Va(t,e);return n<0?void 0:t[n][1]}function sE(e){return Va(this.__data__,e)>-1}function uE(e,t){var n=this.__data__,r=Va(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pi.prototype.clear=tE;Pi.prototype.delete=oE;Pi.prototype.get=iE;Pi.prototype.has=sE;Pi.prototype.set=uE;var aE=zg(kd,"Map");const lE=aE;function cE(){this.size=0,this.__data__={hash:new Bo,map:new(lE||Pi),string:new Bo}}function fE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ga(e,t){var n=e.__data__;return fE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dE(e){var t=Ga(this,e).delete(e);return this.size-=t?1:0,t}function hE(e){return Ga(this,e).get(e)}function pE(e){return Ga(this,e).has(e)}function yE(e,t){var n=Ga(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fo.prototype.clear=cE;Fo.prototype.delete=dE;Fo.prototype.get=hE;Fo.prototype.has=pE;Fo.prototype.set=yE;var gE="Expected a function";function Td(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Td.Cache||Fo),n}
119Td.Cache=Fo;var mE=500;function vE(e){var t=Td(e,function(r){return n.size===mE&&n.clear(),r}),n=t.cache;return t}var wE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bE=/\\(\\)?/g,EE=vE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wE,function(n,r,o,i){t.push(o?i.replace(bE,"$1"):r||n)}),t});const xE=EE;function SE(e){return e==null?"":Lg(e)}function kE(e,t){return Ha(e)?e:Fb(e,t)?[e]:xE(SE(e))}var ME=1/0;function _E(e){if(typeof e=="string"||Ad(e))return e;var t=e+"";return t=="0"&&1/e==-ME?"-0":t}function AE(e,t,n){t=kE(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=_E(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&$b(o)&&Nb(s,o)&&(Ha(e)||Lb(e)))}var TE=Object.prototype,OE=TE.hasOwnProperty;function CE(e,t){return e!=null&&OE.call(e,t)}function e0(e,t){return e!=null&&AE(e,t,CE)}var Wg=(e=>(e.STANDARD__CONNECT="standard:connect",e.STANDARD__DISCONNECT="standard:disconnect",e.STANDARD__EVENTS="standard:events",e.SUI__SIGN_AND_TRANSACTION="sui:signAndExecuteTransaction",e.EXP__SIGN_MESSAGE="exp:signMessage",e))(Wg||{});class t0{constructor(t){_s(this,"standardWalletAdapter"),this.standardWalletAdapter=t}get name(){return this.standardWalletAdapter.name}get icon(){return this.standardWalletAdapter.icon}get version(){return this.standardWalletAdapter.version}get accounts(){return this.standardWalletAdapter.accounts}get chains(){return this.standardWalletAdapter.chains}get features(){return this.standardWalletAdapter.features}async connect(t){const n=this.getFeature("standard:connect");try{return await n.connect(t)}catch(r){throw new Jo(r.message)}}async disconnect(){const t=this.getFeature("standard:disconnect");try{return await t.disconnect()}catch(n){throw new Jo(n.message)}}on({event:t,listener:n}){const r=this.getFeature("standard:events");try{r.on(t,n)}catch(o){throw new Jo(o.message)}}async signAndExecuteTransaction(t){const n=this.getFeature("sui:signAndExecuteTransaction");try{return await n.signAndExecuteTransaction(t)}catch(r){throw new Jo(r.message)}}async signMessage(t){const n=this.getFeature("exp:signMessage");try{return await n.signMessage(t)}catch(r){throw new Jo(r.message)}}hasFeature(t){const{features:n}=this.standardWalletAdapter;return e0(n,t)}getFeature(t){const{features:n}=this.standardWalletAdapter;if(!e0(n,t))throw new Y5(t);return n[t]}}function NE(){const e=K.exports.useRef(),[t,n]=K.exports.useState([]);function r(){return e.current?e.current.get().filter(Gp):[]}return K.exports.useEffect(()=>{e.current=G4();const o=r();wi(o)&&n(o.map(s=>new t0(s)));const i=e.current.on("register",(...s)=>{if(!e.current)return;const a=[...r()];s.filter(Gp).filter(d=>!a.find(p=>p.name===d.name)).forEach(d=>{a.push(d)}),n(a.map(d=>new t0(d)))});return()=>{i()}},[]),{data:t}}const jE=e=>{const{data:t}=NE(),n=K.exports.useMemo(()=>wi(e)?wi(t)?e.map(o=>{const i=t.find(s=>o.name===s.name);return i?{...o,adapter:i,installed:!0}:{...o,adapter:void 0,installed:!1}}):e.map(o=>({...o,adapter:void 0,installed:!1})):[],[e,t]),r=K.exports.useMemo(()=>wi(t)?t.filter(o=>!e.find(i=>i.name===o.name)).map(o=>({name:o.name,adapter:o,installed:!0,iconUrl:o.icon,downloadUrl:{browserExtension:""}})):[],[e,t]);return{allAvailableWallets:K.exports.useMemo(()=>[...n,...r].filter(o=>o.installed),[n,r]),configuredWallets:n,detectedWallets:r}},IE=e=>{var t;const{defaultWallets:n=L4,children:r}=e,{allAvailableWallets:o,configuredWallets:i,detectedWallets:s}=jE(n),[a,d]=K.exports.useState(),[p,E]=K.exports.useState(pr.DISCONNECTED),S=(z,Z)=>z&&Z===pr.CONNECTED,M=K.exports.useMemo(()=>{if(S(a,p))return a.accounts[0]},[a,p]),R=(z,Z)=>{if(!S(z,Z))throw new Qn("Failed to call function, wallet not connected")},U=K.exports.useCallback(async(z,Z)=>{if(!z)throw new Qn("param adapter is missing");E(pr.CONNECTING);try{const X=await z.connect(Z);return d(z),E(pr.CONNECTED),X}catch(X){throw d(void 0),E(pr.DISCONNECTED),X}},[]),P=K.exports.useCallback(async()=>{R(a,p);const z=a;try{z.hasFeature(Wg.STANDARD__DISCONNECT)&&await z.disconnect()}finally{d(void 0),E(pr.DISCONNECTED)}},[a,p]),J=K.exports.useCallback(async z=>{if(S(a,p)){if(z===a.name)return;await P()}const Z=o.find(X=>X.name===z);if(!Z){const X=o.map(ce=>ce.name);throw new Qn(`select failed: wallet ${z} is not available, all wallets are listed here: [${X.join(", ")}]`)}await U(Z.adapter)},[a,p,o]),j=K.exports.useCallback(()=>(R(a,p),a.accounts),[a,p]),T=K.exports.useCallback(async z=>(R(a,p),await a.signAndExecuteTransaction(z)),[a,p]),_=K.exports.useCallback(async z=>{if(R(a,p),!M)throw new Qn("no active account");return await a.signMessage({account:M,message:z.message})},[a,M,p]),C=K.exports.useCallback(z=>(R(a,p),T({transaction:{kind:"moveCall",data:z}})),[T,a,p]),L=K.exports.useCallback(()=>(R(a,p),Promise.resolve(M.publicKey)),[a,M,p]);return K.exports.useEffect(()=>{e.supportedWallets&&console.warn("prop supportedWallets is deprecated, use defaultWallets to customize wallet list. migration doc: https://kit.suiet.app/docs/migration/upgradeTo0.1.0")},[]),je(Ny.Provider,{value:{allAvailableWallets:o,configuredWallets:i,detectedWallets:s,wallet:a,status:p,connecting:p===pr.CONNECTING,connected:p===pr.CONNECTED,select:J,disconnect:P,getAccounts:j,account:M,signAndExecuteTransaction:T,signMessage:_,address:M==null?void 0:M.address,supportedWallets:(t=e.supportedWallets)!=null?t:[],executeMoveCall:C,getPublicKey:L},children:r})};var Od={exports:{}},qa={};/**
120 * @license React
121 * react-jsx-runtime.production.min.js
122 *
123 * Copyright (c) Facebook, Inc. and its affiliates.
124 *
125 * This source code is licensed under the MIT license found in the
126 * LICENSE file in the root directory of this source tree.
127 */var $E=K.exports,PE=Symbol.for("react.element"),RE=Symbol.for("react.fragment"),BE=Object.prototype.hasOwnProperty,UE=$E.__SECRET_INT
127ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LE={key:!0,ref:!0,__self:!0,__source:!0};function Hg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)BE.call(t,r)&&!LE.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:PE,type:e,key:i,ref:s,props:o,_owner:UE.current}}qa.Fragment=RE;qa.jsx=Hg;qa.jsxs=Hg;(function(e){e.exports=qa})(Od);const Un=Od.exports.jsx,n0=Od.exports.jsxs;function DE(){const{wallet:e,connected:t,connecting:n,address:r,signAndExecuteTransaction:o,signMessage:i,getPublicKey:s}=Ls();K.exports.useState();async function a(){try{const p=await o({transaction:{kind:"moveCall",data:{packageObjectId:"0x2",module:"devnet_nft",function:"mint",typeArguments:[],arguments:["Wizard Land","Expanding The Magic Land","https://gateway.pinata.cloud/ipfs/QmYfw8RbtdjPAF3LrC6S3wGVwWgn6QKq4LGS4HFS55adU2?w=800&h=450&c=crop"],gasBudget:1e4}}});console.log("executeMoveCall success",p),alert("Congratulation you Minted Wizard Land Test NFT")}catch(d){console.error("executeMoveCall failed",d),alert("Sorry you failled you Minted Wizard Land Test NFT")}}return n0("div",{className:"App",children:[Un("div",{children:Un("a",{href:"https://twitter.com/WizardLandSui",target:"_blank",children:Un("img",{src:"/wiz11.png",className:"logo",alt:"WIZ logo"})})}),Un("h1",{children:"Wizard Land SUI"}),n0("div",{className:"card",children:[Un(R4,{}),t?Un("div",{children:Un("div",{className:"btn-group",style:{margin:"8px 0"},children:Un("button",{onClick:a,children:"Mint Wizard"})})}):Un("p",{children:"Mint your NFT Wizard Land!"})]}),Un("p",{className:"read-the-docs",children:"Crafted by WizLab"})]})}Hl.createRoot(document.getElementById("root")).render(Un(pa.StrictMode,{children:Un(IE,{children:Un(DE,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.