diff --git a/asset-manifest.json b/asset-manifest.json index f203d96..79fb0f6 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { - "main.css": "/static/css/main.5e4c247f.css", - "main.js": "/static/js/main.3bb0ca54.js", - "index.html": "/index.html", - "main.5e4c247f.css.map": "/static/css/main.5e4c247f.css.map", - "main.3bb0ca54.js.map": "/static/js/main.3bb0ca54.js.map" + "main.css": "/bx-vault-extractor/static/css/main.5e4c247f.css", + "main.js": "/bx-vault-extractor/static/js/main.77aa6a2c.js", + "index.html": "/bx-vault-extractor/index.html", + "main.5e4c247f.css.map": "/bx-vault-extractor/static/css/main.5e4c247f.css.map", + "main.77aa6a2c.js.map": "/bx-vault-extractor/static/js/main.77aa6a2c.js.map" }, "entrypoints": [ "static/css/main.5e4c247f.css", - "static/js/main.3bb0ca54.js" + "static/js/main.77aa6a2c.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 17823a1..39a039d 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/static/js/main.3bb0ca54.js b/static/js/main.3bb0ca54.js deleted file mode 100644 index a0df501..0000000 --- a/static/js/main.3bb0ca54.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.3bb0ca54.js.LICENSE.txt */ -(()=>{var e={3893:(e,t,n)=>{"use strict";t.pe=void 0;const r=n(3030),o="jwk",a="AES-GCM",i="utf-8",l={algorithm:"PBKDF2",params:{iterations:1e4}},s={algorithm:"PBKDF2",params:{iterations:9e5}};async function u(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m(),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s;const a=n||await g(e,r,!1,o),i=await f(a,t);return i.salt=r,JSON.stringify(i)}async function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s;const o=await g(e,n,!0,r),a=await h(o);return{vault:await u(e,t,o,n),exportedKeyString:a}}async function f(e,t){const r=JSON.stringify(t),o=Buffer.from(r,i),l=n.g.crypto.getRandomValues(new Uint8Array(16)),s=b(e),u=await n.g.crypto.subtle.encrypt({name:a,iv:l},s,o),c=new Uint8Array(u),f=Buffer.from(l).toString("base64"),d={data:Buffer.from(c).toString("base64"),iv:f};return y(e)&&(d.keyMetadata=e.derivationOptions),d}async function d(e,t,n){const r=JSON.parse(t),{salt:o,keyMetadata:a}=r,i=b(n||await g(e,o,!1,a));return await p(i,r)}async function p(e,t){const n=Buffer.from(t.data,"base64"),r=Buffer.from(t.iv,"base64"),o=b(e);let l;try{const e=await crypto.subtle.decrypt({name:a,iv:r},o,n),t=new Uint8Array(e),s=Buffer.from(t).toString(i);l=JSON.parse(s)}catch(s){throw new Error("Incorrect password")}return l}async function h(e){return y(e)?JSON.stringify({key:await window.crypto.subtle.exportKey(o,e.key),derivationOptions:e.derivationOptions}):JSON.stringify(await window.crypto.subtle.exportKey(o,e))}async function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;const s=Buffer.from(e,i),u=Buffer.from(t,"base64"),c=await n.g.crypto.subtle.importKey("raw",s,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]),f=await n.g.crypto.subtle.deriveKey({name:"PBKDF2",salt:u,iterations:o.params.iterations,hash:"SHA-256"},c,{name:a,length:256},r,["encrypt","decrypt"]);return o?{key:f,derivationOptions:o}:f}function m(){const e=new Uint8Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:32);n.g.crypto.getRandomValues(e);return btoa(String.fromCharCode.apply(null,e))}function y(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"key")&&(0,r.hasProperty)(e,"derivationOptions")&&e.key instanceof CryptoKey&&v(e.derivationOptions)}function v(e){return(0,r.isPlainObject)(e)&&(0,r.hasProperty)(e,"algorithm")&&(0,r.hasProperty)(e,"params")}function b(e){return y(e)?e.key:e}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;const{keyMetadata:n}=JSON.parse(e);return v(n)&&n.algorithm===t.algorithm&&n.params.iterations===t.params.iterations}t.pe=d},9094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(8392),a=((r=o)&&r.__esModule?r:{default:r}).default.call(void 0,"metamask");t.createProjectLogger=function(e){return a.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},2096:()=>{},2536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};t.__privateGet=(e,t,r)=>(n(e,t,"read from private field"),r?r.call(e):t.get(e)),t.__privateAdd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},t.__privateSet=(e,t,r,o)=>(n(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r)},8613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8265),o=n(724),a=n(8680),i=a.refine.call(void 0,a.string.call(void 0),"Version",(e=>null!==o.valid.call(void 0,e)||'Expected SemVer version, got "'.concat(e,'"'))),l=a.refine.call(void 0,a.string.call(void 0),"Version range",(e=>null!==o.validRange.call(void 0,e)||'Expected SemVer range, got "'.concat(e,'"')));t.VersionStruct=i,t.VersionRangeStruct=l,t.isValidSemVerVersion=function(e){return a.is.call(void 0,e,i)},t.isValidSemVerRange=function(e){return a.is.call(void 0,e,l)},t.assertIsSemVerVersion=function(e){r.assertStruct.call(void 0,e,i)},t.assertIsSemVerRange=function(e){r.assertStruct.call(void 0,e,l)},t.gtVersion=function(e,t){return o.gt.call(void 0,e,t)},t.gtRange=function(e,t){return o.gtr.call(void 0,e,t)},t.satisfiesVersionRange=function(e,t){return o.satisfies.call(void 0,e,t,{includePrerelease:!0})}},6533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(e=>(e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year",e))(n||{}),r=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error('"'.concat(t,'" must be a non-negative integer. Received: "').concat(e,'".'))};t.Duration=n,t.inMilliseconds=function(e,t){return r(e,"count"),e*t},t.timeSince=function(e){return r(e,"timestamp"),Date.now()-e}},751:(e,t,n)=>{"use strict";var r,o,a=n(9400).default;function i(e,t){return null!=e?e:t()}Object.defineProperty(t,"__esModule",{value:!0});var l=n(8265),s=n(8680);t.base64=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=i(t.paddingRequired,(()=>!1)),u=i(t.characterSet,(()=>"base64"));let c,f;return"base64"===u?c=String.raw(r||(r=a(["[A-Za-z0-9+/]"],["[A-Za-z0-9+\\/]"]))):(l.assert.call(void 0,"base64url"===u),c=String.raw(o||(o=a(["[-_A-Za-z0-9]"])))),f=n?new RegExp("^(?:".concat(c,"{4})*(?:").concat(c,"{3}=|").concat(c,"{2}==)?$"),"u"):new RegExp("^(?:".concat(c,"{4})*(?:").concat(c,"{2,3}|").concat(c,"{3}=|").concat(c,"{2}==)?$"),"u"),s.pattern.call(void 0,e,f)}},8265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7506),o=n(8680);function a(e){return Boolean("string"===typeof function(e){let t,n=e[0],r=1;for(;re.prototype,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name]))}function i(e,t){return a(e)?new e({message:t}):e({message:t})}var l=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};t.AssertionError=l,t.assert=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed.";if(!e){if(t instanceof Error)throw t;throw i(arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,t)}},t.assertStruct=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;try{o.assert.call(void 0,e,t)}catch(s){throw i(a,"".concat(n,": ").concat(function(e){return r.getErrorMessage.call(void 0,e).replace(/\.$/u,"")}(s),"."))}},t.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}},4617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7309),o=n(8265),a=n(8680),i=a.union.call(void 0,[a.number.call(void 0),a.bigint.call(void 0),a.string.call(void 0),r.StrictHexStruct]),l=a.coerce.call(void 0,a.number.call(void 0),i,Number),s=a.coerce.call(void 0,a.bigint.call(void 0),i,BigInt),u=(a.union.call(void 0,[r.StrictHexStruct,a.instance.call(void 0,Uint8Array)]),a.coerce.call(void 0,a.instance.call(void 0,Uint8Array),a.union.call(void 0,[r.StrictHexStruct]),r.hexToBytes)),c=a.coerce.call(void 0,r.StrictHexStruct,a.instance.call(void 0,Uint8Array),r.bytesToHex);t.createNumber=function(e){try{const t=a.create.call(void 0,e,l);return o.assert.call(void 0,Number.isFinite(t),'Expected a number-like value, got "'.concat(e,'".')),t}catch(t){if(t instanceof a.StructError)throw new Error('Expected a number-like value, got "'.concat(e,'".'));throw t}},t.createBigInt=function(e){try{return a.create.call(void 0,e,s)}catch(t){if(t instanceof a.StructError)throw new Error('Expected a number-like value, got "'.concat(String(t.value),'".'));throw t}},t.createBytes=function(e){if("string"===typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return a.create.call(void 0,e,u)}catch(t){if(t instanceof a.StructError)throw new Error('Expected a bytes-like value, got "'.concat(String(t.value),'".'));throw t}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"===typeof e&&"0x"===e.toLowerCase())return"0x";try{return a.create.call(void 0,e,c)}catch(t){if(t instanceof a.StructError)throw new Error('Expected a bytes-like value, got "'.concat(String(t.value),'".'));throw t}}},7029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(751),o=n(8680),a=o.size.call(void 0,r.base64.call(void 0,o.string.call(void 0),{paddingRequired:!0}),44,44);t.ChecksumStruct=a},6746:()=>{},7506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6039),o=n(6701);function a(e){return"object"===typeof e&&null!==e&&"code"in e}function i(e){return"object"===typeof e&&null!==e&&"message"in e}t.isErrorWithCode=a,t.isErrorWithMessage=i,t.isErrorWithStack=function(e){return"object"===typeof e&&null!==e&&"stack"in e},t.getErrorMessage=function(e){return i(e)&&"string"===typeof e.message?e.message:r.isNullOrUndefined.call(void 0,e)?"":String(e)},t.wrapError=function(e,t){if((n=e)instanceof Error||r.isObject.call(void 0,n)&&"Error"===n.constructor.name){let n;return n=2===Error.length?new Error(t,{cause:e}):new(0,o.ErrorWithCause)(t,{cause:e}),a(e)&&(n.code=e.code),n}var n;return t.length>0?new Error("".concat(String(e),": ").concat(t)):new Error(String(e))}},5982:()=>{},5677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8265),o=n(6039),a=n(8680),i=e=>a.object.call(void 0,e);function l(e){let{path:t,branch:n}=e;const r=t[t.length-1];return o.hasProperty.call(void 0,n[n.length-2],r)}function s(e){return new(0,a.Struct)({...e,type:"optional ".concat(e.type),validator:(t,n)=>!l(n)||e.validator(t,n),refiner:(t,n)=>!l(n)||e.refiner(t,n)})}var u=a.union.call(void 0,[a.literal.call(void 0,null),a.boolean.call(void 0),a.define.call(void 0,"finite number",(e=>a.is.call(void 0,e,a.number.call(void 0))&&Number.isFinite(e))),a.string.call(void 0),a.array.call(void 0,a.lazy.call(void 0,(()=>u))),a.record.call(void 0,a.string.call(void 0),a.lazy.call(void 0,(()=>u)))]),c=a.coerce.call(void 0,u,a.any.call(void 0),(e=>(r.assertStruct.call(void 0,e,u),JSON.parse(JSON.stringify(e,((e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t}))))));function f(e){return a.create.call(void 0,e,c)}var d=a.literal.call(void 0,"2.0"),p=a.nullable.call(void 0,a.union.call(void 0,[a.number.call(void 0),a.string.call(void 0)])),h=i({code:a.integer.call(void 0),message:a.string.call(void 0),data:s(c),stack:s(a.string.call(void 0))}),g=a.union.call(void 0,[a.record.call(void 0,a.string.call(void 0),c),a.array.call(void 0,c)]),m=i({id:p,jsonrpc:d,method:a.string.call(void 0),params:s(g)}),y=i({jsonrpc:d,method:a.string.call(void 0),params:s(g)});var v=a.object.call(void 0,{id:p,jsonrpc:d,result:a.optional.call(void 0,a.unknown.call(void 0)),error:a.optional.call(void 0,h)}),b=i({id:p,jsonrpc:d,result:c}),w=i({id:p,jsonrpc:d,error:h}),E=a.union.call(void 0,[b,w]);t.object=i,t.exactOptional=s,t.UnsafeJsonStruct=u,t.JsonStruct=c,t.isValidJson=function(e){try{return f(e),!0}catch(t){return!1}},t.getSafeJson=f,t.getJsonSize=function(e){r.assertStruct.call(void 0,e,c,"Invalid JSON value");const t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=d,t.JsonRpcIdStruct=p,t.JsonRpcErrorStruct=h,t.JsonRpcParamsStruct=g,t.JsonRpcRequestStruct=m,t.JsonRpcNotificationStruct=y,t.isJsonRpcNotification=function(e){return a.is.call(void 0,e,y)},t.assertIsJsonRpcNotification=function(e,t){r.assertStruct.call(void 0,e,y,"Invalid JSON-RPC notification",t)},t.isJsonRpcRequest=function(e){return a.is.call(void 0,e,m)},t.assertIsJsonRpcRequest=function(e,t){r.assertStruct.call(void 0,e,m,"Invalid JSON-RPC request",t)},t.PendingJsonRpcResponseStruct=v,t.JsonRpcSuccessStruct=b,t.JsonRpcFailureStruct=w,t.JsonRpcResponseStruct=E,t.isPendingJsonRpcResponse=function(e){return a.is.call(void 0,e,v)},t.assertIsPendingJsonRpcResponse=function(e,t){r.assertStruct.call(void 0,e,v,"Invalid pending JSON-RPC response",t)},t.isJsonRpcResponse=function(e){return a.is.call(void 0,e,E)},t.assertIsJsonRpcResponse=function(e,t){r.assertStruct.call(void 0,e,E,"Invalid JSON-RPC response",t)},t.isJsonRpcSuccess=function(e){return a.is.call(void 0,e,b)},t.assertIsJsonRpcSuccess=function(e,t){r.assertStruct.call(void 0,e,b,"Invalid JSON-RPC success response",t)},t.isJsonRpcFailure=function(e){return a.is.call(void 0,e,w)},t.assertIsJsonRpcFailure=function(e,t){r.assertStruct.call(void 0,e,w,"Invalid JSON-RPC failure response",t)},t.isJsonRpcError=function(e){return a.is.call(void 0,e,h)},t.assertIsJsonRpcError=function(e,t){r.assertStruct.call(void 0,e,h,"Invalid JSON-RPC error",t)},t.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:n,permitNull:r}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>Boolean("number"===typeof e&&(n||Number.isInteger(e))||"string"===typeof e&&(t||e.length>0)||r&&null===e)}},7309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8265),o=n(7883),a=n(8680),i=n(4848),l=48,s=58,u=87;var c=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function f(e){return e instanceof Uint8Array}function d(e){r.assert.call(void 0,f(e),"Value must be a Uint8Array.")}function p(e){if(d(e),0===e.length)return"0x";const t=c(),n=new Array(e.length);for(let r=0;re.toLowerCase,"optionalCall",e=>e()]))return new Uint8Array;R(e);const t=N(e).toLowerCase(),n=t.length%2===0?t:"0".concat(t),r=new Uint8Array(n.length/2);for(let o=0;o=BigInt(0),"Value must be a non-negative bigint.");return g(e.toString(16))}function y(e){r.assert.call(void 0,"number"===typeof e,"Value must be a number."),r.assert.call(void 0,e>=0,"Value must be a non-negative number."),r.assert.call(void 0,Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return g(e.toString(16))}function v(e){return r.assert.call(void 0,"string"===typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function b(e){if("bigint"===typeof e)return m(e);if("number"===typeof e)return y(e);if("string"===typeof e)return e.startsWith("0x")?g(e):v(e);if(f(e))return e;throw new TypeError('Unsupported value type: "'.concat(typeof e,'".'))}var w=a.pattern.call(void 0,a.string.call(void 0),/^(?:0x)?[0-9a-f]+$/iu),E=a.pattern.call(void 0,a.string.call(void 0),/^0x[0-9a-f]+$/iu),S=a.pattern.call(void 0,a.string.call(void 0),/^0x[0-9a-f]{40}$/u),x=a.pattern.call(void 0,a.string.call(void 0),/^0x[0-9a-fA-F]{40}$/u);function k(e){return a.is.call(void 0,e,w)}function C(e){return a.is.call(void 0,e,E)}function R(e){r.assert.call(void 0,k(e),"Value must be a hexadecimal string.")}function I(e){r.assert.call(void 0,a.is.call(void 0,e,x),"Invalid hex address.");const t=N(e.toLowerCase()),n=N(p(o.keccak_256.call(void 0,t)));return"0x".concat(t.split("").map(((e,t)=>{const o=n[t];return r.assert.call(void 0,a.is.call(void 0,o,a.string.call(void 0)),"Hash shorter than address."),parseInt(o,16)>7?e.toUpperCase():e})).join(""))}function _(e){return!!a.is.call(void 0,e,x)&&I(e)===e}function A(e){return e.startsWith("0x")?e:e.startsWith("0X")?"0x".concat(e.substring(2)):"0x".concat(e)}function N(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}t.HexStruct=w,t.StrictHexStruct=E,t.HexAddressStruct=S,t.HexChecksumAddressStruct=x,t.isHexString=k,t.isStrictHexString=C,t.assertIsHexString=R,t.assertIsStrictHexString=function(e){r.assert.call(void 0,C(e),'Value must be a hexadecimal string, starting with "0x".')},t.isValidHexAddress=function(e){return a.is.call(void 0,e,S)||_(e)},t.getChecksumAddress=I,t.isValidChecksumAddress=_,t.add0x=A,t.remove0x=N,t.isBytes=f,t.assertIsBytes=d,t.bytesToHex=p,t.bytesToBigInt=h,t.bytesToSignedBigInt=function(e){d(e);let t=BigInt(0);for(const n of e)t=(t<0,"Byte length must be greater than 0."),r.assert.call(void 0,function(e,t){r.assert.call(void 0,t>0);const n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let n=e;const o=new Uint8Array(t);for(let r=0;r>=BigInt(8);return o.reverse()},t.numberToBytes=y,t.stringToBytes=v,t.base64ToBytes=function(e){return r.assert.call(void 0,"string"===typeof e,"Value must be a string."),i.base64.decode(e)},t.valueToBytes=b,t.concatBytes=function(e){const t=new Array(e.length);let n=0;for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(e=>(e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date",e))(n||{}),r=/"|\\|\n|\r|\t/gu;function o(e){return e.charCodeAt(0)<=127}t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null===e||void 0===e},t.isObject=function(e){return Boolean(e)&&"object"===typeof e&&!Array.isArray(e)},t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),t.getKnownPropertyNames=function(e){return Object.getOwnPropertyNames(e)},t.JsonSize=n,t.ESCAPE_CHARACTERS_REGEXP=r,t.isPlainObject=function(e){if("object"!==typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(t){return!1}},t.isASCII=o,t.calculateStringSize=function(e){return e.split("").reduce(((e,t)=>o(t)?e+1:e+2),0)+(t=e.match(r),n=()=>[],null!=t?t:n()).length;var t,n},t.calculateNumberSize=function(e){return e.toString().length}},5519:()=>{},4882:(e,t,n)=>{"use strict";function r(e){let t,n=e[0],r=1;for(;r[-a-z0-9]{3,8}):(?[-_a-zA-Z0-9]{1,32})$/u,i=/^[-a-z0-9]{3,8}$/u,l=/^[-_a-zA-Z0-9]{1,32}$/u,s=/^(?(?[-a-z0-9]{3,8}):(?[-_a-zA-Z0-9]{1,32})):(?[-.%a-zA-Z0-9]{1,128})$/u,u=/^[-.%a-zA-Z0-9]{1,128}$/u,c=o.pattern.call(void 0,o.string.call(void 0),a),f=o.pattern.call(void 0,o.string.call(void 0),i),d=o.pattern.call(void 0,o.string.call(void 0),l),p=o.pattern.call(void 0,o.string.call(void 0),s),h=o.pattern.call(void 0,o.string.call(void 0),u);t.CAIP_CHAIN_ID_REGEX=a,t.CAIP_NAMESPACE_REGEX=i,t.CAIP_REFERENCE_REGEX=l,t.CAIP_ACCOUNT_ID_REGEX=s,t.CAIP_ACCOUNT_ADDRESS_REGEX=u,t.CaipChainIdStruct=c,t.CaipNamespaceStruct=f,t.CaipReferenceStruct=d,t.CaipAccountIdStruct=p,t.CaipAccountAddressStruct=h,t.isCaipChainId=function(e){return o.is.call(void 0,e,c)},t.isCaipNamespace=function(e){return o.is.call(void 0,e,f)},t.isCaipReference=function(e){return o.is.call(void 0,e,d)},t.isCaipAccountId=function(e){return o.is.call(void 0,e,p)},t.isCaipAccountAddress=function(e){return o.is.call(void 0,e,h)},t.parseCaipChainId=function(e){const t=a.exec(e);if(!r([t,"optionalAccess",e=>e.groups]))throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}},t.parseCaipAccountId=function(e){const t=s.exec(e);if(!r([t,"optionalAccess",e=>e.groups]))throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}},1683:()=>{},6037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7309),o=n(8265);t.numberToHex=e=>(o.assert.call(void 0,"number"===typeof e,"Value must be a number."),o.assert.call(void 0,e>=0,"Value must be a non-negative number."),o.assert.call(void 0,Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),r.add0x.call(void 0,e.toString(16))),t.bigIntToHex=e=>(o.assert.call(void 0,"bigint"===typeof e,"Value must be a bigint."),o.assert.call(void 0,e>=0,"Value must be a non-negative bigint."),r.add0x.call(void 0,e.toString(16))),t.hexToNumber=e=>{r.assertIsHexString.call(void 0,e);const t=parseInt(e,16);return o.assert.call(void 0,Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>(r.assertIsHexString.call(void 0,e),BigInt(r.add0x.call(void 0,e)))},1139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=n(2536),i=class{constructor(e){a.__privateAdd.call(void 0,this,r,void 0),a.__privateSet.call(void 0,this,r,new Map(e)),Object.freeze(this)}get size(){return a.__privateGet.call(void 0,this,r).size}[Symbol.iterator](){return a.__privateGet.call(void 0,this,r)[Symbol.iterator]()}entries(){return a.__privateGet.call(void 0,this,r).entries()}forEach(e,t){return a.__privateGet.call(void 0,this,r).forEach(((n,r,o)=>e.call(t,n,r,this)))}get(e){return a.__privateGet.call(void 0,this,r).get(e)}has(e){return a.__privateGet.call(void 0,this,r).has(e)}keys(){return a.__privateGet.call(void 0,this,r).keys()}values(){return a.__privateGet.call(void 0,this,r).values()}toString(){return"FrozenMap(".concat(this.size,") {").concat(this.size>0?" ".concat([...this.entries()].map((e=>{let[t,n]=e;return"".concat(String(t)," => ").concat(String(n))})).join(", ")," "):"","}")}};r=new WeakMap;var l=class{constructor(e){a.__privateAdd.call(void 0,this,o,void 0),a.__privateSet.call(void 0,this,o,new Set(e)),Object.freeze(this)}get size(){return a.__privateGet.call(void 0,this,o).size}[Symbol.iterator](){return a.__privateGet.call(void 0,this,o)[Symbol.iterator]()}entries(){return a.__privateGet.call(void 0,this,o).entries()}forEach(e,t){return a.__privateGet.call(void 0,this,o).forEach(((n,r,o)=>e.call(t,n,r,this)))}has(e){return a.__privateGet.call(void 0,this,o).has(e)}keys(){return a.__privateGet.call(void 0,this,o).keys()}values(){return a.__privateGet.call(void 0,this,o).values()}toString(){return"FrozenSet(".concat(this.size,") {").concat(this.size>0?" ".concat([...this.values()].map((e=>String(e))).join(", ")," "):"","}")}};o=new WeakMap,Object.freeze(i),Object.freeze(i.prototype),Object.freeze(l),Object.freeze(l.prototype),t.FrozenMap=i,t.FrozenSet=l},3030:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2096);var r=n(6037);n(5982);var o=n(6533);n(1683);var a=n(8613),i=n(5677);n(5519);var l=n(9094),s=n(4882),u=n(7029),c=n(751),f=n(4617),d=n(7309),p=n(8265),h=n(7506),g=n(6039),m=n(1139);n(2536),n(6746),t.AssertionError=p.AssertionError,t.CAIP_ACCOUNT_ADDRESS_REGEX=s.CAIP_ACCOUNT_ADDRESS_REGEX,t.CAIP_ACCOUNT_ID_REGEX=s.CAIP_ACCOUNT_ID_REGEX,t.CAIP_CHAIN_ID_REGEX=s.CAIP_CHAIN_ID_REGEX,t.CAIP_NAMESPACE_REGEX=s.CAIP_NAMESPACE_REGEX,t.CAIP_REFERENCE_REGEX=s.CAIP_REFERENCE_REGEX,t.CaipAccountAddressStruct=s.CaipAccountAddressStruct,t.CaipAccountIdStruct=s.CaipAccountIdStruct,t.CaipChainIdStruct=s.CaipChainIdStruct,t.CaipNamespaceStruct=s.CaipNamespaceStruct,t.CaipReferenceStruct=s.CaipReferenceStruct,t.ChecksumStruct=u.ChecksumStruct,t.Duration=o.Duration,t.ESCAPE_CHARACTERS_REGEXP=g.ESCAPE_CHARACTERS_REGEXP,t.FrozenMap=m.FrozenMap,t.FrozenSet=m.FrozenSet,t.HexAddressStruct=d.HexAddressStruct,t.HexChecksumAddressStruct=d.HexChecksumAddressStruct,t.HexStruct=d.HexStruct,t.JsonRpcErrorStruct=i.JsonRpcErrorStruct,t.JsonRpcFailureStruct=i.JsonRpcFailureStruct,t.JsonRpcIdStruct=i.JsonRpcIdStruct,t.JsonRpcNotificationStruct=i.JsonRpcNotificationStruct,t.JsonRpcParamsStruct=i.JsonRpcParamsStruct,t.JsonRpcRequestStruct=i.JsonRpcRequestStruct,t.JsonRpcResponseStruct=i.JsonRpcResponseStruct,t.JsonRpcSuccessStruct=i.JsonRpcSuccessStruct,t.JsonRpcVersionStruct=i.JsonRpcVersionStruct,t.JsonSize=g.JsonSize,t.JsonStruct=i.JsonStruct,t.PendingJsonRpcResponseStruct=i.PendingJsonRpcResponseStruct,t.StrictHexStruct=d.StrictHexStruct,t.UnsafeJsonStruct=i.UnsafeJsonStruct,t.VersionRangeStruct=a.VersionRangeStruct,t.VersionStruct=a.VersionStruct,t.add0x=d.add0x,t.assert=p.assert,t.assertExhaustive=p.assertExhaustive,t.assertIsBytes=d.assertIsBytes,t.assertIsHexString=d.assertIsHexString,t.assertIsJsonRpcError=i.assertIsJsonRpcError,t.assertIsJsonRpcFailure=i.assertIsJsonRpcFailure,t.assertIsJsonRpcNotification=i.assertIsJsonRpcNotification,t.assertIsJsonRpcRequest=i.assertIsJsonRpcRequest,t.assertIsJsonRpcResponse=i.assertIsJsonRpcResponse,t.assertIsJsonRpcSuccess=i.assertIsJsonRpcSuccess,t.assertIsPendingJsonRpcResponse=i.assertIsPendingJsonRpcResponse,t.assertIsSemVerRange=a.assertIsSemVerRange,t.assertIsSemVerVersion=a.assertIsSemVerVersion,t.assertIsStrictHexString=d.assertIsStrictHexString,t.assertStruct=p.assertStruct,t.base64=c.base64,t.base64ToBytes=d.base64ToBytes,t.bigIntToBytes=d.bigIntToBytes,t.bigIntToHex=r.bigIntToHex,t.bytesToBase64=d.bytesToBase64,t.bytesToBigInt=d.bytesToBigInt,t.bytesToHex=d.bytesToHex,t.bytesToNumber=d.bytesToNumber,t.bytesToSignedBigInt=d.bytesToSignedBigInt,t.bytesToString=d.bytesToString,t.calculateNumberSize=g.calculateNumberSize,t.calculateStringSize=g.calculateStringSize,t.concatBytes=d.concatBytes,t.createBigInt=f.createBigInt,t.createBytes=f.createBytes,t.createDataView=d.createDataView,t.createHex=f.createHex,t.createModuleLogger=l.createModuleLogger,t.createNumber=f.createNumber,t.createProjectLogger=l.createProjectLogger,t.exactOptional=i.exactOptional,t.getChecksumAddress=d.getChecksumAddress,t.getErrorMessage=h.getErrorMessage,t.getJsonRpcIdValidator=i.getJsonRpcIdValidator,t.getJsonSize=i.getJsonSize,t.getKnownPropertyNames=g.getKnownPropertyNames,t.getSafeJson=i.getSafeJson,t.gtRange=a.gtRange,t.gtVersion=a.gtVersion,t.hasProperty=g.hasProperty,t.hexToBigInt=r.hexToBigInt,t.hexToBytes=d.hexToBytes,t.hexToNumber=r.hexToNumber,t.inMilliseconds=o.inMilliseconds,t.isASCII=g.isASCII,t.isBytes=d.isBytes,t.isCaipAccountAddress=s.isCaipAccountAddress,t.isCaipAccountId=s.isCaipAccountId,t.isCaipChainId=s.isCaipChainId,t.isCaipNamespace=s.isCaipNamespace,t.isCaipReference=s.isCaipReference,t.isErrorWithCode=h.isErrorWithCode,t.isErrorWithMessage=h.isErrorWithMessage,t.isErrorWithStack=h.isErrorWithStack,t.isHexString=d.isHexString,t.isJsonRpcError=i.isJsonRpcError,t.isJsonRpcFailure=i.isJsonRpcFailure,t.isJsonRpcNotification=i.isJsonRpcNotification,t.isJsonRpcRequest=i.isJsonRpcRequest,t.isJsonRpcResponse=i.isJsonRpcResponse,t.isJsonRpcSuccess=i.isJsonRpcSuccess,t.isNonEmptyArray=g.isNonEmptyArray,t.isNullOrUndefined=g.isNullOrUndefined,t.isObject=g.isObject,t.isPendingJsonRpcResponse=i.isPendingJsonRpcResponse,t.isPlainObject=g.isPlainObject,t.isStrictHexString=d.isStrictHexString,t.isValidChecksumAddress=d.isValidChecksumAddress,t.isValidHexAddress=d.isValidHexAddress,t.isValidJson=i.isValidJson,t.isValidSemVerRange=a.isValidSemVerRange,t.isValidSemVerVersion=a.isValidSemVerVersion,t.jsonrpc2=i.jsonrpc2,t.numberToBytes=d.numberToBytes,t.numberToHex=r.numberToHex,t.object=i.object,t.parseCaipAccountId=s.parseCaipAccountId,t.parseCaipChainId=s.parseCaipChainId,t.remove0x=d.remove0x,t.satisfiesVersionRange=a.satisfiesVersionRange,t.signedBigIntToBytes=d.signedBigIntToBytes,t.stringToBytes=d.stringToBytes,t.timeSince=o.timeSince,t.valueToBytes=d.valueToBytes,t.wrapError=h.wrapError},4337:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!==typeof e)throw new Error("Expected boolean, not ".concat(e))}function o(e){if(!((t=e)instanceof Uint8Array||null!=t&&"object"===typeof t&&"Uint8Array"===t.constructor.name))throw new Error("Expected Uint8Array");for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&!r.includes(e.length))throw new Error("Expected Uint8Array of length ".concat(r,", not of length=").concat(e.length))}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function i(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];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 l(e,t){o(e);const n=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function o(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);t.toBig=i;const l=(e,t,n)=>e>>>n;t.shrSH=l;const s=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=s;const u=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=u;const c=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=c;const f=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=f;const d=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=d;const p=(e,t)=>t;t.rotr32H=p;const h=(e,t)=>e;t.rotr32L=h;const g=(e,t,n)=>e<>>32-n;t.rotlSH=g;const m=(e,t,n)=>t<>>32-n;t.rotlSL=m;const y=(e,t,n)=>t<>>64-n;t.rotlBH=y;const v=(e,t,n)=>e<>>64-n;function b(e,t,n,r){const o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}}t.rotlBL=v,t.add=b;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const E=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=E;const S=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=S;const x=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;t.add4H=x;const k=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);t.add5L=k;const C=(e,t,n,r,o,a)=>t+n+r+o+a+(e/2**32|0)|0;t.add5H=C;const R={fromBig:o,split:a,toBig:i,shrSH:l,shrSL:s,rotrSH:u,rotrSL:c,rotrBH:f,rotrBL:d,rotr32H:p,rotr32L:h,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:v,add:b,add3L:w,add3H:E,add4L:S,add4H:x,add5H:C,add5L:k};t.default=R},6164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},7883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(4337),o=n(4995),a=n(4361),[i,l,s]=[[],[],[]],u=BigInt(0),c=BigInt(1),f=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let x=0,k=c,C=1,R=0;x<24;x++){[C,R]=[R,(2*C+3*R)%5],i.push(2*(5*R+C)),l.push((x+1)*(x+2)/2%64);let e=u;for(let t=0;t<7;t++)k=(k<>d)*h)%p,k&f&&(e^=c<<(c<n>32?(0,o.rotlBH)(e,t,n):(0,o.rotlSH)(e,t,n),v=(e,t,n)=>n>32?(0,o.rotlBL)(e,t,n):(0,o.rotlSL)(e,t,n);function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,o=(r+2)%10,a=n[o],i=n[o+1],l=y(a,i,1)^n[t],s=v(a,i,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=l,e[r+n+1]^=s}let t=e[2],o=e[3];for(let n=0;n<24;n++){const r=l[n],a=y(t,o,r),s=v(t,o,r),u=i[n];t=e[u],o=e[u+1],e[u]=a,e[u+1]=s}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=g[r],e[1]^=m[r]}n.fill(0)}t.keccakP=b;class w extends a.Hash{constructor(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,o=(e=(0,a.toBytes)(e)).length;for(let r=0;r=n&&this.keccak();const a=Math.min(n-this.posOut,o-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:o,enableXOF:a}=this;return e||(e=new w(t,n,r,a,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=w;const E=(e,t,n)=>(0,a.wrapConstructor)((()=>new w(t,e,n)));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);const S=(e,t,n)=>(0,a.wrapXOFConstructorWithOpts)((function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new w(t,e,void 0===r.dkLen?n:r.dkLen,!0)}));t.shake128=S(31,168,16),t.shake256=S(31,136,32)},4361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(6164);t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);function o(e){return e instanceof Uint8Array||null!=e&&"object"===typeof e&&"Uint8Array"===e.constructor.name}t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!o(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n=i._0&&e<=i._9?e-i._0:e>=i._A&&e<=i._F?e-(i._A-10):e>=i._a&&e<=i._f?e-(i._a-10):void 0}t.hexToBytes=function(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,a=0;o{},t.asyncLoop=async function(e,n,r){let o=Date.now();for(let a=0;a=0&&ee().update(u(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r.crypto&&"function"===typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},4848:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e))throw new Error("Wrong integer: ".concat(e))}function r(e){return e instanceof Uint8Array||null!=e&&"object"===typeof e&&"Uint8Array"===e.constructor.name}function o(){const e=e=>e,t=(e,t)=>n=>e(t(n));for(var n=arguments.length,r=new Array(n),o=0;oe.encode)).reduceRight(t,e),decode:r.map((e=>e.decode)).reduce(t,e)}}function a(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!==typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(n(t),t<0||t>=e.length)throw new Error("Digit index outside alphabet: ".concat(t," (alphabet: ").concat(e.length,")"));return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!==typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!==typeof t)throw new Error("alphabet.decode: not string element=".concat(t));const n=e.indexOf(t);if(-1===n)throw new Error('Unknown letter: "'.concat(t,'". Allowed: ').concat(e));return n}))}}}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!==typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!==typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!==typeof e)throw new Error("join.encode: non-string input=".concat(e));return t.join(e)},decode:t=>{if("string"!==typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";if(n(e),"string"!==typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!==typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!==typeof e)throw new Error("padding.encode: non-string input=".concat(e));for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!==typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!==typeof e)throw new Error("padding.decode: non-string input=".concat(e));let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function s(e){if("function"!==typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function u(e,t,r){if(t<2)throw new Error("convertRadix: wrong from=".concat(t,", base cannot be less than 2"));if(r<2)throw new Error("convertRadix: wrong to=".concat(r,", base cannot be less than 2"));if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let o=0;const a=[],i=Array.from(e);for(i.forEach((e=>{if(n(e),e<0||e>=t)throw new Error("Wrong integer: ".concat(e))}));;){let e=0,n=!0;for(let a=o;at?c(t,e%t):e,f=(e,t)=>e+(t-c(e,t));function d(e,t,r,o){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error("convertRadix2: wrong from=".concat(t));if(r<=0||r>32)throw new Error("convertRadix2: wrong to=".concat(r));if(f(t,r)>32)throw new Error("convertRadix2: carry overflow from=".concat(t," to=").concat(r," carryBits=").concat(f(t,r)));let a=0,i=0;const l=2**r-1,s=[];for(const u of e){if(n(u),u>=2**t)throw new Error("convertRadix2: invalid data word=".concat(u," from=").concat(t));if(a=a<32)throw new Error("convertRadix2: carry overflow pos=".concat(i," from=").concat(t));for(i+=t;i>=r;i-=r)s.push((a>>i-r&l)>>>0);a&=2**i-1}if(a=a<=t)throw new Error("Excess padding");if(!o&&a)throw new Error("Non-zero padding: ".concat(a));return o&&i>0&&s.push(a>>>0),s}function p(e){return n(e),{encode:t=>{if(!r(t))throw new Error("radix.encode input should be Uint8Array");return u(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!==typeof t[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(u(t,e,256))}}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(f(8,e)>32||f(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!r(n))throw new Error("radix2.encode input should be Uint8Array");return d(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!==typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(d(n,e,8,t))}}}function g(e){if("function"!==typeof e)throw new Error("unsafeWrapper fn should be function");return function(){try{for(var t=arguments.length,n=new Array(t),r=0;re.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),t.base64=o(h(6),a("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),l(6),i("")),t.base64url=o(h(6),a("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),l(6),i("")),t.base64urlnopad=o(h(6),a("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(""));const y=e=>o(p(58),a(e),i(""));t.base58=y("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=y("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=y("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const v=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let n="";for(let r=0;ro(m(4,(t=>e(e(t)))),t.base58),t.base58check=t.createBase58check;const b=o(a("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),i("")),w=[996825010,642813549,513874426,1027748829,705979059];function E(e){const t=e>>25;let n=(33554431&e)<<5;for(let r=0;r>r&1)&&(n^=w[r]);return n}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=e.length;let o=1;for(let a=0;a126)throw new Error("Invalid prefix (".concat(e,")"));o=E(o)^t>>5}o=E(o);for(let a=0;a1&&void 0!==arguments[1]?arguments[1]:90;if("string"!==typeof e)throw new Error("bech32.decode input should be string, not ".concat(typeof e));if(e.length<8||!1!==n&&e.length>n)throw new TypeError("Wrong string length: ".concat(e.length," (").concat(e,"). Expected (8..").concat(n,")"));const r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const o=(e=r).lastIndexOf("1");if(0===o||-1===o)throw new Error('Letter "1" must be present between prefix and data only');const a=e.slice(0,o),i=e.slice(o+1);if(i.length<6)throw new Error("Data must be at least 6 characters long");const l=b.decode(i).slice(0,-6),s=S(a,l,t);if(!i.endsWith(s))throw new Error("Invalid checksum in ".concat(e,': expected "').concat(s,'"'));return{prefix:a,words:l}}return{encode:function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90;if("string"!==typeof e)throw new Error("bech32.encode prefix should be string, not ".concat(typeof e));if(!Array.isArray(n)||n.length&&"number"!==typeof n[0])throw new Error("bech32.encode words should be array of numbers, not ".concat(typeof n));const o=e.length+7+n.length;if(!1!==r&&o>r)throw new TypeError("Length ".concat(o," exceeds limit ").concat(r));const a=e.toLowerCase(),i=S(a,n,t);return"".concat(a,"1").concat(b.encode(n)).concat(i)},decode:i,decodeToBytes:function(e){const{prefix:t,words:n}=i(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:g(i),fromWords:r,fromWordsUnsafe:a,toWords:o}}t.bech32=x("bech32"),t.bech32m=x("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},t.hex=o(h(4),a("0123456789abcdef"),i(""),s((e=>{if("string"!==typeof e||e.length%2)throw new TypeError("hex.decode: expected string, got ".concat(typeof e," with length ").concat(e.length));return e.toLowerCase()})));const k={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},C="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!==typeof e||!k.hasOwnProperty(e))throw new TypeError(C);if(!r(t))throw new TypeError("bytesToString() expects Uint8Array");return k[e].encode(t)},t.str=t.bytesToString;t.stringToBytes=(e,t)=>{if(!k.hasOwnProperty(e))throw new TypeError(C);if("string"!==typeof t)throw new TypeError("stringToBytes() expects string");return k[e].decode(t)},t.bytes=t.stringToBytes},2009:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=l(e),i=a[0],s=a[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,i,s)),c=0,f=s>0?i-4:i;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=16383,l=0,u=r-o;lu?u:l+i));1===o?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)n[i]=a[i],r[a.charCodeAt(i)]=i;function l(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("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,a,i=[],l=t;l>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},9778:(e,t,n)=>{"use strict";const r=n(2009),o=n(4038),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=s,t.h2=50;const i=2147483647;function l(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=l(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|h(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||K(e.length)?l(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),l(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=l(t);for(let r=0;r=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function g(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return r?-1:G(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let a,i=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,l/=2,s/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){let r=-1;for(a=n;al&&(n=l-s),a=n;a>=0;a--){let n=!0;for(let r=0;ro&&(r=o):r=o;const a=t.length;let i;for(r>a/2&&(r=a/2),i=0;i>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+i<=n){let n,r,l,s;switch(i){case 1:t<128&&(a=t);break;case 2:n=e[o+1],128===(192&n)&&(s=(31&t)<<6|63&n,s>127&&(a=s));break;case 3:n=e[o+1],r=e[o+2],128===(192&n)&&128===(192&r)&&(s=(15&t)<<12|(63&n)<<6|63&r,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:n=e[o+1],r=e[o+2],l=e[o+3],128===(192&n)&&128===(192&r)&&128===(192&l)&&(s=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&l,s>65535&&s<1114112&&(a=s))}}null===a?(a=65533,i=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=i}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=g,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(Q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0);const l=Math.min(a,i),u=this.slice(r,o),c=e.slice(t,n);for(let s=0;s>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let a=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;or)&&(n=r);let o="";for(let a=t;an)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,a){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r,o){V(t,r,o,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,n}function B(e,t,n,r,o){V(t,r,o,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=i,i>>=8,e[n+2]=i,i>>=8,e[n+1]=i,i>>=8,e[n]=i,n+8}function F(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],o=1,a=0;for(;++a>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],o=1,a=0;for(;++a=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=t,o=1,a=this[e+--r];for(;r>0&&(o*=256);)a+=this[e+--r]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||O(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Y((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Y((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=0,a=1,i=0;for(this[t]=255&e;++o>0)-i&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=n-1,a=1,i=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/a>>0)-i&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Y((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Y((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function V(e,t,n,r,o,a){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(a+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(a+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new U.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,a)}function H(e,t){if("number"!==typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=D(String(n)):"bigint"===typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),r+=" It must be ".concat(t,". Received ").concat(o),r}),RangeError);const J=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let o=null;const a=[];for(let i=0;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function $(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function X(e,t,n,r){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}const q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Y(e){return"undefined"===typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},8392:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!==typeof process&&"env"in process&&(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.DEBUG);return e},t.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(8472)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},8472:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,a,i=null;function l(){for(var e=arguments.length,r=new Array(e),o=0;o{if("%%"===e)return"%";u++;const o=t.formatters[n];if("function"===typeof o){const t=r[u];e=o.call(a,t),r.splice(u,1),u--}return e})),t.formatArgs.call(a,r);(a.log||t.log).apply(a,r)}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=r,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,a=t.enabled(e)),a),set:e=>{i=e}}),"function"===typeof t.init&&t.init(l),l}function r(e,n){const r=t(this.namespace+("undefined"===typeof n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{t.read=function(e,t,n,r,o){var a,i,l=8*o-r-1,s=(1<>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=l;c>0;a=256*a+e[t+f],f+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=r;c>0;i=256*i+e[t+f],f+=d,c-=8);if(0===a)a=1-u;else{if(a===s)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,r),a-=u}return(p?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,l,s,u=8*a-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(i++,s/=2),i+f>=c?(l=0,i=c):i+f>=1?(l=(t*s-1)*Math.pow(2,o),i+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(i=i<0;e[n+p]=255&i,p+=h,i/=256,u-=8);e[n+p-h]|=128*g}},8193:e=>{var t=1e3,n=60*t,r=60*n,o=24*r,a=7*o,i=365.25*o;function l(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,s){s=s||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!l)return;var s=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&isFinite(e))return s.long?function(e){var a=Math.abs(e);if(a>=o)return l(e,a,o,"day");if(a>=r)return l(e,a,r,"hour");if(a>=n)return l(e,a,n,"minute");if(a>=t)return l(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=o)return Math.round(e/o)+"d";if(a>=r)return Math.round(e/r)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6701:(e,t,n)=>{"use strict";const{ErrorWithCause:r}=n(2317),{findCauseByReference:o,getErrorCause:a,messageWithCauses:i,stackWithCauses:l}=n(9114);e.exports={ErrorWithCause:r,findCauseByReference:o,getErrorCause:a,stackWithCauses:l,messageWithCauses:i}},4463:(e,t,n)=>{"use strict";var r=n(2791),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n